1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 MSVCP_DLL 649 MSVCR_DLL 650 LIBCXX 651 LLVM_LIBS 652 LLVM_LDFLAGS 653 LLVM_CFLAGS 654 LLVM_CONFIG 655 LIBFFI_LIBS 656 LIBFFI_CFLAGS 657 STATIC_CXX_SETTING 658 LIBDL 659 LIBM 660 LIBZIP_CAN_USE_MMAP 661 USE_EXTERNAL_LIBZ 662 USE_EXTERNAL_LIBPNG 663 PNG_LIBS 664 PNG_CFLAGS 665 USE_EXTERNAL_LCMS 666 LCMS_LIBS 667 LCMS_CFLAGS 668 USE_EXTERNAL_LIBGIF 669 USE_EXTERNAL_LIBJPEG 670 ALSA_LIBS 671 ALSA_CFLAGS 672 FREETYPE_BUNDLE_LIB_PATH 673 FREETYPE_LIBS 674 FREETYPE_CFLAGS 675 CUPS_CFLAGS 676 X_EXTRA_LIBS 677 X_LIBS 678 X_PRE_LIBS 679 X_CFLAGS 680 XMKMF 681 FIXPATH 682 GCOV_ENABLED 683 ZIP_DEBUGINFO_FILES 684 ENABLE_DEBUG_SYMBOLS 685 CFLAGS_WARNINGS_ARE_ERRORS 686 DISABLE_WARNING_PREFIX 687 WARNINGS_AS_ERRORS 688 COMPILER_SUPPORTS_TARGET_BITS_FLAG 689 ZERO_ARCHFLAG 690 LDFLAGS_TESTEXE_SUFFIX 691 LDFLAGS_TESTLIB_SUFFIX 692 LDFLAGS_TESTEXE 693 LDFLAGS_TESTLIB 694 LDFLAGS_CXX_JDK 695 LDFLAGS_JDKEXE_SUFFIX 696 LDFLAGS_JDKLIB_SUFFIX 697 LDFLAGS_JDKEXE 698 LDFLAGS_JDKLIB 699 CXXFLAGS_TESTEXE 700 CXXFLAGS_TESTLIB 701 CFLAGS_TESTEXE 702 CFLAGS_TESTLIB 703 CXXFLAGS_JDKEXE 704 CXXFLAGS_JDKLIB 705 CFLAGS_JDKEXE 706 CFLAGS_JDKLIB 707 MACOSX_VERSION_MIN 708 LEGACY_EXTRA_LDFLAGS 709 LEGACY_EXTRA_CXXFLAGS 710 LEGACY_EXTRA_CFLAGS 711 CXX_O_FLAG_NONE 712 CXX_O_FLAG_DEBUG 713 CXX_O_FLAG_NORM 714 CXX_O_FLAG_HI 715 CXX_O_FLAG_HIGHEST 716 C_O_FLAG_NONE 717 C_O_FLAG_DEBUG 718 C_O_FLAG_NORM 719 C_O_FLAG_HI 720 C_O_FLAG_HIGHEST 721 CXXFLAGS_DEBUG_OPTIONS 722 CFLAGS_DEBUG_OPTIONS 723 CXXFLAGS_DEBUG_SYMBOLS 724 CFLAGS_DEBUG_SYMBOLS 725 CXX_FLAG_DEPS 726 C_FLAG_DEPS 727 SET_SHARED_LIBRARY_MAPFILE 728 SET_SHARED_LIBRARY_NAME 729 SET_SHARED_LIBRARY_ORIGIN 730 SET_EXECUTABLE_ORIGIN 731 CXX_FLAG_REORDER 732 C_FLAG_REORDER 733 SYSROOT_LDFLAGS 734 SYSROOT_CFLAGS 735 RC_FLAGS 736 AR_OUT_OPTION 737 LD_OUT_OPTION 738 EXE_OUT_OPTION 739 CC_OUT_OPTION 740 POST_STRIP_CMD 741 ARFLAGS 742 COMPILER_TARGET_BITS_FLAG 743 JT_HOME 744 JTREGEXE 745 USING_BROKEN_SUSE_LD 746 PACKAGE_PATH 747 USE_CLANG 748 HOTSPOT_LD 749 HOTSPOT_CXX 750 HOTSPOT_RC 751 HOTSPOT_MT 752 BUILD_LD 753 BUILD_CXX 754 BUILD_CC 755 ac_ct_OBJDUMP 756 OBJDUMP 757 ac_ct_OBJCOPY 758 OBJCOPY 759 ac_ct_NM 760 ac_ct_STRIP 761 GNM 762 NM 763 STRIP 764 MSBUILD 765 DUMPBIN 766 RC 767 MT 768 LIPO 769 ac_ct_AR 770 AR 771 AS 772 LDCXX 773 LD 774 CXXCPP 775 CPP 776 ac_ct_CXX 777 CXXFLAGS 778 CXX 779 ac_ct_PROPER_COMPILER_CXX 780 PROPER_COMPILER_CXX 781 TOOLCHAIN_PATH_CXX 782 POTENTIAL_CXX 783 OBJEXT 784 EXEEXT 785 ac_ct_CC 786 CPPFLAGS 787 LDFLAGS 788 CFLAGS 789 CC 790 ac_ct_PROPER_COMPILER_CC 791 PROPER_COMPILER_CC 792 TOOLCHAIN_PATH_CC 793 POTENTIAL_CC 794 VS_LIB 795 VS_INCLUDE 796 VS_PATH 797 CYGWIN_LINK 798 EXE_SUFFIX 799 OBJ_SUFFIX 800 STATIC_LIBRARY 801 SHARED_LIBRARY 802 STATIC_LIBRARY_SUFFIX 803 SHARED_LIBRARY_SUFFIX 804 LIBRARY_PREFIX 805 TOOLCHAIN_TYPE 806 BUILD_HOTSPOT 807 HOTSPOT_DIST 808 BUILD_OUTPUT 809 OVERRIDE_SRC_ROOT 810 ADD_SRC_ROOT 811 JDK_TOPDIR 812 NASHORN_TOPDIR 813 HOTSPOT_TOPDIR 814 JAXWS_TOPDIR 815 JAXP_TOPDIR 816 CORBA_TOPDIR 817 LANGTOOLS_TOPDIR 818 JAVAC_FLAGS 819 BOOT_JDK_SOURCETARGET 820 JARSIGNER 821 JAR 822 JAVAH 823 JAVAC 824 JAVA 825 BOOT_JDK 826 JAVA_CHECK 827 JAVAC_CHECK 828 VERSION_SHORT 829 VERSION_STRING 830 VERSION_NUMBER_FOUR_POSITIONS 831 VERSION_NUMBER 832 VERSION_OPT 833 VERSION_BUILD 834 VERSION_PRE 835 VERSION_PATCH 836 VERSION_SECURITY 837 VERSION_MINOR 838 VERSION_MAJOR 839 MACOSX_BUNDLE_ID_BASE 840 MACOSX_BUNDLE_NAME_BASE 841 COMPANY_NAME 842 JDK_RC_PLATFORM_NAME 843 PRODUCT_SUFFIX 844 PRODUCT_NAME 845 LAUNCHER_NAME 846 COPYRIGHT_YEAR 847 COMPRESS_JARS 848 RMICONNECTOR_IIOP 849 UNLIMITED_CRYPTO 850 CACERTS_FILE 851 TEST_IN_BUILD 852 BUILD_HEADLESS 853 SUPPORT_HEADFUL 854 SUPPORT_HEADLESS 855 BDEPS_FTP 856 BDEPS_UNZIP 857 OS_VERSION_MICRO 858 OS_VERSION_MINOR 859 OS_VERSION_MAJOR 860 PKG_CONFIG 861 BASH_ARGS 862 CODESIGN 863 XATTR 864 DSYMUTIL 865 IS_GNU_TIME 866 TIME 867 STAT 868 HG 869 READELF 870 OTOOL 871 LDD 872 ZIP 873 UNZIP 874 FIND_DELETE 875 OUTPUT_SYNC 876 OUTPUT_SYNC_SUPPORTED 877 MAKE 878 CHECK_TOOLSDIR_MAKE 879 CHECK_TOOLSDIR_GMAKE 880 CHECK_MAKE 881 CHECK_GMAKE 882 PKGHANDLER 883 CONFIGURESUPPORT_OUTPUTDIR 884 OUTPUT_ROOT 885 CONF_NAME 886 SPEC 887 SDKROOT 888 XCODEBUILD 889 BUILD_VARIANT_RELEASE 890 DEBUG_CLASSFILES 891 FASTDEBUG 892 VARIANT 893 DEBUG_LEVEL 894 MACOSX_UNIVERSAL 895 INCLUDE_SA 896 JVM_VARIANT_CORE 897 JVM_VARIANT_ZEROSHARK 898 JVM_VARIANT_ZERO 899 JVM_VARIANT_KERNEL 900 JVM_VARIANT_MINIMAL1 901 JVM_VARIANT_CLIENT 902 JVM_VARIANT_SERVER 903 JVM_VARIANTS 904 JVM_INTERPRETER 905 JDK_VARIANT 906 SET_OPENJDK 907 CANONICAL_TOPDIR 908 ORIGINAL_TOPDIR 909 TOPDIR 910 PATH_SEP 911 ZERO_ARCHDEF 912 DEFINE_CROSS_COMPILE_ARCH 913 LP64 914 OPENJDK_TARGET_OS_EXPORT_DIR 915 OPENJDK_TARGET_CPU_JLI_CFLAGS 916 OPENJDK_TARGET_CPU_OSARCH 917 OPENJDK_TARGET_CPU_ISADIR 918 OPENJDK_TARGET_CPU_LIBDIR 919 OPENJDK_TARGET_CPU_LEGACY_LIB 920 OPENJDK_TARGET_CPU_LEGACY 921 REQUIRED_OS_VERSION 922 REQUIRED_OS_NAME 923 COMPILE_TYPE 924 OPENJDK_TARGET_CPU_ENDIAN 925 OPENJDK_TARGET_CPU_BITS 926 OPENJDK_TARGET_CPU_ARCH 927 OPENJDK_TARGET_CPU 928 OPENJDK_TARGET_OS_ENV 929 OPENJDK_TARGET_OS_TYPE 930 OPENJDK_TARGET_OS 931 OPENJDK_BUILD_CPU_ENDIAN 932 OPENJDK_BUILD_CPU_BITS 933 OPENJDK_BUILD_CPU_ARCH 934 OPENJDK_BUILD_CPU 935 OPENJDK_BUILD_OS_ENV 936 OPENJDK_BUILD_OS_TYPE 937 OPENJDK_BUILD_OS 938 OPENJDK_BUILD_AUTOCONF_NAME 939 OPENJDK_TARGET_AUTOCONF_NAME 940 target_os 941 target_vendor 942 target_cpu 943 target 944 host_os 945 host_vendor 946 host_cpu 947 host 948 build_os 949 build_vendor 950 build_cpu 951 build 952 CPIO 953 SETFILE 954 DF 955 READLINK 956 CYGPATH 957 SED 958 FGREP 959 EGREP 960 GREP 961 AWK 962 XARGS 963 WHICH 964 WC 965 UNIQ 966 UNAME 967 TR 968 TOUCH 969 TEE 970 TAR 971 TAIL 972 SORT 973 SH 974 RM 975 PRINTF 976 NAWK 977 MV 978 MKTEMP 979 MKDIR 980 LS 981 LN 982 HEAD 983 FIND 984 FILE 985 EXPR 986 ECHO 987 DIRNAME 988 DIFF 989 DATE 990 CUT 991 CP 992 COMM 993 CMP 994 CHMOD 995 CAT 996 BASH 997 BASENAME 998 DATE_WHEN_CONFIGURED 999 ORIGINAL_PATH 1000 CONFIGURE_COMMAND_LINE 1001 target_alias 1002 host_alias 1003 build_alias 1004 LIBS 1005 ECHO_T 1006 ECHO_N 1007 ECHO_C 1008 DEFS 1009 mandir 1010 localedir 1011 libdir 1012 psdir 1013 pdfdir 1014 dvidir 1015 htmldir 1016 infodir 1017 docdir 1018 oldincludedir 1019 includedir 1020 localstatedir 1021 sharedstatedir 1022 sysconfdir 1023 datadir 1024 datarootdir 1025 libexecdir 1026 sbindir 1027 bindir 1028 program_transform_name 1029 prefix 1030 exec_prefix 1031 PACKAGE_URL 1032 PACKAGE_BUGREPORT 1033 PACKAGE_STRING 1034 PACKAGE_VERSION 1035 PACKAGE_TARNAME 1036 PACKAGE_NAME 1037 PATH_SEPARATOR 1038 SHELL' 1039 ac_subst_files='' 1040 ac_user_opts=' 1041 enable_option_checking 1042 with_target_bits 1043 enable_openjdk_only 1044 with_custom_make_dir 1045 with_jdk_variant 1046 with_jvm_interpreter 1047 with_jvm_variants 1048 enable_debug 1049 with_debug_level 1050 with_devkit 1051 with_sys_root 1052 with_sysroot 1053 with_tools_dir 1054 with_toolchain_path 1055 with_extra_path 1056 with_sdk_name 1057 with_conf_name 1058 with_output_sync 1059 with_builddeps_conf 1060 with_builddeps_server 1061 with_builddeps_dir 1062 with_builddeps_group 1063 enable_headful 1064 enable_hotspot_test_in_build 1065 with_cacerts_file 1066 enable_unlimited_crypto 1067 enable_rmiconnector_iiop 1068 with_copyright_year 1069 with_milestone 1070 with_update_version 1071 with_user_release_suffix 1072 with_build_number 1073 with_version_string 1074 with_version_pre_base 1075 with_version_pre_debuglevel 1076 with_version_opt 1077 with_version_build 1078 with_version_major 1079 with_version_minor 1080 with_version_security 1081 with_version_patch 1082 with_boot_jdk 1083 with_add_source_root 1084 with_override_source_root 1085 with_adds_and_overrides 1086 with_override_langtools 1087 with_override_corba 1088 with_override_jaxp 1089 with_override_jaxws 1090 with_override_hotspot 1091 with_override_nashorn 1092 with_override_jdk 1093 with_import_hotspot 1094 with_toolchain_type 1095 with_toolchain_version 1096 with_jtreg 1097 with_extra_cflags 1098 with_extra_cxxflags 1099 with_extra_ldflags 1100 enable_warnings_as_errors 1101 enable_debug_symbols 1102 enable_zip_debug_info 1103 enable_native_coverage 1104 with_x 1105 with_cups 1106 with_cups_include 1107 with_freetype 1108 with_freetype_include 1109 with_freetype_lib 1110 with_freetype_src 1111 enable_freetype_bundling 1112 with_alsa 1113 with_alsa_include 1114 with_alsa_lib 1115 with_libjpeg 1116 with_giflib 1117 with_lcms 1118 with_libpng 1119 with_zlib 1120 with_stdc__lib 1121 with_msvcr_dll 1122 with_msvcp_dll 1123 with_dxsdk 1124 with_dxsdk_lib 1125 with_dxsdk_include 1126 with_num_cores 1127 with_memory_size 1128 with_jobs 1129 with_boot_jdk_jvmargs 1130 with_sjavac_server_java 1131 enable_sjavac 1132 enable_precompiled_headers 1133 enable_ccache 1134 with_ccache_dir 1135 ' 1136 ac_precious_vars='build_alias 1137 host_alias 1138 target_alias 1139 BASENAME 1140 BASH 1141 CAT 1142 CHMOD 1143 CMP 1144 COMM 1145 CP 1146 CUT 1147 DATE 1148 DIFF 1149 DIRNAME 1150 ECHO 1151 EXPR 1152 FILE 1153 FIND 1154 HEAD 1155 LN 1156 LS 1157 MKDIR 1158 MKTEMP 1159 MV 1160 NAWK 1161 PRINTF 1162 RM 1163 SH 1164 SORT 1165 TAIL 1166 TAR 1167 TEE 1168 TOUCH 1169 TR 1170 UNAME 1171 UNIQ 1172 WC 1173 WHICH 1174 XARGS 1175 AWK 1176 GREP 1177 EGREP 1178 FGREP 1179 SED 1180 CYGPATH 1181 READLINK 1182 DF 1183 SETFILE 1184 CPIO 1185 UNZIP 1186 ZIP 1187 LDD 1188 OTOOL 1189 READELF 1190 HG 1191 STAT 1192 TIME 1193 DSYMUTIL 1194 XATTR 1195 CODESIGN 1196 PKG_CONFIG 1197 JAVA 1198 JAVAC 1199 JAVAH 1200 JAR 1201 JARSIGNER 1202 CC 1203 CFLAGS 1204 LDFLAGS 1205 LIBS 1206 CPPFLAGS 1207 CXX 1208 CXXFLAGS 1209 CCC 1210 CPP 1211 CXXCPP 1212 AS 1213 AR 1214 LIPO 1215 STRIP 1216 NM 1217 GNM 1218 OBJCOPY 1219 OBJDUMP 1220 BUILD_CC 1221 BUILD_CXX 1222 BUILD_LD 1223 JTREGEXE 1224 XMKMF 1225 FREETYPE_CFLAGS 1226 FREETYPE_LIBS 1227 ALSA_CFLAGS 1228 ALSA_LIBS 1229 LCMS_CFLAGS 1230 LCMS_LIBS 1231 PNG_CFLAGS 1232 PNG_LIBS 1233 LIBFFI_CFLAGS 1234 LIBFFI_LIBS 1235 CCACHE' 1236 1237 1238 # Initialize some variables set by options. 1239 ac_init_help= 1240 ac_init_version=false 1241 ac_unrecognized_opts= 1242 ac_unrecognized_sep= 1243 # The variables have the same names as the options, with 1244 # dashes changed to underlines. 1245 cache_file=/dev/null 1246 exec_prefix=NONE 1247 no_create= 1248 no_recursion= 1249 prefix=NONE 1250 program_prefix=NONE 1251 program_suffix=NONE 1252 program_transform_name=s,x,x, 1253 silent= 1254 site= 1255 srcdir= 1256 verbose= 1257 x_includes=NONE 1258 x_libraries=NONE 1259 1260 # Installation directory options. 1261 # These are left unexpanded so users can "make install exec_prefix=/foo" 1262 # and all the variables that are supposed to be based on exec_prefix 1263 # by default will actually change. 1264 # Use braces instead of parens because sh, perl, etc. also accept them. 1265 # (The list follows the same order as the GNU Coding Standards.) 1266 bindir='${exec_prefix}/bin' 1267 sbindir='${exec_prefix}/sbin' 1268 libexecdir='${exec_prefix}/libexec' 1269 datarootdir='${prefix}/share' 1270 datadir='${datarootdir}' 1271 sysconfdir='${prefix}/etc' 1272 sharedstatedir='${prefix}/com' 1273 localstatedir='${prefix}/var' 1274 includedir='${prefix}/include' 1275 oldincludedir='/usr/include' 1276 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1277 infodir='${datarootdir}/info' 1278 htmldir='${docdir}' 1279 dvidir='${docdir}' 1280 pdfdir='${docdir}' 1281 psdir='${docdir}' 1282 libdir='${exec_prefix}/lib' 1283 localedir='${datarootdir}/locale' 1284 mandir='${datarootdir}/man' 1285 1286 ac_prev= 1287 ac_dashdash= 1288 for ac_option 1289 do 1290 # If the previous option needs an argument, assign it. 1291 if test -n "$ac_prev"; then 1292 eval $ac_prev=\$ac_option 1293 ac_prev= 1294 continue 1295 fi 1296 1297 case $ac_option in 1298 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1299 *=) ac_optarg= ;; 1300 *) ac_optarg=yes ;; 1301 esac 1302 1303 # Accept the important Cygnus configure options, so we can diagnose typos. 1304 1305 case $ac_dashdash$ac_option in 1306 --) 1307 ac_dashdash=yes ;; 1308 1309 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1310 ac_prev=bindir ;; 1311 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1312 bindir=$ac_optarg ;; 1313 1314 -build | --build | --buil | --bui | --bu) 1315 ac_prev=build_alias ;; 1316 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1317 build_alias=$ac_optarg ;; 1318 1319 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1321 ac_prev=cache_file ;; 1322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1324 cache_file=$ac_optarg ;; 1325 1326 --config-cache | -C) 1327 cache_file=config.cache ;; 1328 1329 -datadir | --datadir | --datadi | --datad) 1330 ac_prev=datadir ;; 1331 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1332 datadir=$ac_optarg ;; 1333 1334 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1335 | --dataroo | --dataro | --datar) 1336 ac_prev=datarootdir ;; 1337 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1338 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1339 datarootdir=$ac_optarg ;; 1340 1341 -disable-* | --disable-*) 1342 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1343 # Reject names that are not valid shell variable names. 1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1345 as_fn_error $? "invalid feature name: $ac_useropt" 1346 ac_useropt_orig=$ac_useropt 1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1348 case $ac_user_opts in 1349 *" 1350 "enable_$ac_useropt" 1351 "*) ;; 1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1353 ac_unrecognized_sep=', ';; 1354 esac 1355 eval enable_$ac_useropt=no ;; 1356 1357 -docdir | --docdir | --docdi | --doc | --do) 1358 ac_prev=docdir ;; 1359 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1360 docdir=$ac_optarg ;; 1361 1362 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1363 ac_prev=dvidir ;; 1364 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1365 dvidir=$ac_optarg ;; 1366 1367 -enable-* | --enable-*) 1368 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1369 # Reject names that are not valid shell variable names. 1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1371 as_fn_error $? "invalid feature name: $ac_useropt" 1372 ac_useropt_orig=$ac_useropt 1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1374 case $ac_user_opts in 1375 *" 1376 "enable_$ac_useropt" 1377 "*) ;; 1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1379 ac_unrecognized_sep=', ';; 1380 esac 1381 eval enable_$ac_useropt=\$ac_optarg ;; 1382 1383 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1384 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1385 | --exec | --exe | --ex) 1386 ac_prev=exec_prefix ;; 1387 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1388 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1389 | --exec=* | --exe=* | --ex=*) 1390 exec_prefix=$ac_optarg ;; 1391 1392 -gas | --gas | --ga | --g) 1393 # Obsolete; use --with-gas. 1394 with_gas=yes ;; 1395 1396 -help | --help | --hel | --he | -h) 1397 ac_init_help=long ;; 1398 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1399 ac_init_help=recursive ;; 1400 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1401 ac_init_help=short ;; 1402 1403 -host | --host | --hos | --ho) 1404 ac_prev=host_alias ;; 1405 -host=* | --host=* | --hos=* | --ho=*) 1406 host_alias=$ac_optarg ;; 1407 1408 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1409 ac_prev=htmldir ;; 1410 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1411 | --ht=*) 1412 htmldir=$ac_optarg ;; 1413 1414 -includedir | --includedir | --includedi | --included | --include \ 1415 | --includ | --inclu | --incl | --inc) 1416 ac_prev=includedir ;; 1417 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1418 | --includ=* | --inclu=* | --incl=* | --inc=*) 1419 includedir=$ac_optarg ;; 1420 1421 -infodir | --infodir | --infodi | --infod | --info | --inf) 1422 ac_prev=infodir ;; 1423 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1424 infodir=$ac_optarg ;; 1425 1426 -libdir | --libdir | --libdi | --libd) 1427 ac_prev=libdir ;; 1428 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1429 libdir=$ac_optarg ;; 1430 1431 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1432 | --libexe | --libex | --libe) 1433 ac_prev=libexecdir ;; 1434 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1435 | --libexe=* | --libex=* | --libe=*) 1436 libexecdir=$ac_optarg ;; 1437 1438 -localedir | --localedir | --localedi | --localed | --locale) 1439 ac_prev=localedir ;; 1440 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1441 localedir=$ac_optarg ;; 1442 1443 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1444 | --localstate | --localstat | --localsta | --localst | --locals) 1445 ac_prev=localstatedir ;; 1446 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1447 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1448 localstatedir=$ac_optarg ;; 1449 1450 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1451 ac_prev=mandir ;; 1452 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1453 mandir=$ac_optarg ;; 1454 1455 -nfp | --nfp | --nf) 1456 # Obsolete; use --without-fp. 1457 with_fp=no ;; 1458 1459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1460 | --no-cr | --no-c | -n) 1461 no_create=yes ;; 1462 1463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1465 no_recursion=yes ;; 1466 1467 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1468 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1469 | --oldin | --oldi | --old | --ol | --o) 1470 ac_prev=oldincludedir ;; 1471 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1472 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1473 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1474 oldincludedir=$ac_optarg ;; 1475 1476 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1477 ac_prev=prefix ;; 1478 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1479 prefix=$ac_optarg ;; 1480 1481 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1482 | --program-pre | --program-pr | --program-p) 1483 ac_prev=program_prefix ;; 1484 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1485 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1486 program_prefix=$ac_optarg ;; 1487 1488 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1489 | --program-suf | --program-su | --program-s) 1490 ac_prev=program_suffix ;; 1491 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1492 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1493 program_suffix=$ac_optarg ;; 1494 1495 -program-transform-name | --program-transform-name \ 1496 | --program-transform-nam | --program-transform-na \ 1497 | --program-transform-n | --program-transform- \ 1498 | --program-transform | --program-transfor \ 1499 | --program-transfo | --program-transf \ 1500 | --program-trans | --program-tran \ 1501 | --progr-tra | --program-tr | --program-t) 1502 ac_prev=program_transform_name ;; 1503 -program-transform-name=* | --program-transform-name=* \ 1504 | --program-transform-nam=* | --program-transform-na=* \ 1505 | --program-transform-n=* | --program-transform-=* \ 1506 | --program-transform=* | --program-transfor=* \ 1507 | --program-transfo=* | --program-transf=* \ 1508 | --program-trans=* | --program-tran=* \ 1509 | --progr-tra=* | --program-tr=* | --program-t=*) 1510 program_transform_name=$ac_optarg ;; 1511 1512 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1513 ac_prev=pdfdir ;; 1514 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1515 pdfdir=$ac_optarg ;; 1516 1517 -psdir | --psdir | --psdi | --psd | --ps) 1518 ac_prev=psdir ;; 1519 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1520 psdir=$ac_optarg ;; 1521 1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1523 | -silent | --silent | --silen | --sile | --sil) 1524 silent=yes ;; 1525 1526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1527 ac_prev=sbindir ;; 1528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1529 | --sbi=* | --sb=*) 1530 sbindir=$ac_optarg ;; 1531 1532 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1534 | --sharedst | --shareds | --shared | --share | --shar \ 1535 | --sha | --sh) 1536 ac_prev=sharedstatedir ;; 1537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1540 | --sha=* | --sh=*) 1541 sharedstatedir=$ac_optarg ;; 1542 1543 -site | --site | --sit) 1544 ac_prev=site ;; 1545 -site=* | --site=* | --sit=*) 1546 site=$ac_optarg ;; 1547 1548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1549 ac_prev=srcdir ;; 1550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1551 srcdir=$ac_optarg ;; 1552 1553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1554 | --syscon | --sysco | --sysc | --sys | --sy) 1555 ac_prev=sysconfdir ;; 1556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1558 sysconfdir=$ac_optarg ;; 1559 1560 -target | --target | --targe | --targ | --tar | --ta | --t) 1561 ac_prev=target_alias ;; 1562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1563 target_alias=$ac_optarg ;; 1564 1565 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1566 verbose=yes ;; 1567 1568 -version | --version | --versio | --versi | --vers | -V) 1569 ac_init_version=: ;; 1570 1571 -with-* | --with-*) 1572 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1573 # Reject names that are not valid shell variable names. 1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1575 as_fn_error $? "invalid package name: $ac_useropt" 1576 ac_useropt_orig=$ac_useropt 1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1578 case $ac_user_opts in 1579 *" 1580 "with_$ac_useropt" 1581 "*) ;; 1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1583 ac_unrecognized_sep=', ';; 1584 esac 1585 eval with_$ac_useropt=\$ac_optarg ;; 1586 1587 -without-* | --without-*) 1588 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1589 # Reject names that are not valid shell variable names. 1590 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1591 as_fn_error $? "invalid package name: $ac_useropt" 1592 ac_useropt_orig=$ac_useropt 1593 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1594 case $ac_user_opts in 1595 *" 1596 "with_$ac_useropt" 1597 "*) ;; 1598 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1599 ac_unrecognized_sep=', ';; 1600 esac 1601 eval with_$ac_useropt=no ;; 1602 1603 --x) 1604 # Obsolete; use --with-x. 1605 with_x=yes ;; 1606 1607 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1608 | --x-incl | --x-inc | --x-in | --x-i) 1609 ac_prev=x_includes ;; 1610 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1611 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1612 x_includes=$ac_optarg ;; 1613 1614 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1615 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1616 ac_prev=x_libraries ;; 1617 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1618 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1619 x_libraries=$ac_optarg ;; 1620 1621 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1622 Try \`$0 --help' for more information" 1623 ;; 1624 1625 *=*) 1626 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1627 # Reject names that are not valid shell variable names. 1628 case $ac_envvar in #( 1629 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1630 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1631 esac 1632 eval $ac_envvar=\$ac_optarg 1633 export $ac_envvar ;; 1634 1635 *) 1636 # FIXME: should be removed in autoconf 3.0. 1637 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1638 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1639 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1640 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1641 ;; 1642 1643 esac 1644 done 1645 1646 if test -n "$ac_prev"; then 1647 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1648 as_fn_error $? "missing argument to $ac_option" 1649 fi 1650 1651 if test -n "$ac_unrecognized_opts"; then 1652 case $enable_option_checking in 1653 no) ;; 1654 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1655 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1656 esac 1657 fi 1658 1659 # Check all directory arguments for consistency. 1660 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1661 datadir sysconfdir sharedstatedir localstatedir includedir \ 1662 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1663 libdir localedir mandir 1664 do 1665 eval ac_val=\$$ac_var 1666 # Remove trailing slashes. 1667 case $ac_val in 1668 */ ) 1669 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1670 eval $ac_var=\$ac_val;; 1671 esac 1672 # Be sure to have absolute directory names. 1673 case $ac_val in 1674 [\\/$]* | ?:[\\/]* ) continue;; 1675 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1676 esac 1677 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1678 done 1679 1680 # There might be people who depend on the old broken behavior: `$host' 1681 # used to hold the argument of --host etc. 1682 # FIXME: To remove some day. 1683 build=$build_alias 1684 host=$host_alias 1685 target=$target_alias 1686 1687 # FIXME: To remove some day. 1688 if test "x$host_alias" != x; then 1689 if test "x$build_alias" = x; then 1690 cross_compiling=maybe 1691 elif test "x$build_alias" != "x$host_alias"; then 1692 cross_compiling=yes 1693 fi 1694 fi 1695 1696 ac_tool_prefix= 1697 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1698 1699 test "$silent" = yes && exec 6>/dev/null 1700 1701 1702 ac_pwd=`pwd` && test -n "$ac_pwd" && 1703 ac_ls_di=`ls -di .` && 1704 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1705 as_fn_error $? "working directory cannot be determined" 1706 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1707 as_fn_error $? "pwd does not report name of working directory" 1708 1709 1710 # Find the source files, if location was not specified. 1711 if test -z "$srcdir"; then 1712 ac_srcdir_defaulted=yes 1713 # Try the directory containing this script, then the parent directory. 1714 ac_confdir=`$as_dirname -- "$as_myself" || 1715 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1716 X"$as_myself" : 'X\(//\)[^/]' \| \ 1717 X"$as_myself" : 'X\(//\)$' \| \ 1718 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1719 $as_echo X"$as_myself" | 1720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1721 s//\1/ 1722 q 1723 } 1724 /^X\(\/\/\)[^/].*/{ 1725 s//\1/ 1726 q 1727 } 1728 /^X\(\/\/\)$/{ 1729 s//\1/ 1730 q 1731 } 1732 /^X\(\/\).*/{ 1733 s//\1/ 1734 q 1735 } 1736 s/.*/./; q'` 1737 srcdir=$ac_confdir 1738 if test ! -r "$srcdir/$ac_unique_file"; then 1739 srcdir=.. 1740 fi 1741 else 1742 ac_srcdir_defaulted=no 1743 fi 1744 if test ! -r "$srcdir/$ac_unique_file"; then 1745 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1746 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1747 fi 1748 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1749 ac_abs_confdir=`( 1750 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1751 pwd)` 1752 # When building in place, set srcdir=. 1753 if test "$ac_abs_confdir" = "$ac_pwd"; then 1754 srcdir=. 1755 fi 1756 # Remove unnecessary trailing slashes from srcdir. 1757 # Double slashes in file names in object file debugging info 1758 # mess up M-x gdb in Emacs. 1759 case $srcdir in 1760 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1761 esac 1762 for ac_var in $ac_precious_vars; do 1763 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1764 eval ac_env_${ac_var}_value=\$${ac_var} 1765 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1766 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1767 done 1768 1769 # 1770 # Report the --help message. 1771 # 1772 if test "$ac_init_help" = "long"; then 1773 # Omit some internal or obsolete options to make the list less imposing. 1774 # This message is too long to be a string in the A/UX 3.1 sh. 1775 cat <<_ACEOF 1776 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1777 1778 Usage: $0 [OPTION]... [VAR=VALUE]... 1779 1780 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1781 VAR=VALUE. See below for descriptions of some of the useful variables. 1782 1783 Defaults for the options are specified in brackets. 1784 1785 Configuration: 1786 -h, --help display this help and exit 1787 --help=short display options specific to this package 1788 --help=recursive display the short help of all the included packages 1789 -V, --version display version information and exit 1790 -q, --quiet, --silent do not print \`checking ...' messages 1791 --cache-file=FILE cache test results in FILE [disabled] 1792 -C, --config-cache alias for \`--cache-file=config.cache' 1793 -n, --no-create do not create output files 1794 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1795 1796 Installation directories: 1797 --prefix=PREFIX install architecture-independent files in PREFIX 1798 [$ac_default_prefix] 1799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1800 [PREFIX] 1801 1802 By default, \`make install' will install all the files in 1803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1804 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1805 for instance \`--prefix=\$HOME'. 1806 1807 For better control, use the options below. 1808 1809 Fine tuning of the installation directories: 1810 --bindir=DIR user executables [EPREFIX/bin] 1811 --sbindir=DIR system admin executables [EPREFIX/sbin] 1812 --libexecdir=DIR program executables [EPREFIX/libexec] 1813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1815 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1816 --libdir=DIR object code libraries [EPREFIX/lib] 1817 --includedir=DIR C header files [PREFIX/include] 1818 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1819 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1820 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1821 --infodir=DIR info documentation [DATAROOTDIR/info] 1822 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1823 --mandir=DIR man documentation [DATAROOTDIR/man] 1824 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1825 --htmldir=DIR html documentation [DOCDIR] 1826 --dvidir=DIR dvi documentation [DOCDIR] 1827 --pdfdir=DIR pdf documentation [DOCDIR] 1828 --psdir=DIR ps documentation [DOCDIR] 1829 _ACEOF 1830 1831 cat <<\_ACEOF 1832 1833 X features: 1834 --x-includes=DIR X include files are in DIR 1835 --x-libraries=DIR X library files are in DIR 1836 1837 System types: 1838 --build=BUILD configure for building on BUILD [guessed] 1839 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1840 --target=TARGET configure for building compilers for TARGET [HOST] 1841 _ACEOF 1842 fi 1843 1844 if test -n "$ac_init_help"; then 1845 case $ac_init_help in 1846 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1847 esac 1848 cat <<\_ACEOF 1849 1850 Optional Features: 1851 --disable-option-checking ignore unrecognized --enable/--with options 1852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1854 --enable-openjdk-only suppress building custom source even if present 1855 [disabled] 1856 --enable-debug set the debug level to fastdebug (shorthand for 1857 --with-debug-level=fastdebug) [disabled] 1858 --disable-headful disable building headful support (graphical UI 1859 support) [enabled] 1860 --enable-hotspot-test-in-build 1861 run the Queens test after Hotspot build [disabled] 1862 --enable-unlimited-crypto 1863 Enable unlimited crypto policy [disabled] 1864 --enable-rmiconnector-iiop 1865 enable the JMX RMIConnector iiop transport 1866 [disabled] 1867 --disable-warnings-as-errors 1868 do not consider native warnings to be an error 1869 [enabled] 1870 --disable-debug-symbols disable generation of debug symbols [enabled] 1871 --disable-zip-debug-info 1872 disable zipping of debug-info files [enabled] 1873 --enable-native-coverage 1874 enable native compilation with code coverage 1875 data[disabled] 1876 --disable-freetype-bundling 1877 disable bundling of the freetype library with the 1878 build result [enabled on Windows or when using 1879 --with-freetype, disabled otherwise] 1880 --enable-sjavac use sjavac to do fast incremental compiles 1881 [disabled] 1882 --disable-precompiled-headers 1883 disable using precompiled headers when compiling C++ 1884 [enabled] 1885 --enable-ccache enable using ccache to speed up recompilations 1886 [disabled] 1887 1888 Optional Packages: 1889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1891 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1892 support it), e.g. --with-target-bits=32 [guessed] 1893 --with-custom-make-dir Deprecated. Option is kept for backwards 1894 compatibility and is ignored 1895 --with-jdk-variant JDK variant to build (normal) [normal] 1896 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1897 --with-jvm-variants JVM variants (separated by commas) to build (server, 1898 client, minimal1, kernel, zero, zeroshark, core) 1899 [server] 1900 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1901 optimized (HotSpot build only)) [release] 1902 --with-devkit use this devkit for compilers, tools and resources 1903 --with-sys-root alias for --with-sysroot for backwards compatability 1904 --with-sysroot use this directory as sysroot 1905 --with-tools-dir alias for --with-toolchain-path for backwards 1906 compatibility 1907 --with-toolchain-path prepend these directories when searching for 1908 toolchain binaries (compilers etc) 1909 --with-extra-path prepend these directories to the default path 1910 --with-sdk-name use the platform SDK of the given name. [macosx] 1911 --with-conf-name use this as the name of the configuration [generated 1912 from important configuration options] 1913 --with-output-sync set make output sync type if supported by make. 1914 [recurse] 1915 --with-builddeps-conf use this configuration file for the builddeps 1916 --with-builddeps-server download and use build dependencies from this server 1917 url 1918 --with-builddeps-dir store downloaded build dependencies here 1919 [/localhome/builddeps] 1920 --with-builddeps-group chgrp the downloaded build dependencies to this 1921 group 1922 --with-cacerts-file specify alternative cacerts file 1923 --with-copyright-year Set copyright year value for build [current year] 1924 --with-milestone Deprecated. Option is kept for backwards 1925 compatibility and is ignored 1926 --with-update-version Deprecated. Option is kept for backwards 1927 compatibility and is ignored 1928 --with-user-release-suffix 1929 Deprecated. Option is kept for backwards 1930 compatibility and is ignored 1931 --with-build-number Deprecated. Option is kept for backwards 1932 compatibility and is ignored 1933 --with-version-string Set version string [calculated] 1934 --with-version-pre-base Set the base part of the version 'PRE' field 1935 (pre-release identifier) ['internal'] 1936 --with-version-pre-debuglevel 1937 Set the debug level part of the version 'PRE' field 1938 (pre-release identifier) [current debug level] 1939 --with-version-opt Set version 'OPT' field (build metadata) 1940 [<timestamp>.<user>.<dirname>] 1941 --with-version-build Set version 'BUILD' field (build number) [not 1942 specified] 1943 --with-version-major Set version 'MAJOR' field (first number) [current 1944 source value] 1945 --with-version-minor Set version 'MINOR' field (second number) [current 1946 source value] 1947 --with-version-security Set version 'SECURITY' field (third number) [current 1948 source value] 1949 --with-version-patch Set version 'PATCH' field (fourth number) [not 1950 specified] 1951 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1952 --with-add-source-root for each and every source directory, look in this 1953 additional source root for the same directory; if it 1954 exists and have files in it, include it in the build 1955 --with-override-source-root 1956 for each and every source directory, look in this 1957 override source root for the same directory; if it 1958 exists, use that directory instead and ignore the 1959 directory in the original source root 1960 --with-adds-and-overrides 1961 use the subdirs 'adds' and 'overrides' in the 1962 specified directory as add-source-root and 1963 override-source-root 1964 --with-override-langtools 1965 use this langtools dir for the build 1966 --with-override-corba use this corba dir for the build 1967 --with-override-jaxp use this jaxp dir for the build 1968 --with-override-jaxws use this jaxws dir for the build 1969 --with-override-hotspot use this hotspot dir for the build 1970 --with-override-nashorn use this nashorn dir for the build 1971 --with-override-jdk use this jdk dir for the build 1972 --with-import-hotspot import hotspot binaries from this jdk image or 1973 hotspot build dist dir instead of building from 1974 source 1975 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1976 to show possible values [platform dependent] 1977 --with-toolchain-version 1978 the version of the toolchain to look for, use 1979 '--help' to show possible values [platform 1980 dependent] 1981 --with-jtreg Regression Test Harness [probed] 1982 --with-extra-cflags extra flags to be used when compiling jdk c-files 1983 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1984 --with-extra-ldflags extra flags to be used when linking jdk 1985 --with-x use the X Window System 1986 --with-cups specify prefix directory for the cups package 1987 (expecting the headers under PATH/include) 1988 --with-cups-include specify directory for the cups include files 1989 --with-freetype specify prefix directory for the freetype package 1990 (expecting the libraries under PATH/lib and the 1991 headers under PATH/include) 1992 --with-freetype-include specify directory for the freetype include files 1993 --with-freetype-lib specify directory for the freetype library 1994 --with-freetype-src specify directory with freetype sources to 1995 automatically build the library (experimental, 1996 Windows-only) 1997 --with-alsa specify prefix directory for the alsa package 1998 (expecting the libraries under PATH/lib and the 1999 headers under PATH/include) 2000 --with-alsa-include specify directory for the alsa include files 2001 --with-alsa-lib specify directory for the alsa library 2002 --with-libjpeg use libjpeg from build system or OpenJDK source 2003 (system, bundled) [bundled] 2004 --with-giflib use giflib from build system or OpenJDK source 2005 (system, bundled) [bundled] 2006 --with-lcms use lcms2 from build system or OpenJDK source 2007 (system, bundled) [bundled] 2008 --with-libpng use libpng from build system or OpenJDK source 2009 (system, bundled) [bundled] 2010 --with-zlib use zlib from build system or OpenJDK source 2011 (system, bundled) [bundled] 2012 --with-stdc++lib=<static>,<dynamic>,<default> 2013 force linking of the C++ runtime on Linux to either 2014 static or dynamic, default is static with dynamic as 2015 fallback 2016 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2017 (Windows only) [probed] 2018 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2019 (Windows only) [probed] 2020 --with-dxsdk Deprecated. Option is kept for backwards 2021 compatibility and is ignored 2022 --with-dxsdk-lib Deprecated. Option is kept for backwards 2023 compatibility and is ignored 2024 --with-dxsdk-include Deprecated. Option is kept for backwards 2025 compatibility and is ignored 2026 --with-num-cores number of cores in the build system, e.g. 2027 --with-num-cores=8 [probed] 2028 --with-memory-size memory (in MB) available in the build system, e.g. 2029 --with-memory-size=1024 [probed] 2030 --with-jobs number of parallel jobs to let make run [calculated 2031 based on cores and memory] 2032 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2033 invocations of boot JDK, overriding the default 2034 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2035 -enableassertions" 2036 --with-sjavac-server-java 2037 use this java binary for running the sjavac 2038 background server [Boot JDK java] 2039 --with-ccache-dir where to store ccache files [~/.ccache] 2040 2041 Some influential environment variables: 2042 BASENAME Override default value for BASENAME 2043 BASH Override default value for BASH 2044 CAT Override default value for CAT 2045 CHMOD Override default value for CHMOD 2046 CMP Override default value for CMP 2047 COMM Override default value for COMM 2048 CP Override default value for CP 2049 CUT Override default value for CUT 2050 DATE Override default value for DATE 2051 DIFF Override default value for DIFF 2052 DIRNAME Override default value for DIRNAME 2053 ECHO Override default value for ECHO 2054 EXPR Override default value for EXPR 2055 FILE Override default value for FILE 2056 FIND Override default value for FIND 2057 HEAD Override default value for HEAD 2058 LN Override default value for LN 2059 LS Override default value for LS 2060 MKDIR Override default value for MKDIR 2061 MKTEMP Override default value for MKTEMP 2062 MV Override default value for MV 2063 NAWK Override default value for NAWK 2064 PRINTF Override default value for PRINTF 2065 RM Override default value for RM 2066 SH Override default value for SH 2067 SORT Override default value for SORT 2068 TAIL Override default value for TAIL 2069 TAR Override default value for TAR 2070 TEE Override default value for TEE 2071 TOUCH Override default value for TOUCH 2072 TR Override default value for TR 2073 UNAME Override default value for UNAME 2074 UNIQ Override default value for UNIQ 2075 WC Override default value for WC 2076 WHICH Override default value for WHICH 2077 XARGS Override default value for XARGS 2078 AWK Override default value for AWK 2079 GREP Override default value for GREP 2080 EGREP Override default value for EGREP 2081 FGREP Override default value for FGREP 2082 SED Override default value for SED 2083 CYGPATH Override default value for CYGPATH 2084 READLINK Override default value for READLINK 2085 DF Override default value for DF 2086 SETFILE Override default value for SETFILE 2087 CPIO Override default value for CPIO 2088 UNZIP Override default value for UNZIP 2089 ZIP Override default value for ZIP 2090 LDD Override default value for LDD 2091 OTOOL Override default value for OTOOL 2092 READELF Override default value for READELF 2093 HG Override default value for HG 2094 STAT Override default value for STAT 2095 TIME Override default value for TIME 2096 DSYMUTIL Override default value for DSYMUTIL 2097 XATTR Override default value for XATTR 2098 CODESIGN Override default value for CODESIGN 2099 PKG_CONFIG path to pkg-config utility 2100 JAVA Override default value for JAVA 2101 JAVAC Override default value for JAVAC 2102 JAVAH Override default value for JAVAH 2103 JAR Override default value for JAR 2104 JARSIGNER Override default value for JARSIGNER 2105 CC C compiler command 2106 CFLAGS C compiler flags 2107 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2108 nonstandard directory <lib dir> 2109 LIBS libraries to pass to the linker, e.g. -l<library> 2110 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2111 you have headers in a nonstandard directory <include dir> 2112 CXX C++ compiler command 2113 CXXFLAGS C++ compiler flags 2114 CPP C preprocessor 2115 CXXCPP C++ preprocessor 2116 AS Override default value for AS 2117 AR Override default value for AR 2118 LIPO Override default value for LIPO 2119 STRIP Override default value for STRIP 2120 NM Override default value for NM 2121 GNM Override default value for GNM 2122 OBJCOPY Override default value for OBJCOPY 2123 OBJDUMP Override default value for OBJDUMP 2124 BUILD_CC Override default value for BUILD_CC 2125 BUILD_CXX Override default value for BUILD_CXX 2126 BUILD_LD Override default value for BUILD_LD 2127 JTREGEXE Override default value for JTREGEXE 2128 XMKMF Path to xmkmf, Makefile generator for X Window System 2129 FREETYPE_CFLAGS 2130 C compiler flags for FREETYPE, overriding pkg-config 2131 FREETYPE_LIBS 2132 linker flags for FREETYPE, overriding pkg-config 2133 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2134 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2135 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2136 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2137 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2138 PNG_LIBS linker flags for PNG, overriding pkg-config 2139 LIBFFI_CFLAGS 2140 C compiler flags for LIBFFI, overriding pkg-config 2141 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2142 CCACHE Override default value for CCACHE 2143 2144 Use these variables to override the choices made by `configure' or to help 2145 it to find libraries and programs with nonstandard names/locations. 2146 2147 Report bugs to <build-dev@openjdk.java.net>. 2148 OpenJDK home page: <http://openjdk.java.net>. 2149 _ACEOF 2150 ac_status=$? 2151 fi 2152 2153 if test "$ac_init_help" = "recursive"; then 2154 # If there are subdirs, report their specific --help. 2155 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2156 test -d "$ac_dir" || 2157 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2158 continue 2159 ac_builddir=. 2160 2161 case "$ac_dir" in 2162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2163 *) 2164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2165 # A ".." for each directory in $ac_dir_suffix. 2166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2167 case $ac_top_builddir_sub in 2168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2170 esac ;; 2171 esac 2172 ac_abs_top_builddir=$ac_pwd 2173 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2174 # for backward compatibility: 2175 ac_top_builddir=$ac_top_build_prefix 2176 2177 case $srcdir in 2178 .) # We are building in place. 2179 ac_srcdir=. 2180 ac_top_srcdir=$ac_top_builddir_sub 2181 ac_abs_top_srcdir=$ac_pwd ;; 2182 [\\/]* | ?:[\\/]* ) # Absolute name. 2183 ac_srcdir=$srcdir$ac_dir_suffix; 2184 ac_top_srcdir=$srcdir 2185 ac_abs_top_srcdir=$srcdir ;; 2186 *) # Relative name. 2187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2188 ac_top_srcdir=$ac_top_build_prefix$srcdir 2189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2190 esac 2191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2192 2193 cd "$ac_dir" || { ac_status=$?; continue; } 2194 # Check for guested configure. 2195 if test -f "$ac_srcdir/configure.gnu"; then 2196 echo && 2197 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2198 elif test -f "$ac_srcdir/configure"; then 2199 echo && 2200 $SHELL "$ac_srcdir/configure" --help=recursive 2201 else 2202 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2203 fi || ac_status=$? 2204 cd "$ac_pwd" || { ac_status=$?; break; } 2205 done 2206 fi 2207 2208 test -n "$ac_init_help" && exit $ac_status 2209 if $ac_init_version; then 2210 cat <<\_ACEOF 2211 OpenJDK configure jdk9 2212 generated by GNU Autoconf 2.69 2213 2214 Copyright (C) 2012 Free Software Foundation, Inc. 2215 This configure script is free software; the Free Software Foundation 2216 gives unlimited permission to copy, distribute and modify it. 2217 _ACEOF 2218 exit 2219 fi 2220 2221 ## ------------------------ ## 2222 ## Autoconf initialization. ## 2223 ## ------------------------ ## 2224 2225 # ac_fn_c_try_compile LINENO 2226 # -------------------------- 2227 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2228 ac_fn_c_try_compile () 2229 { 2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2231 rm -f conftest.$ac_objext 2232 if { { ac_try="$ac_compile" 2233 case "(($ac_try" in 2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2235 *) ac_try_echo=$ac_try;; 2236 esac 2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2238 $as_echo "$ac_try_echo"; } >&5 2239 (eval "$ac_compile") 2>conftest.err 2240 ac_status=$? 2241 if test -s conftest.err; then 2242 grep -v '^ *+' conftest.err >conftest.er1 2243 cat conftest.er1 >&5 2244 mv -f conftest.er1 conftest.err 2245 fi 2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2247 test $ac_status = 0; } && { 2248 test -z "$ac_c_werror_flag" || 2249 test ! -s conftest.err 2250 } && test -s conftest.$ac_objext; then : 2251 ac_retval=0 2252 else 2253 $as_echo "$as_me: failed program was:" >&5 2254 sed 's/^/| /' conftest.$ac_ext >&5 2255 2256 ac_retval=1 2257 fi 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 as_fn_set_status $ac_retval 2260 2261 } # ac_fn_c_try_compile 2262 2263 # ac_fn_cxx_try_compile LINENO 2264 # ---------------------------- 2265 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2266 ac_fn_cxx_try_compile () 2267 { 2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2269 rm -f conftest.$ac_objext 2270 if { { ac_try="$ac_compile" 2271 case "(($ac_try" in 2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2273 *) ac_try_echo=$ac_try;; 2274 esac 2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2276 $as_echo "$ac_try_echo"; } >&5 2277 (eval "$ac_compile") 2>conftest.err 2278 ac_status=$? 2279 if test -s conftest.err; then 2280 grep -v '^ *+' conftest.err >conftest.er1 2281 cat conftest.er1 >&5 2282 mv -f conftest.er1 conftest.err 2283 fi 2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2285 test $ac_status = 0; } && { 2286 test -z "$ac_cxx_werror_flag" || 2287 test ! -s conftest.err 2288 } && test -s conftest.$ac_objext; then : 2289 ac_retval=0 2290 else 2291 $as_echo "$as_me: failed program was:" >&5 2292 sed 's/^/| /' conftest.$ac_ext >&5 2293 2294 ac_retval=1 2295 fi 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2297 as_fn_set_status $ac_retval 2298 2299 } # ac_fn_cxx_try_compile 2300 2301 # ac_fn_c_try_cpp LINENO 2302 # ---------------------- 2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2304 ac_fn_c_try_cpp () 2305 { 2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2307 if { { ac_try="$ac_cpp conftest.$ac_ext" 2308 case "(($ac_try" in 2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2310 *) ac_try_echo=$ac_try;; 2311 esac 2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2313 $as_echo "$ac_try_echo"; } >&5 2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2315 ac_status=$? 2316 if test -s conftest.err; then 2317 grep -v '^ *+' conftest.err >conftest.er1 2318 cat conftest.er1 >&5 2319 mv -f conftest.er1 conftest.err 2320 fi 2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2322 test $ac_status = 0; } > conftest.i && { 2323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2324 test ! -s conftest.err 2325 }; then : 2326 ac_retval=0 2327 else 2328 $as_echo "$as_me: failed program was:" >&5 2329 sed 's/^/| /' conftest.$ac_ext >&5 2330 2331 ac_retval=1 2332 fi 2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2334 as_fn_set_status $ac_retval 2335 2336 } # ac_fn_c_try_cpp 2337 2338 # ac_fn_cxx_try_cpp LINENO 2339 # ------------------------ 2340 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2341 ac_fn_cxx_try_cpp () 2342 { 2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2344 if { { ac_try="$ac_cpp conftest.$ac_ext" 2345 case "(($ac_try" in 2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2347 *) ac_try_echo=$ac_try;; 2348 esac 2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2350 $as_echo "$ac_try_echo"; } >&5 2351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2352 ac_status=$? 2353 if test -s conftest.err; then 2354 grep -v '^ *+' conftest.err >conftest.er1 2355 cat conftest.er1 >&5 2356 mv -f conftest.er1 conftest.err 2357 fi 2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2359 test $ac_status = 0; } > conftest.i && { 2360 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2361 test ! -s conftest.err 2362 }; then : 2363 ac_retval=0 2364 else 2365 $as_echo "$as_me: failed program was:" >&5 2366 sed 's/^/| /' conftest.$ac_ext >&5 2367 2368 ac_retval=1 2369 fi 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 as_fn_set_status $ac_retval 2372 2373 } # ac_fn_cxx_try_cpp 2374 2375 # ac_fn_c_try_link LINENO 2376 # ----------------------- 2377 # Try to link conftest.$ac_ext, and return whether this succeeded. 2378 ac_fn_c_try_link () 2379 { 2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2381 rm -f conftest.$ac_objext conftest$ac_exeext 2382 if { { ac_try="$ac_link" 2383 case "(($ac_try" in 2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2385 *) ac_try_echo=$ac_try;; 2386 esac 2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2388 $as_echo "$ac_try_echo"; } >&5 2389 (eval "$ac_link") 2>conftest.err 2390 ac_status=$? 2391 if test -s conftest.err; then 2392 grep -v '^ *+' conftest.err >conftest.er1 2393 cat conftest.er1 >&5 2394 mv -f conftest.er1 conftest.err 2395 fi 2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2397 test $ac_status = 0; } && { 2398 test -z "$ac_c_werror_flag" || 2399 test ! -s conftest.err 2400 } && test -s conftest$ac_exeext && { 2401 test "$cross_compiling" = yes || 2402 test -x conftest$ac_exeext 2403 }; then : 2404 ac_retval=0 2405 else 2406 $as_echo "$as_me: failed program was:" >&5 2407 sed 's/^/| /' conftest.$ac_ext >&5 2408 2409 ac_retval=1 2410 fi 2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2413 # interfere with the next link command; also delete a directory that is 2414 # left behind by Apple's compiler. We do this before executing the actions. 2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2417 as_fn_set_status $ac_retval 2418 2419 } # ac_fn_c_try_link 2420 2421 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2422 # --------------------------------------------------------- 2423 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2424 # the include files in INCLUDES and setting the cache variable VAR 2425 # accordingly. 2426 ac_fn_cxx_check_header_mongrel () 2427 { 2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2429 if eval \${$3+:} false; then : 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2431 $as_echo_n "checking for $2... " >&6; } 2432 if eval \${$3+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434 fi 2435 eval ac_res=\$$3 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2437 $as_echo "$ac_res" >&6; } 2438 else 2439 # Is the header compilable? 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2441 $as_echo_n "checking $2 usability... " >&6; } 2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2443 /* end confdefs.h. */ 2444 $4 2445 #include <$2> 2446 _ACEOF 2447 if ac_fn_cxx_try_compile "$LINENO"; then : 2448 ac_header_compiler=yes 2449 else 2450 ac_header_compiler=no 2451 fi 2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2454 $as_echo "$ac_header_compiler" >&6; } 2455 2456 # Is the header present? 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2458 $as_echo_n "checking $2 presence... " >&6; } 2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2460 /* end confdefs.h. */ 2461 #include <$2> 2462 _ACEOF 2463 if ac_fn_cxx_try_cpp "$LINENO"; then : 2464 ac_header_preproc=yes 2465 else 2466 ac_header_preproc=no 2467 fi 2468 rm -f conftest.err conftest.i conftest.$ac_ext 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2470 $as_echo "$ac_header_preproc" >&6; } 2471 2472 # So? What about this header? 2473 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2474 yes:no: ) 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2476 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2478 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2479 ;; 2480 no:yes:* ) 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2482 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2484 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2486 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2488 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2490 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2491 ( $as_echo "## ----------------------------------------- ## 2492 ## Report this to build-dev@openjdk.java.net ## 2493 ## ----------------------------------------- ##" 2494 ) | sed "s/^/$as_me: WARNING: /" >&2 2495 ;; 2496 esac 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2498 $as_echo_n "checking for $2... " >&6; } 2499 if eval \${$3+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501 else 2502 eval "$3=\$ac_header_compiler" 2503 fi 2504 eval ac_res=\$$3 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2506 $as_echo "$ac_res" >&6; } 2507 fi 2508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2509 2510 } # ac_fn_cxx_check_header_mongrel 2511 2512 # ac_fn_cxx_try_run LINENO 2513 # ------------------------ 2514 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2515 # that executables *can* be run. 2516 ac_fn_cxx_try_run () 2517 { 2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2519 if { { ac_try="$ac_link" 2520 case "(($ac_try" in 2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2522 *) ac_try_echo=$ac_try;; 2523 esac 2524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2525 $as_echo "$ac_try_echo"; } >&5 2526 (eval "$ac_link") 2>&5 2527 ac_status=$? 2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2529 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2530 { { case "(($ac_try" in 2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2532 *) ac_try_echo=$ac_try;; 2533 esac 2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2535 $as_echo "$ac_try_echo"; } >&5 2536 (eval "$ac_try") 2>&5 2537 ac_status=$? 2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2539 test $ac_status = 0; }; }; then : 2540 ac_retval=0 2541 else 2542 $as_echo "$as_me: program exited with status $ac_status" >&5 2543 $as_echo "$as_me: failed program was:" >&5 2544 sed 's/^/| /' conftest.$ac_ext >&5 2545 2546 ac_retval=$ac_status 2547 fi 2548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2550 as_fn_set_status $ac_retval 2551 2552 } # ac_fn_cxx_try_run 2553 2554 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2555 # --------------------------------------------------------- 2556 # Tests whether HEADER exists and can be compiled using the include files in 2557 # INCLUDES, setting the cache variable VAR accordingly. 2558 ac_fn_cxx_check_header_compile () 2559 { 2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2562 $as_echo_n "checking for $2... " >&6; } 2563 if eval \${$3+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565 else 2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2567 /* end confdefs.h. */ 2568 $4 2569 #include <$2> 2570 _ACEOF 2571 if ac_fn_cxx_try_compile "$LINENO"; then : 2572 eval "$3=yes" 2573 else 2574 eval "$3=no" 2575 fi 2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2577 fi 2578 eval ac_res=\$$3 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2580 $as_echo "$ac_res" >&6; } 2581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2582 2583 } # ac_fn_cxx_check_header_compile 2584 2585 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2586 # ---------------------------------------------- 2587 # Tries to find the compile-time value of EXPR in a program that includes 2588 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2589 # computed 2590 ac_fn_cxx_compute_int () 2591 { 2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2593 if test "$cross_compiling" = yes; then 2594 # Depending upon the size, compute the lo and hi bounds. 2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2596 /* end confdefs.h. */ 2597 $4 2598 int 2599 main () 2600 { 2601 static int test_array [1 - 2 * !(($2) >= 0)]; 2602 test_array [0] = 0; 2603 return test_array [0]; 2604 2605 ; 2606 return 0; 2607 } 2608 _ACEOF 2609 if ac_fn_cxx_try_compile "$LINENO"; then : 2610 ac_lo=0 ac_mid=0 2611 while :; do 2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2613 /* end confdefs.h. */ 2614 $4 2615 int 2616 main () 2617 { 2618 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2619 test_array [0] = 0; 2620 return test_array [0]; 2621 2622 ; 2623 return 0; 2624 } 2625 _ACEOF 2626 if ac_fn_cxx_try_compile "$LINENO"; then : 2627 ac_hi=$ac_mid; break 2628 else 2629 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2630 if test $ac_lo -le $ac_mid; then 2631 ac_lo= ac_hi= 2632 break 2633 fi 2634 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2635 fi 2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2637 done 2638 else 2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2640 /* end confdefs.h. */ 2641 $4 2642 int 2643 main () 2644 { 2645 static int test_array [1 - 2 * !(($2) < 0)]; 2646 test_array [0] = 0; 2647 return test_array [0]; 2648 2649 ; 2650 return 0; 2651 } 2652 _ACEOF 2653 if ac_fn_cxx_try_compile "$LINENO"; then : 2654 ac_hi=-1 ac_mid=-1 2655 while :; do 2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2657 /* end confdefs.h. */ 2658 $4 2659 int 2660 main () 2661 { 2662 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2663 test_array [0] = 0; 2664 return test_array [0]; 2665 2666 ; 2667 return 0; 2668 } 2669 _ACEOF 2670 if ac_fn_cxx_try_compile "$LINENO"; then : 2671 ac_lo=$ac_mid; break 2672 else 2673 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2674 if test $ac_mid -le $ac_hi; then 2675 ac_lo= ac_hi= 2676 break 2677 fi 2678 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2679 fi 2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681 done 2682 else 2683 ac_lo= ac_hi= 2684 fi 2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2686 fi 2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2688 # Binary search between lo and hi bounds. 2689 while test "x$ac_lo" != "x$ac_hi"; do 2690 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2692 /* end confdefs.h. */ 2693 $4 2694 int 2695 main () 2696 { 2697 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2698 test_array [0] = 0; 2699 return test_array [0]; 2700 2701 ; 2702 return 0; 2703 } 2704 _ACEOF 2705 if ac_fn_cxx_try_compile "$LINENO"; then : 2706 ac_hi=$ac_mid 2707 else 2708 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2709 fi 2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2711 done 2712 case $ac_lo in #(( 2713 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2714 '') ac_retval=1 ;; 2715 esac 2716 else 2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2718 /* end confdefs.h. */ 2719 $4 2720 static long int longval () { return $2; } 2721 static unsigned long int ulongval () { return $2; } 2722 #include <stdio.h> 2723 #include <stdlib.h> 2724 int 2725 main () 2726 { 2727 2728 FILE *f = fopen ("conftest.val", "w"); 2729 if (! f) 2730 return 1; 2731 if (($2) < 0) 2732 { 2733 long int i = longval (); 2734 if (i != ($2)) 2735 return 1; 2736 fprintf (f, "%ld", i); 2737 } 2738 else 2739 { 2740 unsigned long int i = ulongval (); 2741 if (i != ($2)) 2742 return 1; 2743 fprintf (f, "%lu", i); 2744 } 2745 /* Do not output a trailing newline, as this causes \r\n confusion 2746 on some platforms. */ 2747 return ferror (f) || fclose (f) != 0; 2748 2749 ; 2750 return 0; 2751 } 2752 _ACEOF 2753 if ac_fn_cxx_try_run "$LINENO"; then : 2754 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2755 else 2756 ac_retval=1 2757 fi 2758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2759 conftest.$ac_objext conftest.beam conftest.$ac_ext 2760 rm -f conftest.val 2761 2762 fi 2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2764 as_fn_set_status $ac_retval 2765 2766 } # ac_fn_cxx_compute_int 2767 2768 # ac_fn_cxx_try_link LINENO 2769 # ------------------------- 2770 # Try to link conftest.$ac_ext, and return whether this succeeded. 2771 ac_fn_cxx_try_link () 2772 { 2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2774 rm -f conftest.$ac_objext conftest$ac_exeext 2775 if { { ac_try="$ac_link" 2776 case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779 esac 2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2781 $as_echo "$ac_try_echo"; } >&5 2782 (eval "$ac_link") 2>conftest.err 2783 ac_status=$? 2784 if test -s conftest.err; then 2785 grep -v '^ *+' conftest.err >conftest.er1 2786 cat conftest.er1 >&5 2787 mv -f conftest.er1 conftest.err 2788 fi 2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2790 test $ac_status = 0; } && { 2791 test -z "$ac_cxx_werror_flag" || 2792 test ! -s conftest.err 2793 } && test -s conftest$ac_exeext && { 2794 test "$cross_compiling" = yes || 2795 test -x conftest$ac_exeext 2796 }; then : 2797 ac_retval=0 2798 else 2799 $as_echo "$as_me: failed program was:" >&5 2800 sed 's/^/| /' conftest.$ac_ext >&5 2801 2802 ac_retval=1 2803 fi 2804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2806 # interfere with the next link command; also delete a directory that is 2807 # left behind by Apple's compiler. We do this before executing the actions. 2808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2810 as_fn_set_status $ac_retval 2811 2812 } # ac_fn_cxx_try_link 2813 2814 # ac_fn_cxx_check_func LINENO FUNC VAR 2815 # ------------------------------------ 2816 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2817 ac_fn_cxx_check_func () 2818 { 2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2821 $as_echo_n "checking for $2... " >&6; } 2822 if eval \${$3+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824 else 2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2826 /* end confdefs.h. */ 2827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2829 #define $2 innocuous_$2 2830 2831 /* System header to define __stub macros and hopefully few prototypes, 2832 which can conflict with char $2 (); below. 2833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2834 <limits.h> exists even on freestanding compilers. */ 2835 2836 #ifdef __STDC__ 2837 # include <limits.h> 2838 #else 2839 # include <assert.h> 2840 #endif 2841 2842 #undef $2 2843 2844 /* Override any GCC internal prototype to avoid an error. 2845 Use char because int might match the return type of a GCC 2846 builtin and then its argument prototype would still apply. */ 2847 #ifdef __cplusplus 2848 extern "C" 2849 #endif 2850 char $2 (); 2851 /* The GNU C library defines this for functions which it implements 2852 to always fail with ENOSYS. Some functions are actually named 2853 something starting with __ and the normal name is an alias. */ 2854 #if defined __stub_$2 || defined __stub___$2 2855 choke me 2856 #endif 2857 2858 int 2859 main () 2860 { 2861 return $2 (); 2862 ; 2863 return 0; 2864 } 2865 _ACEOF 2866 if ac_fn_cxx_try_link "$LINENO"; then : 2867 eval "$3=yes" 2868 else 2869 eval "$3=no" 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext \ 2872 conftest$ac_exeext conftest.$ac_ext 2873 fi 2874 eval ac_res=\$$3 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2876 $as_echo "$ac_res" >&6; } 2877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2878 2879 } # ac_fn_cxx_check_func 2880 2881 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2882 # ------------------------------------------------------- 2883 # Tests whether HEADER exists and can be compiled using the include files in 2884 # INCLUDES, setting the cache variable VAR accordingly. 2885 ac_fn_c_check_header_compile () 2886 { 2887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2889 $as_echo_n "checking for $2... " >&6; } 2890 if eval \${$3+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892 else 2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2894 /* end confdefs.h. */ 2895 $4 2896 #include <$2> 2897 _ACEOF 2898 if ac_fn_c_try_compile "$LINENO"; then : 2899 eval "$3=yes" 2900 else 2901 eval "$3=no" 2902 fi 2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2904 fi 2905 eval ac_res=\$$3 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2907 $as_echo "$ac_res" >&6; } 2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2909 2910 } # ac_fn_c_check_header_compile 2911 cat >config.log <<_ACEOF 2912 This file contains any messages produced by compilers while 2913 running configure, to aid debugging if configure makes a mistake. 2914 2915 It was created by OpenJDK $as_me jdk9, which was 2916 generated by GNU Autoconf 2.69. Invocation command line was 2917 2918 $ $0 $@ 2919 2920 _ACEOF 2921 exec 5>>config.log 2922 { 2923 cat <<_ASUNAME 2924 ## --------- ## 2925 ## Platform. ## 2926 ## --------- ## 2927 2928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2929 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2930 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2931 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2932 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2933 2934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2935 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2936 2937 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2938 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2940 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2941 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2942 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2943 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2944 2945 _ASUNAME 2946 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948 for as_dir in $PATH 2949 do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 $as_echo "PATH: $as_dir" 2953 done 2954 IFS=$as_save_IFS 2955 2956 } >&5 2957 2958 cat >&5 <<_ACEOF 2959 2960 2961 ## ----------- ## 2962 ## Core tests. ## 2963 ## ----------- ## 2964 2965 _ACEOF 2966 2967 2968 # Keep a trace of the command line. 2969 # Strip out --no-create and --no-recursion so they do not pile up. 2970 # Strip out --silent because we don't want to record it for future runs. 2971 # Also quote any args containing shell meta-characters. 2972 # Make two passes to allow for proper duplicate-argument suppression. 2973 ac_configure_args= 2974 ac_configure_args0= 2975 ac_configure_args1= 2976 ac_must_keep_next=false 2977 for ac_pass in 1 2 2978 do 2979 for ac_arg 2980 do 2981 case $ac_arg in 2982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2984 | -silent | --silent | --silen | --sile | --sil) 2985 continue ;; 2986 *\'*) 2987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2988 esac 2989 case $ac_pass in 2990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2991 2) 2992 as_fn_append ac_configure_args1 " '$ac_arg'" 2993 if test $ac_must_keep_next = true; then 2994 ac_must_keep_next=false # Got value, back to normal. 2995 else 2996 case $ac_arg in 2997 *=* | --config-cache | -C | -disable-* | --disable-* \ 2998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3000 | -with-* | --with-* | -without-* | --without-* | --x) 3001 case "$ac_configure_args0 " in 3002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3003 esac 3004 ;; 3005 -* ) ac_must_keep_next=true ;; 3006 esac 3007 fi 3008 as_fn_append ac_configure_args " '$ac_arg'" 3009 ;; 3010 esac 3011 done 3012 done 3013 { ac_configure_args0=; unset ac_configure_args0;} 3014 { ac_configure_args1=; unset ac_configure_args1;} 3015 3016 # When interrupted or exit'd, cleanup temporary files, and complete 3017 # config.log. We remove comments because anyway the quotes in there 3018 # would cause problems or look ugly. 3019 # WARNING: Use '\'' to represent an apostrophe within the trap. 3020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3021 trap 'exit_status=$? 3022 # Save into config.log some information that might help in debugging. 3023 { 3024 echo 3025 3026 $as_echo "## ---------------- ## 3027 ## Cache variables. ## 3028 ## ---------------- ##" 3029 echo 3030 # The following way of writing the cache mishandles newlines in values, 3031 ( 3032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3033 eval ac_val=\$$ac_var 3034 case $ac_val in #( 3035 *${as_nl}*) 3036 case $ac_var in #( 3037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3039 esac 3040 case $ac_var in #( 3041 _ | IFS | as_nl) ;; #( 3042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3043 *) { eval $ac_var=; unset $ac_var;} ;; 3044 esac ;; 3045 esac 3046 done 3047 (set) 2>&1 | 3048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3049 *${as_nl}ac_space=\ *) 3050 sed -n \ 3051 "s/'\''/'\''\\\\'\'''\''/g; 3052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3053 ;; #( 3054 *) 3055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3056 ;; 3057 esac | 3058 sort 3059 ) 3060 echo 3061 3062 $as_echo "## ----------------- ## 3063 ## Output variables. ## 3064 ## ----------------- ##" 3065 echo 3066 for ac_var in $ac_subst_vars 3067 do 3068 eval ac_val=\$$ac_var 3069 case $ac_val in 3070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3071 esac 3072 $as_echo "$ac_var='\''$ac_val'\''" 3073 done | sort 3074 echo 3075 3076 if test -n "$ac_subst_files"; then 3077 $as_echo "## ------------------- ## 3078 ## File substitutions. ## 3079 ## ------------------- ##" 3080 echo 3081 for ac_var in $ac_subst_files 3082 do 3083 eval ac_val=\$$ac_var 3084 case $ac_val in 3085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3086 esac 3087 $as_echo "$ac_var='\''$ac_val'\''" 3088 done | sort 3089 echo 3090 fi 3091 3092 if test -s confdefs.h; then 3093 $as_echo "## ----------- ## 3094 ## confdefs.h. ## 3095 ## ----------- ##" 3096 echo 3097 cat confdefs.h 3098 echo 3099 fi 3100 test "$ac_signal" != 0 && 3101 $as_echo "$as_me: caught signal $ac_signal" 3102 $as_echo "$as_me: exit $exit_status" 3103 } >&5 3104 rm -f core *.core core.conftest.* && 3105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3106 exit $exit_status 3107 ' 0 3108 for ac_signal in 1 2 13 15; do 3109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3110 done 3111 ac_signal=0 3112 3113 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3114 rm -f -r conftest* confdefs.h 3115 3116 $as_echo "/* confdefs.h */" > confdefs.h 3117 3118 # Predefined preprocessor variables. 3119 3120 cat >>confdefs.h <<_ACEOF 3121 #define PACKAGE_NAME "$PACKAGE_NAME" 3122 _ACEOF 3123 3124 cat >>confdefs.h <<_ACEOF 3125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3126 _ACEOF 3127 3128 cat >>confdefs.h <<_ACEOF 3129 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3130 _ACEOF 3131 3132 cat >>confdefs.h <<_ACEOF 3133 #define PACKAGE_STRING "$PACKAGE_STRING" 3134 _ACEOF 3135 3136 cat >>confdefs.h <<_ACEOF 3137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3138 _ACEOF 3139 3140 cat >>confdefs.h <<_ACEOF 3141 #define PACKAGE_URL "$PACKAGE_URL" 3142 _ACEOF 3143 3144 3145 # Let the site file select an alternate cache file if it wants to. 3146 # Prefer an explicitly selected file to automatically selected ones. 3147 ac_site_file1=NONE 3148 ac_site_file2=NONE 3149 if test -n "$CONFIG_SITE"; then 3150 # We do not want a PATH search for config.site. 3151 case $CONFIG_SITE in #(( 3152 -*) ac_site_file1=./$CONFIG_SITE;; 3153 */*) ac_site_file1=$CONFIG_SITE;; 3154 *) ac_site_file1=./$CONFIG_SITE;; 3155 esac 3156 elif test "x$prefix" != xNONE; then 3157 ac_site_file1=$prefix/share/config.site 3158 ac_site_file2=$prefix/etc/config.site 3159 else 3160 ac_site_file1=$ac_default_prefix/share/config.site 3161 ac_site_file2=$ac_default_prefix/etc/config.site 3162 fi 3163 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3164 do 3165 test "x$ac_site_file" = xNONE && continue 3166 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3168 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3169 sed 's/^/| /' "$ac_site_file" >&5 3170 . "$ac_site_file" \ 3171 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173 as_fn_error $? "failed to load site script $ac_site_file 3174 See \`config.log' for more details" "$LINENO" 5; } 3175 fi 3176 done 3177 3178 if test -r "$cache_file"; then 3179 # Some versions of bash will fail to source /dev/null (special files 3180 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3181 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3183 $as_echo "$as_me: loading cache $cache_file" >&6;} 3184 case $cache_file in 3185 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3186 *) . "./$cache_file";; 3187 esac 3188 fi 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3191 $as_echo "$as_me: creating cache $cache_file" >&6;} 3192 >$cache_file 3193 fi 3194 3195 # Check that the precious variables saved in the cache have kept the same 3196 # value. 3197 ac_cache_corrupted=false 3198 for ac_var in $ac_precious_vars; do 3199 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3200 eval ac_new_set=\$ac_env_${ac_var}_set 3201 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3202 eval ac_new_val=\$ac_env_${ac_var}_value 3203 case $ac_old_set,$ac_new_set in 3204 set,) 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3207 ac_cache_corrupted=: ;; 3208 ,set) 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3211 ac_cache_corrupted=: ;; 3212 ,);; 3213 *) 3214 if test "x$ac_old_val" != "x$ac_new_val"; then 3215 # differences in whitespace do not lead to failure. 3216 ac_old_val_w=`echo x $ac_old_val` 3217 ac_new_val_w=`echo x $ac_new_val` 3218 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3221 ac_cache_corrupted=: 3222 else 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3225 eval $ac_var=\$ac_old_val 3226 fi 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3231 fi;; 3232 esac 3233 # Pass precious variables to config.status. 3234 if test "$ac_new_set" = set; then 3235 case $ac_new_val in 3236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3237 *) ac_arg=$ac_var=$ac_new_val ;; 3238 esac 3239 case " $ac_configure_args " in 3240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3241 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3242 esac 3243 fi 3244 done 3245 if $ac_cache_corrupted; then 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3250 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3251 fi 3252 ## -------------------- ## 3253 ## Main body of script. ## 3254 ## -------------------- ## 3255 3256 ac_ext=c 3257 ac_cpp='$CPP $CPPFLAGS' 3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3261 3262 3263 3264 ac_aux_dir= 3265 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3266 if test -f "$ac_dir/install-sh"; then 3267 ac_aux_dir=$ac_dir 3268 ac_install_sh="$ac_aux_dir/install-sh -c" 3269 break 3270 elif test -f "$ac_dir/install.sh"; then 3271 ac_aux_dir=$ac_dir 3272 ac_install_sh="$ac_aux_dir/install.sh -c" 3273 break 3274 elif test -f "$ac_dir/shtool"; then 3275 ac_aux_dir=$ac_dir 3276 ac_install_sh="$ac_aux_dir/shtool install -c" 3277 break 3278 fi 3279 done 3280 if test -z "$ac_aux_dir"; then 3281 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 3282 fi 3283 3284 # These three variables are undocumented and unsupported, 3285 # and are intended to be withdrawn in a future Autoconf release. 3286 # They can cause serious problems if a builder's source tree is in a directory 3287 # whose full name contains unusual characters. 3288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3291 3292 3293 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3294 3295 # 3296 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3298 # 3299 # This code is free software; you can redistribute it and/or modify it 3300 # under the terms of the GNU General Public License version 2 only, as 3301 # published by the Free Software Foundation. Oracle designates this 3302 # particular file as subject to the "Classpath" exception as provided 3303 # by Oracle in the LICENSE file that accompanied this code. 3304 # 3305 # This code is distributed in the hope that it will be useful, but WITHOUT 3306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3307 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3308 # version 2 for more details (a copy is included in the LICENSE file that 3309 # accompanied this code). 3310 # 3311 # You should have received a copy of the GNU General Public License version 3312 # 2 along with this work; if not, write to the Free Software Foundation, 3313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3314 # 3315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3316 # or visit www.oracle.com if you need additional information or have any 3317 # questions. 3318 # 3319 3320 # 3321 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3322 # 3323 # This program is free software; you can redistribute it and/or modify 3324 # it under the terms of the GNU General Public License as published by 3325 # the Free Software Foundation; either version 2 of the License, or 3326 # (at your option) any later version. 3327 # 3328 # This program is distributed in the hope that it will be useful, but 3329 # WITHOUT ANY WARRANTY; without even the implied warranty of 3330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3331 # General Public License for more details. 3332 # 3333 # You should have received a copy of the GNU General Public License 3334 # along with this program; if not, write to the Free Software 3335 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3336 # 3337 # As a special exception to the GNU General Public License, if you 3338 # distribute this file as part of a program that contains a 3339 # configuration script generated by Autoconf, you may include it under 3340 # the same distribution terms that you use for the rest of that program. 3341 3342 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3343 # ---------------------------------- 3344 # PKG_PROG_PKG_CONFIG 3345 3346 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3347 # 3348 # Check to see whether a particular set of modules exists. Similar 3349 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3350 # 3351 # 3352 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3353 # this or PKG_CHECK_MODULES is called, or make sure to call 3354 # PKG_CHECK_EXISTS manually 3355 # -------------------------------------------------------------- 3356 3357 3358 3359 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3360 # --------------------------------------------- 3361 # _PKG_CONFIG 3362 3363 # _PKG_SHORT_ERRORS_SUPPORTED 3364 # ----------------------------- 3365 # _PKG_SHORT_ERRORS_SUPPORTED 3366 3367 3368 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3369 # [ACTION-IF-NOT-FOUND]) 3370 # 3371 # 3372 # Note that if there is a possibility the first call to 3373 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3374 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3375 # 3376 # 3377 # -------------------------------------------------------------- 3378 # PKG_CHECK_MODULES 3379 3380 3381 # Include these first... 3382 # 3383 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3385 # 3386 # This code is free software; you can redistribute it and/or modify it 3387 # under the terms of the GNU General Public License version 2 only, as 3388 # published by the Free Software Foundation. Oracle designates this 3389 # particular file as subject to the "Classpath" exception as provided 3390 # by Oracle in the LICENSE file that accompanied this code. 3391 # 3392 # This code is distributed in the hope that it will be useful, but WITHOUT 3393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3394 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3395 # version 2 for more details (a copy is included in the LICENSE file that 3396 # accompanied this code). 3397 # 3398 # You should have received a copy of the GNU General Public License version 3399 # 2 along with this work; if not, write to the Free Software Foundation, 3400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3401 # 3402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3403 # or visit www.oracle.com if you need additional information or have any 3404 # questions. 3405 # 3406 3407 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3408 # If so, then append $1 to $2 \ 3409 # Also set JVM_ARG_OK to true/false depending on outcome. 3410 3411 3412 # Appends a string to a path variable, only adding the : when needed. 3413 3414 3415 # Prepends a string to a path variable, only adding the : when needed. 3416 3417 3418 # This will make sure the given variable points to a full and proper 3419 # path. This means: 3420 # 1) There will be no spaces in the path. On unix platforms, 3421 # spaces in the path will result in an error. On Windows, 3422 # the path will be rewritten using short-style to be space-free. 3423 # 2) The path will be absolute, and it will be in unix-style (on 3424 # cygwin). 3425 # $1: The name of the variable to fix 3426 3427 3428 # This will make sure the given variable points to a executable 3429 # with a full and proper path. This means: 3430 # 1) There will be no spaces in the path. On unix platforms, 3431 # spaces in the path will result in an error. On Windows, 3432 # the path will be rewritten using short-style to be space-free. 3433 # 2) The path will be absolute, and it will be in unix-style (on 3434 # cygwin). 3435 # Any arguments given to the executable is preserved. 3436 # If the input variable does not have a directory specification, then 3437 # it need to be in the PATH. 3438 # $1: The name of the variable to fix 3439 3440 3441 3442 3443 # Register a --with argument but mark it as deprecated 3444 # $1: The name of the with argument to deprecate, not including --with- 3445 3446 3447 # Register a --enable argument but mark it as deprecated 3448 # $1: The name of the with argument to deprecate, not including --enable- 3449 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3450 3451 3452 3453 3454 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3455 # $1: variable to check 3456 3457 3458 # Check that there are no unprocessed overridden variables left. 3459 # If so, they are an incorrect argument and we will exit with an error. 3460 3461 3462 # Setup a tool for the given variable. If correctly specified by the user, 3463 # use that value, otherwise search for the tool using the supplied code snippet. 3464 # $1: variable to set 3465 # $2: code snippet to call to look for the tool 3466 3467 3468 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3469 # $1: variable to set 3470 # $2: executable name (or list of names) to look for 3471 3472 3473 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3474 # $1: variable to set 3475 # $2: executable name (or list of names) to look for 3476 3477 3478 # Like BASIC_PATH_PROGS but fails if no tool was found. 3479 # $1: variable to set 3480 # $2: executable name (or list of names) to look for 3481 3482 3483 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3484 # $1: variable to set 3485 # $2: autoconf macro to call to look for the special tool 3486 3487 3488 # Setup the most fundamental tools that relies on not much else to set up, 3489 # but is used by much of the early bootstrap code. 3490 3491 3492 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3493 3494 3495 # Evaluates platform specific overrides for devkit variables. 3496 # $1: Name of variable 3497 3498 3499 3500 3501 3502 3503 #%%% Simple tools %%% 3504 3505 # Check if we have found a usable version of make 3506 # $1: the path to a potential make binary (or empty) 3507 # $2: the description on how we found this 3508 3509 3510 3511 3512 # Goes looking for a usable version of GNU make. 3513 3514 3515 3516 3517 3518 3519 # Check if build directory is on local disk. If not possible to determine, 3520 # we prefer to claim it's local. 3521 # Argument 1: directory to test 3522 # Argument 2: what to do if it is on local disk 3523 # Argument 3: what to do otherwise (remote disk or failure) 3524 3525 3526 # Check that source files have basic read permissions set. This might 3527 # not be the case in cygwin in certain conditions. 3528 3529 3530 3531 3532 # Check for support for specific options in bash 3533 3534 3535 # Code to run after AC_OUTPUT 3536 3537 3538 # 3539 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3540 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3541 # 3542 # This code is free software; you can redistribute it and/or modify it 3543 # under the terms of the GNU General Public License version 2 only, as 3544 # published by the Free Software Foundation. Oracle designates this 3545 # particular file as subject to the "Classpath" exception as provided 3546 # by Oracle in the LICENSE file that accompanied this code. 3547 # 3548 # This code is distributed in the hope that it will be useful, but WITHOUT 3549 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3550 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3551 # version 2 for more details (a copy is included in the LICENSE file that 3552 # accompanied this code). 3553 # 3554 # You should have received a copy of the GNU General Public License version 3555 # 2 along with this work; if not, write to the Free Software Foundation, 3556 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3557 # 3558 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3559 # or visit www.oracle.com if you need additional information or have any 3560 # questions. 3561 # 3562 3563 3564 3565 3566 3567 # Helper function which possibly converts a path using DOS-style short mode. 3568 # If so, the updated path is stored in $new_path. 3569 # $1: The path to check 3570 3571 3572 # Helper function which possibly converts a path using DOS-style short mode. 3573 # If so, the updated path is stored in $new_path. 3574 # $1: The path to check 3575 3576 3577 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3578 # and could probably be heavily simplified. However, all changes in this 3579 # area tend to need lot of testing in different scenarios, and in lack of 3580 # proper unit testing, cleaning this up has not been deemed worth the effort 3581 # at the moment. 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3592 3593 3594 3595 3596 # 3597 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3598 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3599 # 3600 # This code is free software; you can redistribute it and/or modify it 3601 # under the terms of the GNU General Public License version 2 only, as 3602 # published by the Free Software Foundation. Oracle designates this 3603 # particular file as subject to the "Classpath" exception as provided 3604 # by Oracle in the LICENSE file that accompanied this code. 3605 # 3606 # This code is distributed in the hope that it will be useful, but WITHOUT 3607 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3608 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3609 # version 2 for more details (a copy is included in the LICENSE file that 3610 # accompanied this code). 3611 # 3612 # You should have received a copy of the GNU General Public License version 3613 # 2 along with this work; if not, write to the Free Software Foundation, 3614 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3615 # 3616 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3617 # or visit www.oracle.com if you need additional information or have any 3618 # questions. 3619 # 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 # ... then the rest 3632 # 3633 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3634 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3635 # 3636 # This code is free software; you can redistribute it and/or modify it 3637 # under the terms of the GNU General Public License version 2 only, as 3638 # published by the Free Software Foundation. Oracle designates this 3639 # particular file as subject to the "Classpath" exception as provided 3640 # by Oracle in the LICENSE file that accompanied this code. 3641 # 3642 # This code is distributed in the hope that it will be useful, but WITHOUT 3643 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3644 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3645 # version 2 for more details (a copy is included in the LICENSE file that 3646 # accompanied this code). 3647 # 3648 # You should have received a copy of the GNU General Public License version 3649 # 2 along with this work; if not, write to the Free Software Foundation, 3650 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3651 # 3652 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3653 # or visit www.oracle.com if you need additional information or have any 3654 # questions. 3655 # 3656 3657 ######################################################################## 3658 # This file handles detection of the Boot JDK. The Boot JDK detection 3659 # process has been developed as a response to solve a complex real-world 3660 # problem. Initially, it was simple, but it has grown as platform after 3661 # platform, idiosyncracy after idiosyncracy has been supported. 3662 # 3663 # The basic idea is this: 3664 # 1) You need an acceptable *) JDK to use as a Boot JDK 3665 # 2) There are several ways to locate a JDK, that are mostly platform 3666 # dependent **) 3667 # 3) You can have multiple JDKs installed 3668 # 4) If possible, configure should try to dig out an acceptable JDK 3669 # automatically, without having to resort to command-line options 3670 # 3671 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3672 # javac) and not a JRE, etc. 3673 # 3674 # **) On Windows we typically use a well-known path. 3675 # On MacOSX we typically use the tool java_home. 3676 # On Linux we typically find javac in the $PATH, and then follow a 3677 # chain of symlinks that often ends up in a real JDK. 3678 # 3679 # This leads to the code where we check in different ways to locate a 3680 # JDK, and if one is found, check if it is acceptable. If not, we print 3681 # our reasons for rejecting it (useful when debugging non-working 3682 # configure situations) and continue checking the next one. 3683 ######################################################################## 3684 3685 # Execute the check given as argument, and verify the result 3686 # If the Boot JDK was previously found, do nothing 3687 # $1 A command line (typically autoconf macro) to execute 3688 3689 3690 # Test: Is bootjdk explicitely set by command line arguments? 3691 3692 3693 # Test: Is bootjdk available from builddeps? 3694 3695 3696 # Test: Is $JAVA_HOME set? 3697 3698 3699 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3700 3701 3702 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3703 # $1: Argument to the java_home binary (optional) 3704 3705 3706 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3707 3708 3709 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3710 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3711 # $1 = Path to directory containing jdk installations. 3712 # $2 = String to append to the found JDK directory to get the proper JDK home 3713 3714 3715 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3716 # environmental variable as base for where to look. 3717 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3718 3719 3720 # Test: Is there a JDK installed in default, well-known locations? 3721 3722 3723 # Check that a command-line tool in the Boot JDK is correct 3724 # $1 = name of variable to assign 3725 # $2 = name of binary 3726 3727 3728 ############################################################################### 3729 # 3730 # We need a Boot JDK to bootstrap the build. 3731 # 3732 3733 3734 3735 3736 3737 # 3738 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3739 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3740 # 3741 # This code is free software; you can redistribute it and/or modify it 3742 # under the terms of the GNU General Public License version 2 only, as 3743 # published by the Free Software Foundation. Oracle designates this 3744 # particular file as subject to the "Classpath" exception as provided 3745 # by Oracle in the LICENSE file that accompanied this code. 3746 # 3747 # This code is distributed in the hope that it will be useful, but WITHOUT 3748 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3749 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3750 # version 2 for more details (a copy is included in the LICENSE file that 3751 # accompanied this code). 3752 # 3753 # You should have received a copy of the GNU General Public License version 3754 # 2 along with this work; if not, write to the Free Software Foundation, 3755 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3756 # 3757 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3758 # or visit www.oracle.com if you need additional information or have any 3759 # questions. 3760 # 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 # 3782 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3783 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3784 # 3785 # This code is free software; you can redistribute it and/or modify it 3786 # under the terms of the GNU General Public License version 2 only, as 3787 # published by the Free Software Foundation. Oracle designates this 3788 # particular file as subject to the "Classpath" exception as provided 3789 # by Oracle in the LICENSE file that accompanied this code. 3790 # 3791 # This code is distributed in the hope that it will be useful, but WITHOUT 3792 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3793 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3794 # version 2 for more details (a copy is included in the LICENSE file that 3795 # accompanied this code). 3796 # 3797 # You should have received a copy of the GNU General Public License version 3798 # 2 along with this work; if not, write to the Free Software Foundation, 3799 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3800 # 3801 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3802 # or visit www.oracle.com if you need additional information or have any 3803 # questions. 3804 # 3805 3806 3807 3808 3809 3810 # Documentation on common flags used for solstudio in HIGHEST. 3811 # 3812 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3813 # done with care, there are some assumptions below that need to 3814 # be understood about the use of pointers, and IEEE behavior. 3815 # 3816 # -fns: Use non-standard floating point mode (not IEEE 754) 3817 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3818 # -fsingle: Use single precision floating point with 'float' 3819 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3820 # (Source with excessing pointer casting and data access with mixed 3821 # pointer types are not recommended) 3822 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3823 # (If you expect perfect errno behavior, do not use this) 3824 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3825 # -xrestrict: Pointer parameters to functions do not overlap 3826 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3827 # If you pass in multiple pointers to the same data, do not use this) 3828 # -xlibmil: Inline some library routines 3829 # (If you expect perfect errno behavior, do not use this) 3830 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3831 # (If you expect perfect errno behavior, do not use this) 3832 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3833 3834 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3835 # Bug? 3836 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3837 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3838 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3839 #fi 3840 3841 3842 3843 3844 3845 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3846 # [RUN-IF-FALSE]) 3847 # ------------------------------------------------------------ 3848 # Check that the c and c++ compilers support an argument 3849 3850 3851 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3852 # [RUN-IF-FALSE]) 3853 # ------------------------------------------------------------ 3854 # Check that the linker support an argument 3855 3856 3857 3858 3859 # 3860 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3861 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3862 # 3863 # This code is free software; you can redistribute it and/or modify it 3864 # under the terms of the GNU General Public License version 2 only, as 3865 # published by the Free Software Foundation. Oracle designates this 3866 # particular file as subject to the "Classpath" exception as provided 3867 # by Oracle in the LICENSE file that accompanied this code. 3868 # 3869 # This code is distributed in the hope that it will be useful, but WITHOUT 3870 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3871 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3872 # version 2 for more details (a copy is included in the LICENSE file that 3873 # accompanied this code). 3874 # 3875 # You should have received a copy of the GNU General Public License version 3876 # 2 along with this work; if not, write to the Free Software Foundation, 3877 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3878 # 3879 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3880 # or visit www.oracle.com if you need additional information or have any 3881 # questions. 3882 # 3883 3884 3885 3886 3887 3888 cygwin_help() { 3889 case $1 in 3890 unzip) 3891 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3892 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3893 ;; 3894 zip) 3895 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3896 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3897 ;; 3898 make) 3899 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3900 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3901 ;; 3902 freetype) 3903 HELP_MSG=" 3904 The freetype library can now be build during the configure process. 3905 Download the freetype sources and unpack them into an arbitrary directory: 3906 3907 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3908 tar -xzf freetype-2.5.3.tar.gz 3909 3910 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3911 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3912 builds or into '<freetype_src>/lib32' for 32-bit builds. 3913 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3914 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3915 ;; 3916 esac 3917 } 3918 3919 msys_help() { 3920 PKGHANDLER_COMMAND="" 3921 } 3922 3923 apt_help() { 3924 case $1 in 3925 devkit) 3926 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3927 openjdk) 3928 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3929 alsa) 3930 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3931 cups) 3932 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3933 freetype) 3934 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3935 pulse) 3936 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3937 x11) 3938 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3939 ccache) 3940 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3941 esac 3942 } 3943 3944 yum_help() { 3945 case $1 in 3946 devkit) 3947 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3948 openjdk) 3949 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3950 alsa) 3951 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3952 cups) 3953 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3954 freetype) 3955 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3956 pulse) 3957 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3958 x11) 3959 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3960 ccache) 3961 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3962 esac 3963 } 3964 3965 port_help() { 3966 PKGHANDLER_COMMAND="" 3967 } 3968 3969 pkgutil_help() { 3970 PKGHANDLER_COMMAND="" 3971 } 3972 3973 pkgadd_help() { 3974 PKGHANDLER_COMMAND="" 3975 } 3976 3977 # This function will check if we're called from the "configure" wrapper while 3978 # printing --help. If so, we will print out additional information that can 3979 # only be extracted within the autoconf script, and then exit. This must be 3980 # called at the very beginning in configure.ac. 3981 3982 3983 3984 3985 3986 3987 # 3988 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3989 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3990 # 3991 # This code is free software; you can redistribute it and/or modify it 3992 # under the terms of the GNU General Public License version 2 only, as 3993 # published by the Free Software Foundation. Oracle designates this 3994 # particular file as subject to the "Classpath" exception as provided 3995 # by Oracle in the LICENSE file that accompanied this code. 3996 # 3997 # This code is distributed in the hope that it will be useful, but WITHOUT 3998 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3999 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4000 # version 2 for more details (a copy is included in the LICENSE file that 4001 # accompanied this code). 4002 # 4003 # You should have received a copy of the GNU General Public License version 4004 # 2 along with this work; if not, write to the Free Software Foundation, 4005 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4006 # 4007 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4008 # or visit www.oracle.com if you need additional information or have any 4009 # questions. 4010 # 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 ############################################################################### 4022 # 4023 # Should we build only OpenJDK even if closed sources are present? 4024 # 4025 4026 4027 4028 4029 4030 4031 ############################################################################### 4032 # 4033 # Enable or disable the elliptic curve crypto implementation 4034 # 4035 4036 4037 4038 4039 4040 ################################################################################ 4041 # 4042 # Gcov coverage data for hotspot 4043 # 4044 4045 4046 # 4047 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4048 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4049 # 4050 # This code is free software; you can redistribute it and/or modify it 4051 # under the terms of the GNU General Public License version 2 only, as 4052 # published by the Free Software Foundation. Oracle designates this 4053 # particular file as subject to the "Classpath" exception as provided 4054 # by Oracle in the LICENSE file that accompanied this code. 4055 # 4056 # This code is distributed in the hope that it will be useful, but WITHOUT 4057 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4058 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4059 # version 2 for more details (a copy is included in the LICENSE file that 4060 # accompanied this code). 4061 # 4062 # You should have received a copy of the GNU General Public License version 4063 # 2 along with this work; if not, write to the Free Software Foundation, 4064 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4065 # 4066 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4067 # or visit www.oracle.com if you need additional information or have any 4068 # questions. 4069 # 4070 4071 ############################################################################### 4072 # 4073 # Setup version numbers 4074 # 4075 4076 # Verify that a given string represent a valid version number, and assing it to 4077 # a variable. 4078 # Argument 1: the variable to assign to 4079 # Argument 2: the value given by the user 4080 4081 4082 4083 4084 # 4085 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4086 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4087 # 4088 # This code is free software; you can redistribute it and/or modify it 4089 # under the terms of the GNU General Public License version 2 only, as 4090 # published by the Free Software Foundation. Oracle designates this 4091 # particular file as subject to the "Classpath" exception as provided 4092 # by Oracle in the LICENSE file that accompanied this code. 4093 # 4094 # This code is distributed in the hope that it will be useful, but WITHOUT 4095 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4096 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4097 # version 2 for more details (a copy is included in the LICENSE file that 4098 # accompanied this code). 4099 # 4100 # You should have received a copy of the GNU General Public License version 4101 # 2 along with this work; if not, write to the Free Software Foundation, 4102 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4103 # 4104 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4105 # or visit www.oracle.com if you need additional information or have any 4106 # questions. 4107 # 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 # 4130 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4131 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4132 # 4133 # This code is free software; you can redistribute it and/or modify it 4134 # under the terms of the GNU General Public License version 2 only, as 4135 # published by the Free Software Foundation. Oracle designates this 4136 # particular file as subject to the "Classpath" exception as provided 4137 # by Oracle in the LICENSE file that accompanied this code. 4138 # 4139 # This code is distributed in the hope that it will be useful, but WITHOUT 4140 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4141 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4142 # version 2 for more details (a copy is included in the LICENSE file that 4143 # accompanied this code). 4144 # 4145 # You should have received a copy of the GNU General Public License version 4146 # 2 along with this work; if not, write to the Free Software Foundation, 4147 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4148 # 4149 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4150 # or visit www.oracle.com if you need additional information or have any 4151 # questions. 4152 # 4153 4154 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4155 # Converts autoconf style CPU name to OpenJDK style, into 4156 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4157 4158 4159 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4160 # Converts autoconf style OS name to OpenJDK style, into 4161 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4162 4163 4164 # Expects $host_os $host_cpu $build_os and $build_cpu 4165 # and $with_target_bits to have been setup! 4166 # 4167 # Translate the standard triplet(quadruplet) definition 4168 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4169 # OPENJDK_BUILD_OS, etc. 4170 4171 4172 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4173 # accordingly. Must be done after setting up build and target system, but before 4174 # doing anything else with these values. 4175 4176 4177 # Setup the legacy variables, for controlling the old makefiles. 4178 # 4179 4180 4181 4182 4183 #%%% Build and target systems %%% 4184 4185 4186 4187 4188 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4189 # Add -mX to various FLAGS variables. 4190 4191 4192 4193 4194 4195 4196 # 4197 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4198 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4199 # 4200 # This code is free software; you can redistribute it and/or modify it 4201 # under the terms of the GNU General Public License version 2 only, as 4202 # published by the Free Software Foundation. Oracle designates this 4203 # particular file as subject to the "Classpath" exception as provided 4204 # by Oracle in the LICENSE file that accompanied this code. 4205 # 4206 # This code is distributed in the hope that it will be useful, but WITHOUT 4207 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4208 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4209 # version 2 for more details (a copy is included in the LICENSE file that 4210 # accompanied this code). 4211 # 4212 # You should have received a copy of the GNU General Public License version 4213 # 2 along with this work; if not, write to the Free Software Foundation, 4214 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4215 # 4216 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4217 # or visit www.oracle.com if you need additional information or have any 4218 # questions. 4219 # 4220 4221 4222 4223 4224 4225 4226 4227 4228 # 4229 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4230 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4231 # 4232 # This code is free software; you can redistribute it and/or modify it 4233 # under the terms of the GNU General Public License version 2 only, as 4234 # published by the Free Software Foundation. Oracle designates this 4235 # particular file as subject to the "Classpath" exception as provided 4236 # by Oracle in the LICENSE file that accompanied this code. 4237 # 4238 # This code is distributed in the hope that it will be useful, but WITHOUT 4239 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4240 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4241 # version 2 for more details (a copy is included in the LICENSE file that 4242 # accompanied this code). 4243 # 4244 # You should have received a copy of the GNU General Public License version 4245 # 2 along with this work; if not, write to the Free Software Foundation, 4246 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4247 # 4248 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4249 # or visit www.oracle.com if you need additional information or have any 4250 # questions. 4251 # 4252 4253 ######################################################################## 4254 # This file is responsible for detecting, verifying and setting up the 4255 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4256 # proper paths to the binaries, but it will not setup any flags. 4257 # 4258 # The binaries used is determined by the toolchain type, which is the family of 4259 # compilers and related tools that are used. 4260 ######################################################################## 4261 4262 4263 # All valid toolchains, regardless of platform (used by help.m4) 4264 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4265 4266 # These toolchains are valid on different platforms 4267 VALID_TOOLCHAINS_linux="gcc clang" 4268 VALID_TOOLCHAINS_solaris="solstudio" 4269 VALID_TOOLCHAINS_macosx="gcc clang" 4270 VALID_TOOLCHAINS_aix="xlc" 4271 VALID_TOOLCHAINS_windows="microsoft" 4272 4273 # Toolchain descriptions 4274 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4275 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4276 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4277 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4278 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4279 4280 # Setup a number of variables describing how native output files are 4281 # named on this platform/toolchain. 4282 4283 4284 # Determine which toolchain type to use, and make sure it is valid for this 4285 # platform. Setup various information about the selected toolchain. 4286 4287 4288 # Before we start detecting the toolchain executables, we might need some 4289 # special setup, e.g. additional paths etc. 4290 4291 4292 # Restore path, etc 4293 4294 4295 # Check if a compiler is of the toolchain type we expect, and save the version 4296 # information from it. If the compiler does not match the expected type, 4297 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4298 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4299 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4300 # 4301 # $1 = compiler to test (CC or CXX) 4302 # $2 = human readable name of compiler (C or C++) 4303 4304 4305 # Try to locate the given C or C++ compiler in the path, or otherwise. 4306 # 4307 # $1 = compiler to test (CC or CXX) 4308 # $2 = human readable name of compiler (C or C++) 4309 # $3 = list of compiler names to search for 4310 4311 4312 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4313 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4314 # archiver (AR). Verify that the compilers are correct according to the 4315 # toolchain type. 4316 4317 4318 # Setup additional tools that is considered a part of the toolchain, but not the 4319 # core part. Many of these are highly platform-specific and do not exist, 4320 # and/or are not needed on all platforms. 4321 4322 4323 # Setup the build tools (i.e, the compiler and linker used to build programs 4324 # that should be run on the build platform, not the target platform, as a build 4325 # helper). Since the non-cross-compile case uses the normal, target compilers 4326 # for this, we can only do this after these have been setup. 4327 4328 4329 # Setup legacy variables that are still needed as alternative ways to refer to 4330 # parts of the toolchain. 4331 4332 4333 # Do some additional checks on the detected tools. 4334 4335 4336 # Setup the JTReg Regression Test Harness. 4337 4338 4339 # 4340 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4341 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4342 # 4343 # This code is free software; you can redistribute it and/or modify it 4344 # under the terms of the GNU General Public License version 2 only, as 4345 # published by the Free Software Foundation. Oracle designates this 4346 # particular file as subject to the "Classpath" exception as provided 4347 # by Oracle in the LICENSE file that accompanied this code. 4348 # 4349 # This code is distributed in the hope that it will be useful, but WITHOUT 4350 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4351 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4352 # version 2 for more details (a copy is included in the LICENSE file that 4353 # accompanied this code). 4354 # 4355 # You should have received a copy of the GNU General Public License version 4356 # 2 along with this work; if not, write to the Free Software Foundation, 4357 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4358 # 4359 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4360 # or visit www.oracle.com if you need additional information or have any 4361 # questions. 4362 # 4363 4364 ################################################################################ 4365 # The order of these defines the priority by which we try to find them. 4366 VALID_VS_VERSIONS="2013 2012 2010" 4367 4368 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4369 VS_VERSION_INTERNAL_2010=100 4370 VS_MSVCR_2010=msvcr100.dll 4371 # We don't use msvcp on Visual Studio 2010 4372 #VS_MSVCP_2010=msvcp100.dll 4373 VS_ENVVAR_2010="VS100COMNTOOLS" 4374 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4375 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4376 VS_VS_PLATFORM_NAME_2010="v100" 4377 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4378 4379 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4380 VS_VERSION_INTERNAL_2012=110 4381 VS_MSVCR_2012=msvcr110.dll 4382 VS_MSVCP_2012=msvcp110.dll 4383 VS_ENVVAR_2012="VS110COMNTOOLS" 4384 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4385 VS_SDK_INSTALLDIR_2012= 4386 VS_VS_PLATFORM_NAME_2012="v110" 4387 VS_SDK_PLATFORM_NAME_2012= 4388 4389 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4390 VS_VERSION_INTERNAL_2013=120 4391 VS_MSVCR_2013=msvcr120.dll 4392 VS_MSVCP_2013=msvcp120.dll 4393 VS_ENVVAR_2013="VS120COMNTOOLS" 4394 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4395 VS_SDK_INSTALLDIR_2013= 4396 VS_VS_PLATFORM_NAME_2013="v120" 4397 VS_SDK_PLATFORM_NAME_2013= 4398 4399 ################################################################################ 4400 4401 4402 4403 ################################################################################ 4404 4405 4406 4407 ################################################################################ 4408 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4409 # build environment and assigns it to VS_ENV_CMD 4410 4411 4412 ################################################################################ 4413 4414 4415 4416 ################################################################################ 4417 # Check if the VS env variables were setup prior to running configure. 4418 # If not, then find vcvarsall.bat and run it automatically, and integrate 4419 # the set env variables into the spec file. 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 # This line needs to be here, verbatim, after all includes and the dummy hook 4435 # definitions. It is replaced with custom functionality when building 4436 # custom sources. 4437 #CUSTOM_AUTOCONF_INCLUDE 4438 4439 # Do not change or remove the following line, it is needed for consistency checks: 4440 DATE_WHEN_GENERATED=1433492710 4441 4442 ############################################################################### 4443 # 4444 # Initialization / Boot-strapping 4445 # 4446 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4447 # thus it jumps back and forth, each time gaining something needed later on. 4448 # 4449 ############################################################################### 4450 4451 # If we are requested to print additional help, do that and then exit. 4452 # This must be the very first call. 4453 4454 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4455 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4456 $PRINTF "Which are valid to use depends on the build platform.\n" 4457 for toolchain in $VALID_TOOLCHAINS_all; do 4458 # Use indirect variable referencing 4459 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4460 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4461 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4462 done 4463 4464 # And now exit directly 4465 exit 0 4466 fi 4467 4468 4469 # Basic initialization that must happen first of all in the normal process. 4470 4471 # Save the original command line. This is passed to us by the wrapper configure script. 4472 4473 # Save the path variable before it gets changed 4474 ORIGINAL_PATH="$PATH" 4475 4476 DATE_WHEN_CONFIGURED=`LANG=C date` 4477 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4479 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4481 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4482 4483 4484 # Start with tools that do not need have cross compilation support 4485 # and can be expected to be found in the default PATH. These tools are 4486 # used by configure. Nor are these tools expected to be found in the 4487 # devkit from the builddeps server either, since they are 4488 # needed to download the devkit. 4489 4490 # First are all the simple required tools. 4491 4492 4493 4494 # Publish this variable in the help. 4495 4496 4497 if test "x$BASENAME" = x; then 4498 # The variable is not set by user, try to locate tool using the code snippet 4499 for ac_prog in basename 4500 do 4501 # Extract the first word of "$ac_prog", so it can be a program name with args. 4502 set dummy $ac_prog; ac_word=$2 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4504 $as_echo_n "checking for $ac_word... " >&6; } 4505 if ${ac_cv_path_BASENAME+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507 else 4508 case $BASENAME in 4509 [\\/]* | ?:[\\/]*) 4510 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4511 ;; 4512 *) 4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514 for as_dir in $PATH 4515 do 4516 IFS=$as_save_IFS 4517 test -z "$as_dir" && as_dir=. 4518 for ac_exec_ext in '' $ac_executable_extensions; do 4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4520 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4522 break 2 4523 fi 4524 done 4525 done 4526 IFS=$as_save_IFS 4527 4528 ;; 4529 esac 4530 fi 4531 BASENAME=$ac_cv_path_BASENAME 4532 if test -n "$BASENAME"; then 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4534 $as_echo "$BASENAME" >&6; } 4535 else 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4537 $as_echo "no" >&6; } 4538 fi 4539 4540 4541 test -n "$BASENAME" && break 4542 done 4543 4544 else 4545 # The variable is set, but is it from the command line or the environment? 4546 4547 # Try to remove the string !BASENAME! from our list. 4548 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4549 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4550 # If it failed, the variable was not from the command line. Ignore it, 4551 # but warn the user (except for BASH, which is always set by the calling BASH). 4552 if test "xBASENAME" != xBASH; then 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4554 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4555 fi 4556 # Try to locate tool using the code snippet 4557 for ac_prog in basename 4558 do 4559 # Extract the first word of "$ac_prog", so it can be a program name with args. 4560 set dummy $ac_prog; ac_word=$2 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4562 $as_echo_n "checking for $ac_word... " >&6; } 4563 if ${ac_cv_path_BASENAME+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565 else 4566 case $BASENAME in 4567 [\\/]* | ?:[\\/]*) 4568 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4569 ;; 4570 *) 4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572 for as_dir in $PATH 4573 do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582 done 4583 done 4584 IFS=$as_save_IFS 4585 4586 ;; 4587 esac 4588 fi 4589 BASENAME=$ac_cv_path_BASENAME 4590 if test -n "$BASENAME"; then 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4592 $as_echo "$BASENAME" >&6; } 4593 else 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4595 $as_echo "no" >&6; } 4596 fi 4597 4598 4599 test -n "$BASENAME" && break 4600 done 4601 4602 else 4603 # If it succeeded, then it was overridden by the user. We will use it 4604 # for the tool. 4605 4606 # First remove it from the list of overridden variables, so we can test 4607 # for unknown variables in the end. 4608 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4609 4610 # Check if the provided tool contains a complete path. 4611 tool_specified="$BASENAME" 4612 tool_basename="${tool_specified##*/}" 4613 if test "x$tool_basename" = "x$tool_specified"; then 4614 # A command without a complete path is provided, search $PATH. 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4616 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4617 # Extract the first word of "$tool_basename", so it can be a program name with args. 4618 set dummy $tool_basename; ac_word=$2 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620 $as_echo_n "checking for $ac_word... " >&6; } 4621 if ${ac_cv_path_BASENAME+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623 else 4624 case $BASENAME in 4625 [\\/]* | ?:[\\/]*) 4626 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4627 ;; 4628 *) 4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630 for as_dir in $PATH 4631 do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_exec_ext in '' $ac_executable_extensions; do 4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4636 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4638 break 2 4639 fi 4640 done 4641 done 4642 IFS=$as_save_IFS 4643 4644 ;; 4645 esac 4646 fi 4647 BASENAME=$ac_cv_path_BASENAME 4648 if test -n "$BASENAME"; then 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4650 $as_echo "$BASENAME" >&6; } 4651 else 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4653 $as_echo "no" >&6; } 4654 fi 4655 4656 4657 if test "x$BASENAME" = x; then 4658 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4659 fi 4660 else 4661 # Otherwise we believe it is a complete path. Use it as it is. 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4663 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4665 $as_echo_n "checking for BASENAME... " >&6; } 4666 if test ! -x "$tool_specified"; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4668 $as_echo "not found" >&6; } 4669 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4670 fi 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4672 $as_echo "$tool_specified" >&6; } 4673 fi 4674 fi 4675 fi 4676 4677 4678 4679 if test "x$BASENAME" = x; then 4680 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4681 fi 4682 4683 4684 4685 4686 4687 # Publish this variable in the help. 4688 4689 4690 if test "x$BASH" = x; then 4691 # The variable is not set by user, try to locate tool using the code snippet 4692 for ac_prog in bash 4693 do 4694 # Extract the first word of "$ac_prog", so it can be a program name with args. 4695 set dummy $ac_prog; ac_word=$2 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4697 $as_echo_n "checking for $ac_word... " >&6; } 4698 if ${ac_cv_path_BASH+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700 else 4701 case $BASH in 4702 [\\/]* | ?:[\\/]*) 4703 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4704 ;; 4705 *) 4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4707 for as_dir in $PATH 4708 do 4709 IFS=$as_save_IFS 4710 test -z "$as_dir" && as_dir=. 4711 for ac_exec_ext in '' $ac_executable_extensions; do 4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4713 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4715 break 2 4716 fi 4717 done 4718 done 4719 IFS=$as_save_IFS 4720 4721 ;; 4722 esac 4723 fi 4724 BASH=$ac_cv_path_BASH 4725 if test -n "$BASH"; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4727 $as_echo "$BASH" >&6; } 4728 else 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730 $as_echo "no" >&6; } 4731 fi 4732 4733 4734 test -n "$BASH" && break 4735 done 4736 4737 else 4738 # The variable is set, but is it from the command line or the environment? 4739 4740 # Try to remove the string !BASH! from our list. 4741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4743 # If it failed, the variable was not from the command line. Ignore it, 4744 # but warn the user (except for BASH, which is always set by the calling BASH). 4745 if test "xBASH" != xBASH; then 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4747 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4748 fi 4749 # Try to locate tool using the code snippet 4750 for ac_prog in bash 4751 do 4752 # Extract the first word of "$ac_prog", so it can be a program name with args. 4753 set dummy $ac_prog; ac_word=$2 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755 $as_echo_n "checking for $ac_word... " >&6; } 4756 if ${ac_cv_path_BASH+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758 else 4759 case $BASH in 4760 [\\/]* | ?:[\\/]*) 4761 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4762 ;; 4763 *) 4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4765 for as_dir in $PATH 4766 do 4767 IFS=$as_save_IFS 4768 test -z "$as_dir" && as_dir=. 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4771 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4773 break 2 4774 fi 4775 done 4776 done 4777 IFS=$as_save_IFS 4778 4779 ;; 4780 esac 4781 fi 4782 BASH=$ac_cv_path_BASH 4783 if test -n "$BASH"; then 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4785 $as_echo "$BASH" >&6; } 4786 else 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4788 $as_echo "no" >&6; } 4789 fi 4790 4791 4792 test -n "$BASH" && break 4793 done 4794 4795 else 4796 # If it succeeded, then it was overridden by the user. We will use it 4797 # for the tool. 4798 4799 # First remove it from the list of overridden variables, so we can test 4800 # for unknown variables in the end. 4801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4802 4803 # Check if the provided tool contains a complete path. 4804 tool_specified="$BASH" 4805 tool_basename="${tool_specified##*/}" 4806 if test "x$tool_basename" = "x$tool_specified"; then 4807 # A command without a complete path is provided, search $PATH. 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4809 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4810 # Extract the first word of "$tool_basename", so it can be a program name with args. 4811 set dummy $tool_basename; ac_word=$2 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4813 $as_echo_n "checking for $ac_word... " >&6; } 4814 if ${ac_cv_path_BASH+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816 else 4817 case $BASH in 4818 [\\/]* | ?:[\\/]*) 4819 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4820 ;; 4821 *) 4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823 for as_dir in $PATH 4824 do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4829 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 4837 ;; 4838 esac 4839 fi 4840 BASH=$ac_cv_path_BASH 4841 if test -n "$BASH"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4843 $as_echo "$BASH" >&6; } 4844 else 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846 $as_echo "no" >&6; } 4847 fi 4848 4849 4850 if test "x$BASH" = x; then 4851 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4852 fi 4853 else 4854 # Otherwise we believe it is a complete path. Use it as it is. 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4856 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4858 $as_echo_n "checking for BASH... " >&6; } 4859 if test ! -x "$tool_specified"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4861 $as_echo "not found" >&6; } 4862 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4863 fi 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4865 $as_echo "$tool_specified" >&6; } 4866 fi 4867 fi 4868 fi 4869 4870 4871 4872 if test "x$BASH" = x; then 4873 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4874 fi 4875 4876 4877 4878 4879 4880 # Publish this variable in the help. 4881 4882 4883 if test "x$CAT" = x; then 4884 # The variable is not set by user, try to locate tool using the code snippet 4885 for ac_prog in cat 4886 do 4887 # Extract the first word of "$ac_prog", so it can be a program name with args. 4888 set dummy $ac_prog; ac_word=$2 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4890 $as_echo_n "checking for $ac_word... " >&6; } 4891 if ${ac_cv_path_CAT+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893 else 4894 case $CAT in 4895 [\\/]* | ?:[\\/]*) 4896 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4897 ;; 4898 *) 4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4900 for as_dir in $PATH 4901 do 4902 IFS=$as_save_IFS 4903 test -z "$as_dir" && as_dir=. 4904 for ac_exec_ext in '' $ac_executable_extensions; do 4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4906 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4908 break 2 4909 fi 4910 done 4911 done 4912 IFS=$as_save_IFS 4913 4914 ;; 4915 esac 4916 fi 4917 CAT=$ac_cv_path_CAT 4918 if test -n "$CAT"; then 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4920 $as_echo "$CAT" >&6; } 4921 else 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4923 $as_echo "no" >&6; } 4924 fi 4925 4926 4927 test -n "$CAT" && break 4928 done 4929 4930 else 4931 # The variable is set, but is it from the command line or the environment? 4932 4933 # Try to remove the string !CAT! from our list. 4934 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4935 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4936 # If it failed, the variable was not from the command line. Ignore it, 4937 # but warn the user (except for BASH, which is always set by the calling BASH). 4938 if test "xCAT" != xBASH; then 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4940 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4941 fi 4942 # Try to locate tool using the code snippet 4943 for ac_prog in cat 4944 do 4945 # Extract the first word of "$ac_prog", so it can be a program name with args. 4946 set dummy $ac_prog; ac_word=$2 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4948 $as_echo_n "checking for $ac_word... " >&6; } 4949 if ${ac_cv_path_CAT+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951 else 4952 case $CAT in 4953 [\\/]* | ?:[\\/]*) 4954 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4955 ;; 4956 *) 4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958 for as_dir in $PATH 4959 do 4960 IFS=$as_save_IFS 4961 test -z "$as_dir" && as_dir=. 4962 for ac_exec_ext in '' $ac_executable_extensions; do 4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4964 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4966 break 2 4967 fi 4968 done 4969 done 4970 IFS=$as_save_IFS 4971 4972 ;; 4973 esac 4974 fi 4975 CAT=$ac_cv_path_CAT 4976 if test -n "$CAT"; then 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4978 $as_echo "$CAT" >&6; } 4979 else 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4981 $as_echo "no" >&6; } 4982 fi 4983 4984 4985 test -n "$CAT" && break 4986 done 4987 4988 else 4989 # If it succeeded, then it was overridden by the user. We will use it 4990 # for the tool. 4991 4992 # First remove it from the list of overridden variables, so we can test 4993 # for unknown variables in the end. 4994 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4995 4996 # Check if the provided tool contains a complete path. 4997 tool_specified="$CAT" 4998 tool_basename="${tool_specified##*/}" 4999 if test "x$tool_basename" = "x$tool_specified"; then 5000 # A command without a complete path is provided, search $PATH. 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5002 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5003 # Extract the first word of "$tool_basename", so it can be a program name with args. 5004 set dummy $tool_basename; ac_word=$2 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5006 $as_echo_n "checking for $ac_word... " >&6; } 5007 if ${ac_cv_path_CAT+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009 else 5010 case $CAT in 5011 [\\/]* | ?:[\\/]*) 5012 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5013 ;; 5014 *) 5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016 for as_dir in $PATH 5017 do 5018 IFS=$as_save_IFS 5019 test -z "$as_dir" && as_dir=. 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5022 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5024 break 2 5025 fi 5026 done 5027 done 5028 IFS=$as_save_IFS 5029 5030 ;; 5031 esac 5032 fi 5033 CAT=$ac_cv_path_CAT 5034 if test -n "$CAT"; then 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5036 $as_echo "$CAT" >&6; } 5037 else 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5039 $as_echo "no" >&6; } 5040 fi 5041 5042 5043 if test "x$CAT" = x; then 5044 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5045 fi 5046 else 5047 # Otherwise we believe it is a complete path. Use it as it is. 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5049 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5051 $as_echo_n "checking for CAT... " >&6; } 5052 if test ! -x "$tool_specified"; then 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5054 $as_echo "not found" >&6; } 5055 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5058 $as_echo "$tool_specified" >&6; } 5059 fi 5060 fi 5061 fi 5062 5063 5064 5065 if test "x$CAT" = x; then 5066 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5067 fi 5068 5069 5070 5071 5072 5073 # Publish this variable in the help. 5074 5075 5076 if test "x$CHMOD" = x; then 5077 # The variable is not set by user, try to locate tool using the code snippet 5078 for ac_prog in chmod 5079 do 5080 # Extract the first word of "$ac_prog", so it can be a program name with args. 5081 set dummy $ac_prog; ac_word=$2 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5083 $as_echo_n "checking for $ac_word... " >&6; } 5084 if ${ac_cv_path_CHMOD+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086 else 5087 case $CHMOD in 5088 [\\/]* | ?:[\\/]*) 5089 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5090 ;; 5091 *) 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093 for as_dir in $PATH 5094 do 5095 IFS=$as_save_IFS 5096 test -z "$as_dir" && as_dir=. 5097 for ac_exec_ext in '' $ac_executable_extensions; do 5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5099 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5101 break 2 5102 fi 5103 done 5104 done 5105 IFS=$as_save_IFS 5106 5107 ;; 5108 esac 5109 fi 5110 CHMOD=$ac_cv_path_CHMOD 5111 if test -n "$CHMOD"; then 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5113 $as_echo "$CHMOD" >&6; } 5114 else 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5116 $as_echo "no" >&6; } 5117 fi 5118 5119 5120 test -n "$CHMOD" && break 5121 done 5122 5123 else 5124 # The variable is set, but is it from the command line or the environment? 5125 5126 # Try to remove the string !CHMOD! from our list. 5127 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5128 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5129 # If it failed, the variable was not from the command line. Ignore it, 5130 # but warn the user (except for BASH, which is always set by the calling BASH). 5131 if test "xCHMOD" != xBASH; then 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5133 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5134 fi 5135 # Try to locate tool using the code snippet 5136 for ac_prog in chmod 5137 do 5138 # Extract the first word of "$ac_prog", so it can be a program name with args. 5139 set dummy $ac_prog; ac_word=$2 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5141 $as_echo_n "checking for $ac_word... " >&6; } 5142 if ${ac_cv_path_CHMOD+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144 else 5145 case $CHMOD in 5146 [\\/]* | ?:[\\/]*) 5147 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5148 ;; 5149 *) 5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151 for as_dir in $PATH 5152 do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_exec_ext in '' $ac_executable_extensions; do 5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5157 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5159 break 2 5160 fi 5161 done 5162 done 5163 IFS=$as_save_IFS 5164 5165 ;; 5166 esac 5167 fi 5168 CHMOD=$ac_cv_path_CHMOD 5169 if test -n "$CHMOD"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5171 $as_echo "$CHMOD" >&6; } 5172 else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174 $as_echo "no" >&6; } 5175 fi 5176 5177 5178 test -n "$CHMOD" && break 5179 done 5180 5181 else 5182 # If it succeeded, then it was overridden by the user. We will use it 5183 # for the tool. 5184 5185 # First remove it from the list of overridden variables, so we can test 5186 # for unknown variables in the end. 5187 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5188 5189 # Check if the provided tool contains a complete path. 5190 tool_specified="$CHMOD" 5191 tool_basename="${tool_specified##*/}" 5192 if test "x$tool_basename" = "x$tool_specified"; then 5193 # A command without a complete path is provided, search $PATH. 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5195 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5196 # Extract the first word of "$tool_basename", so it can be a program name with args. 5197 set dummy $tool_basename; ac_word=$2 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5199 $as_echo_n "checking for $ac_word... " >&6; } 5200 if ${ac_cv_path_CHMOD+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202 else 5203 case $CHMOD in 5204 [\\/]* | ?:[\\/]*) 5205 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5206 ;; 5207 *) 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209 for as_dir in $PATH 5210 do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5215 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219 done 5220 done 5221 IFS=$as_save_IFS 5222 5223 ;; 5224 esac 5225 fi 5226 CHMOD=$ac_cv_path_CHMOD 5227 if test -n "$CHMOD"; then 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5229 $as_echo "$CHMOD" >&6; } 5230 else 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5232 $as_echo "no" >&6; } 5233 fi 5234 5235 5236 if test "x$CHMOD" = x; then 5237 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5238 fi 5239 else 5240 # Otherwise we believe it is a complete path. Use it as it is. 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5242 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5244 $as_echo_n "checking for CHMOD... " >&6; } 5245 if test ! -x "$tool_specified"; then 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5247 $as_echo "not found" >&6; } 5248 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5249 fi 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5251 $as_echo "$tool_specified" >&6; } 5252 fi 5253 fi 5254 fi 5255 5256 5257 5258 if test "x$CHMOD" = x; then 5259 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5260 fi 5261 5262 5263 5264 5265 5266 # Publish this variable in the help. 5267 5268 5269 if test "x$CMP" = x; then 5270 # The variable is not set by user, try to locate tool using the code snippet 5271 for ac_prog in cmp 5272 do 5273 # Extract the first word of "$ac_prog", so it can be a program name with args. 5274 set dummy $ac_prog; ac_word=$2 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5276 $as_echo_n "checking for $ac_word... " >&6; } 5277 if ${ac_cv_path_CMP+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279 else 5280 case $CMP in 5281 [\\/]* | ?:[\\/]*) 5282 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5283 ;; 5284 *) 5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5286 for as_dir in $PATH 5287 do 5288 IFS=$as_save_IFS 5289 test -z "$as_dir" && as_dir=. 5290 for ac_exec_ext in '' $ac_executable_extensions; do 5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5292 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5294 break 2 5295 fi 5296 done 5297 done 5298 IFS=$as_save_IFS 5299 5300 ;; 5301 esac 5302 fi 5303 CMP=$ac_cv_path_CMP 5304 if test -n "$CMP"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5306 $as_echo "$CMP" >&6; } 5307 else 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309 $as_echo "no" >&6; } 5310 fi 5311 5312 5313 test -n "$CMP" && break 5314 done 5315 5316 else 5317 # The variable is set, but is it from the command line or the environment? 5318 5319 # Try to remove the string !CMP! from our list. 5320 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5321 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5322 # If it failed, the variable was not from the command line. Ignore it, 5323 # but warn the user (except for BASH, which is always set by the calling BASH). 5324 if test "xCMP" != xBASH; then 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5326 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5327 fi 5328 # Try to locate tool using the code snippet 5329 for ac_prog in cmp 5330 do 5331 # Extract the first word of "$ac_prog", so it can be a program name with args. 5332 set dummy $ac_prog; ac_word=$2 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334 $as_echo_n "checking for $ac_word... " >&6; } 5335 if ${ac_cv_path_CMP+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337 else 5338 case $CMP in 5339 [\\/]* | ?:[\\/]*) 5340 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5341 ;; 5342 *) 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344 for as_dir in $PATH 5345 do 5346 IFS=$as_save_IFS 5347 test -z "$as_dir" && as_dir=. 5348 for ac_exec_ext in '' $ac_executable_extensions; do 5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5350 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5352 break 2 5353 fi 5354 done 5355 done 5356 IFS=$as_save_IFS 5357 5358 ;; 5359 esac 5360 fi 5361 CMP=$ac_cv_path_CMP 5362 if test -n "$CMP"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5364 $as_echo "$CMP" >&6; } 5365 else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367 $as_echo "no" >&6; } 5368 fi 5369 5370 5371 test -n "$CMP" && break 5372 done 5373 5374 else 5375 # If it succeeded, then it was overridden by the user. We will use it 5376 # for the tool. 5377 5378 # First remove it from the list of overridden variables, so we can test 5379 # for unknown variables in the end. 5380 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5381 5382 # Check if the provided tool contains a complete path. 5383 tool_specified="$CMP" 5384 tool_basename="${tool_specified##*/}" 5385 if test "x$tool_basename" = "x$tool_specified"; then 5386 # A command without a complete path is provided, search $PATH. 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5388 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5389 # Extract the first word of "$tool_basename", so it can be a program name with args. 5390 set dummy $tool_basename; ac_word=$2 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5392 $as_echo_n "checking for $ac_word... " >&6; } 5393 if ${ac_cv_path_CMP+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395 else 5396 case $CMP in 5397 [\\/]* | ?:[\\/]*) 5398 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5399 ;; 5400 *) 5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5402 for as_dir in $PATH 5403 do 5404 IFS=$as_save_IFS 5405 test -z "$as_dir" && as_dir=. 5406 for ac_exec_ext in '' $ac_executable_extensions; do 5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5408 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5410 break 2 5411 fi 5412 done 5413 done 5414 IFS=$as_save_IFS 5415 5416 ;; 5417 esac 5418 fi 5419 CMP=$ac_cv_path_CMP 5420 if test -n "$CMP"; then 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5422 $as_echo "$CMP" >&6; } 5423 else 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5425 $as_echo "no" >&6; } 5426 fi 5427 5428 5429 if test "x$CMP" = x; then 5430 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5431 fi 5432 else 5433 # Otherwise we believe it is a complete path. Use it as it is. 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5435 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5437 $as_echo_n "checking for CMP... " >&6; } 5438 if test ! -x "$tool_specified"; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5440 $as_echo "not found" >&6; } 5441 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5442 fi 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5444 $as_echo "$tool_specified" >&6; } 5445 fi 5446 fi 5447 fi 5448 5449 5450 5451 if test "x$CMP" = x; then 5452 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5453 fi 5454 5455 5456 5457 5458 5459 # Publish this variable in the help. 5460 5461 5462 if test "x$COMM" = x; then 5463 # The variable is not set by user, try to locate tool using the code snippet 5464 for ac_prog in comm 5465 do 5466 # Extract the first word of "$ac_prog", so it can be a program name with args. 5467 set dummy $ac_prog; ac_word=$2 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469 $as_echo_n "checking for $ac_word... " >&6; } 5470 if ${ac_cv_path_COMM+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472 else 5473 case $COMM in 5474 [\\/]* | ?:[\\/]*) 5475 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5476 ;; 5477 *) 5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5479 for as_dir in $PATH 5480 do 5481 IFS=$as_save_IFS 5482 test -z "$as_dir" && as_dir=. 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5485 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5487 break 2 5488 fi 5489 done 5490 done 5491 IFS=$as_save_IFS 5492 5493 ;; 5494 esac 5495 fi 5496 COMM=$ac_cv_path_COMM 5497 if test -n "$COMM"; then 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5499 $as_echo "$COMM" >&6; } 5500 else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502 $as_echo "no" >&6; } 5503 fi 5504 5505 5506 test -n "$COMM" && break 5507 done 5508 5509 else 5510 # The variable is set, but is it from the command line or the environment? 5511 5512 # Try to remove the string !COMM! from our list. 5513 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5514 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5515 # If it failed, the variable was not from the command line. Ignore it, 5516 # but warn the user (except for BASH, which is always set by the calling BASH). 5517 if test "xCOMM" != xBASH; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5519 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5520 fi 5521 # Try to locate tool using the code snippet 5522 for ac_prog in comm 5523 do 5524 # Extract the first word of "$ac_prog", so it can be a program name with args. 5525 set dummy $ac_prog; ac_word=$2 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527 $as_echo_n "checking for $ac_word... " >&6; } 5528 if ${ac_cv_path_COMM+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530 else 5531 case $COMM in 5532 [\\/]* | ?:[\\/]*) 5533 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5534 ;; 5535 *) 5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537 for as_dir in $PATH 5538 do 5539 IFS=$as_save_IFS 5540 test -z "$as_dir" && as_dir=. 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5543 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5545 break 2 5546 fi 5547 done 5548 done 5549 IFS=$as_save_IFS 5550 5551 ;; 5552 esac 5553 fi 5554 COMM=$ac_cv_path_COMM 5555 if test -n "$COMM"; then 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5557 $as_echo "$COMM" >&6; } 5558 else 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5560 $as_echo "no" >&6; } 5561 fi 5562 5563 5564 test -n "$COMM" && break 5565 done 5566 5567 else 5568 # If it succeeded, then it was overridden by the user. We will use it 5569 # for the tool. 5570 5571 # First remove it from the list of overridden variables, so we can test 5572 # for unknown variables in the end. 5573 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5574 5575 # Check if the provided tool contains a complete path. 5576 tool_specified="$COMM" 5577 tool_basename="${tool_specified##*/}" 5578 if test "x$tool_basename" = "x$tool_specified"; then 5579 # A command without a complete path is provided, search $PATH. 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5581 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5582 # Extract the first word of "$tool_basename", so it can be a program name with args. 5583 set dummy $tool_basename; ac_word=$2 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5585 $as_echo_n "checking for $ac_word... " >&6; } 5586 if ${ac_cv_path_COMM+:} false; then : 5587 $as_echo_n "(cached) " >&6 5588 else 5589 case $COMM in 5590 [\\/]* | ?:[\\/]*) 5591 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5592 ;; 5593 *) 5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595 for as_dir in $PATH 5596 do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5601 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5603 break 2 5604 fi 5605 done 5606 done 5607 IFS=$as_save_IFS 5608 5609 ;; 5610 esac 5611 fi 5612 COMM=$ac_cv_path_COMM 5613 if test -n "$COMM"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5615 $as_echo "$COMM" >&6; } 5616 else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618 $as_echo "no" >&6; } 5619 fi 5620 5621 5622 if test "x$COMM" = x; then 5623 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5624 fi 5625 else 5626 # Otherwise we believe it is a complete path. Use it as it is. 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5628 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5630 $as_echo_n "checking for COMM... " >&6; } 5631 if test ! -x "$tool_specified"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5633 $as_echo "not found" >&6; } 5634 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5635 fi 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5637 $as_echo "$tool_specified" >&6; } 5638 fi 5639 fi 5640 fi 5641 5642 5643 5644 if test "x$COMM" = x; then 5645 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5646 fi 5647 5648 5649 5650 5651 5652 # Publish this variable in the help. 5653 5654 5655 if test "x$CP" = x; then 5656 # The variable is not set by user, try to locate tool using the code snippet 5657 for ac_prog in cp 5658 do 5659 # Extract the first word of "$ac_prog", so it can be a program name with args. 5660 set dummy $ac_prog; ac_word=$2 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662 $as_echo_n "checking for $ac_word... " >&6; } 5663 if ${ac_cv_path_CP+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665 else 5666 case $CP in 5667 [\\/]* | ?:[\\/]*) 5668 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5669 ;; 5670 *) 5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672 for as_dir in $PATH 5673 do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682 done 5683 done 5684 IFS=$as_save_IFS 5685 5686 ;; 5687 esac 5688 fi 5689 CP=$ac_cv_path_CP 5690 if test -n "$CP"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5692 $as_echo "$CP" >&6; } 5693 else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695 $as_echo "no" >&6; } 5696 fi 5697 5698 5699 test -n "$CP" && break 5700 done 5701 5702 else 5703 # The variable is set, but is it from the command line or the environment? 5704 5705 # Try to remove the string !CP! from our list. 5706 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5707 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5708 # If it failed, the variable was not from the command line. Ignore it, 5709 # but warn the user (except for BASH, which is always set by the calling BASH). 5710 if test "xCP" != xBASH; then 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5712 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5713 fi 5714 # Try to locate tool using the code snippet 5715 for ac_prog in cp 5716 do 5717 # Extract the first word of "$ac_prog", so it can be a program name with args. 5718 set dummy $ac_prog; ac_word=$2 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5720 $as_echo_n "checking for $ac_word... " >&6; } 5721 if ${ac_cv_path_CP+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723 else 5724 case $CP in 5725 [\\/]* | ?:[\\/]*) 5726 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5727 ;; 5728 *) 5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730 for as_dir in $PATH 5731 do 5732 IFS=$as_save_IFS 5733 test -z "$as_dir" && as_dir=. 5734 for ac_exec_ext in '' $ac_executable_extensions; do 5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5736 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5738 break 2 5739 fi 5740 done 5741 done 5742 IFS=$as_save_IFS 5743 5744 ;; 5745 esac 5746 fi 5747 CP=$ac_cv_path_CP 5748 if test -n "$CP"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5750 $as_echo "$CP" >&6; } 5751 else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753 $as_echo "no" >&6; } 5754 fi 5755 5756 5757 test -n "$CP" && break 5758 done 5759 5760 else 5761 # If it succeeded, then it was overridden by the user. We will use it 5762 # for the tool. 5763 5764 # First remove it from the list of overridden variables, so we can test 5765 # for unknown variables in the end. 5766 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5767 5768 # Check if the provided tool contains a complete path. 5769 tool_specified="$CP" 5770 tool_basename="${tool_specified##*/}" 5771 if test "x$tool_basename" = "x$tool_specified"; then 5772 # A command without a complete path is provided, search $PATH. 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5774 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5775 # Extract the first word of "$tool_basename", so it can be a program name with args. 5776 set dummy $tool_basename; ac_word=$2 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5778 $as_echo_n "checking for $ac_word... " >&6; } 5779 if ${ac_cv_path_CP+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781 else 5782 case $CP in 5783 [\\/]* | ?:[\\/]*) 5784 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5785 ;; 5786 *) 5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788 for as_dir in $PATH 5789 do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5794 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798 done 5799 done 5800 IFS=$as_save_IFS 5801 5802 ;; 5803 esac 5804 fi 5805 CP=$ac_cv_path_CP 5806 if test -n "$CP"; then 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5808 $as_echo "$CP" >&6; } 5809 else 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5811 $as_echo "no" >&6; } 5812 fi 5813 5814 5815 if test "x$CP" = x; then 5816 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5817 fi 5818 else 5819 # Otherwise we believe it is a complete path. Use it as it is. 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5821 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5823 $as_echo_n "checking for CP... " >&6; } 5824 if test ! -x "$tool_specified"; then 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5826 $as_echo "not found" >&6; } 5827 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5828 fi 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5830 $as_echo "$tool_specified" >&6; } 5831 fi 5832 fi 5833 fi 5834 5835 5836 5837 if test "x$CP" = x; then 5838 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5839 fi 5840 5841 5842 5843 5844 5845 # Publish this variable in the help. 5846 5847 5848 if test "x$CUT" = x; then 5849 # The variable is not set by user, try to locate tool using the code snippet 5850 for ac_prog in cut 5851 do 5852 # Extract the first word of "$ac_prog", so it can be a program name with args. 5853 set dummy $ac_prog; ac_word=$2 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5855 $as_echo_n "checking for $ac_word... " >&6; } 5856 if ${ac_cv_path_CUT+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858 else 5859 case $CUT in 5860 [\\/]* | ?:[\\/]*) 5861 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5862 ;; 5863 *) 5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865 for as_dir in $PATH 5866 do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5871 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875 done 5876 done 5877 IFS=$as_save_IFS 5878 5879 ;; 5880 esac 5881 fi 5882 CUT=$ac_cv_path_CUT 5883 if test -n "$CUT"; then 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5885 $as_echo "$CUT" >&6; } 5886 else 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5888 $as_echo "no" >&6; } 5889 fi 5890 5891 5892 test -n "$CUT" && break 5893 done 5894 5895 else 5896 # The variable is set, but is it from the command line or the environment? 5897 5898 # Try to remove the string !CUT! from our list. 5899 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5900 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5901 # If it failed, the variable was not from the command line. Ignore it, 5902 # but warn the user (except for BASH, which is always set by the calling BASH). 5903 if test "xCUT" != xBASH; then 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5905 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5906 fi 5907 # Try to locate tool using the code snippet 5908 for ac_prog in cut 5909 do 5910 # Extract the first word of "$ac_prog", so it can be a program name with args. 5911 set dummy $ac_prog; ac_word=$2 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913 $as_echo_n "checking for $ac_word... " >&6; } 5914 if ${ac_cv_path_CUT+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916 else 5917 case $CUT in 5918 [\\/]* | ?:[\\/]*) 5919 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5920 ;; 5921 *) 5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5923 for as_dir in $PATH 5924 do 5925 IFS=$as_save_IFS 5926 test -z "$as_dir" && as_dir=. 5927 for ac_exec_ext in '' $ac_executable_extensions; do 5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5929 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5931 break 2 5932 fi 5933 done 5934 done 5935 IFS=$as_save_IFS 5936 5937 ;; 5938 esac 5939 fi 5940 CUT=$ac_cv_path_CUT 5941 if test -n "$CUT"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5943 $as_echo "$CUT" >&6; } 5944 else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946 $as_echo "no" >&6; } 5947 fi 5948 5949 5950 test -n "$CUT" && break 5951 done 5952 5953 else 5954 # If it succeeded, then it was overridden by the user. We will use it 5955 # for the tool. 5956 5957 # First remove it from the list of overridden variables, so we can test 5958 # for unknown variables in the end. 5959 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5960 5961 # Check if the provided tool contains a complete path. 5962 tool_specified="$CUT" 5963 tool_basename="${tool_specified##*/}" 5964 if test "x$tool_basename" = "x$tool_specified"; then 5965 # A command without a complete path is provided, search $PATH. 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5967 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5968 # Extract the first word of "$tool_basename", so it can be a program name with args. 5969 set dummy $tool_basename; ac_word=$2 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971 $as_echo_n "checking for $ac_word... " >&6; } 5972 if ${ac_cv_path_CUT+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974 else 5975 case $CUT in 5976 [\\/]* | ?:[\\/]*) 5977 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5978 ;; 5979 *) 5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5981 for as_dir in $PATH 5982 do 5983 IFS=$as_save_IFS 5984 test -z "$as_dir" && as_dir=. 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5987 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991 done 5992 done 5993 IFS=$as_save_IFS 5994 5995 ;; 5996 esac 5997 fi 5998 CUT=$ac_cv_path_CUT 5999 if test -n "$CUT"; then 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6001 $as_echo "$CUT" >&6; } 6002 else 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6004 $as_echo "no" >&6; } 6005 fi 6006 6007 6008 if test "x$CUT" = x; then 6009 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6010 fi 6011 else 6012 # Otherwise we believe it is a complete path. Use it as it is. 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6014 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6016 $as_echo_n "checking for CUT... " >&6; } 6017 if test ! -x "$tool_specified"; then 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6019 $as_echo "not found" >&6; } 6020 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6021 fi 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6023 $as_echo "$tool_specified" >&6; } 6024 fi 6025 fi 6026 fi 6027 6028 6029 6030 if test "x$CUT" = x; then 6031 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6032 fi 6033 6034 6035 6036 6037 6038 # Publish this variable in the help. 6039 6040 6041 if test "x$DATE" = x; then 6042 # The variable is not set by user, try to locate tool using the code snippet 6043 for ac_prog in date 6044 do 6045 # Extract the first word of "$ac_prog", so it can be a program name with args. 6046 set dummy $ac_prog; ac_word=$2 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048 $as_echo_n "checking for $ac_word... " >&6; } 6049 if ${ac_cv_path_DATE+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051 else 6052 case $DATE in 6053 [\\/]* | ?:[\\/]*) 6054 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6055 ;; 6056 *) 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058 for as_dir in $PATH 6059 do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068 done 6069 done 6070 IFS=$as_save_IFS 6071 6072 ;; 6073 esac 6074 fi 6075 DATE=$ac_cv_path_DATE 6076 if test -n "$DATE"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6078 $as_echo "$DATE" >&6; } 6079 else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081 $as_echo "no" >&6; } 6082 fi 6083 6084 6085 test -n "$DATE" && break 6086 done 6087 6088 else 6089 # The variable is set, but is it from the command line or the environment? 6090 6091 # Try to remove the string !DATE! from our list. 6092 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6093 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6094 # If it failed, the variable was not from the command line. Ignore it, 6095 # but warn the user (except for BASH, which is always set by the calling BASH). 6096 if test "xDATE" != xBASH; then 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6098 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6099 fi 6100 # Try to locate tool using the code snippet 6101 for ac_prog in date 6102 do 6103 # Extract the first word of "$ac_prog", so it can be a program name with args. 6104 set dummy $ac_prog; ac_word=$2 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6106 $as_echo_n "checking for $ac_word... " >&6; } 6107 if ${ac_cv_path_DATE+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109 else 6110 case $DATE in 6111 [\\/]* | ?:[\\/]*) 6112 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6113 ;; 6114 *) 6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116 for as_dir in $PATH 6117 do 6118 IFS=$as_save_IFS 6119 test -z "$as_dir" && as_dir=. 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6122 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6124 break 2 6125 fi 6126 done 6127 done 6128 IFS=$as_save_IFS 6129 6130 ;; 6131 esac 6132 fi 6133 DATE=$ac_cv_path_DATE 6134 if test -n "$DATE"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6136 $as_echo "$DATE" >&6; } 6137 else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139 $as_echo "no" >&6; } 6140 fi 6141 6142 6143 test -n "$DATE" && break 6144 done 6145 6146 else 6147 # If it succeeded, then it was overridden by the user. We will use it 6148 # for the tool. 6149 6150 # First remove it from the list of overridden variables, so we can test 6151 # for unknown variables in the end. 6152 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6153 6154 # Check if the provided tool contains a complete path. 6155 tool_specified="$DATE" 6156 tool_basename="${tool_specified##*/}" 6157 if test "x$tool_basename" = "x$tool_specified"; then 6158 # A command without a complete path is provided, search $PATH. 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6160 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6161 # Extract the first word of "$tool_basename", so it can be a program name with args. 6162 set dummy $tool_basename; ac_word=$2 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6164 $as_echo_n "checking for $ac_word... " >&6; } 6165 if ${ac_cv_path_DATE+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167 else 6168 case $DATE in 6169 [\\/]* | ?:[\\/]*) 6170 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6171 ;; 6172 *) 6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6174 for as_dir in $PATH 6175 do 6176 IFS=$as_save_IFS 6177 test -z "$as_dir" && as_dir=. 6178 for ac_exec_ext in '' $ac_executable_extensions; do 6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6180 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6182 break 2 6183 fi 6184 done 6185 done 6186 IFS=$as_save_IFS 6187 6188 ;; 6189 esac 6190 fi 6191 DATE=$ac_cv_path_DATE 6192 if test -n "$DATE"; then 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6194 $as_echo "$DATE" >&6; } 6195 else 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6197 $as_echo "no" >&6; } 6198 fi 6199 6200 6201 if test "x$DATE" = x; then 6202 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6203 fi 6204 else 6205 # Otherwise we believe it is a complete path. Use it as it is. 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6207 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6209 $as_echo_n "checking for DATE... " >&6; } 6210 if test ! -x "$tool_specified"; then 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6212 $as_echo "not found" >&6; } 6213 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6214 fi 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6216 $as_echo "$tool_specified" >&6; } 6217 fi 6218 fi 6219 fi 6220 6221 6222 6223 if test "x$DATE" = x; then 6224 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6225 fi 6226 6227 6228 6229 6230 6231 # Publish this variable in the help. 6232 6233 6234 if test "x$DIFF" = x; then 6235 # The variable is not set by user, try to locate tool using the code snippet 6236 for ac_prog in gdiff diff 6237 do 6238 # Extract the first word of "$ac_prog", so it can be a program name with args. 6239 set dummy $ac_prog; ac_word=$2 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241 $as_echo_n "checking for $ac_word... " >&6; } 6242 if ${ac_cv_path_DIFF+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244 else 6245 case $DIFF in 6246 [\\/]* | ?:[\\/]*) 6247 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6248 ;; 6249 *) 6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251 for as_dir in $PATH 6252 do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6257 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261 done 6262 done 6263 IFS=$as_save_IFS 6264 6265 ;; 6266 esac 6267 fi 6268 DIFF=$ac_cv_path_DIFF 6269 if test -n "$DIFF"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6271 $as_echo "$DIFF" >&6; } 6272 else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274 $as_echo "no" >&6; } 6275 fi 6276 6277 6278 test -n "$DIFF" && break 6279 done 6280 6281 else 6282 # The variable is set, but is it from the command line or the environment? 6283 6284 # Try to remove the string !DIFF! from our list. 6285 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6286 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6287 # If it failed, the variable was not from the command line. Ignore it, 6288 # but warn the user (except for BASH, which is always set by the calling BASH). 6289 if test "xDIFF" != xBASH; then 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6291 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6292 fi 6293 # Try to locate tool using the code snippet 6294 for ac_prog in gdiff diff 6295 do 6296 # Extract the first word of "$ac_prog", so it can be a program name with args. 6297 set dummy $ac_prog; ac_word=$2 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6299 $as_echo_n "checking for $ac_word... " >&6; } 6300 if ${ac_cv_path_DIFF+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302 else 6303 case $DIFF in 6304 [\\/]* | ?:[\\/]*) 6305 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6306 ;; 6307 *) 6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309 for as_dir in $PATH 6310 do 6311 IFS=$as_save_IFS 6312 test -z "$as_dir" && as_dir=. 6313 for ac_exec_ext in '' $ac_executable_extensions; do 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6315 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6317 break 2 6318 fi 6319 done 6320 done 6321 IFS=$as_save_IFS 6322 6323 ;; 6324 esac 6325 fi 6326 DIFF=$ac_cv_path_DIFF 6327 if test -n "$DIFF"; then 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6329 $as_echo "$DIFF" >&6; } 6330 else 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332 $as_echo "no" >&6; } 6333 fi 6334 6335 6336 test -n "$DIFF" && break 6337 done 6338 6339 else 6340 # If it succeeded, then it was overridden by the user. We will use it 6341 # for the tool. 6342 6343 # First remove it from the list of overridden variables, so we can test 6344 # for unknown variables in the end. 6345 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6346 6347 # Check if the provided tool contains a complete path. 6348 tool_specified="$DIFF" 6349 tool_basename="${tool_specified##*/}" 6350 if test "x$tool_basename" = "x$tool_specified"; then 6351 # A command without a complete path is provided, search $PATH. 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6353 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6354 # Extract the first word of "$tool_basename", so it can be a program name with args. 6355 set dummy $tool_basename; ac_word=$2 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6357 $as_echo_n "checking for $ac_word... " >&6; } 6358 if ${ac_cv_path_DIFF+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360 else 6361 case $DIFF in 6362 [\\/]* | ?:[\\/]*) 6363 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6364 ;; 6365 *) 6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6367 for as_dir in $PATH 6368 do 6369 IFS=$as_save_IFS 6370 test -z "$as_dir" && as_dir=. 6371 for ac_exec_ext in '' $ac_executable_extensions; do 6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6373 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6375 break 2 6376 fi 6377 done 6378 done 6379 IFS=$as_save_IFS 6380 6381 ;; 6382 esac 6383 fi 6384 DIFF=$ac_cv_path_DIFF 6385 if test -n "$DIFF"; then 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6387 $as_echo "$DIFF" >&6; } 6388 else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6390 $as_echo "no" >&6; } 6391 fi 6392 6393 6394 if test "x$DIFF" = x; then 6395 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6396 fi 6397 else 6398 # Otherwise we believe it is a complete path. Use it as it is. 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6400 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6402 $as_echo_n "checking for DIFF... " >&6; } 6403 if test ! -x "$tool_specified"; then 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6405 $as_echo "not found" >&6; } 6406 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6407 fi 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6409 $as_echo "$tool_specified" >&6; } 6410 fi 6411 fi 6412 fi 6413 6414 6415 6416 if test "x$DIFF" = x; then 6417 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6418 fi 6419 6420 6421 6422 6423 6424 # Publish this variable in the help. 6425 6426 6427 if test "x$DIRNAME" = x; then 6428 # The variable is not set by user, try to locate tool using the code snippet 6429 for ac_prog in dirname 6430 do 6431 # Extract the first word of "$ac_prog", so it can be a program name with args. 6432 set dummy $ac_prog; ac_word=$2 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434 $as_echo_n "checking for $ac_word... " >&6; } 6435 if ${ac_cv_path_DIRNAME+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437 else 6438 case $DIRNAME in 6439 [\\/]* | ?:[\\/]*) 6440 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6441 ;; 6442 *) 6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444 for as_dir in $PATH 6445 do 6446 IFS=$as_save_IFS 6447 test -z "$as_dir" && as_dir=. 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6450 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454 done 6455 done 6456 IFS=$as_save_IFS 6457 6458 ;; 6459 esac 6460 fi 6461 DIRNAME=$ac_cv_path_DIRNAME 6462 if test -n "$DIRNAME"; then 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6464 $as_echo "$DIRNAME" >&6; } 6465 else 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467 $as_echo "no" >&6; } 6468 fi 6469 6470 6471 test -n "$DIRNAME" && break 6472 done 6473 6474 else 6475 # The variable is set, but is it from the command line or the environment? 6476 6477 # Try to remove the string !DIRNAME! from our list. 6478 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6479 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6480 # If it failed, the variable was not from the command line. Ignore it, 6481 # but warn the user (except for BASH, which is always set by the calling BASH). 6482 if test "xDIRNAME" != xBASH; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6484 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6485 fi 6486 # Try to locate tool using the code snippet 6487 for ac_prog in dirname 6488 do 6489 # Extract the first word of "$ac_prog", so it can be a program name with args. 6490 set dummy $ac_prog; ac_word=$2 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6492 $as_echo_n "checking for $ac_word... " >&6; } 6493 if ${ac_cv_path_DIRNAME+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495 else 6496 case $DIRNAME in 6497 [\\/]* | ?:[\\/]*) 6498 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6499 ;; 6500 *) 6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502 for as_dir in $PATH 6503 do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6508 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512 done 6513 done 6514 IFS=$as_save_IFS 6515 6516 ;; 6517 esac 6518 fi 6519 DIRNAME=$ac_cv_path_DIRNAME 6520 if test -n "$DIRNAME"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6522 $as_echo "$DIRNAME" >&6; } 6523 else 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6525 $as_echo "no" >&6; } 6526 fi 6527 6528 6529 test -n "$DIRNAME" && break 6530 done 6531 6532 else 6533 # If it succeeded, then it was overridden by the user. We will use it 6534 # for the tool. 6535 6536 # First remove it from the list of overridden variables, so we can test 6537 # for unknown variables in the end. 6538 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6539 6540 # Check if the provided tool contains a complete path. 6541 tool_specified="$DIRNAME" 6542 tool_basename="${tool_specified##*/}" 6543 if test "x$tool_basename" = "x$tool_specified"; then 6544 # A command without a complete path is provided, search $PATH. 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6546 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6547 # Extract the first word of "$tool_basename", so it can be a program name with args. 6548 set dummy $tool_basename; ac_word=$2 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6550 $as_echo_n "checking for $ac_word... " >&6; } 6551 if ${ac_cv_path_DIRNAME+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553 else 6554 case $DIRNAME in 6555 [\\/]* | ?:[\\/]*) 6556 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6557 ;; 6558 *) 6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560 for as_dir in $PATH 6561 do 6562 IFS=$as_save_IFS 6563 test -z "$as_dir" && as_dir=. 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6566 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570 done 6571 done 6572 IFS=$as_save_IFS 6573 6574 ;; 6575 esac 6576 fi 6577 DIRNAME=$ac_cv_path_DIRNAME 6578 if test -n "$DIRNAME"; then 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6580 $as_echo "$DIRNAME" >&6; } 6581 else 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6583 $as_echo "no" >&6; } 6584 fi 6585 6586 6587 if test "x$DIRNAME" = x; then 6588 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6589 fi 6590 else 6591 # Otherwise we believe it is a complete path. Use it as it is. 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6593 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6595 $as_echo_n "checking for DIRNAME... " >&6; } 6596 if test ! -x "$tool_specified"; then 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6598 $as_echo "not found" >&6; } 6599 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6600 fi 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6602 $as_echo "$tool_specified" >&6; } 6603 fi 6604 fi 6605 fi 6606 6607 6608 6609 if test "x$DIRNAME" = x; then 6610 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6611 fi 6612 6613 6614 6615 6616 6617 # Publish this variable in the help. 6618 6619 6620 if test "x$ECHO" = x; then 6621 # The variable is not set by user, try to locate tool using the code snippet 6622 for ac_prog in echo 6623 do 6624 # Extract the first word of "$ac_prog", so it can be a program name with args. 6625 set dummy $ac_prog; ac_word=$2 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627 $as_echo_n "checking for $ac_word... " >&6; } 6628 if ${ac_cv_path_ECHO+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630 else 6631 case $ECHO in 6632 [\\/]* | ?:[\\/]*) 6633 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6634 ;; 6635 *) 6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637 for as_dir in $PATH 6638 do 6639 IFS=$as_save_IFS 6640 test -z "$as_dir" && as_dir=. 6641 for ac_exec_ext in '' $ac_executable_extensions; do 6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6643 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6645 break 2 6646 fi 6647 done 6648 done 6649 IFS=$as_save_IFS 6650 6651 ;; 6652 esac 6653 fi 6654 ECHO=$ac_cv_path_ECHO 6655 if test -n "$ECHO"; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6657 $as_echo "$ECHO" >&6; } 6658 else 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6660 $as_echo "no" >&6; } 6661 fi 6662 6663 6664 test -n "$ECHO" && break 6665 done 6666 6667 else 6668 # The variable is set, but is it from the command line or the environment? 6669 6670 # Try to remove the string !ECHO! from our list. 6671 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6672 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6673 # If it failed, the variable was not from the command line. Ignore it, 6674 # but warn the user (except for BASH, which is always set by the calling BASH). 6675 if test "xECHO" != xBASH; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6677 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6678 fi 6679 # Try to locate tool using the code snippet 6680 for ac_prog in echo 6681 do 6682 # Extract the first word of "$ac_prog", so it can be a program name with args. 6683 set dummy $ac_prog; ac_word=$2 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685 $as_echo_n "checking for $ac_word... " >&6; } 6686 if ${ac_cv_path_ECHO+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688 else 6689 case $ECHO in 6690 [\\/]* | ?:[\\/]*) 6691 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6692 ;; 6693 *) 6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695 for as_dir in $PATH 6696 do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705 done 6706 done 6707 IFS=$as_save_IFS 6708 6709 ;; 6710 esac 6711 fi 6712 ECHO=$ac_cv_path_ECHO 6713 if test -n "$ECHO"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6715 $as_echo "$ECHO" >&6; } 6716 else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718 $as_echo "no" >&6; } 6719 fi 6720 6721 6722 test -n "$ECHO" && break 6723 done 6724 6725 else 6726 # If it succeeded, then it was overridden by the user. We will use it 6727 # for the tool. 6728 6729 # First remove it from the list of overridden variables, so we can test 6730 # for unknown variables in the end. 6731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6732 6733 # Check if the provided tool contains a complete path. 6734 tool_specified="$ECHO" 6735 tool_basename="${tool_specified##*/}" 6736 if test "x$tool_basename" = "x$tool_specified"; then 6737 # A command without a complete path is provided, search $PATH. 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6739 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6740 # Extract the first word of "$tool_basename", so it can be a program name with args. 6741 set dummy $tool_basename; ac_word=$2 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6743 $as_echo_n "checking for $ac_word... " >&6; } 6744 if ${ac_cv_path_ECHO+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746 else 6747 case $ECHO in 6748 [\\/]* | ?:[\\/]*) 6749 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6750 ;; 6751 *) 6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753 for as_dir in $PATH 6754 do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763 done 6764 done 6765 IFS=$as_save_IFS 6766 6767 ;; 6768 esac 6769 fi 6770 ECHO=$ac_cv_path_ECHO 6771 if test -n "$ECHO"; then 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6773 $as_echo "$ECHO" >&6; } 6774 else 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6776 $as_echo "no" >&6; } 6777 fi 6778 6779 6780 if test "x$ECHO" = x; then 6781 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6782 fi 6783 else 6784 # Otherwise we believe it is a complete path. Use it as it is. 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6786 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6788 $as_echo_n "checking for ECHO... " >&6; } 6789 if test ! -x "$tool_specified"; then 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6791 $as_echo "not found" >&6; } 6792 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6793 fi 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6795 $as_echo "$tool_specified" >&6; } 6796 fi 6797 fi 6798 fi 6799 6800 6801 6802 if test "x$ECHO" = x; then 6803 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6804 fi 6805 6806 6807 6808 6809 6810 # Publish this variable in the help. 6811 6812 6813 if test "x$EXPR" = x; then 6814 # The variable is not set by user, try to locate tool using the code snippet 6815 for ac_prog in expr 6816 do 6817 # Extract the first word of "$ac_prog", so it can be a program name with args. 6818 set dummy $ac_prog; ac_word=$2 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6820 $as_echo_n "checking for $ac_word... " >&6; } 6821 if ${ac_cv_path_EXPR+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823 else 6824 case $EXPR in 6825 [\\/]* | ?:[\\/]*) 6826 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6827 ;; 6828 *) 6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6830 for as_dir in $PATH 6831 do 6832 IFS=$as_save_IFS 6833 test -z "$as_dir" && as_dir=. 6834 for ac_exec_ext in '' $ac_executable_extensions; do 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6836 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6838 break 2 6839 fi 6840 done 6841 done 6842 IFS=$as_save_IFS 6843 6844 ;; 6845 esac 6846 fi 6847 EXPR=$ac_cv_path_EXPR 6848 if test -n "$EXPR"; then 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6850 $as_echo "$EXPR" >&6; } 6851 else 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6853 $as_echo "no" >&6; } 6854 fi 6855 6856 6857 test -n "$EXPR" && break 6858 done 6859 6860 else 6861 # The variable is set, but is it from the command line or the environment? 6862 6863 # Try to remove the string !EXPR! from our list. 6864 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6865 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6866 # If it failed, the variable was not from the command line. Ignore it, 6867 # but warn the user (except for BASH, which is always set by the calling BASH). 6868 if test "xEXPR" != xBASH; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6870 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6871 fi 6872 # Try to locate tool using the code snippet 6873 for ac_prog in expr 6874 do 6875 # Extract the first word of "$ac_prog", so it can be a program name with args. 6876 set dummy $ac_prog; ac_word=$2 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6878 $as_echo_n "checking for $ac_word... " >&6; } 6879 if ${ac_cv_path_EXPR+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881 else 6882 case $EXPR in 6883 [\\/]* | ?:[\\/]*) 6884 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6885 ;; 6886 *) 6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888 for as_dir in $PATH 6889 do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6894 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898 done 6899 done 6900 IFS=$as_save_IFS 6901 6902 ;; 6903 esac 6904 fi 6905 EXPR=$ac_cv_path_EXPR 6906 if test -n "$EXPR"; then 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6908 $as_echo "$EXPR" >&6; } 6909 else 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6911 $as_echo "no" >&6; } 6912 fi 6913 6914 6915 test -n "$EXPR" && break 6916 done 6917 6918 else 6919 # If it succeeded, then it was overridden by the user. We will use it 6920 # for the tool. 6921 6922 # First remove it from the list of overridden variables, so we can test 6923 # for unknown variables in the end. 6924 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6925 6926 # Check if the provided tool contains a complete path. 6927 tool_specified="$EXPR" 6928 tool_basename="${tool_specified##*/}" 6929 if test "x$tool_basename" = "x$tool_specified"; then 6930 # A command without a complete path is provided, search $PATH. 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6932 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6933 # Extract the first word of "$tool_basename", so it can be a program name with args. 6934 set dummy $tool_basename; ac_word=$2 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6936 $as_echo_n "checking for $ac_word... " >&6; } 6937 if ${ac_cv_path_EXPR+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939 else 6940 case $EXPR in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946 for as_dir in $PATH 6947 do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956 done 6957 done 6958 IFS=$as_save_IFS 6959 6960 ;; 6961 esac 6962 fi 6963 EXPR=$ac_cv_path_EXPR 6964 if test -n "$EXPR"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6966 $as_echo "$EXPR" >&6; } 6967 else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969 $as_echo "no" >&6; } 6970 fi 6971 6972 6973 if test "x$EXPR" = x; then 6974 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6975 fi 6976 else 6977 # Otherwise we believe it is a complete path. Use it as it is. 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6979 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6981 $as_echo_n "checking for EXPR... " >&6; } 6982 if test ! -x "$tool_specified"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6984 $as_echo "not found" >&6; } 6985 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6986 fi 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6988 $as_echo "$tool_specified" >&6; } 6989 fi 6990 fi 6991 fi 6992 6993 6994 6995 if test "x$EXPR" = x; then 6996 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6997 fi 6998 6999 7000 7001 7002 7003 # Publish this variable in the help. 7004 7005 7006 if test "x$FILE" = x; then 7007 # The variable is not set by user, try to locate tool using the code snippet 7008 for ac_prog in file 7009 do 7010 # Extract the first word of "$ac_prog", so it can be a program name with args. 7011 set dummy $ac_prog; ac_word=$2 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7013 $as_echo_n "checking for $ac_word... " >&6; } 7014 if ${ac_cv_path_FILE+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016 else 7017 case $FILE in 7018 [\\/]* | ?:[\\/]*) 7019 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7020 ;; 7021 *) 7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7023 for as_dir in $PATH 7024 do 7025 IFS=$as_save_IFS 7026 test -z "$as_dir" && as_dir=. 7027 for ac_exec_ext in '' $ac_executable_extensions; do 7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7029 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7031 break 2 7032 fi 7033 done 7034 done 7035 IFS=$as_save_IFS 7036 7037 ;; 7038 esac 7039 fi 7040 FILE=$ac_cv_path_FILE 7041 if test -n "$FILE"; then 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7043 $as_echo "$FILE" >&6; } 7044 else 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7046 $as_echo "no" >&6; } 7047 fi 7048 7049 7050 test -n "$FILE" && break 7051 done 7052 7053 else 7054 # The variable is set, but is it from the command line or the environment? 7055 7056 # Try to remove the string !FILE! from our list. 7057 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7058 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7059 # If it failed, the variable was not from the command line. Ignore it, 7060 # but warn the user (except for BASH, which is always set by the calling BASH). 7061 if test "xFILE" != xBASH; then 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7063 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7064 fi 7065 # Try to locate tool using the code snippet 7066 for ac_prog in file 7067 do 7068 # Extract the first word of "$ac_prog", so it can be a program name with args. 7069 set dummy $ac_prog; ac_word=$2 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7071 $as_echo_n "checking for $ac_word... " >&6; } 7072 if ${ac_cv_path_FILE+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074 else 7075 case $FILE in 7076 [\\/]* | ?:[\\/]*) 7077 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7078 ;; 7079 *) 7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7081 for as_dir in $PATH 7082 do 7083 IFS=$as_save_IFS 7084 test -z "$as_dir" && as_dir=. 7085 for ac_exec_ext in '' $ac_executable_extensions; do 7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7087 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7089 break 2 7090 fi 7091 done 7092 done 7093 IFS=$as_save_IFS 7094 7095 ;; 7096 esac 7097 fi 7098 FILE=$ac_cv_path_FILE 7099 if test -n "$FILE"; then 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7101 $as_echo "$FILE" >&6; } 7102 else 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7104 $as_echo "no" >&6; } 7105 fi 7106 7107 7108 test -n "$FILE" && break 7109 done 7110 7111 else 7112 # If it succeeded, then it was overridden by the user. We will use it 7113 # for the tool. 7114 7115 # First remove it from the list of overridden variables, so we can test 7116 # for unknown variables in the end. 7117 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7118 7119 # Check if the provided tool contains a complete path. 7120 tool_specified="$FILE" 7121 tool_basename="${tool_specified##*/}" 7122 if test "x$tool_basename" = "x$tool_specified"; then 7123 # A command without a complete path is provided, search $PATH. 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7125 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7126 # Extract the first word of "$tool_basename", so it can be a program name with args. 7127 set dummy $tool_basename; ac_word=$2 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129 $as_echo_n "checking for $ac_word... " >&6; } 7130 if ${ac_cv_path_FILE+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132 else 7133 case $FILE in 7134 [\\/]* | ?:[\\/]*) 7135 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7136 ;; 7137 *) 7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139 for as_dir in $PATH 7140 do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7145 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149 done 7150 done 7151 IFS=$as_save_IFS 7152 7153 ;; 7154 esac 7155 fi 7156 FILE=$ac_cv_path_FILE 7157 if test -n "$FILE"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7159 $as_echo "$FILE" >&6; } 7160 else 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7162 $as_echo "no" >&6; } 7163 fi 7164 7165 7166 if test "x$FILE" = x; then 7167 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7168 fi 7169 else 7170 # Otherwise we believe it is a complete path. Use it as it is. 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7172 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7174 $as_echo_n "checking for FILE... " >&6; } 7175 if test ! -x "$tool_specified"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7177 $as_echo "not found" >&6; } 7178 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7179 fi 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7181 $as_echo "$tool_specified" >&6; } 7182 fi 7183 fi 7184 fi 7185 7186 7187 7188 if test "x$FILE" = x; then 7189 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7190 fi 7191 7192 7193 7194 7195 7196 # Publish this variable in the help. 7197 7198 7199 if test "x$FIND" = x; then 7200 # The variable is not set by user, try to locate tool using the code snippet 7201 for ac_prog in find 7202 do 7203 # Extract the first word of "$ac_prog", so it can be a program name with args. 7204 set dummy $ac_prog; ac_word=$2 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7206 $as_echo_n "checking for $ac_word... " >&6; } 7207 if ${ac_cv_path_FIND+:} false; then : 7208 $as_echo_n "(cached) " >&6 7209 else 7210 case $FIND in 7211 [\\/]* | ?:[\\/]*) 7212 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7213 ;; 7214 *) 7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7216 for as_dir in $PATH 7217 do 7218 IFS=$as_save_IFS 7219 test -z "$as_dir" && as_dir=. 7220 for ac_exec_ext in '' $ac_executable_extensions; do 7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7222 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7224 break 2 7225 fi 7226 done 7227 done 7228 IFS=$as_save_IFS 7229 7230 ;; 7231 esac 7232 fi 7233 FIND=$ac_cv_path_FIND 7234 if test -n "$FIND"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7236 $as_echo "$FIND" >&6; } 7237 else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239 $as_echo "no" >&6; } 7240 fi 7241 7242 7243 test -n "$FIND" && break 7244 done 7245 7246 else 7247 # The variable is set, but is it from the command line or the environment? 7248 7249 # Try to remove the string !FIND! from our list. 7250 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7251 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7252 # If it failed, the variable was not from the command line. Ignore it, 7253 # but warn the user (except for BASH, which is always set by the calling BASH). 7254 if test "xFIND" != xBASH; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7256 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7257 fi 7258 # Try to locate tool using the code snippet 7259 for ac_prog in find 7260 do 7261 # Extract the first word of "$ac_prog", so it can be a program name with args. 7262 set dummy $ac_prog; ac_word=$2 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264 $as_echo_n "checking for $ac_word... " >&6; } 7265 if ${ac_cv_path_FIND+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267 else 7268 case $FIND in 7269 [\\/]* | ?:[\\/]*) 7270 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7271 ;; 7272 *) 7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274 for as_dir in $PATH 7275 do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7280 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284 done 7285 done 7286 IFS=$as_save_IFS 7287 7288 ;; 7289 esac 7290 fi 7291 FIND=$ac_cv_path_FIND 7292 if test -n "$FIND"; then 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7294 $as_echo "$FIND" >&6; } 7295 else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297 $as_echo "no" >&6; } 7298 fi 7299 7300 7301 test -n "$FIND" && break 7302 done 7303 7304 else 7305 # If it succeeded, then it was overridden by the user. We will use it 7306 # for the tool. 7307 7308 # First remove it from the list of overridden variables, so we can test 7309 # for unknown variables in the end. 7310 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7311 7312 # Check if the provided tool contains a complete path. 7313 tool_specified="$FIND" 7314 tool_basename="${tool_specified##*/}" 7315 if test "x$tool_basename" = "x$tool_specified"; then 7316 # A command without a complete path is provided, search $PATH. 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7318 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7319 # Extract the first word of "$tool_basename", so it can be a program name with args. 7320 set dummy $tool_basename; ac_word=$2 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7322 $as_echo_n "checking for $ac_word... " >&6; } 7323 if ${ac_cv_path_FIND+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325 else 7326 case $FIND in 7327 [\\/]* | ?:[\\/]*) 7328 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7329 ;; 7330 *) 7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7332 for as_dir in $PATH 7333 do 7334 IFS=$as_save_IFS 7335 test -z "$as_dir" && as_dir=. 7336 for ac_exec_ext in '' $ac_executable_extensions; do 7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7338 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7340 break 2 7341 fi 7342 done 7343 done 7344 IFS=$as_save_IFS 7345 7346 ;; 7347 esac 7348 fi 7349 FIND=$ac_cv_path_FIND 7350 if test -n "$FIND"; then 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7352 $as_echo "$FIND" >&6; } 7353 else 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7355 $as_echo "no" >&6; } 7356 fi 7357 7358 7359 if test "x$FIND" = x; then 7360 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7361 fi 7362 else 7363 # Otherwise we believe it is a complete path. Use it as it is. 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7365 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7367 $as_echo_n "checking for FIND... " >&6; } 7368 if test ! -x "$tool_specified"; then 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7370 $as_echo "not found" >&6; } 7371 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7372 fi 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7374 $as_echo "$tool_specified" >&6; } 7375 fi 7376 fi 7377 fi 7378 7379 7380 7381 if test "x$FIND" = x; then 7382 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7383 fi 7384 7385 7386 7387 7388 7389 # Publish this variable in the help. 7390 7391 7392 if test "x$HEAD" = x; then 7393 # The variable is not set by user, try to locate tool using the code snippet 7394 for ac_prog in head 7395 do 7396 # Extract the first word of "$ac_prog", so it can be a program name with args. 7397 set dummy $ac_prog; ac_word=$2 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7399 $as_echo_n "checking for $ac_word... " >&6; } 7400 if ${ac_cv_path_HEAD+:} false; then : 7401 $as_echo_n "(cached) " >&6 7402 else 7403 case $HEAD in 7404 [\\/]* | ?:[\\/]*) 7405 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7406 ;; 7407 *) 7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409 for as_dir in $PATH 7410 do 7411 IFS=$as_save_IFS 7412 test -z "$as_dir" && as_dir=. 7413 for ac_exec_ext in '' $ac_executable_extensions; do 7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7415 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7417 break 2 7418 fi 7419 done 7420 done 7421 IFS=$as_save_IFS 7422 7423 ;; 7424 esac 7425 fi 7426 HEAD=$ac_cv_path_HEAD 7427 if test -n "$HEAD"; then 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7429 $as_echo "$HEAD" >&6; } 7430 else 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7432 $as_echo "no" >&6; } 7433 fi 7434 7435 7436 test -n "$HEAD" && break 7437 done 7438 7439 else 7440 # The variable is set, but is it from the command line or the environment? 7441 7442 # Try to remove the string !HEAD! from our list. 7443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7445 # If it failed, the variable was not from the command line. Ignore it, 7446 # but warn the user (except for BASH, which is always set by the calling BASH). 7447 if test "xHEAD" != xBASH; then 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7449 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7450 fi 7451 # Try to locate tool using the code snippet 7452 for ac_prog in head 7453 do 7454 # Extract the first word of "$ac_prog", so it can be a program name with args. 7455 set dummy $ac_prog; ac_word=$2 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7457 $as_echo_n "checking for $ac_word... " >&6; } 7458 if ${ac_cv_path_HEAD+:} false; then : 7459 $as_echo_n "(cached) " >&6 7460 else 7461 case $HEAD in 7462 [\\/]* | ?:[\\/]*) 7463 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7464 ;; 7465 *) 7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7467 for as_dir in $PATH 7468 do 7469 IFS=$as_save_IFS 7470 test -z "$as_dir" && as_dir=. 7471 for ac_exec_ext in '' $ac_executable_extensions; do 7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7473 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7475 break 2 7476 fi 7477 done 7478 done 7479 IFS=$as_save_IFS 7480 7481 ;; 7482 esac 7483 fi 7484 HEAD=$ac_cv_path_HEAD 7485 if test -n "$HEAD"; then 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7487 $as_echo "$HEAD" >&6; } 7488 else 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7490 $as_echo "no" >&6; } 7491 fi 7492 7493 7494 test -n "$HEAD" && break 7495 done 7496 7497 else 7498 # If it succeeded, then it was overridden by the user. We will use it 7499 # for the tool. 7500 7501 # First remove it from the list of overridden variables, so we can test 7502 # for unknown variables in the end. 7503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7504 7505 # Check if the provided tool contains a complete path. 7506 tool_specified="$HEAD" 7507 tool_basename="${tool_specified##*/}" 7508 if test "x$tool_basename" = "x$tool_specified"; then 7509 # A command without a complete path is provided, search $PATH. 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7511 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7512 # Extract the first word of "$tool_basename", so it can be a program name with args. 7513 set dummy $tool_basename; ac_word=$2 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515 $as_echo_n "checking for $ac_word... " >&6; } 7516 if ${ac_cv_path_HEAD+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518 else 7519 case $HEAD in 7520 [\\/]* | ?:[\\/]*) 7521 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7522 ;; 7523 *) 7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525 for as_dir in $PATH 7526 do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7531 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535 done 7536 done 7537 IFS=$as_save_IFS 7538 7539 ;; 7540 esac 7541 fi 7542 HEAD=$ac_cv_path_HEAD 7543 if test -n "$HEAD"; then 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7545 $as_echo "$HEAD" >&6; } 7546 else 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7548 $as_echo "no" >&6; } 7549 fi 7550 7551 7552 if test "x$HEAD" = x; then 7553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7554 fi 7555 else 7556 # Otherwise we believe it is a complete path. Use it as it is. 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7558 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7560 $as_echo_n "checking for HEAD... " >&6; } 7561 if test ! -x "$tool_specified"; then 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7563 $as_echo "not found" >&6; } 7564 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7565 fi 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7567 $as_echo "$tool_specified" >&6; } 7568 fi 7569 fi 7570 fi 7571 7572 7573 7574 if test "x$HEAD" = x; then 7575 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7576 fi 7577 7578 7579 7580 7581 7582 # Publish this variable in the help. 7583 7584 7585 if test "x$LN" = x; then 7586 # The variable is not set by user, try to locate tool using the code snippet 7587 for ac_prog in ln 7588 do 7589 # Extract the first word of "$ac_prog", so it can be a program name with args. 7590 set dummy $ac_prog; ac_word=$2 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7592 $as_echo_n "checking for $ac_word... " >&6; } 7593 if ${ac_cv_path_LN+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595 else 7596 case $LN in 7597 [\\/]* | ?:[\\/]*) 7598 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7599 ;; 7600 *) 7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602 for as_dir in $PATH 7603 do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7608 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612 done 7613 done 7614 IFS=$as_save_IFS 7615 7616 ;; 7617 esac 7618 fi 7619 LN=$ac_cv_path_LN 7620 if test -n "$LN"; then 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7622 $as_echo "$LN" >&6; } 7623 else 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625 $as_echo "no" >&6; } 7626 fi 7627 7628 7629 test -n "$LN" && break 7630 done 7631 7632 else 7633 # The variable is set, but is it from the command line or the environment? 7634 7635 # Try to remove the string !LN! from our list. 7636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7638 # If it failed, the variable was not from the command line. Ignore it, 7639 # but warn the user (except for BASH, which is always set by the calling BASH). 7640 if test "xLN" != xBASH; then 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7642 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7643 fi 7644 # Try to locate tool using the code snippet 7645 for ac_prog in ln 7646 do 7647 # Extract the first word of "$ac_prog", so it can be a program name with args. 7648 set dummy $ac_prog; ac_word=$2 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7650 $as_echo_n "checking for $ac_word... " >&6; } 7651 if ${ac_cv_path_LN+:} false; then : 7652 $as_echo_n "(cached) " >&6 7653 else 7654 case $LN in 7655 [\\/]* | ?:[\\/]*) 7656 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7657 ;; 7658 *) 7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7660 for as_dir in $PATH 7661 do 7662 IFS=$as_save_IFS 7663 test -z "$as_dir" && as_dir=. 7664 for ac_exec_ext in '' $ac_executable_extensions; do 7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7666 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7668 break 2 7669 fi 7670 done 7671 done 7672 IFS=$as_save_IFS 7673 7674 ;; 7675 esac 7676 fi 7677 LN=$ac_cv_path_LN 7678 if test -n "$LN"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7680 $as_echo "$LN" >&6; } 7681 else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7683 $as_echo "no" >&6; } 7684 fi 7685 7686 7687 test -n "$LN" && break 7688 done 7689 7690 else 7691 # If it succeeded, then it was overridden by the user. We will use it 7692 # for the tool. 7693 7694 # First remove it from the list of overridden variables, so we can test 7695 # for unknown variables in the end. 7696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7697 7698 # Check if the provided tool contains a complete path. 7699 tool_specified="$LN" 7700 tool_basename="${tool_specified##*/}" 7701 if test "x$tool_basename" = "x$tool_specified"; then 7702 # A command without a complete path is provided, search $PATH. 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7704 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7705 # Extract the first word of "$tool_basename", so it can be a program name with args. 7706 set dummy $tool_basename; ac_word=$2 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7708 $as_echo_n "checking for $ac_word... " >&6; } 7709 if ${ac_cv_path_LN+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711 else 7712 case $LN in 7713 [\\/]* | ?:[\\/]*) 7714 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7715 ;; 7716 *) 7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7718 for as_dir in $PATH 7719 do 7720 IFS=$as_save_IFS 7721 test -z "$as_dir" && as_dir=. 7722 for ac_exec_ext in '' $ac_executable_extensions; do 7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7724 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7726 break 2 7727 fi 7728 done 7729 done 7730 IFS=$as_save_IFS 7731 7732 ;; 7733 esac 7734 fi 7735 LN=$ac_cv_path_LN 7736 if test -n "$LN"; then 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7738 $as_echo "$LN" >&6; } 7739 else 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7741 $as_echo "no" >&6; } 7742 fi 7743 7744 7745 if test "x$LN" = x; then 7746 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7747 fi 7748 else 7749 # Otherwise we believe it is a complete path. Use it as it is. 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7751 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7753 $as_echo_n "checking for LN... " >&6; } 7754 if test ! -x "$tool_specified"; then 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7756 $as_echo "not found" >&6; } 7757 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7758 fi 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7760 $as_echo "$tool_specified" >&6; } 7761 fi 7762 fi 7763 fi 7764 7765 7766 7767 if test "x$LN" = x; then 7768 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7769 fi 7770 7771 7772 7773 7774 7775 # Publish this variable in the help. 7776 7777 7778 if test "x$LS" = x; then 7779 # The variable is not set by user, try to locate tool using the code snippet 7780 for ac_prog in ls 7781 do 7782 # Extract the first word of "$ac_prog", so it can be a program name with args. 7783 set dummy $ac_prog; ac_word=$2 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7785 $as_echo_n "checking for $ac_word... " >&6; } 7786 if ${ac_cv_path_LS+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788 else 7789 case $LS in 7790 [\\/]* | ?:[\\/]*) 7791 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7792 ;; 7793 *) 7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795 for as_dir in $PATH 7796 do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7801 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805 done 7806 done 7807 IFS=$as_save_IFS 7808 7809 ;; 7810 esac 7811 fi 7812 LS=$ac_cv_path_LS 7813 if test -n "$LS"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7815 $as_echo "$LS" >&6; } 7816 else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818 $as_echo "no" >&6; } 7819 fi 7820 7821 7822 test -n "$LS" && break 7823 done 7824 7825 else 7826 # The variable is set, but is it from the command line or the environment? 7827 7828 # Try to remove the string !LS! from our list. 7829 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7830 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7831 # If it failed, the variable was not from the command line. Ignore it, 7832 # but warn the user (except for BASH, which is always set by the calling BASH). 7833 if test "xLS" != xBASH; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7835 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7836 fi 7837 # Try to locate tool using the code snippet 7838 for ac_prog in ls 7839 do 7840 # Extract the first word of "$ac_prog", so it can be a program name with args. 7841 set dummy $ac_prog; ac_word=$2 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7843 $as_echo_n "checking for $ac_word... " >&6; } 7844 if ${ac_cv_path_LS+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846 else 7847 case $LS in 7848 [\\/]* | ?:[\\/]*) 7849 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7850 ;; 7851 *) 7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7853 for as_dir in $PATH 7854 do 7855 IFS=$as_save_IFS 7856 test -z "$as_dir" && as_dir=. 7857 for ac_exec_ext in '' $ac_executable_extensions; do 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7859 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7861 break 2 7862 fi 7863 done 7864 done 7865 IFS=$as_save_IFS 7866 7867 ;; 7868 esac 7869 fi 7870 LS=$ac_cv_path_LS 7871 if test -n "$LS"; then 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7873 $as_echo "$LS" >&6; } 7874 else 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7876 $as_echo "no" >&6; } 7877 fi 7878 7879 7880 test -n "$LS" && break 7881 done 7882 7883 else 7884 # If it succeeded, then it was overridden by the user. We will use it 7885 # for the tool. 7886 7887 # First remove it from the list of overridden variables, so we can test 7888 # for unknown variables in the end. 7889 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7890 7891 # Check if the provided tool contains a complete path. 7892 tool_specified="$LS" 7893 tool_basename="${tool_specified##*/}" 7894 if test "x$tool_basename" = "x$tool_specified"; then 7895 # A command without a complete path is provided, search $PATH. 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7897 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7898 # Extract the first word of "$tool_basename", so it can be a program name with args. 7899 set dummy $tool_basename; ac_word=$2 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901 $as_echo_n "checking for $ac_word... " >&6; } 7902 if ${ac_cv_path_LS+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904 else 7905 case $LS in 7906 [\\/]* | ?:[\\/]*) 7907 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7908 ;; 7909 *) 7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7911 for as_dir in $PATH 7912 do 7913 IFS=$as_save_IFS 7914 test -z "$as_dir" && as_dir=. 7915 for ac_exec_ext in '' $ac_executable_extensions; do 7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7917 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7919 break 2 7920 fi 7921 done 7922 done 7923 IFS=$as_save_IFS 7924 7925 ;; 7926 esac 7927 fi 7928 LS=$ac_cv_path_LS 7929 if test -n "$LS"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7931 $as_echo "$LS" >&6; } 7932 else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7934 $as_echo "no" >&6; } 7935 fi 7936 7937 7938 if test "x$LS" = x; then 7939 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7940 fi 7941 else 7942 # Otherwise we believe it is a complete path. Use it as it is. 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7944 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7946 $as_echo_n "checking for LS... " >&6; } 7947 if test ! -x "$tool_specified"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7949 $as_echo "not found" >&6; } 7950 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7951 fi 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7953 $as_echo "$tool_specified" >&6; } 7954 fi 7955 fi 7956 fi 7957 7958 7959 7960 if test "x$LS" = x; then 7961 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7962 fi 7963 7964 7965 7966 7967 7968 # Publish this variable in the help. 7969 7970 7971 if test "x$MKDIR" = x; then 7972 # The variable is not set by user, try to locate tool using the code snippet 7973 for ac_prog in mkdir 7974 do 7975 # Extract the first word of "$ac_prog", so it can be a program name with args. 7976 set dummy $ac_prog; ac_word=$2 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7978 $as_echo_n "checking for $ac_word... " >&6; } 7979 if ${ac_cv_path_MKDIR+:} false; then : 7980 $as_echo_n "(cached) " >&6 7981 else 7982 case $MKDIR in 7983 [\\/]* | ?:[\\/]*) 7984 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7985 ;; 7986 *) 7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988 for as_dir in $PATH 7989 do 7990 IFS=$as_save_IFS 7991 test -z "$as_dir" && as_dir=. 7992 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7994 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7996 break 2 7997 fi 7998 done 7999 done 8000 IFS=$as_save_IFS 8001 8002 ;; 8003 esac 8004 fi 8005 MKDIR=$ac_cv_path_MKDIR 8006 if test -n "$MKDIR"; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8008 $as_echo "$MKDIR" >&6; } 8009 else 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8011 $as_echo "no" >&6; } 8012 fi 8013 8014 8015 test -n "$MKDIR" && break 8016 done 8017 8018 else 8019 # The variable is set, but is it from the command line or the environment? 8020 8021 # Try to remove the string !MKDIR! from our list. 8022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8024 # If it failed, the variable was not from the command line. Ignore it, 8025 # but warn the user (except for BASH, which is always set by the calling BASH). 8026 if test "xMKDIR" != xBASH; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8028 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8029 fi 8030 # Try to locate tool using the code snippet 8031 for ac_prog in mkdir 8032 do 8033 # Extract the first word of "$ac_prog", so it can be a program name with args. 8034 set dummy $ac_prog; ac_word=$2 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036 $as_echo_n "checking for $ac_word... " >&6; } 8037 if ${ac_cv_path_MKDIR+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039 else 8040 case $MKDIR in 8041 [\\/]* | ?:[\\/]*) 8042 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8043 ;; 8044 *) 8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046 for as_dir in $PATH 8047 do 8048 IFS=$as_save_IFS 8049 test -z "$as_dir" && as_dir=. 8050 for ac_exec_ext in '' $ac_executable_extensions; do 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8052 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8054 break 2 8055 fi 8056 done 8057 done 8058 IFS=$as_save_IFS 8059 8060 ;; 8061 esac 8062 fi 8063 MKDIR=$ac_cv_path_MKDIR 8064 if test -n "$MKDIR"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8066 $as_echo "$MKDIR" >&6; } 8067 else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069 $as_echo "no" >&6; } 8070 fi 8071 8072 8073 test -n "$MKDIR" && break 8074 done 8075 8076 else 8077 # If it succeeded, then it was overridden by the user. We will use it 8078 # for the tool. 8079 8080 # First remove it from the list of overridden variables, so we can test 8081 # for unknown variables in the end. 8082 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8083 8084 # Check if the provided tool contains a complete path. 8085 tool_specified="$MKDIR" 8086 tool_basename="${tool_specified##*/}" 8087 if test "x$tool_basename" = "x$tool_specified"; then 8088 # A command without a complete path is provided, search $PATH. 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8090 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8091 # Extract the first word of "$tool_basename", so it can be a program name with args. 8092 set dummy $tool_basename; ac_word=$2 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8094 $as_echo_n "checking for $ac_word... " >&6; } 8095 if ${ac_cv_path_MKDIR+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097 else 8098 case $MKDIR in 8099 [\\/]* | ?:[\\/]*) 8100 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8101 ;; 8102 *) 8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104 for as_dir in $PATH 8105 do 8106 IFS=$as_save_IFS 8107 test -z "$as_dir" && as_dir=. 8108 for ac_exec_ext in '' $ac_executable_extensions; do 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8110 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8112 break 2 8113 fi 8114 done 8115 done 8116 IFS=$as_save_IFS 8117 8118 ;; 8119 esac 8120 fi 8121 MKDIR=$ac_cv_path_MKDIR 8122 if test -n "$MKDIR"; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8124 $as_echo "$MKDIR" >&6; } 8125 else 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8127 $as_echo "no" >&6; } 8128 fi 8129 8130 8131 if test "x$MKDIR" = x; then 8132 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8133 fi 8134 else 8135 # Otherwise we believe it is a complete path. Use it as it is. 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8137 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8139 $as_echo_n "checking for MKDIR... " >&6; } 8140 if test ! -x "$tool_specified"; then 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8142 $as_echo "not found" >&6; } 8143 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8144 fi 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8146 $as_echo "$tool_specified" >&6; } 8147 fi 8148 fi 8149 fi 8150 8151 8152 8153 if test "x$MKDIR" = x; then 8154 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8155 fi 8156 8157 8158 8159 8160 8161 # Publish this variable in the help. 8162 8163 8164 if test "x$MKTEMP" = x; then 8165 # The variable is not set by user, try to locate tool using the code snippet 8166 for ac_prog in mktemp 8167 do 8168 # Extract the first word of "$ac_prog", so it can be a program name with args. 8169 set dummy $ac_prog; ac_word=$2 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8171 $as_echo_n "checking for $ac_word... " >&6; } 8172 if ${ac_cv_path_MKTEMP+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174 else 8175 case $MKTEMP in 8176 [\\/]* | ?:[\\/]*) 8177 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8178 ;; 8179 *) 8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8181 for as_dir in $PATH 8182 do 8183 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8187 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191 done 8192 done 8193 IFS=$as_save_IFS 8194 8195 ;; 8196 esac 8197 fi 8198 MKTEMP=$ac_cv_path_MKTEMP 8199 if test -n "$MKTEMP"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8201 $as_echo "$MKTEMP" >&6; } 8202 else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204 $as_echo "no" >&6; } 8205 fi 8206 8207 8208 test -n "$MKTEMP" && break 8209 done 8210 8211 else 8212 # The variable is set, but is it from the command line or the environment? 8213 8214 # Try to remove the string !MKTEMP! from our list. 8215 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8216 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8217 # If it failed, the variable was not from the command line. Ignore it, 8218 # but warn the user (except for BASH, which is always set by the calling BASH). 8219 if test "xMKTEMP" != xBASH; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8221 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8222 fi 8223 # Try to locate tool using the code snippet 8224 for ac_prog in mktemp 8225 do 8226 # Extract the first word of "$ac_prog", so it can be a program name with args. 8227 set dummy $ac_prog; ac_word=$2 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229 $as_echo_n "checking for $ac_word... " >&6; } 8230 if ${ac_cv_path_MKTEMP+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232 else 8233 case $MKTEMP in 8234 [\\/]* | ?:[\\/]*) 8235 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8236 ;; 8237 *) 8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239 for as_dir in $PATH 8240 do 8241 IFS=$as_save_IFS 8242 test -z "$as_dir" && as_dir=. 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8245 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249 done 8250 done 8251 IFS=$as_save_IFS 8252 8253 ;; 8254 esac 8255 fi 8256 MKTEMP=$ac_cv_path_MKTEMP 8257 if test -n "$MKTEMP"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8259 $as_echo "$MKTEMP" >&6; } 8260 else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262 $as_echo "no" >&6; } 8263 fi 8264 8265 8266 test -n "$MKTEMP" && break 8267 done 8268 8269 else 8270 # If it succeeded, then it was overridden by the user. We will use it 8271 # for the tool. 8272 8273 # First remove it from the list of overridden variables, so we can test 8274 # for unknown variables in the end. 8275 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8276 8277 # Check if the provided tool contains a complete path. 8278 tool_specified="$MKTEMP" 8279 tool_basename="${tool_specified##*/}" 8280 if test "x$tool_basename" = "x$tool_specified"; then 8281 # A command without a complete path is provided, search $PATH. 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8283 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8284 # Extract the first word of "$tool_basename", so it can be a program name with args. 8285 set dummy $tool_basename; ac_word=$2 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287 $as_echo_n "checking for $ac_word... " >&6; } 8288 if ${ac_cv_path_MKTEMP+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290 else 8291 case $MKTEMP in 8292 [\\/]* | ?:[\\/]*) 8293 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8294 ;; 8295 *) 8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297 for as_dir in $PATH 8298 do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8303 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307 done 8308 done 8309 IFS=$as_save_IFS 8310 8311 ;; 8312 esac 8313 fi 8314 MKTEMP=$ac_cv_path_MKTEMP 8315 if test -n "$MKTEMP"; then 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8317 $as_echo "$MKTEMP" >&6; } 8318 else 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8320 $as_echo "no" >&6; } 8321 fi 8322 8323 8324 if test "x$MKTEMP" = x; then 8325 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8326 fi 8327 else 8328 # Otherwise we believe it is a complete path. Use it as it is. 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8330 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8332 $as_echo_n "checking for MKTEMP... " >&6; } 8333 if test ! -x "$tool_specified"; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8335 $as_echo "not found" >&6; } 8336 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8337 fi 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8339 $as_echo "$tool_specified" >&6; } 8340 fi 8341 fi 8342 fi 8343 8344 8345 8346 if test "x$MKTEMP" = x; then 8347 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8348 fi 8349 8350 8351 8352 8353 8354 # Publish this variable in the help. 8355 8356 8357 if test "x$MV" = x; then 8358 # The variable is not set by user, try to locate tool using the code snippet 8359 for ac_prog in mv 8360 do 8361 # Extract the first word of "$ac_prog", so it can be a program name with args. 8362 set dummy $ac_prog; ac_word=$2 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364 $as_echo_n "checking for $ac_word... " >&6; } 8365 if ${ac_cv_path_MV+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367 else 8368 case $MV in 8369 [\\/]* | ?:[\\/]*) 8370 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8371 ;; 8372 *) 8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374 for as_dir in $PATH 8375 do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384 done 8385 done 8386 IFS=$as_save_IFS 8387 8388 ;; 8389 esac 8390 fi 8391 MV=$ac_cv_path_MV 8392 if test -n "$MV"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8394 $as_echo "$MV" >&6; } 8395 else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397 $as_echo "no" >&6; } 8398 fi 8399 8400 8401 test -n "$MV" && break 8402 done 8403 8404 else 8405 # The variable is set, but is it from the command line or the environment? 8406 8407 # Try to remove the string !MV! from our list. 8408 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8409 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8410 # If it failed, the variable was not from the command line. Ignore it, 8411 # but warn the user (except for BASH, which is always set by the calling BASH). 8412 if test "xMV" != xBASH; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8414 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8415 fi 8416 # Try to locate tool using the code snippet 8417 for ac_prog in mv 8418 do 8419 # Extract the first word of "$ac_prog", so it can be a program name with args. 8420 set dummy $ac_prog; ac_word=$2 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8422 $as_echo_n "checking for $ac_word... " >&6; } 8423 if ${ac_cv_path_MV+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425 else 8426 case $MV in 8427 [\\/]* | ?:[\\/]*) 8428 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8429 ;; 8430 *) 8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8432 for as_dir in $PATH 8433 do 8434 IFS=$as_save_IFS 8435 test -z "$as_dir" && as_dir=. 8436 for ac_exec_ext in '' $ac_executable_extensions; do 8437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8438 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8440 break 2 8441 fi 8442 done 8443 done 8444 IFS=$as_save_IFS 8445 8446 ;; 8447 esac 8448 fi 8449 MV=$ac_cv_path_MV 8450 if test -n "$MV"; then 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8452 $as_echo "$MV" >&6; } 8453 else 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455 $as_echo "no" >&6; } 8456 fi 8457 8458 8459 test -n "$MV" && break 8460 done 8461 8462 else 8463 # If it succeeded, then it was overridden by the user. We will use it 8464 # for the tool. 8465 8466 # First remove it from the list of overridden variables, so we can test 8467 # for unknown variables in the end. 8468 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8469 8470 # Check if the provided tool contains a complete path. 8471 tool_specified="$MV" 8472 tool_basename="${tool_specified##*/}" 8473 if test "x$tool_basename" = "x$tool_specified"; then 8474 # A command without a complete path is provided, search $PATH. 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8476 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8477 # Extract the first word of "$tool_basename", so it can be a program name with args. 8478 set dummy $tool_basename; ac_word=$2 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8480 $as_echo_n "checking for $ac_word... " >&6; } 8481 if ${ac_cv_path_MV+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483 else 8484 case $MV in 8485 [\\/]* | ?:[\\/]*) 8486 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8487 ;; 8488 *) 8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490 for as_dir in $PATH 8491 do 8492 IFS=$as_save_IFS 8493 test -z "$as_dir" && as_dir=. 8494 for ac_exec_ext in '' $ac_executable_extensions; do 8495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8496 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8498 break 2 8499 fi 8500 done 8501 done 8502 IFS=$as_save_IFS 8503 8504 ;; 8505 esac 8506 fi 8507 MV=$ac_cv_path_MV 8508 if test -n "$MV"; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8510 $as_echo "$MV" >&6; } 8511 else 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513 $as_echo "no" >&6; } 8514 fi 8515 8516 8517 if test "x$MV" = x; then 8518 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8519 fi 8520 else 8521 # Otherwise we believe it is a complete path. Use it as it is. 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8523 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8525 $as_echo_n "checking for MV... " >&6; } 8526 if test ! -x "$tool_specified"; then 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8528 $as_echo "not found" >&6; } 8529 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8530 fi 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8532 $as_echo "$tool_specified" >&6; } 8533 fi 8534 fi 8535 fi 8536 8537 8538 8539 if test "x$MV" = x; then 8540 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8541 fi 8542 8543 8544 8545 8546 8547 # Publish this variable in the help. 8548 8549 8550 if test "x$NAWK" = x; then 8551 # The variable is not set by user, try to locate tool using the code snippet 8552 for ac_prog in nawk gawk awk 8553 do 8554 # Extract the first word of "$ac_prog", so it can be a program name with args. 8555 set dummy $ac_prog; ac_word=$2 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8557 $as_echo_n "checking for $ac_word... " >&6; } 8558 if ${ac_cv_path_NAWK+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560 else 8561 case $NAWK in 8562 [\\/]* | ?:[\\/]*) 8563 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8564 ;; 8565 *) 8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8567 for as_dir in $PATH 8568 do 8569 IFS=$as_save_IFS 8570 test -z "$as_dir" && as_dir=. 8571 for ac_exec_ext in '' $ac_executable_extensions; do 8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8573 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8575 break 2 8576 fi 8577 done 8578 done 8579 IFS=$as_save_IFS 8580 8581 ;; 8582 esac 8583 fi 8584 NAWK=$ac_cv_path_NAWK 8585 if test -n "$NAWK"; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8587 $as_echo "$NAWK" >&6; } 8588 else 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8590 $as_echo "no" >&6; } 8591 fi 8592 8593 8594 test -n "$NAWK" && break 8595 done 8596 8597 else 8598 # The variable is set, but is it from the command line or the environment? 8599 8600 # Try to remove the string !NAWK! from our list. 8601 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8602 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8603 # If it failed, the variable was not from the command line. Ignore it, 8604 # but warn the user (except for BASH, which is always set by the calling BASH). 8605 if test "xNAWK" != xBASH; then 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8607 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8608 fi 8609 # Try to locate tool using the code snippet 8610 for ac_prog in nawk gawk awk 8611 do 8612 # Extract the first word of "$ac_prog", so it can be a program name with args. 8613 set dummy $ac_prog; ac_word=$2 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8615 $as_echo_n "checking for $ac_word... " >&6; } 8616 if ${ac_cv_path_NAWK+:} false; then : 8617 $as_echo_n "(cached) " >&6 8618 else 8619 case $NAWK in 8620 [\\/]* | ?:[\\/]*) 8621 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8622 ;; 8623 *) 8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8625 for as_dir in $PATH 8626 do 8627 IFS=$as_save_IFS 8628 test -z "$as_dir" && as_dir=. 8629 for ac_exec_ext in '' $ac_executable_extensions; do 8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8631 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8633 break 2 8634 fi 8635 done 8636 done 8637 IFS=$as_save_IFS 8638 8639 ;; 8640 esac 8641 fi 8642 NAWK=$ac_cv_path_NAWK 8643 if test -n "$NAWK"; then 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8645 $as_echo "$NAWK" >&6; } 8646 else 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8648 $as_echo "no" >&6; } 8649 fi 8650 8651 8652 test -n "$NAWK" && break 8653 done 8654 8655 else 8656 # If it succeeded, then it was overridden by the user. We will use it 8657 # for the tool. 8658 8659 # First remove it from the list of overridden variables, so we can test 8660 # for unknown variables in the end. 8661 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8662 8663 # Check if the provided tool contains a complete path. 8664 tool_specified="$NAWK" 8665 tool_basename="${tool_specified##*/}" 8666 if test "x$tool_basename" = "x$tool_specified"; then 8667 # A command without a complete path is provided, search $PATH. 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8669 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8670 # Extract the first word of "$tool_basename", so it can be a program name with args. 8671 set dummy $tool_basename; ac_word=$2 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673 $as_echo_n "checking for $ac_word... " >&6; } 8674 if ${ac_cv_path_NAWK+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676 else 8677 case $NAWK in 8678 [\\/]* | ?:[\\/]*) 8679 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8680 ;; 8681 *) 8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8683 for as_dir in $PATH 8684 do 8685 IFS=$as_save_IFS 8686 test -z "$as_dir" && as_dir=. 8687 for ac_exec_ext in '' $ac_executable_extensions; do 8688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8689 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8691 break 2 8692 fi 8693 done 8694 done 8695 IFS=$as_save_IFS 8696 8697 ;; 8698 esac 8699 fi 8700 NAWK=$ac_cv_path_NAWK 8701 if test -n "$NAWK"; then 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8703 $as_echo "$NAWK" >&6; } 8704 else 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8706 $as_echo "no" >&6; } 8707 fi 8708 8709 8710 if test "x$NAWK" = x; then 8711 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8712 fi 8713 else 8714 # Otherwise we believe it is a complete path. Use it as it is. 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8716 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8718 $as_echo_n "checking for NAWK... " >&6; } 8719 if test ! -x "$tool_specified"; then 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8721 $as_echo "not found" >&6; } 8722 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8723 fi 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8725 $as_echo "$tool_specified" >&6; } 8726 fi 8727 fi 8728 fi 8729 8730 8731 8732 if test "x$NAWK" = x; then 8733 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8734 fi 8735 8736 8737 8738 8739 8740 # Publish this variable in the help. 8741 8742 8743 if test "x$PRINTF" = x; then 8744 # The variable is not set by user, try to locate tool using the code snippet 8745 for ac_prog in printf 8746 do 8747 # Extract the first word of "$ac_prog", so it can be a program name with args. 8748 set dummy $ac_prog; ac_word=$2 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8750 $as_echo_n "checking for $ac_word... " >&6; } 8751 if ${ac_cv_path_PRINTF+:} false; then : 8752 $as_echo_n "(cached) " >&6 8753 else 8754 case $PRINTF in 8755 [\\/]* | ?:[\\/]*) 8756 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8757 ;; 8758 *) 8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8760 for as_dir in $PATH 8761 do 8762 IFS=$as_save_IFS 8763 test -z "$as_dir" && as_dir=. 8764 for ac_exec_ext in '' $ac_executable_extensions; do 8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8766 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8768 break 2 8769 fi 8770 done 8771 done 8772 IFS=$as_save_IFS 8773 8774 ;; 8775 esac 8776 fi 8777 PRINTF=$ac_cv_path_PRINTF 8778 if test -n "$PRINTF"; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8780 $as_echo "$PRINTF" >&6; } 8781 else 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8783 $as_echo "no" >&6; } 8784 fi 8785 8786 8787 test -n "$PRINTF" && break 8788 done 8789 8790 else 8791 # The variable is set, but is it from the command line or the environment? 8792 8793 # Try to remove the string !PRINTF! from our list. 8794 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8795 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8796 # If it failed, the variable was not from the command line. Ignore it, 8797 # but warn the user (except for BASH, which is always set by the calling BASH). 8798 if test "xPRINTF" != xBASH; then 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8800 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8801 fi 8802 # Try to locate tool using the code snippet 8803 for ac_prog in printf 8804 do 8805 # Extract the first word of "$ac_prog", so it can be a program name with args. 8806 set dummy $ac_prog; ac_word=$2 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8808 $as_echo_n "checking for $ac_word... " >&6; } 8809 if ${ac_cv_path_PRINTF+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811 else 8812 case $PRINTF in 8813 [\\/]* | ?:[\\/]*) 8814 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8815 ;; 8816 *) 8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8818 for as_dir in $PATH 8819 do 8820 IFS=$as_save_IFS 8821 test -z "$as_dir" && as_dir=. 8822 for ac_exec_ext in '' $ac_executable_extensions; do 8823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8824 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8826 break 2 8827 fi 8828 done 8829 done 8830 IFS=$as_save_IFS 8831 8832 ;; 8833 esac 8834 fi 8835 PRINTF=$ac_cv_path_PRINTF 8836 if test -n "$PRINTF"; then 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8838 $as_echo "$PRINTF" >&6; } 8839 else 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841 $as_echo "no" >&6; } 8842 fi 8843 8844 8845 test -n "$PRINTF" && break 8846 done 8847 8848 else 8849 # If it succeeded, then it was overridden by the user. We will use it 8850 # for the tool. 8851 8852 # First remove it from the list of overridden variables, so we can test 8853 # for unknown variables in the end. 8854 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8855 8856 # Check if the provided tool contains a complete path. 8857 tool_specified="$PRINTF" 8858 tool_basename="${tool_specified##*/}" 8859 if test "x$tool_basename" = "x$tool_specified"; then 8860 # A command without a complete path is provided, search $PATH. 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8862 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8863 # Extract the first word of "$tool_basename", so it can be a program name with args. 8864 set dummy $tool_basename; ac_word=$2 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866 $as_echo_n "checking for $ac_word... " >&6; } 8867 if ${ac_cv_path_PRINTF+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869 else 8870 case $PRINTF in 8871 [\\/]* | ?:[\\/]*) 8872 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8873 ;; 8874 *) 8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8876 for as_dir in $PATH 8877 do 8878 IFS=$as_save_IFS 8879 test -z "$as_dir" && as_dir=. 8880 for ac_exec_ext in '' $ac_executable_extensions; do 8881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8882 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8884 break 2 8885 fi 8886 done 8887 done 8888 IFS=$as_save_IFS 8889 8890 ;; 8891 esac 8892 fi 8893 PRINTF=$ac_cv_path_PRINTF 8894 if test -n "$PRINTF"; then 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8896 $as_echo "$PRINTF" >&6; } 8897 else 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8899 $as_echo "no" >&6; } 8900 fi 8901 8902 8903 if test "x$PRINTF" = x; then 8904 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8905 fi 8906 else 8907 # Otherwise we believe it is a complete path. Use it as it is. 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8909 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8911 $as_echo_n "checking for PRINTF... " >&6; } 8912 if test ! -x "$tool_specified"; then 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8914 $as_echo "not found" >&6; } 8915 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8916 fi 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8918 $as_echo "$tool_specified" >&6; } 8919 fi 8920 fi 8921 fi 8922 8923 8924 8925 if test "x$PRINTF" = x; then 8926 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8927 fi 8928 8929 8930 8931 8932 8933 # Publish this variable in the help. 8934 8935 8936 if test "x$RM" = x; then 8937 # The variable is not set by user, try to locate tool using the code snippet 8938 for ac_prog in rm 8939 do 8940 # Extract the first word of "$ac_prog", so it can be a program name with args. 8941 set dummy $ac_prog; ac_word=$2 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8943 $as_echo_n "checking for $ac_word... " >&6; } 8944 if ${ac_cv_path_RM+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946 else 8947 case $RM in 8948 [\\/]* | ?:[\\/]*) 8949 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8950 ;; 8951 *) 8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8953 for as_dir in $PATH 8954 do 8955 IFS=$as_save_IFS 8956 test -z "$as_dir" && as_dir=. 8957 for ac_exec_ext in '' $ac_executable_extensions; do 8958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8959 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8961 break 2 8962 fi 8963 done 8964 done 8965 IFS=$as_save_IFS 8966 8967 ;; 8968 esac 8969 fi 8970 RM=$ac_cv_path_RM 8971 if test -n "$RM"; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8973 $as_echo "$RM" >&6; } 8974 else 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976 $as_echo "no" >&6; } 8977 fi 8978 8979 8980 test -n "$RM" && break 8981 done 8982 8983 else 8984 # The variable is set, but is it from the command line or the environment? 8985 8986 # Try to remove the string !RM! from our list. 8987 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8988 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8989 # If it failed, the variable was not from the command line. Ignore it, 8990 # but warn the user (except for BASH, which is always set by the calling BASH). 8991 if test "xRM" != xBASH; then 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8993 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8994 fi 8995 # Try to locate tool using the code snippet 8996 for ac_prog in rm 8997 do 8998 # Extract the first word of "$ac_prog", so it can be a program name with args. 8999 set dummy $ac_prog; ac_word=$2 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9001 $as_echo_n "checking for $ac_word... " >&6; } 9002 if ${ac_cv_path_RM+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004 else 9005 case $RM in 9006 [\\/]* | ?:[\\/]*) 9007 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9008 ;; 9009 *) 9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9011 for as_dir in $PATH 9012 do 9013 IFS=$as_save_IFS 9014 test -z "$as_dir" && as_dir=. 9015 for ac_exec_ext in '' $ac_executable_extensions; do 9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9017 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9019 break 2 9020 fi 9021 done 9022 done 9023 IFS=$as_save_IFS 9024 9025 ;; 9026 esac 9027 fi 9028 RM=$ac_cv_path_RM 9029 if test -n "$RM"; then 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9031 $as_echo "$RM" >&6; } 9032 else 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9034 $as_echo "no" >&6; } 9035 fi 9036 9037 9038 test -n "$RM" && break 9039 done 9040 9041 else 9042 # If it succeeded, then it was overridden by the user. We will use it 9043 # for the tool. 9044 9045 # First remove it from the list of overridden variables, so we can test 9046 # for unknown variables in the end. 9047 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9048 9049 # Check if the provided tool contains a complete path. 9050 tool_specified="$RM" 9051 tool_basename="${tool_specified##*/}" 9052 if test "x$tool_basename" = "x$tool_specified"; then 9053 # A command without a complete path is provided, search $PATH. 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9055 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9056 # Extract the first word of "$tool_basename", so it can be a program name with args. 9057 set dummy $tool_basename; ac_word=$2 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9059 $as_echo_n "checking for $ac_word... " >&6; } 9060 if ${ac_cv_path_RM+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062 else 9063 case $RM in 9064 [\\/]* | ?:[\\/]*) 9065 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9066 ;; 9067 *) 9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9069 for as_dir in $PATH 9070 do 9071 IFS=$as_save_IFS 9072 test -z "$as_dir" && as_dir=. 9073 for ac_exec_ext in '' $ac_executable_extensions; do 9074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9075 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9077 break 2 9078 fi 9079 done 9080 done 9081 IFS=$as_save_IFS 9082 9083 ;; 9084 esac 9085 fi 9086 RM=$ac_cv_path_RM 9087 if test -n "$RM"; then 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9089 $as_echo "$RM" >&6; } 9090 else 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9092 $as_echo "no" >&6; } 9093 fi 9094 9095 9096 if test "x$RM" = x; then 9097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9098 fi 9099 else 9100 # Otherwise we believe it is a complete path. Use it as it is. 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9102 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9104 $as_echo_n "checking for RM... " >&6; } 9105 if test ! -x "$tool_specified"; then 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9107 $as_echo "not found" >&6; } 9108 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9109 fi 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9111 $as_echo "$tool_specified" >&6; } 9112 fi 9113 fi 9114 fi 9115 9116 9117 9118 if test "x$RM" = x; then 9119 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9120 fi 9121 9122 9123 9124 9125 9126 # Publish this variable in the help. 9127 9128 9129 if test "x$SH" = x; then 9130 # The variable is not set by user, try to locate tool using the code snippet 9131 for ac_prog in sh 9132 do 9133 # Extract the first word of "$ac_prog", so it can be a program name with args. 9134 set dummy $ac_prog; ac_word=$2 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9136 $as_echo_n "checking for $ac_word... " >&6; } 9137 if ${ac_cv_path_SH+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139 else 9140 case $SH in 9141 [\\/]* | ?:[\\/]*) 9142 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9143 ;; 9144 *) 9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9146 for as_dir in $PATH 9147 do 9148 IFS=$as_save_IFS 9149 test -z "$as_dir" && as_dir=. 9150 for ac_exec_ext in '' $ac_executable_extensions; do 9151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9152 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9154 break 2 9155 fi 9156 done 9157 done 9158 IFS=$as_save_IFS 9159 9160 ;; 9161 esac 9162 fi 9163 SH=$ac_cv_path_SH 9164 if test -n "$SH"; then 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9166 $as_echo "$SH" >&6; } 9167 else 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9169 $as_echo "no" >&6; } 9170 fi 9171 9172 9173 test -n "$SH" && break 9174 done 9175 9176 else 9177 # The variable is set, but is it from the command line or the environment? 9178 9179 # Try to remove the string !SH! from our list. 9180 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9181 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9182 # If it failed, the variable was not from the command line. Ignore it, 9183 # but warn the user (except for BASH, which is always set by the calling BASH). 9184 if test "xSH" != xBASH; then 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9186 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9187 fi 9188 # Try to locate tool using the code snippet 9189 for ac_prog in sh 9190 do 9191 # Extract the first word of "$ac_prog", so it can be a program name with args. 9192 set dummy $ac_prog; ac_word=$2 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9194 $as_echo_n "checking for $ac_word... " >&6; } 9195 if ${ac_cv_path_SH+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197 else 9198 case $SH in 9199 [\\/]* | ?:[\\/]*) 9200 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9201 ;; 9202 *) 9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9204 for as_dir in $PATH 9205 do 9206 IFS=$as_save_IFS 9207 test -z "$as_dir" && as_dir=. 9208 for ac_exec_ext in '' $ac_executable_extensions; do 9209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9210 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9212 break 2 9213 fi 9214 done 9215 done 9216 IFS=$as_save_IFS 9217 9218 ;; 9219 esac 9220 fi 9221 SH=$ac_cv_path_SH 9222 if test -n "$SH"; then 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9224 $as_echo "$SH" >&6; } 9225 else 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9227 $as_echo "no" >&6; } 9228 fi 9229 9230 9231 test -n "$SH" && break 9232 done 9233 9234 else 9235 # If it succeeded, then it was overridden by the user. We will use it 9236 # for the tool. 9237 9238 # First remove it from the list of overridden variables, so we can test 9239 # for unknown variables in the end. 9240 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9241 9242 # Check if the provided tool contains a complete path. 9243 tool_specified="$SH" 9244 tool_basename="${tool_specified##*/}" 9245 if test "x$tool_basename" = "x$tool_specified"; then 9246 # A command without a complete path is provided, search $PATH. 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9248 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9249 # Extract the first word of "$tool_basename", so it can be a program name with args. 9250 set dummy $tool_basename; ac_word=$2 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9252 $as_echo_n "checking for $ac_word... " >&6; } 9253 if ${ac_cv_path_SH+:} false; then : 9254 $as_echo_n "(cached) " >&6 9255 else 9256 case $SH in 9257 [\\/]* | ?:[\\/]*) 9258 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9259 ;; 9260 *) 9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9262 for as_dir in $PATH 9263 do 9264 IFS=$as_save_IFS 9265 test -z "$as_dir" && as_dir=. 9266 for ac_exec_ext in '' $ac_executable_extensions; do 9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9268 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9270 break 2 9271 fi 9272 done 9273 done 9274 IFS=$as_save_IFS 9275 9276 ;; 9277 esac 9278 fi 9279 SH=$ac_cv_path_SH 9280 if test -n "$SH"; then 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9282 $as_echo "$SH" >&6; } 9283 else 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9285 $as_echo "no" >&6; } 9286 fi 9287 9288 9289 if test "x$SH" = x; then 9290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9291 fi 9292 else 9293 # Otherwise we believe it is a complete path. Use it as it is. 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9295 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9297 $as_echo_n "checking for SH... " >&6; } 9298 if test ! -x "$tool_specified"; then 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9300 $as_echo "not found" >&6; } 9301 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9302 fi 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9304 $as_echo "$tool_specified" >&6; } 9305 fi 9306 fi 9307 fi 9308 9309 9310 9311 if test "x$SH" = x; then 9312 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9313 fi 9314 9315 9316 9317 9318 9319 # Publish this variable in the help. 9320 9321 9322 if test "x$SORT" = x; then 9323 # The variable is not set by user, try to locate tool using the code snippet 9324 for ac_prog in sort 9325 do 9326 # Extract the first word of "$ac_prog", so it can be a program name with args. 9327 set dummy $ac_prog; ac_word=$2 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9329 $as_echo_n "checking for $ac_word... " >&6; } 9330 if ${ac_cv_path_SORT+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332 else 9333 case $SORT in 9334 [\\/]* | ?:[\\/]*) 9335 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9336 ;; 9337 *) 9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9339 for as_dir in $PATH 9340 do 9341 IFS=$as_save_IFS 9342 test -z "$as_dir" && as_dir=. 9343 for ac_exec_ext in '' $ac_executable_extensions; do 9344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9345 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9347 break 2 9348 fi 9349 done 9350 done 9351 IFS=$as_save_IFS 9352 9353 ;; 9354 esac 9355 fi 9356 SORT=$ac_cv_path_SORT 9357 if test -n "$SORT"; then 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9359 $as_echo "$SORT" >&6; } 9360 else 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9362 $as_echo "no" >&6; } 9363 fi 9364 9365 9366 test -n "$SORT" && break 9367 done 9368 9369 else 9370 # The variable is set, but is it from the command line or the environment? 9371 9372 # Try to remove the string !SORT! from our list. 9373 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9374 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9375 # If it failed, the variable was not from the command line. Ignore it, 9376 # but warn the user (except for BASH, which is always set by the calling BASH). 9377 if test "xSORT" != xBASH; then 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9379 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9380 fi 9381 # Try to locate tool using the code snippet 9382 for ac_prog in sort 9383 do 9384 # Extract the first word of "$ac_prog", so it can be a program name with args. 9385 set dummy $ac_prog; ac_word=$2 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9387 $as_echo_n "checking for $ac_word... " >&6; } 9388 if ${ac_cv_path_SORT+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390 else 9391 case $SORT in 9392 [\\/]* | ?:[\\/]*) 9393 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9394 ;; 9395 *) 9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9397 for as_dir in $PATH 9398 do 9399 IFS=$as_save_IFS 9400 test -z "$as_dir" && as_dir=. 9401 for ac_exec_ext in '' $ac_executable_extensions; do 9402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9403 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9405 break 2 9406 fi 9407 done 9408 done 9409 IFS=$as_save_IFS 9410 9411 ;; 9412 esac 9413 fi 9414 SORT=$ac_cv_path_SORT 9415 if test -n "$SORT"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9417 $as_echo "$SORT" >&6; } 9418 else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420 $as_echo "no" >&6; } 9421 fi 9422 9423 9424 test -n "$SORT" && break 9425 done 9426 9427 else 9428 # If it succeeded, then it was overridden by the user. We will use it 9429 # for the tool. 9430 9431 # First remove it from the list of overridden variables, so we can test 9432 # for unknown variables in the end. 9433 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9434 9435 # Check if the provided tool contains a complete path. 9436 tool_specified="$SORT" 9437 tool_basename="${tool_specified##*/}" 9438 if test "x$tool_basename" = "x$tool_specified"; then 9439 # A command without a complete path is provided, search $PATH. 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9441 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9442 # Extract the first word of "$tool_basename", so it can be a program name with args. 9443 set dummy $tool_basename; ac_word=$2 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9445 $as_echo_n "checking for $ac_word... " >&6; } 9446 if ${ac_cv_path_SORT+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448 else 9449 case $SORT in 9450 [\\/]* | ?:[\\/]*) 9451 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9452 ;; 9453 *) 9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9455 for as_dir in $PATH 9456 do 9457 IFS=$as_save_IFS 9458 test -z "$as_dir" && as_dir=. 9459 for ac_exec_ext in '' $ac_executable_extensions; do 9460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9461 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9463 break 2 9464 fi 9465 done 9466 done 9467 IFS=$as_save_IFS 9468 9469 ;; 9470 esac 9471 fi 9472 SORT=$ac_cv_path_SORT 9473 if test -n "$SORT"; then 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9475 $as_echo "$SORT" >&6; } 9476 else 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9478 $as_echo "no" >&6; } 9479 fi 9480 9481 9482 if test "x$SORT" = x; then 9483 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9484 fi 9485 else 9486 # Otherwise we believe it is a complete path. Use it as it is. 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9488 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9490 $as_echo_n "checking for SORT... " >&6; } 9491 if test ! -x "$tool_specified"; then 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9493 $as_echo "not found" >&6; } 9494 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9495 fi 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9497 $as_echo "$tool_specified" >&6; } 9498 fi 9499 fi 9500 fi 9501 9502 9503 9504 if test "x$SORT" = x; then 9505 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9506 fi 9507 9508 9509 9510 9511 9512 # Publish this variable in the help. 9513 9514 9515 if test "x$TAIL" = x; then 9516 # The variable is not set by user, try to locate tool using the code snippet 9517 for ac_prog in tail 9518 do 9519 # Extract the first word of "$ac_prog", so it can be a program name with args. 9520 set dummy $ac_prog; ac_word=$2 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9522 $as_echo_n "checking for $ac_word... " >&6; } 9523 if ${ac_cv_path_TAIL+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525 else 9526 case $TAIL in 9527 [\\/]* | ?:[\\/]*) 9528 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9529 ;; 9530 *) 9531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9532 for as_dir in $PATH 9533 do 9534 IFS=$as_save_IFS 9535 test -z "$as_dir" && as_dir=. 9536 for ac_exec_ext in '' $ac_executable_extensions; do 9537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9538 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9540 break 2 9541 fi 9542 done 9543 done 9544 IFS=$as_save_IFS 9545 9546 ;; 9547 esac 9548 fi 9549 TAIL=$ac_cv_path_TAIL 9550 if test -n "$TAIL"; then 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9552 $as_echo "$TAIL" >&6; } 9553 else 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9555 $as_echo "no" >&6; } 9556 fi 9557 9558 9559 test -n "$TAIL" && break 9560 done 9561 9562 else 9563 # The variable is set, but is it from the command line or the environment? 9564 9565 # Try to remove the string !TAIL! from our list. 9566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9568 # If it failed, the variable was not from the command line. Ignore it, 9569 # but warn the user (except for BASH, which is always set by the calling BASH). 9570 if test "xTAIL" != xBASH; then 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9572 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9573 fi 9574 # Try to locate tool using the code snippet 9575 for ac_prog in tail 9576 do 9577 # Extract the first word of "$ac_prog", so it can be a program name with args. 9578 set dummy $ac_prog; ac_word=$2 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9580 $as_echo_n "checking for $ac_word... " >&6; } 9581 if ${ac_cv_path_TAIL+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583 else 9584 case $TAIL in 9585 [\\/]* | ?:[\\/]*) 9586 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9587 ;; 9588 *) 9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9590 for as_dir in $PATH 9591 do 9592 IFS=$as_save_IFS 9593 test -z "$as_dir" && as_dir=. 9594 for ac_exec_ext in '' $ac_executable_extensions; do 9595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9596 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9598 break 2 9599 fi 9600 done 9601 done 9602 IFS=$as_save_IFS 9603 9604 ;; 9605 esac 9606 fi 9607 TAIL=$ac_cv_path_TAIL 9608 if test -n "$TAIL"; then 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9610 $as_echo "$TAIL" >&6; } 9611 else 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9613 $as_echo "no" >&6; } 9614 fi 9615 9616 9617 test -n "$TAIL" && break 9618 done 9619 9620 else 9621 # If it succeeded, then it was overridden by the user. We will use it 9622 # for the tool. 9623 9624 # First remove it from the list of overridden variables, so we can test 9625 # for unknown variables in the end. 9626 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9627 9628 # Check if the provided tool contains a complete path. 9629 tool_specified="$TAIL" 9630 tool_basename="${tool_specified##*/}" 9631 if test "x$tool_basename" = "x$tool_specified"; then 9632 # A command without a complete path is provided, search $PATH. 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9634 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9635 # Extract the first word of "$tool_basename", so it can be a program name with args. 9636 set dummy $tool_basename; ac_word=$2 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9638 $as_echo_n "checking for $ac_word... " >&6; } 9639 if ${ac_cv_path_TAIL+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641 else 9642 case $TAIL in 9643 [\\/]* | ?:[\\/]*) 9644 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9645 ;; 9646 *) 9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9648 for as_dir in $PATH 9649 do 9650 IFS=$as_save_IFS 9651 test -z "$as_dir" && as_dir=. 9652 for ac_exec_ext in '' $ac_executable_extensions; do 9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9654 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9656 break 2 9657 fi 9658 done 9659 done 9660 IFS=$as_save_IFS 9661 9662 ;; 9663 esac 9664 fi 9665 TAIL=$ac_cv_path_TAIL 9666 if test -n "$TAIL"; then 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9668 $as_echo "$TAIL" >&6; } 9669 else 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9671 $as_echo "no" >&6; } 9672 fi 9673 9674 9675 if test "x$TAIL" = x; then 9676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9677 fi 9678 else 9679 # Otherwise we believe it is a complete path. Use it as it is. 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9681 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9683 $as_echo_n "checking for TAIL... " >&6; } 9684 if test ! -x "$tool_specified"; then 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9686 $as_echo "not found" >&6; } 9687 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9688 fi 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9690 $as_echo "$tool_specified" >&6; } 9691 fi 9692 fi 9693 fi 9694 9695 9696 9697 if test "x$TAIL" = x; then 9698 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9699 fi 9700 9701 9702 9703 9704 9705 # Publish this variable in the help. 9706 9707 9708 if test "x$TAR" = x; then 9709 # The variable is not set by user, try to locate tool using the code snippet 9710 for ac_prog in tar 9711 do 9712 # Extract the first word of "$ac_prog", so it can be a program name with args. 9713 set dummy $ac_prog; ac_word=$2 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9715 $as_echo_n "checking for $ac_word... " >&6; } 9716 if ${ac_cv_path_TAR+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718 else 9719 case $TAR in 9720 [\\/]* | ?:[\\/]*) 9721 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9722 ;; 9723 *) 9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725 for as_dir in $PATH 9726 do 9727 IFS=$as_save_IFS 9728 test -z "$as_dir" && as_dir=. 9729 for ac_exec_ext in '' $ac_executable_extensions; do 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9731 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9733 break 2 9734 fi 9735 done 9736 done 9737 IFS=$as_save_IFS 9738 9739 ;; 9740 esac 9741 fi 9742 TAR=$ac_cv_path_TAR 9743 if test -n "$TAR"; then 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9745 $as_echo "$TAR" >&6; } 9746 else 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9748 $as_echo "no" >&6; } 9749 fi 9750 9751 9752 test -n "$TAR" && break 9753 done 9754 9755 else 9756 # The variable is set, but is it from the command line or the environment? 9757 9758 # Try to remove the string !TAR! from our list. 9759 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9760 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9761 # If it failed, the variable was not from the command line. Ignore it, 9762 # but warn the user (except for BASH, which is always set by the calling BASH). 9763 if test "xTAR" != xBASH; then 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9765 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9766 fi 9767 # Try to locate tool using the code snippet 9768 for ac_prog in tar 9769 do 9770 # Extract the first word of "$ac_prog", so it can be a program name with args. 9771 set dummy $ac_prog; ac_word=$2 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9773 $as_echo_n "checking for $ac_word... " >&6; } 9774 if ${ac_cv_path_TAR+:} false; then : 9775 $as_echo_n "(cached) " >&6 9776 else 9777 case $TAR in 9778 [\\/]* | ?:[\\/]*) 9779 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9780 ;; 9781 *) 9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9783 for as_dir in $PATH 9784 do 9785 IFS=$as_save_IFS 9786 test -z "$as_dir" && as_dir=. 9787 for ac_exec_ext in '' $ac_executable_extensions; do 9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9789 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9791 break 2 9792 fi 9793 done 9794 done 9795 IFS=$as_save_IFS 9796 9797 ;; 9798 esac 9799 fi 9800 TAR=$ac_cv_path_TAR 9801 if test -n "$TAR"; then 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9803 $as_echo "$TAR" >&6; } 9804 else 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9806 $as_echo "no" >&6; } 9807 fi 9808 9809 9810 test -n "$TAR" && break 9811 done 9812 9813 else 9814 # If it succeeded, then it was overridden by the user. We will use it 9815 # for the tool. 9816 9817 # First remove it from the list of overridden variables, so we can test 9818 # for unknown variables in the end. 9819 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9820 9821 # Check if the provided tool contains a complete path. 9822 tool_specified="$TAR" 9823 tool_basename="${tool_specified##*/}" 9824 if test "x$tool_basename" = "x$tool_specified"; then 9825 # A command without a complete path is provided, search $PATH. 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9827 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9828 # Extract the first word of "$tool_basename", so it can be a program name with args. 9829 set dummy $tool_basename; ac_word=$2 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9831 $as_echo_n "checking for $ac_word... " >&6; } 9832 if ${ac_cv_path_TAR+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834 else 9835 case $TAR in 9836 [\\/]* | ?:[\\/]*) 9837 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9838 ;; 9839 *) 9840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9841 for as_dir in $PATH 9842 do 9843 IFS=$as_save_IFS 9844 test -z "$as_dir" && as_dir=. 9845 for ac_exec_ext in '' $ac_executable_extensions; do 9846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9847 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9849 break 2 9850 fi 9851 done 9852 done 9853 IFS=$as_save_IFS 9854 9855 ;; 9856 esac 9857 fi 9858 TAR=$ac_cv_path_TAR 9859 if test -n "$TAR"; then 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9861 $as_echo "$TAR" >&6; } 9862 else 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9864 $as_echo "no" >&6; } 9865 fi 9866 9867 9868 if test "x$TAR" = x; then 9869 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9870 fi 9871 else 9872 # Otherwise we believe it is a complete path. Use it as it is. 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9874 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9876 $as_echo_n "checking for TAR... " >&6; } 9877 if test ! -x "$tool_specified"; then 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9879 $as_echo "not found" >&6; } 9880 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9881 fi 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9883 $as_echo "$tool_specified" >&6; } 9884 fi 9885 fi 9886 fi 9887 9888 9889 9890 if test "x$TAR" = x; then 9891 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9892 fi 9893 9894 9895 9896 9897 9898 # Publish this variable in the help. 9899 9900 9901 if test "x$TEE" = x; then 9902 # The variable is not set by user, try to locate tool using the code snippet 9903 for ac_prog in tee 9904 do 9905 # Extract the first word of "$ac_prog", so it can be a program name with args. 9906 set dummy $ac_prog; ac_word=$2 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9908 $as_echo_n "checking for $ac_word... " >&6; } 9909 if ${ac_cv_path_TEE+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911 else 9912 case $TEE in 9913 [\\/]* | ?:[\\/]*) 9914 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9915 ;; 9916 *) 9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9918 for as_dir in $PATH 9919 do 9920 IFS=$as_save_IFS 9921 test -z "$as_dir" && as_dir=. 9922 for ac_exec_ext in '' $ac_executable_extensions; do 9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9924 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9926 break 2 9927 fi 9928 done 9929 done 9930 IFS=$as_save_IFS 9931 9932 ;; 9933 esac 9934 fi 9935 TEE=$ac_cv_path_TEE 9936 if test -n "$TEE"; then 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9938 $as_echo "$TEE" >&6; } 9939 else 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9941 $as_echo "no" >&6; } 9942 fi 9943 9944 9945 test -n "$TEE" && break 9946 done 9947 9948 else 9949 # The variable is set, but is it from the command line or the environment? 9950 9951 # Try to remove the string !TEE! from our list. 9952 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9953 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9954 # If it failed, the variable was not from the command line. Ignore it, 9955 # but warn the user (except for BASH, which is always set by the calling BASH). 9956 if test "xTEE" != xBASH; then 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9958 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9959 fi 9960 # Try to locate tool using the code snippet 9961 for ac_prog in tee 9962 do 9963 # Extract the first word of "$ac_prog", so it can be a program name with args. 9964 set dummy $ac_prog; ac_word=$2 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9966 $as_echo_n "checking for $ac_word... " >&6; } 9967 if ${ac_cv_path_TEE+:} false; then : 9968 $as_echo_n "(cached) " >&6 9969 else 9970 case $TEE in 9971 [\\/]* | ?:[\\/]*) 9972 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9973 ;; 9974 *) 9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9976 for as_dir in $PATH 9977 do 9978 IFS=$as_save_IFS 9979 test -z "$as_dir" && as_dir=. 9980 for ac_exec_ext in '' $ac_executable_extensions; do 9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9982 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9984 break 2 9985 fi 9986 done 9987 done 9988 IFS=$as_save_IFS 9989 9990 ;; 9991 esac 9992 fi 9993 TEE=$ac_cv_path_TEE 9994 if test -n "$TEE"; then 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9996 $as_echo "$TEE" >&6; } 9997 else 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9999 $as_echo "no" >&6; } 10000 fi 10001 10002 10003 test -n "$TEE" && break 10004 done 10005 10006 else 10007 # If it succeeded, then it was overridden by the user. We will use it 10008 # for the tool. 10009 10010 # First remove it from the list of overridden variables, so we can test 10011 # for unknown variables in the end. 10012 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10013 10014 # Check if the provided tool contains a complete path. 10015 tool_specified="$TEE" 10016 tool_basename="${tool_specified##*/}" 10017 if test "x$tool_basename" = "x$tool_specified"; then 10018 # A command without a complete path is provided, search $PATH. 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10020 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10021 # Extract the first word of "$tool_basename", so it can be a program name with args. 10022 set dummy $tool_basename; ac_word=$2 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10024 $as_echo_n "checking for $ac_word... " >&6; } 10025 if ${ac_cv_path_TEE+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027 else 10028 case $TEE in 10029 [\\/]* | ?:[\\/]*) 10030 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10031 ;; 10032 *) 10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10034 for as_dir in $PATH 10035 do 10036 IFS=$as_save_IFS 10037 test -z "$as_dir" && as_dir=. 10038 for ac_exec_ext in '' $ac_executable_extensions; do 10039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10040 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10042 break 2 10043 fi 10044 done 10045 done 10046 IFS=$as_save_IFS 10047 10048 ;; 10049 esac 10050 fi 10051 TEE=$ac_cv_path_TEE 10052 if test -n "$TEE"; then 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10054 $as_echo "$TEE" >&6; } 10055 else 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10057 $as_echo "no" >&6; } 10058 fi 10059 10060 10061 if test "x$TEE" = x; then 10062 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10063 fi 10064 else 10065 # Otherwise we believe it is a complete path. Use it as it is. 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10067 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10069 $as_echo_n "checking for TEE... " >&6; } 10070 if test ! -x "$tool_specified"; then 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10072 $as_echo "not found" >&6; } 10073 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10074 fi 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10076 $as_echo "$tool_specified" >&6; } 10077 fi 10078 fi 10079 fi 10080 10081 10082 10083 if test "x$TEE" = x; then 10084 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10085 fi 10086 10087 10088 10089 10090 10091 # Publish this variable in the help. 10092 10093 10094 if test "x$TOUCH" = x; then 10095 # The variable is not set by user, try to locate tool using the code snippet 10096 for ac_prog in touch 10097 do 10098 # Extract the first word of "$ac_prog", so it can be a program name with args. 10099 set dummy $ac_prog; ac_word=$2 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10101 $as_echo_n "checking for $ac_word... " >&6; } 10102 if ${ac_cv_path_TOUCH+:} false; then : 10103 $as_echo_n "(cached) " >&6 10104 else 10105 case $TOUCH in 10106 [\\/]* | ?:[\\/]*) 10107 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10108 ;; 10109 *) 10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10111 for as_dir in $PATH 10112 do 10113 IFS=$as_save_IFS 10114 test -z "$as_dir" && as_dir=. 10115 for ac_exec_ext in '' $ac_executable_extensions; do 10116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10117 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10119 break 2 10120 fi 10121 done 10122 done 10123 IFS=$as_save_IFS 10124 10125 ;; 10126 esac 10127 fi 10128 TOUCH=$ac_cv_path_TOUCH 10129 if test -n "$TOUCH"; then 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10131 $as_echo "$TOUCH" >&6; } 10132 else 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10134 $as_echo "no" >&6; } 10135 fi 10136 10137 10138 test -n "$TOUCH" && break 10139 done 10140 10141 else 10142 # The variable is set, but is it from the command line or the environment? 10143 10144 # Try to remove the string !TOUCH! from our list. 10145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10147 # If it failed, the variable was not from the command line. Ignore it, 10148 # but warn the user (except for BASH, which is always set by the calling BASH). 10149 if test "xTOUCH" != xBASH; then 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10151 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10152 fi 10153 # Try to locate tool using the code snippet 10154 for ac_prog in touch 10155 do 10156 # Extract the first word of "$ac_prog", so it can be a program name with args. 10157 set dummy $ac_prog; ac_word=$2 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10159 $as_echo_n "checking for $ac_word... " >&6; } 10160 if ${ac_cv_path_TOUCH+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162 else 10163 case $TOUCH in 10164 [\\/]* | ?:[\\/]*) 10165 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10166 ;; 10167 *) 10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10169 for as_dir in $PATH 10170 do 10171 IFS=$as_save_IFS 10172 test -z "$as_dir" && as_dir=. 10173 for ac_exec_ext in '' $ac_executable_extensions; do 10174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10175 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10177 break 2 10178 fi 10179 done 10180 done 10181 IFS=$as_save_IFS 10182 10183 ;; 10184 esac 10185 fi 10186 TOUCH=$ac_cv_path_TOUCH 10187 if test -n "$TOUCH"; then 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10189 $as_echo "$TOUCH" >&6; } 10190 else 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10192 $as_echo "no" >&6; } 10193 fi 10194 10195 10196 test -n "$TOUCH" && break 10197 done 10198 10199 else 10200 # If it succeeded, then it was overridden by the user. We will use it 10201 # for the tool. 10202 10203 # First remove it from the list of overridden variables, so we can test 10204 # for unknown variables in the end. 10205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10206 10207 # Check if the provided tool contains a complete path. 10208 tool_specified="$TOUCH" 10209 tool_basename="${tool_specified##*/}" 10210 if test "x$tool_basename" = "x$tool_specified"; then 10211 # A command without a complete path is provided, search $PATH. 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10213 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10214 # Extract the first word of "$tool_basename", so it can be a program name with args. 10215 set dummy $tool_basename; ac_word=$2 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10217 $as_echo_n "checking for $ac_word... " >&6; } 10218 if ${ac_cv_path_TOUCH+:} false; then : 10219 $as_echo_n "(cached) " >&6 10220 else 10221 case $TOUCH in 10222 [\\/]* | ?:[\\/]*) 10223 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10224 ;; 10225 *) 10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10227 for as_dir in $PATH 10228 do 10229 IFS=$as_save_IFS 10230 test -z "$as_dir" && as_dir=. 10231 for ac_exec_ext in '' $ac_executable_extensions; do 10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10233 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10235 break 2 10236 fi 10237 done 10238 done 10239 IFS=$as_save_IFS 10240 10241 ;; 10242 esac 10243 fi 10244 TOUCH=$ac_cv_path_TOUCH 10245 if test -n "$TOUCH"; then 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10247 $as_echo "$TOUCH" >&6; } 10248 else 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10250 $as_echo "no" >&6; } 10251 fi 10252 10253 10254 if test "x$TOUCH" = x; then 10255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10256 fi 10257 else 10258 # Otherwise we believe it is a complete path. Use it as it is. 10259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10260 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10262 $as_echo_n "checking for TOUCH... " >&6; } 10263 if test ! -x "$tool_specified"; then 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10265 $as_echo "not found" >&6; } 10266 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10267 fi 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10269 $as_echo "$tool_specified" >&6; } 10270 fi 10271 fi 10272 fi 10273 10274 10275 10276 if test "x$TOUCH" = x; then 10277 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10278 fi 10279 10280 10281 10282 10283 10284 # Publish this variable in the help. 10285 10286 10287 if test "x$TR" = x; then 10288 # The variable is not set by user, try to locate tool using the code snippet 10289 for ac_prog in tr 10290 do 10291 # Extract the first word of "$ac_prog", so it can be a program name with args. 10292 set dummy $ac_prog; ac_word=$2 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10294 $as_echo_n "checking for $ac_word... " >&6; } 10295 if ${ac_cv_path_TR+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297 else 10298 case $TR in 10299 [\\/]* | ?:[\\/]*) 10300 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10301 ;; 10302 *) 10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10304 for as_dir in $PATH 10305 do 10306 IFS=$as_save_IFS 10307 test -z "$as_dir" && as_dir=. 10308 for ac_exec_ext in '' $ac_executable_extensions; do 10309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10310 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10312 break 2 10313 fi 10314 done 10315 done 10316 IFS=$as_save_IFS 10317 10318 ;; 10319 esac 10320 fi 10321 TR=$ac_cv_path_TR 10322 if test -n "$TR"; then 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10324 $as_echo "$TR" >&6; } 10325 else 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10327 $as_echo "no" >&6; } 10328 fi 10329 10330 10331 test -n "$TR" && break 10332 done 10333 10334 else 10335 # The variable is set, but is it from the command line or the environment? 10336 10337 # Try to remove the string !TR! from our list. 10338 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10339 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10340 # If it failed, the variable was not from the command line. Ignore it, 10341 # but warn the user (except for BASH, which is always set by the calling BASH). 10342 if test "xTR" != xBASH; then 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10344 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10345 fi 10346 # Try to locate tool using the code snippet 10347 for ac_prog in tr 10348 do 10349 # Extract the first word of "$ac_prog", so it can be a program name with args. 10350 set dummy $ac_prog; ac_word=$2 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10352 $as_echo_n "checking for $ac_word... " >&6; } 10353 if ${ac_cv_path_TR+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355 else 10356 case $TR in 10357 [\\/]* | ?:[\\/]*) 10358 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10359 ;; 10360 *) 10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10362 for as_dir in $PATH 10363 do 10364 IFS=$as_save_IFS 10365 test -z "$as_dir" && as_dir=. 10366 for ac_exec_ext in '' $ac_executable_extensions; do 10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10368 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10370 break 2 10371 fi 10372 done 10373 done 10374 IFS=$as_save_IFS 10375 10376 ;; 10377 esac 10378 fi 10379 TR=$ac_cv_path_TR 10380 if test -n "$TR"; then 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10382 $as_echo "$TR" >&6; } 10383 else 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10385 $as_echo "no" >&6; } 10386 fi 10387 10388 10389 test -n "$TR" && break 10390 done 10391 10392 else 10393 # If it succeeded, then it was overridden by the user. We will use it 10394 # for the tool. 10395 10396 # First remove it from the list of overridden variables, so we can test 10397 # for unknown variables in the end. 10398 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10399 10400 # Check if the provided tool contains a complete path. 10401 tool_specified="$TR" 10402 tool_basename="${tool_specified##*/}" 10403 if test "x$tool_basename" = "x$tool_specified"; then 10404 # A command without a complete path is provided, search $PATH. 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10406 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10407 # Extract the first word of "$tool_basename", so it can be a program name with args. 10408 set dummy $tool_basename; ac_word=$2 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10410 $as_echo_n "checking for $ac_word... " >&6; } 10411 if ${ac_cv_path_TR+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413 else 10414 case $TR in 10415 [\\/]* | ?:[\\/]*) 10416 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10417 ;; 10418 *) 10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10420 for as_dir in $PATH 10421 do 10422 IFS=$as_save_IFS 10423 test -z "$as_dir" && as_dir=. 10424 for ac_exec_ext in '' $ac_executable_extensions; do 10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10426 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10428 break 2 10429 fi 10430 done 10431 done 10432 IFS=$as_save_IFS 10433 10434 ;; 10435 esac 10436 fi 10437 TR=$ac_cv_path_TR 10438 if test -n "$TR"; then 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10440 $as_echo "$TR" >&6; } 10441 else 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10443 $as_echo "no" >&6; } 10444 fi 10445 10446 10447 if test "x$TR" = x; then 10448 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10449 fi 10450 else 10451 # Otherwise we believe it is a complete path. Use it as it is. 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10453 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10455 $as_echo_n "checking for TR... " >&6; } 10456 if test ! -x "$tool_specified"; then 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10458 $as_echo "not found" >&6; } 10459 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10460 fi 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10462 $as_echo "$tool_specified" >&6; } 10463 fi 10464 fi 10465 fi 10466 10467 10468 10469 if test "x$TR" = x; then 10470 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10471 fi 10472 10473 10474 10475 10476 10477 # Publish this variable in the help. 10478 10479 10480 if test "x$UNAME" = x; then 10481 # The variable is not set by user, try to locate tool using the code snippet 10482 for ac_prog in uname 10483 do 10484 # Extract the first word of "$ac_prog", so it can be a program name with args. 10485 set dummy $ac_prog; ac_word=$2 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10487 $as_echo_n "checking for $ac_word... " >&6; } 10488 if ${ac_cv_path_UNAME+:} false; then : 10489 $as_echo_n "(cached) " >&6 10490 else 10491 case $UNAME in 10492 [\\/]* | ?:[\\/]*) 10493 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10494 ;; 10495 *) 10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10497 for as_dir in $PATH 10498 do 10499 IFS=$as_save_IFS 10500 test -z "$as_dir" && as_dir=. 10501 for ac_exec_ext in '' $ac_executable_extensions; do 10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10503 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10505 break 2 10506 fi 10507 done 10508 done 10509 IFS=$as_save_IFS 10510 10511 ;; 10512 esac 10513 fi 10514 UNAME=$ac_cv_path_UNAME 10515 if test -n "$UNAME"; then 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10517 $as_echo "$UNAME" >&6; } 10518 else 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10520 $as_echo "no" >&6; } 10521 fi 10522 10523 10524 test -n "$UNAME" && break 10525 done 10526 10527 else 10528 # The variable is set, but is it from the command line or the environment? 10529 10530 # Try to remove the string !UNAME! from our list. 10531 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10532 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10533 # If it failed, the variable was not from the command line. Ignore it, 10534 # but warn the user (except for BASH, which is always set by the calling BASH). 10535 if test "xUNAME" != xBASH; then 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10537 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10538 fi 10539 # Try to locate tool using the code snippet 10540 for ac_prog in uname 10541 do 10542 # Extract the first word of "$ac_prog", so it can be a program name with args. 10543 set dummy $ac_prog; ac_word=$2 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10545 $as_echo_n "checking for $ac_word... " >&6; } 10546 if ${ac_cv_path_UNAME+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548 else 10549 case $UNAME in 10550 [\\/]* | ?:[\\/]*) 10551 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10552 ;; 10553 *) 10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10555 for as_dir in $PATH 10556 do 10557 IFS=$as_save_IFS 10558 test -z "$as_dir" && as_dir=. 10559 for ac_exec_ext in '' $ac_executable_extensions; do 10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10561 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10563 break 2 10564 fi 10565 done 10566 done 10567 IFS=$as_save_IFS 10568 10569 ;; 10570 esac 10571 fi 10572 UNAME=$ac_cv_path_UNAME 10573 if test -n "$UNAME"; then 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10575 $as_echo "$UNAME" >&6; } 10576 else 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10578 $as_echo "no" >&6; } 10579 fi 10580 10581 10582 test -n "$UNAME" && break 10583 done 10584 10585 else 10586 # If it succeeded, then it was overridden by the user. We will use it 10587 # for the tool. 10588 10589 # First remove it from the list of overridden variables, so we can test 10590 # for unknown variables in the end. 10591 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10592 10593 # Check if the provided tool contains a complete path. 10594 tool_specified="$UNAME" 10595 tool_basename="${tool_specified##*/}" 10596 if test "x$tool_basename" = "x$tool_specified"; then 10597 # A command without a complete path is provided, search $PATH. 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10599 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10600 # Extract the first word of "$tool_basename", so it can be a program name with args. 10601 set dummy $tool_basename; ac_word=$2 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10603 $as_echo_n "checking for $ac_word... " >&6; } 10604 if ${ac_cv_path_UNAME+:} false; then : 10605 $as_echo_n "(cached) " >&6 10606 else 10607 case $UNAME in 10608 [\\/]* | ?:[\\/]*) 10609 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10610 ;; 10611 *) 10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10613 for as_dir in $PATH 10614 do 10615 IFS=$as_save_IFS 10616 test -z "$as_dir" && as_dir=. 10617 for ac_exec_ext in '' $ac_executable_extensions; do 10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10619 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10621 break 2 10622 fi 10623 done 10624 done 10625 IFS=$as_save_IFS 10626 10627 ;; 10628 esac 10629 fi 10630 UNAME=$ac_cv_path_UNAME 10631 if test -n "$UNAME"; then 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10633 $as_echo "$UNAME" >&6; } 10634 else 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10636 $as_echo "no" >&6; } 10637 fi 10638 10639 10640 if test "x$UNAME" = x; then 10641 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10642 fi 10643 else 10644 # Otherwise we believe it is a complete path. Use it as it is. 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10646 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10648 $as_echo_n "checking for UNAME... " >&6; } 10649 if test ! -x "$tool_specified"; then 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10651 $as_echo "not found" >&6; } 10652 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10653 fi 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10655 $as_echo "$tool_specified" >&6; } 10656 fi 10657 fi 10658 fi 10659 10660 10661 10662 if test "x$UNAME" = x; then 10663 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10664 fi 10665 10666 10667 10668 10669 10670 # Publish this variable in the help. 10671 10672 10673 if test "x$UNIQ" = x; then 10674 # The variable is not set by user, try to locate tool using the code snippet 10675 for ac_prog in uniq 10676 do 10677 # Extract the first word of "$ac_prog", so it can be a program name with args. 10678 set dummy $ac_prog; ac_word=$2 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10680 $as_echo_n "checking for $ac_word... " >&6; } 10681 if ${ac_cv_path_UNIQ+:} false; then : 10682 $as_echo_n "(cached) " >&6 10683 else 10684 case $UNIQ in 10685 [\\/]* | ?:[\\/]*) 10686 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10687 ;; 10688 *) 10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10690 for as_dir in $PATH 10691 do 10692 IFS=$as_save_IFS 10693 test -z "$as_dir" && as_dir=. 10694 for ac_exec_ext in '' $ac_executable_extensions; do 10695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10696 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10698 break 2 10699 fi 10700 done 10701 done 10702 IFS=$as_save_IFS 10703 10704 ;; 10705 esac 10706 fi 10707 UNIQ=$ac_cv_path_UNIQ 10708 if test -n "$UNIQ"; then 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10710 $as_echo "$UNIQ" >&6; } 10711 else 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10713 $as_echo "no" >&6; } 10714 fi 10715 10716 10717 test -n "$UNIQ" && break 10718 done 10719 10720 else 10721 # The variable is set, but is it from the command line or the environment? 10722 10723 # Try to remove the string !UNIQ! from our list. 10724 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10725 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10726 # If it failed, the variable was not from the command line. Ignore it, 10727 # but warn the user (except for BASH, which is always set by the calling BASH). 10728 if test "xUNIQ" != xBASH; then 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10730 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10731 fi 10732 # Try to locate tool using the code snippet 10733 for ac_prog in uniq 10734 do 10735 # Extract the first word of "$ac_prog", so it can be a program name with args. 10736 set dummy $ac_prog; ac_word=$2 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10738 $as_echo_n "checking for $ac_word... " >&6; } 10739 if ${ac_cv_path_UNIQ+:} false; then : 10740 $as_echo_n "(cached) " >&6 10741 else 10742 case $UNIQ in 10743 [\\/]* | ?:[\\/]*) 10744 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10745 ;; 10746 *) 10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10748 for as_dir in $PATH 10749 do 10750 IFS=$as_save_IFS 10751 test -z "$as_dir" && as_dir=. 10752 for ac_exec_ext in '' $ac_executable_extensions; do 10753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10754 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10756 break 2 10757 fi 10758 done 10759 done 10760 IFS=$as_save_IFS 10761 10762 ;; 10763 esac 10764 fi 10765 UNIQ=$ac_cv_path_UNIQ 10766 if test -n "$UNIQ"; then 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10768 $as_echo "$UNIQ" >&6; } 10769 else 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10771 $as_echo "no" >&6; } 10772 fi 10773 10774 10775 test -n "$UNIQ" && break 10776 done 10777 10778 else 10779 # If it succeeded, then it was overridden by the user. We will use it 10780 # for the tool. 10781 10782 # First remove it from the list of overridden variables, so we can test 10783 # for unknown variables in the end. 10784 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10785 10786 # Check if the provided tool contains a complete path. 10787 tool_specified="$UNIQ" 10788 tool_basename="${tool_specified##*/}" 10789 if test "x$tool_basename" = "x$tool_specified"; then 10790 # A command without a complete path is provided, search $PATH. 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10792 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10793 # Extract the first word of "$tool_basename", so it can be a program name with args. 10794 set dummy $tool_basename; ac_word=$2 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10796 $as_echo_n "checking for $ac_word... " >&6; } 10797 if ${ac_cv_path_UNIQ+:} false; then : 10798 $as_echo_n "(cached) " >&6 10799 else 10800 case $UNIQ in 10801 [\\/]* | ?:[\\/]*) 10802 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10803 ;; 10804 *) 10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10806 for as_dir in $PATH 10807 do 10808 IFS=$as_save_IFS 10809 test -z "$as_dir" && as_dir=. 10810 for ac_exec_ext in '' $ac_executable_extensions; do 10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10812 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10814 break 2 10815 fi 10816 done 10817 done 10818 IFS=$as_save_IFS 10819 10820 ;; 10821 esac 10822 fi 10823 UNIQ=$ac_cv_path_UNIQ 10824 if test -n "$UNIQ"; then 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10826 $as_echo "$UNIQ" >&6; } 10827 else 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10829 $as_echo "no" >&6; } 10830 fi 10831 10832 10833 if test "x$UNIQ" = x; then 10834 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10835 fi 10836 else 10837 # Otherwise we believe it is a complete path. Use it as it is. 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10839 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10841 $as_echo_n "checking for UNIQ... " >&6; } 10842 if test ! -x "$tool_specified"; then 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10844 $as_echo "not found" >&6; } 10845 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10846 fi 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10848 $as_echo "$tool_specified" >&6; } 10849 fi 10850 fi 10851 fi 10852 10853 10854 10855 if test "x$UNIQ" = x; then 10856 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10857 fi 10858 10859 10860 10861 10862 10863 # Publish this variable in the help. 10864 10865 10866 if test "x$WC" = x; then 10867 # The variable is not set by user, try to locate tool using the code snippet 10868 for ac_prog in wc 10869 do 10870 # Extract the first word of "$ac_prog", so it can be a program name with args. 10871 set dummy $ac_prog; ac_word=$2 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10873 $as_echo_n "checking for $ac_word... " >&6; } 10874 if ${ac_cv_path_WC+:} false; then : 10875 $as_echo_n "(cached) " >&6 10876 else 10877 case $WC in 10878 [\\/]* | ?:[\\/]*) 10879 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10880 ;; 10881 *) 10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10883 for as_dir in $PATH 10884 do 10885 IFS=$as_save_IFS 10886 test -z "$as_dir" && as_dir=. 10887 for ac_exec_ext in '' $ac_executable_extensions; do 10888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10889 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10891 break 2 10892 fi 10893 done 10894 done 10895 IFS=$as_save_IFS 10896 10897 ;; 10898 esac 10899 fi 10900 WC=$ac_cv_path_WC 10901 if test -n "$WC"; then 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10903 $as_echo "$WC" >&6; } 10904 else 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10906 $as_echo "no" >&6; } 10907 fi 10908 10909 10910 test -n "$WC" && break 10911 done 10912 10913 else 10914 # The variable is set, but is it from the command line or the environment? 10915 10916 # Try to remove the string !WC! from our list. 10917 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10918 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10919 # If it failed, the variable was not from the command line. Ignore it, 10920 # but warn the user (except for BASH, which is always set by the calling BASH). 10921 if test "xWC" != xBASH; then 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10923 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10924 fi 10925 # Try to locate tool using the code snippet 10926 for ac_prog in wc 10927 do 10928 # Extract the first word of "$ac_prog", so it can be a program name with args. 10929 set dummy $ac_prog; ac_word=$2 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10931 $as_echo_n "checking for $ac_word... " >&6; } 10932 if ${ac_cv_path_WC+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934 else 10935 case $WC in 10936 [\\/]* | ?:[\\/]*) 10937 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10938 ;; 10939 *) 10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10941 for as_dir in $PATH 10942 do 10943 IFS=$as_save_IFS 10944 test -z "$as_dir" && as_dir=. 10945 for ac_exec_ext in '' $ac_executable_extensions; do 10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10947 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10949 break 2 10950 fi 10951 done 10952 done 10953 IFS=$as_save_IFS 10954 10955 ;; 10956 esac 10957 fi 10958 WC=$ac_cv_path_WC 10959 if test -n "$WC"; then 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10961 $as_echo "$WC" >&6; } 10962 else 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10964 $as_echo "no" >&6; } 10965 fi 10966 10967 10968 test -n "$WC" && break 10969 done 10970 10971 else 10972 # If it succeeded, then it was overridden by the user. We will use it 10973 # for the tool. 10974 10975 # First remove it from the list of overridden variables, so we can test 10976 # for unknown variables in the end. 10977 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10978 10979 # Check if the provided tool contains a complete path. 10980 tool_specified="$WC" 10981 tool_basename="${tool_specified##*/}" 10982 if test "x$tool_basename" = "x$tool_specified"; then 10983 # A command without a complete path is provided, search $PATH. 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10985 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10986 # Extract the first word of "$tool_basename", so it can be a program name with args. 10987 set dummy $tool_basename; ac_word=$2 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10989 $as_echo_n "checking for $ac_word... " >&6; } 10990 if ${ac_cv_path_WC+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992 else 10993 case $WC in 10994 [\\/]* | ?:[\\/]*) 10995 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10996 ;; 10997 *) 10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10999 for as_dir in $PATH 11000 do 11001 IFS=$as_save_IFS 11002 test -z "$as_dir" && as_dir=. 11003 for ac_exec_ext in '' $ac_executable_extensions; do 11004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11005 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11007 break 2 11008 fi 11009 done 11010 done 11011 IFS=$as_save_IFS 11012 11013 ;; 11014 esac 11015 fi 11016 WC=$ac_cv_path_WC 11017 if test -n "$WC"; then 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11019 $as_echo "$WC" >&6; } 11020 else 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11022 $as_echo "no" >&6; } 11023 fi 11024 11025 11026 if test "x$WC" = x; then 11027 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11028 fi 11029 else 11030 # Otherwise we believe it is a complete path. Use it as it is. 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11032 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11034 $as_echo_n "checking for WC... " >&6; } 11035 if test ! -x "$tool_specified"; then 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11037 $as_echo "not found" >&6; } 11038 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11039 fi 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11041 $as_echo "$tool_specified" >&6; } 11042 fi 11043 fi 11044 fi 11045 11046 11047 11048 if test "x$WC" = x; then 11049 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11050 fi 11051 11052 11053 11054 11055 11056 # Publish this variable in the help. 11057 11058 11059 if test "x$WHICH" = x; then 11060 # The variable is not set by user, try to locate tool using the code snippet 11061 for ac_prog in which 11062 do 11063 # Extract the first word of "$ac_prog", so it can be a program name with args. 11064 set dummy $ac_prog; ac_word=$2 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11066 $as_echo_n "checking for $ac_word... " >&6; } 11067 if ${ac_cv_path_WHICH+:} false; then : 11068 $as_echo_n "(cached) " >&6 11069 else 11070 case $WHICH in 11071 [\\/]* | ?:[\\/]*) 11072 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11073 ;; 11074 *) 11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11076 for as_dir in $PATH 11077 do 11078 IFS=$as_save_IFS 11079 test -z "$as_dir" && as_dir=. 11080 for ac_exec_ext in '' $ac_executable_extensions; do 11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11082 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11084 break 2 11085 fi 11086 done 11087 done 11088 IFS=$as_save_IFS 11089 11090 ;; 11091 esac 11092 fi 11093 WHICH=$ac_cv_path_WHICH 11094 if test -n "$WHICH"; then 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11096 $as_echo "$WHICH" >&6; } 11097 else 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11099 $as_echo "no" >&6; } 11100 fi 11101 11102 11103 test -n "$WHICH" && break 11104 done 11105 11106 else 11107 # The variable is set, but is it from the command line or the environment? 11108 11109 # Try to remove the string !WHICH! from our list. 11110 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11111 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11112 # If it failed, the variable was not from the command line. Ignore it, 11113 # but warn the user (except for BASH, which is always set by the calling BASH). 11114 if test "xWHICH" != xBASH; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11116 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11117 fi 11118 # Try to locate tool using the code snippet 11119 for ac_prog in which 11120 do 11121 # Extract the first word of "$ac_prog", so it can be a program name with args. 11122 set dummy $ac_prog; ac_word=$2 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11124 $as_echo_n "checking for $ac_word... " >&6; } 11125 if ${ac_cv_path_WHICH+:} false; then : 11126 $as_echo_n "(cached) " >&6 11127 else 11128 case $WHICH in 11129 [\\/]* | ?:[\\/]*) 11130 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11131 ;; 11132 *) 11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11134 for as_dir in $PATH 11135 do 11136 IFS=$as_save_IFS 11137 test -z "$as_dir" && as_dir=. 11138 for ac_exec_ext in '' $ac_executable_extensions; do 11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11140 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11142 break 2 11143 fi 11144 done 11145 done 11146 IFS=$as_save_IFS 11147 11148 ;; 11149 esac 11150 fi 11151 WHICH=$ac_cv_path_WHICH 11152 if test -n "$WHICH"; then 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11154 $as_echo "$WHICH" >&6; } 11155 else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11157 $as_echo "no" >&6; } 11158 fi 11159 11160 11161 test -n "$WHICH" && break 11162 done 11163 11164 else 11165 # If it succeeded, then it was overridden by the user. We will use it 11166 # for the tool. 11167 11168 # First remove it from the list of overridden variables, so we can test 11169 # for unknown variables in the end. 11170 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11171 11172 # Check if the provided tool contains a complete path. 11173 tool_specified="$WHICH" 11174 tool_basename="${tool_specified##*/}" 11175 if test "x$tool_basename" = "x$tool_specified"; then 11176 # A command without a complete path is provided, search $PATH. 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11178 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11179 # Extract the first word of "$tool_basename", so it can be a program name with args. 11180 set dummy $tool_basename; ac_word=$2 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11182 $as_echo_n "checking for $ac_word... " >&6; } 11183 if ${ac_cv_path_WHICH+:} false; then : 11184 $as_echo_n "(cached) " >&6 11185 else 11186 case $WHICH in 11187 [\\/]* | ?:[\\/]*) 11188 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11189 ;; 11190 *) 11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11192 for as_dir in $PATH 11193 do 11194 IFS=$as_save_IFS 11195 test -z "$as_dir" && as_dir=. 11196 for ac_exec_ext in '' $ac_executable_extensions; do 11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11198 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11200 break 2 11201 fi 11202 done 11203 done 11204 IFS=$as_save_IFS 11205 11206 ;; 11207 esac 11208 fi 11209 WHICH=$ac_cv_path_WHICH 11210 if test -n "$WHICH"; then 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11212 $as_echo "$WHICH" >&6; } 11213 else 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11215 $as_echo "no" >&6; } 11216 fi 11217 11218 11219 if test "x$WHICH" = x; then 11220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11221 fi 11222 else 11223 # Otherwise we believe it is a complete path. Use it as it is. 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11225 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11227 $as_echo_n "checking for WHICH... " >&6; } 11228 if test ! -x "$tool_specified"; then 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11230 $as_echo "not found" >&6; } 11231 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11232 fi 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11234 $as_echo "$tool_specified" >&6; } 11235 fi 11236 fi 11237 fi 11238 11239 11240 11241 if test "x$WHICH" = x; then 11242 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11243 fi 11244 11245 11246 11247 11248 11249 # Publish this variable in the help. 11250 11251 11252 if test "x$XARGS" = x; then 11253 # The variable is not set by user, try to locate tool using the code snippet 11254 for ac_prog in xargs 11255 do 11256 # Extract the first word of "$ac_prog", so it can be a program name with args. 11257 set dummy $ac_prog; ac_word=$2 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11259 $as_echo_n "checking for $ac_word... " >&6; } 11260 if ${ac_cv_path_XARGS+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262 else 11263 case $XARGS in 11264 [\\/]* | ?:[\\/]*) 11265 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11266 ;; 11267 *) 11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11269 for as_dir in $PATH 11270 do 11271 IFS=$as_save_IFS 11272 test -z "$as_dir" && as_dir=. 11273 for ac_exec_ext in '' $ac_executable_extensions; do 11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11275 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11277 break 2 11278 fi 11279 done 11280 done 11281 IFS=$as_save_IFS 11282 11283 ;; 11284 esac 11285 fi 11286 XARGS=$ac_cv_path_XARGS 11287 if test -n "$XARGS"; then 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11289 $as_echo "$XARGS" >&6; } 11290 else 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11292 $as_echo "no" >&6; } 11293 fi 11294 11295 11296 test -n "$XARGS" && break 11297 done 11298 11299 else 11300 # The variable is set, but is it from the command line or the environment? 11301 11302 # Try to remove the string !XARGS! from our list. 11303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11305 # If it failed, the variable was not from the command line. Ignore it, 11306 # but warn the user (except for BASH, which is always set by the calling BASH). 11307 if test "xXARGS" != xBASH; then 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11309 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11310 fi 11311 # Try to locate tool using the code snippet 11312 for ac_prog in xargs 11313 do 11314 # Extract the first word of "$ac_prog", so it can be a program name with args. 11315 set dummy $ac_prog; ac_word=$2 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11317 $as_echo_n "checking for $ac_word... " >&6; } 11318 if ${ac_cv_path_XARGS+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320 else 11321 case $XARGS in 11322 [\\/]* | ?:[\\/]*) 11323 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11324 ;; 11325 *) 11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11327 for as_dir in $PATH 11328 do 11329 IFS=$as_save_IFS 11330 test -z "$as_dir" && as_dir=. 11331 for ac_exec_ext in '' $ac_executable_extensions; do 11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11333 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11335 break 2 11336 fi 11337 done 11338 done 11339 IFS=$as_save_IFS 11340 11341 ;; 11342 esac 11343 fi 11344 XARGS=$ac_cv_path_XARGS 11345 if test -n "$XARGS"; then 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11347 $as_echo "$XARGS" >&6; } 11348 else 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11350 $as_echo "no" >&6; } 11351 fi 11352 11353 11354 test -n "$XARGS" && break 11355 done 11356 11357 else 11358 # If it succeeded, then it was overridden by the user. We will use it 11359 # for the tool. 11360 11361 # First remove it from the list of overridden variables, so we can test 11362 # for unknown variables in the end. 11363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11364 11365 # Check if the provided tool contains a complete path. 11366 tool_specified="$XARGS" 11367 tool_basename="${tool_specified##*/}" 11368 if test "x$tool_basename" = "x$tool_specified"; then 11369 # A command without a complete path is provided, search $PATH. 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11371 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11372 # Extract the first word of "$tool_basename", so it can be a program name with args. 11373 set dummy $tool_basename; ac_word=$2 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11375 $as_echo_n "checking for $ac_word... " >&6; } 11376 if ${ac_cv_path_XARGS+:} false; then : 11377 $as_echo_n "(cached) " >&6 11378 else 11379 case $XARGS in 11380 [\\/]* | ?:[\\/]*) 11381 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11382 ;; 11383 *) 11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11385 for as_dir in $PATH 11386 do 11387 IFS=$as_save_IFS 11388 test -z "$as_dir" && as_dir=. 11389 for ac_exec_ext in '' $ac_executable_extensions; do 11390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11391 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11393 break 2 11394 fi 11395 done 11396 done 11397 IFS=$as_save_IFS 11398 11399 ;; 11400 esac 11401 fi 11402 XARGS=$ac_cv_path_XARGS 11403 if test -n "$XARGS"; then 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11405 $as_echo "$XARGS" >&6; } 11406 else 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11408 $as_echo "no" >&6; } 11409 fi 11410 11411 11412 if test "x$XARGS" = x; then 11413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11414 fi 11415 else 11416 # Otherwise we believe it is a complete path. Use it as it is. 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11418 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11420 $as_echo_n "checking for XARGS... " >&6; } 11421 if test ! -x "$tool_specified"; then 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11423 $as_echo "not found" >&6; } 11424 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11425 fi 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11427 $as_echo "$tool_specified" >&6; } 11428 fi 11429 fi 11430 fi 11431 11432 11433 11434 if test "x$XARGS" = x; then 11435 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11436 fi 11437 11438 11439 11440 # Then required tools that require some special treatment. 11441 11442 11443 # Publish this variable in the help. 11444 11445 11446 if test "x$AWK" = x; then 11447 # The variable is not set by user, try to locate tool using the code snippet 11448 for ac_prog in gawk mawk nawk awk 11449 do 11450 # Extract the first word of "$ac_prog", so it can be a program name with args. 11451 set dummy $ac_prog; ac_word=$2 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11453 $as_echo_n "checking for $ac_word... " >&6; } 11454 if ${ac_cv_prog_AWK+:} false; then : 11455 $as_echo_n "(cached) " >&6 11456 else 11457 if test -n "$AWK"; then 11458 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11459 else 11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11461 for as_dir in $PATH 11462 do 11463 IFS=$as_save_IFS 11464 test -z "$as_dir" && as_dir=. 11465 for ac_exec_ext in '' $ac_executable_extensions; do 11466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11467 ac_cv_prog_AWK="$ac_prog" 11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11469 break 2 11470 fi 11471 done 11472 done 11473 IFS=$as_save_IFS 11474 11475 fi 11476 fi 11477 AWK=$ac_cv_prog_AWK 11478 if test -n "$AWK"; then 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11480 $as_echo "$AWK" >&6; } 11481 else 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11483 $as_echo "no" >&6; } 11484 fi 11485 11486 11487 test -n "$AWK" && break 11488 done 11489 11490 else 11491 # The variable is set, but is it from the command line or the environment? 11492 11493 # Try to remove the string !AWK! from our list. 11494 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11495 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11496 # If it failed, the variable was not from the command line. Ignore it, 11497 # but warn the user (except for BASH, which is always set by the calling BASH). 11498 if test "xAWK" != xBASH; then 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11500 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11501 fi 11502 # Try to locate tool using the code snippet 11503 for ac_prog in gawk mawk nawk awk 11504 do 11505 # Extract the first word of "$ac_prog", so it can be a program name with args. 11506 set dummy $ac_prog; ac_word=$2 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11508 $as_echo_n "checking for $ac_word... " >&6; } 11509 if ${ac_cv_prog_AWK+:} false; then : 11510 $as_echo_n "(cached) " >&6 11511 else 11512 if test -n "$AWK"; then 11513 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11514 else 11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11516 for as_dir in $PATH 11517 do 11518 IFS=$as_save_IFS 11519 test -z "$as_dir" && as_dir=. 11520 for ac_exec_ext in '' $ac_executable_extensions; do 11521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11522 ac_cv_prog_AWK="$ac_prog" 11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11524 break 2 11525 fi 11526 done 11527 done 11528 IFS=$as_save_IFS 11529 11530 fi 11531 fi 11532 AWK=$ac_cv_prog_AWK 11533 if test -n "$AWK"; then 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11535 $as_echo "$AWK" >&6; } 11536 else 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11538 $as_echo "no" >&6; } 11539 fi 11540 11541 11542 test -n "$AWK" && break 11543 done 11544 11545 else 11546 # If it succeeded, then it was overridden by the user. We will use it 11547 # for the tool. 11548 11549 # First remove it from the list of overridden variables, so we can test 11550 # for unknown variables in the end. 11551 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11552 11553 # Check if the provided tool contains a complete path. 11554 tool_specified="$AWK" 11555 tool_basename="${tool_specified##*/}" 11556 if test "x$tool_basename" = "x$tool_specified"; then 11557 # A command without a complete path is provided, search $PATH. 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11559 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11560 # Extract the first word of "$tool_basename", so it can be a program name with args. 11561 set dummy $tool_basename; ac_word=$2 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11563 $as_echo_n "checking for $ac_word... " >&6; } 11564 if ${ac_cv_path_AWK+:} false; then : 11565 $as_echo_n "(cached) " >&6 11566 else 11567 case $AWK in 11568 [\\/]* | ?:[\\/]*) 11569 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11570 ;; 11571 *) 11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11573 for as_dir in $PATH 11574 do 11575 IFS=$as_save_IFS 11576 test -z "$as_dir" && as_dir=. 11577 for ac_exec_ext in '' $ac_executable_extensions; do 11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11579 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11581 break 2 11582 fi 11583 done 11584 done 11585 IFS=$as_save_IFS 11586 11587 ;; 11588 esac 11589 fi 11590 AWK=$ac_cv_path_AWK 11591 if test -n "$AWK"; then 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11593 $as_echo "$AWK" >&6; } 11594 else 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11596 $as_echo "no" >&6; } 11597 fi 11598 11599 11600 if test "x$AWK" = x; then 11601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11602 fi 11603 else 11604 # Otherwise we believe it is a complete path. Use it as it is. 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11606 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11608 $as_echo_n "checking for AWK... " >&6; } 11609 if test ! -x "$tool_specified"; then 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11611 $as_echo "not found" >&6; } 11612 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11613 fi 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11615 $as_echo "$tool_specified" >&6; } 11616 fi 11617 fi 11618 fi 11619 11620 11621 if test "x$AWK" = x; then 11622 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11623 fi 11624 11625 11626 11627 11628 # Publish this variable in the help. 11629 11630 11631 if test "x$GREP" = x; then 11632 # The variable is not set by user, try to locate tool using the code snippet 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11635 if ${ac_cv_path_GREP+:} false; then : 11636 $as_echo_n "(cached) " >&6 11637 else 11638 if test -z "$GREP"; then 11639 ac_path_GREP_found=false 11640 # Loop through the user's path and test for each of PROGNAME-LIST 11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11643 do 11644 IFS=$as_save_IFS 11645 test -z "$as_dir" && as_dir=. 11646 for ac_prog in grep ggrep; do 11647 for ac_exec_ext in '' $ac_executable_extensions; do 11648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11649 as_fn_executable_p "$ac_path_GREP" || continue 11650 # Check for GNU ac_path_GREP and select it if it is found. 11651 # Check for GNU $ac_path_GREP 11652 case `"$ac_path_GREP" --version 2>&1` in 11653 *GNU*) 11654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11655 *) 11656 ac_count=0 11657 $as_echo_n 0123456789 >"conftest.in" 11658 while : 11659 do 11660 cat "conftest.in" "conftest.in" >"conftest.tmp" 11661 mv "conftest.tmp" "conftest.in" 11662 cp "conftest.in" "conftest.nl" 11663 $as_echo 'GREP' >> "conftest.nl" 11664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11666 as_fn_arith $ac_count + 1 && ac_count=$as_val 11667 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11668 # Best one so far, save it but keep looking for a better one 11669 ac_cv_path_GREP="$ac_path_GREP" 11670 ac_path_GREP_max=$ac_count 11671 fi 11672 # 10*(2^10) chars as input seems more than enough 11673 test $ac_count -gt 10 && break 11674 done 11675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11676 esac 11677 11678 $ac_path_GREP_found && break 3 11679 done 11680 done 11681 done 11682 IFS=$as_save_IFS 11683 if test -z "$ac_cv_path_GREP"; then 11684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11685 fi 11686 else 11687 ac_cv_path_GREP=$GREP 11688 fi 11689 11690 fi 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11692 $as_echo "$ac_cv_path_GREP" >&6; } 11693 GREP="$ac_cv_path_GREP" 11694 11695 11696 else 11697 # The variable is set, but is it from the command line or the environment? 11698 11699 # Try to remove the string !GREP! from our list. 11700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11702 # If it failed, the variable was not from the command line. Ignore it, 11703 # but warn the user (except for BASH, which is always set by the calling BASH). 11704 if test "xGREP" != xBASH; then 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11706 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11707 fi 11708 # Try to locate tool using the code snippet 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11711 if ${ac_cv_path_GREP+:} false; then : 11712 $as_echo_n "(cached) " >&6 11713 else 11714 if test -z "$GREP"; then 11715 ac_path_GREP_found=false 11716 # Loop through the user's path and test for each of PROGNAME-LIST 11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11719 do 11720 IFS=$as_save_IFS 11721 test -z "$as_dir" && as_dir=. 11722 for ac_prog in grep ggrep; do 11723 for ac_exec_ext in '' $ac_executable_extensions; do 11724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11725 as_fn_executable_p "$ac_path_GREP" || continue 11726 # Check for GNU ac_path_GREP and select it if it is found. 11727 # Check for GNU $ac_path_GREP 11728 case `"$ac_path_GREP" --version 2>&1` in 11729 *GNU*) 11730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11731 *) 11732 ac_count=0 11733 $as_echo_n 0123456789 >"conftest.in" 11734 while : 11735 do 11736 cat "conftest.in" "conftest.in" >"conftest.tmp" 11737 mv "conftest.tmp" "conftest.in" 11738 cp "conftest.in" "conftest.nl" 11739 $as_echo 'GREP' >> "conftest.nl" 11740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11742 as_fn_arith $ac_count + 1 && ac_count=$as_val 11743 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11744 # Best one so far, save it but keep looking for a better one 11745 ac_cv_path_GREP="$ac_path_GREP" 11746 ac_path_GREP_max=$ac_count 11747 fi 11748 # 10*(2^10) chars as input seems more than enough 11749 test $ac_count -gt 10 && break 11750 done 11751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11752 esac 11753 11754 $ac_path_GREP_found && break 3 11755 done 11756 done 11757 done 11758 IFS=$as_save_IFS 11759 if test -z "$ac_cv_path_GREP"; then 11760 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11761 fi 11762 else 11763 ac_cv_path_GREP=$GREP 11764 fi 11765 11766 fi 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11768 $as_echo "$ac_cv_path_GREP" >&6; } 11769 GREP="$ac_cv_path_GREP" 11770 11771 11772 else 11773 # If it succeeded, then it was overridden by the user. We will use it 11774 # for the tool. 11775 11776 # First remove it from the list of overridden variables, so we can test 11777 # for unknown variables in the end. 11778 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11779 11780 # Check if the provided tool contains a complete path. 11781 tool_specified="$GREP" 11782 tool_basename="${tool_specified##*/}" 11783 if test "x$tool_basename" = "x$tool_specified"; then 11784 # A command without a complete path is provided, search $PATH. 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11786 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11787 # Extract the first word of "$tool_basename", so it can be a program name with args. 11788 set dummy $tool_basename; ac_word=$2 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11790 $as_echo_n "checking for $ac_word... " >&6; } 11791 if ${ac_cv_path_GREP+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793 else 11794 case $GREP in 11795 [\\/]* | ?:[\\/]*) 11796 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11797 ;; 11798 *) 11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11800 for as_dir in $PATH 11801 do 11802 IFS=$as_save_IFS 11803 test -z "$as_dir" && as_dir=. 11804 for ac_exec_ext in '' $ac_executable_extensions; do 11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11806 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11808 break 2 11809 fi 11810 done 11811 done 11812 IFS=$as_save_IFS 11813 11814 ;; 11815 esac 11816 fi 11817 GREP=$ac_cv_path_GREP 11818 if test -n "$GREP"; then 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11820 $as_echo "$GREP" >&6; } 11821 else 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11823 $as_echo "no" >&6; } 11824 fi 11825 11826 11827 if test "x$GREP" = x; then 11828 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11829 fi 11830 else 11831 # Otherwise we believe it is a complete path. Use it as it is. 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11833 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11835 $as_echo_n "checking for GREP... " >&6; } 11836 if test ! -x "$tool_specified"; then 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11838 $as_echo "not found" >&6; } 11839 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11840 fi 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11842 $as_echo "$tool_specified" >&6; } 11843 fi 11844 fi 11845 fi 11846 11847 11848 if test "x$GREP" = x; then 11849 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11850 fi 11851 11852 11853 11854 11855 # Publish this variable in the help. 11856 11857 11858 if test "x$EGREP" = x; then 11859 # The variable is not set by user, try to locate tool using the code snippet 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11861 $as_echo_n "checking for egrep... " >&6; } 11862 if ${ac_cv_path_EGREP+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864 else 11865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11866 then ac_cv_path_EGREP="$GREP -E" 11867 else 11868 if test -z "$EGREP"; then 11869 ac_path_EGREP_found=false 11870 # Loop through the user's path and test for each of PROGNAME-LIST 11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11873 do 11874 IFS=$as_save_IFS 11875 test -z "$as_dir" && as_dir=. 11876 for ac_prog in egrep; do 11877 for ac_exec_ext in '' $ac_executable_extensions; do 11878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11879 as_fn_executable_p "$ac_path_EGREP" || continue 11880 # Check for GNU ac_path_EGREP and select it if it is found. 11881 # Check for GNU $ac_path_EGREP 11882 case `"$ac_path_EGREP" --version 2>&1` in 11883 *GNU*) 11884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11885 *) 11886 ac_count=0 11887 $as_echo_n 0123456789 >"conftest.in" 11888 while : 11889 do 11890 cat "conftest.in" "conftest.in" >"conftest.tmp" 11891 mv "conftest.tmp" "conftest.in" 11892 cp "conftest.in" "conftest.nl" 11893 $as_echo 'EGREP' >> "conftest.nl" 11894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11896 as_fn_arith $ac_count + 1 && ac_count=$as_val 11897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11898 # Best one so far, save it but keep looking for a better one 11899 ac_cv_path_EGREP="$ac_path_EGREP" 11900 ac_path_EGREP_max=$ac_count 11901 fi 11902 # 10*(2^10) chars as input seems more than enough 11903 test $ac_count -gt 10 && break 11904 done 11905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11906 esac 11907 11908 $ac_path_EGREP_found && break 3 11909 done 11910 done 11911 done 11912 IFS=$as_save_IFS 11913 if test -z "$ac_cv_path_EGREP"; then 11914 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11915 fi 11916 else 11917 ac_cv_path_EGREP=$EGREP 11918 fi 11919 11920 fi 11921 fi 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11923 $as_echo "$ac_cv_path_EGREP" >&6; } 11924 EGREP="$ac_cv_path_EGREP" 11925 11926 11927 else 11928 # The variable is set, but is it from the command line or the environment? 11929 11930 # Try to remove the string !EGREP! from our list. 11931 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11932 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11933 # If it failed, the variable was not from the command line. Ignore it, 11934 # but warn the user (except for BASH, which is always set by the calling BASH). 11935 if test "xEGREP" != xBASH; then 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11937 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11938 fi 11939 # Try to locate tool using the code snippet 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11941 $as_echo_n "checking for egrep... " >&6; } 11942 if ${ac_cv_path_EGREP+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944 else 11945 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11946 then ac_cv_path_EGREP="$GREP -E" 11947 else 11948 if test -z "$EGREP"; then 11949 ac_path_EGREP_found=false 11950 # Loop through the user's path and test for each of PROGNAME-LIST 11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11953 do 11954 IFS=$as_save_IFS 11955 test -z "$as_dir" && as_dir=. 11956 for ac_prog in egrep; do 11957 for ac_exec_ext in '' $ac_executable_extensions; do 11958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11959 as_fn_executable_p "$ac_path_EGREP" || continue 11960 # Check for GNU ac_path_EGREP and select it if it is found. 11961 # Check for GNU $ac_path_EGREP 11962 case `"$ac_path_EGREP" --version 2>&1` in 11963 *GNU*) 11964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11965 *) 11966 ac_count=0 11967 $as_echo_n 0123456789 >"conftest.in" 11968 while : 11969 do 11970 cat "conftest.in" "conftest.in" >"conftest.tmp" 11971 mv "conftest.tmp" "conftest.in" 11972 cp "conftest.in" "conftest.nl" 11973 $as_echo 'EGREP' >> "conftest.nl" 11974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11976 as_fn_arith $ac_count + 1 && ac_count=$as_val 11977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11978 # Best one so far, save it but keep looking for a better one 11979 ac_cv_path_EGREP="$ac_path_EGREP" 11980 ac_path_EGREP_max=$ac_count 11981 fi 11982 # 10*(2^10) chars as input seems more than enough 11983 test $ac_count -gt 10 && break 11984 done 11985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11986 esac 11987 11988 $ac_path_EGREP_found && break 3 11989 done 11990 done 11991 done 11992 IFS=$as_save_IFS 11993 if test -z "$ac_cv_path_EGREP"; then 11994 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11995 fi 11996 else 11997 ac_cv_path_EGREP=$EGREP 11998 fi 11999 12000 fi 12001 fi 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12003 $as_echo "$ac_cv_path_EGREP" >&6; } 12004 EGREP="$ac_cv_path_EGREP" 12005 12006 12007 else 12008 # If it succeeded, then it was overridden by the user. We will use it 12009 # for the tool. 12010 12011 # First remove it from the list of overridden variables, so we can test 12012 # for unknown variables in the end. 12013 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12014 12015 # Check if the provided tool contains a complete path. 12016 tool_specified="$EGREP" 12017 tool_basename="${tool_specified##*/}" 12018 if test "x$tool_basename" = "x$tool_specified"; then 12019 # A command without a complete path is provided, search $PATH. 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12021 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12022 # Extract the first word of "$tool_basename", so it can be a program name with args. 12023 set dummy $tool_basename; ac_word=$2 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12025 $as_echo_n "checking for $ac_word... " >&6; } 12026 if ${ac_cv_path_EGREP+:} false; then : 12027 $as_echo_n "(cached) " >&6 12028 else 12029 case $EGREP in 12030 [\\/]* | ?:[\\/]*) 12031 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12032 ;; 12033 *) 12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12035 for as_dir in $PATH 12036 do 12037 IFS=$as_save_IFS 12038 test -z "$as_dir" && as_dir=. 12039 for ac_exec_ext in '' $ac_executable_extensions; do 12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12041 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12043 break 2 12044 fi 12045 done 12046 done 12047 IFS=$as_save_IFS 12048 12049 ;; 12050 esac 12051 fi 12052 EGREP=$ac_cv_path_EGREP 12053 if test -n "$EGREP"; then 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12055 $as_echo "$EGREP" >&6; } 12056 else 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12058 $as_echo "no" >&6; } 12059 fi 12060 12061 12062 if test "x$EGREP" = x; then 12063 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12064 fi 12065 else 12066 # Otherwise we believe it is a complete path. Use it as it is. 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12068 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12070 $as_echo_n "checking for EGREP... " >&6; } 12071 if test ! -x "$tool_specified"; then 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12073 $as_echo "not found" >&6; } 12074 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12075 fi 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12077 $as_echo "$tool_specified" >&6; } 12078 fi 12079 fi 12080 fi 12081 12082 12083 if test "x$EGREP" = x; then 12084 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12085 fi 12086 12087 12088 12089 12090 # Publish this variable in the help. 12091 12092 12093 if test "x$FGREP" = x; then 12094 # The variable is not set by user, try to locate tool using the code snippet 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12096 $as_echo_n "checking for fgrep... " >&6; } 12097 if ${ac_cv_path_FGREP+:} false; then : 12098 $as_echo_n "(cached) " >&6 12099 else 12100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12101 then ac_cv_path_FGREP="$GREP -F" 12102 else 12103 if test -z "$FGREP"; then 12104 ac_path_FGREP_found=false 12105 # Loop through the user's path and test for each of PROGNAME-LIST 12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12108 do 12109 IFS=$as_save_IFS 12110 test -z "$as_dir" && as_dir=. 12111 for ac_prog in fgrep; do 12112 for ac_exec_ext in '' $ac_executable_extensions; do 12113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12114 as_fn_executable_p "$ac_path_FGREP" || continue 12115 # Check for GNU ac_path_FGREP and select it if it is found. 12116 # Check for GNU $ac_path_FGREP 12117 case `"$ac_path_FGREP" --version 2>&1` in 12118 *GNU*) 12119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12120 *) 12121 ac_count=0 12122 $as_echo_n 0123456789 >"conftest.in" 12123 while : 12124 do 12125 cat "conftest.in" "conftest.in" >"conftest.tmp" 12126 mv "conftest.tmp" "conftest.in" 12127 cp "conftest.in" "conftest.nl" 12128 $as_echo 'FGREP' >> "conftest.nl" 12129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12131 as_fn_arith $ac_count + 1 && ac_count=$as_val 12132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12133 # Best one so far, save it but keep looking for a better one 12134 ac_cv_path_FGREP="$ac_path_FGREP" 12135 ac_path_FGREP_max=$ac_count 12136 fi 12137 # 10*(2^10) chars as input seems more than enough 12138 test $ac_count -gt 10 && break 12139 done 12140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12141 esac 12142 12143 $ac_path_FGREP_found && break 3 12144 done 12145 done 12146 done 12147 IFS=$as_save_IFS 12148 if test -z "$ac_cv_path_FGREP"; then 12149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12150 fi 12151 else 12152 ac_cv_path_FGREP=$FGREP 12153 fi 12154 12155 fi 12156 fi 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12158 $as_echo "$ac_cv_path_FGREP" >&6; } 12159 FGREP="$ac_cv_path_FGREP" 12160 12161 12162 else 12163 # The variable is set, but is it from the command line or the environment? 12164 12165 # Try to remove the string !FGREP! from our list. 12166 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12167 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12168 # If it failed, the variable was not from the command line. Ignore it, 12169 # but warn the user (except for BASH, which is always set by the calling BASH). 12170 if test "xFGREP" != xBASH; then 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12172 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12173 fi 12174 # Try to locate tool using the code snippet 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12176 $as_echo_n "checking for fgrep... " >&6; } 12177 if ${ac_cv_path_FGREP+:} false; then : 12178 $as_echo_n "(cached) " >&6 12179 else 12180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12181 then ac_cv_path_FGREP="$GREP -F" 12182 else 12183 if test -z "$FGREP"; then 12184 ac_path_FGREP_found=false 12185 # Loop through the user's path and test for each of PROGNAME-LIST 12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12188 do 12189 IFS=$as_save_IFS 12190 test -z "$as_dir" && as_dir=. 12191 for ac_prog in fgrep; do 12192 for ac_exec_ext in '' $ac_executable_extensions; do 12193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12194 as_fn_executable_p "$ac_path_FGREP" || continue 12195 # Check for GNU ac_path_FGREP and select it if it is found. 12196 # Check for GNU $ac_path_FGREP 12197 case `"$ac_path_FGREP" --version 2>&1` in 12198 *GNU*) 12199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12200 *) 12201 ac_count=0 12202 $as_echo_n 0123456789 >"conftest.in" 12203 while : 12204 do 12205 cat "conftest.in" "conftest.in" >"conftest.tmp" 12206 mv "conftest.tmp" "conftest.in" 12207 cp "conftest.in" "conftest.nl" 12208 $as_echo 'FGREP' >> "conftest.nl" 12209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12211 as_fn_arith $ac_count + 1 && ac_count=$as_val 12212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12213 # Best one so far, save it but keep looking for a better one 12214 ac_cv_path_FGREP="$ac_path_FGREP" 12215 ac_path_FGREP_max=$ac_count 12216 fi 12217 # 10*(2^10) chars as input seems more than enough 12218 test $ac_count -gt 10 && break 12219 done 12220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12221 esac 12222 12223 $ac_path_FGREP_found && break 3 12224 done 12225 done 12226 done 12227 IFS=$as_save_IFS 12228 if test -z "$ac_cv_path_FGREP"; then 12229 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12230 fi 12231 else 12232 ac_cv_path_FGREP=$FGREP 12233 fi 12234 12235 fi 12236 fi 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12238 $as_echo "$ac_cv_path_FGREP" >&6; } 12239 FGREP="$ac_cv_path_FGREP" 12240 12241 12242 else 12243 # If it succeeded, then it was overridden by the user. We will use it 12244 # for the tool. 12245 12246 # First remove it from the list of overridden variables, so we can test 12247 # for unknown variables in the end. 12248 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12249 12250 # Check if the provided tool contains a complete path. 12251 tool_specified="$FGREP" 12252 tool_basename="${tool_specified##*/}" 12253 if test "x$tool_basename" = "x$tool_specified"; then 12254 # A command without a complete path is provided, search $PATH. 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12256 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12257 # Extract the first word of "$tool_basename", so it can be a program name with args. 12258 set dummy $tool_basename; ac_word=$2 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12260 $as_echo_n "checking for $ac_word... " >&6; } 12261 if ${ac_cv_path_FGREP+:} false; then : 12262 $as_echo_n "(cached) " >&6 12263 else 12264 case $FGREP in 12265 [\\/]* | ?:[\\/]*) 12266 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12267 ;; 12268 *) 12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12270 for as_dir in $PATH 12271 do 12272 IFS=$as_save_IFS 12273 test -z "$as_dir" && as_dir=. 12274 for ac_exec_ext in '' $ac_executable_extensions; do 12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12276 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12278 break 2 12279 fi 12280 done 12281 done 12282 IFS=$as_save_IFS 12283 12284 ;; 12285 esac 12286 fi 12287 FGREP=$ac_cv_path_FGREP 12288 if test -n "$FGREP"; then 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12290 $as_echo "$FGREP" >&6; } 12291 else 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12293 $as_echo "no" >&6; } 12294 fi 12295 12296 12297 if test "x$FGREP" = x; then 12298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12299 fi 12300 else 12301 # Otherwise we believe it is a complete path. Use it as it is. 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12303 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12305 $as_echo_n "checking for FGREP... " >&6; } 12306 if test ! -x "$tool_specified"; then 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12308 $as_echo "not found" >&6; } 12309 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12310 fi 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12312 $as_echo "$tool_specified" >&6; } 12313 fi 12314 fi 12315 fi 12316 12317 12318 if test "x$FGREP" = x; then 12319 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12320 fi 12321 12322 12323 12324 12325 # Publish this variable in the help. 12326 12327 12328 if test "x$SED" = x; then 12329 # The variable is not set by user, try to locate tool using the code snippet 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12331 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12332 if ${ac_cv_path_SED+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334 else 12335 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12336 for ac_i in 1 2 3 4 5 6 7; do 12337 ac_script="$ac_script$as_nl$ac_script" 12338 done 12339 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12340 { ac_script=; unset ac_script;} 12341 if test -z "$SED"; then 12342 ac_path_SED_found=false 12343 # Loop through the user's path and test for each of PROGNAME-LIST 12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12345 for as_dir in $PATH 12346 do 12347 IFS=$as_save_IFS 12348 test -z "$as_dir" && as_dir=. 12349 for ac_prog in sed gsed; do 12350 for ac_exec_ext in '' $ac_executable_extensions; do 12351 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12352 as_fn_executable_p "$ac_path_SED" || continue 12353 # Check for GNU ac_path_SED and select it if it is found. 12354 # Check for GNU $ac_path_SED 12355 case `"$ac_path_SED" --version 2>&1` in 12356 *GNU*) 12357 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12358 *) 12359 ac_count=0 12360 $as_echo_n 0123456789 >"conftest.in" 12361 while : 12362 do 12363 cat "conftest.in" "conftest.in" >"conftest.tmp" 12364 mv "conftest.tmp" "conftest.in" 12365 cp "conftest.in" "conftest.nl" 12366 $as_echo '' >> "conftest.nl" 12367 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12369 as_fn_arith $ac_count + 1 && ac_count=$as_val 12370 if test $ac_count -gt ${ac_path_SED_max-0}; then 12371 # Best one so far, save it but keep looking for a better one 12372 ac_cv_path_SED="$ac_path_SED" 12373 ac_path_SED_max=$ac_count 12374 fi 12375 # 10*(2^10) chars as input seems more than enough 12376 test $ac_count -gt 10 && break 12377 done 12378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12379 esac 12380 12381 $ac_path_SED_found && break 3 12382 done 12383 done 12384 done 12385 IFS=$as_save_IFS 12386 if test -z "$ac_cv_path_SED"; then 12387 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12388 fi 12389 else 12390 ac_cv_path_SED=$SED 12391 fi 12392 12393 fi 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12395 $as_echo "$ac_cv_path_SED" >&6; } 12396 SED="$ac_cv_path_SED" 12397 rm -f conftest.sed 12398 12399 else 12400 # The variable is set, but is it from the command line or the environment? 12401 12402 # Try to remove the string !SED! from our list. 12403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12405 # If it failed, the variable was not from the command line. Ignore it, 12406 # but warn the user (except for BASH, which is always set by the calling BASH). 12407 if test "xSED" != xBASH; then 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12409 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12410 fi 12411 # Try to locate tool using the code snippet 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12413 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12414 if ${ac_cv_path_SED+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416 else 12417 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12418 for ac_i in 1 2 3 4 5 6 7; do 12419 ac_script="$ac_script$as_nl$ac_script" 12420 done 12421 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12422 { ac_script=; unset ac_script;} 12423 if test -z "$SED"; then 12424 ac_path_SED_found=false 12425 # Loop through the user's path and test for each of PROGNAME-LIST 12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12427 for as_dir in $PATH 12428 do 12429 IFS=$as_save_IFS 12430 test -z "$as_dir" && as_dir=. 12431 for ac_prog in sed gsed; do 12432 for ac_exec_ext in '' $ac_executable_extensions; do 12433 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12434 as_fn_executable_p "$ac_path_SED" || continue 12435 # Check for GNU ac_path_SED and select it if it is found. 12436 # Check for GNU $ac_path_SED 12437 case `"$ac_path_SED" --version 2>&1` in 12438 *GNU*) 12439 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12440 *) 12441 ac_count=0 12442 $as_echo_n 0123456789 >"conftest.in" 12443 while : 12444 do 12445 cat "conftest.in" "conftest.in" >"conftest.tmp" 12446 mv "conftest.tmp" "conftest.in" 12447 cp "conftest.in" "conftest.nl" 12448 $as_echo '' >> "conftest.nl" 12449 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12451 as_fn_arith $ac_count + 1 && ac_count=$as_val 12452 if test $ac_count -gt ${ac_path_SED_max-0}; then 12453 # Best one so far, save it but keep looking for a better one 12454 ac_cv_path_SED="$ac_path_SED" 12455 ac_path_SED_max=$ac_count 12456 fi 12457 # 10*(2^10) chars as input seems more than enough 12458 test $ac_count -gt 10 && break 12459 done 12460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12461 esac 12462 12463 $ac_path_SED_found && break 3 12464 done 12465 done 12466 done 12467 IFS=$as_save_IFS 12468 if test -z "$ac_cv_path_SED"; then 12469 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12470 fi 12471 else 12472 ac_cv_path_SED=$SED 12473 fi 12474 12475 fi 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12477 $as_echo "$ac_cv_path_SED" >&6; } 12478 SED="$ac_cv_path_SED" 12479 rm -f conftest.sed 12480 12481 else 12482 # If it succeeded, then it was overridden by the user. We will use it 12483 # for the tool. 12484 12485 # First remove it from the list of overridden variables, so we can test 12486 # for unknown variables in the end. 12487 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12488 12489 # Check if the provided tool contains a complete path. 12490 tool_specified="$SED" 12491 tool_basename="${tool_specified##*/}" 12492 if test "x$tool_basename" = "x$tool_specified"; then 12493 # A command without a complete path is provided, search $PATH. 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12495 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12496 # Extract the first word of "$tool_basename", so it can be a program name with args. 12497 set dummy $tool_basename; ac_word=$2 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12499 $as_echo_n "checking for $ac_word... " >&6; } 12500 if ${ac_cv_path_SED+:} false; then : 12501 $as_echo_n "(cached) " >&6 12502 else 12503 case $SED in 12504 [\\/]* | ?:[\\/]*) 12505 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12506 ;; 12507 *) 12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12509 for as_dir in $PATH 12510 do 12511 IFS=$as_save_IFS 12512 test -z "$as_dir" && as_dir=. 12513 for ac_exec_ext in '' $ac_executable_extensions; do 12514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12515 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12517 break 2 12518 fi 12519 done 12520 done 12521 IFS=$as_save_IFS 12522 12523 ;; 12524 esac 12525 fi 12526 SED=$ac_cv_path_SED 12527 if test -n "$SED"; then 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12529 $as_echo "$SED" >&6; } 12530 else 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12532 $as_echo "no" >&6; } 12533 fi 12534 12535 12536 if test "x$SED" = x; then 12537 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12538 fi 12539 else 12540 # Otherwise we believe it is a complete path. Use it as it is. 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12542 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12544 $as_echo_n "checking for SED... " >&6; } 12545 if test ! -x "$tool_specified"; then 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12547 $as_echo "not found" >&6; } 12548 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12549 fi 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12551 $as_echo "$tool_specified" >&6; } 12552 fi 12553 fi 12554 fi 12555 12556 12557 if test "x$SED" = x; then 12558 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12559 fi 12560 12561 12562 12563 # Always force rm. 12564 RM="$RM -f" 12565 12566 # pwd behaves differently on various platforms and some don't support the -L flag. 12567 # Always use the bash builtin pwd to get uniform behavior. 12568 THEPWDCMD=pwd 12569 12570 # These are not required on all platforms 12571 12572 12573 # Publish this variable in the help. 12574 12575 12576 if test "x$CYGPATH" = x; then 12577 # The variable is not set by user, try to locate tool using the code snippet 12578 for ac_prog in cygpath 12579 do 12580 # Extract the first word of "$ac_prog", so it can be a program name with args. 12581 set dummy $ac_prog; ac_word=$2 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12583 $as_echo_n "checking for $ac_word... " >&6; } 12584 if ${ac_cv_path_CYGPATH+:} false; then : 12585 $as_echo_n "(cached) " >&6 12586 else 12587 case $CYGPATH in 12588 [\\/]* | ?:[\\/]*) 12589 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12590 ;; 12591 *) 12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12593 for as_dir in $PATH 12594 do 12595 IFS=$as_save_IFS 12596 test -z "$as_dir" && as_dir=. 12597 for ac_exec_ext in '' $ac_executable_extensions; do 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12599 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12601 break 2 12602 fi 12603 done 12604 done 12605 IFS=$as_save_IFS 12606 12607 ;; 12608 esac 12609 fi 12610 CYGPATH=$ac_cv_path_CYGPATH 12611 if test -n "$CYGPATH"; then 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12613 $as_echo "$CYGPATH" >&6; } 12614 else 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12616 $as_echo "no" >&6; } 12617 fi 12618 12619 12620 test -n "$CYGPATH" && break 12621 done 12622 12623 else 12624 # The variable is set, but is it from the command line or the environment? 12625 12626 # Try to remove the string !CYGPATH! from our list. 12627 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12628 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12629 # If it failed, the variable was not from the command line. Ignore it, 12630 # but warn the user (except for BASH, which is always set by the calling BASH). 12631 if test "xCYGPATH" != xBASH; then 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12633 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12634 fi 12635 # Try to locate tool using the code snippet 12636 for ac_prog in cygpath 12637 do 12638 # Extract the first word of "$ac_prog", so it can be a program name with args. 12639 set dummy $ac_prog; ac_word=$2 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12641 $as_echo_n "checking for $ac_word... " >&6; } 12642 if ${ac_cv_path_CYGPATH+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644 else 12645 case $CYGPATH in 12646 [\\/]* | ?:[\\/]*) 12647 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12648 ;; 12649 *) 12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12651 for as_dir in $PATH 12652 do 12653 IFS=$as_save_IFS 12654 test -z "$as_dir" && as_dir=. 12655 for ac_exec_ext in '' $ac_executable_extensions; do 12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12657 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12659 break 2 12660 fi 12661 done 12662 done 12663 IFS=$as_save_IFS 12664 12665 ;; 12666 esac 12667 fi 12668 CYGPATH=$ac_cv_path_CYGPATH 12669 if test -n "$CYGPATH"; then 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12671 $as_echo "$CYGPATH" >&6; } 12672 else 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12674 $as_echo "no" >&6; } 12675 fi 12676 12677 12678 test -n "$CYGPATH" && break 12679 done 12680 12681 else 12682 # If it succeeded, then it was overridden by the user. We will use it 12683 # for the tool. 12684 12685 # First remove it from the list of overridden variables, so we can test 12686 # for unknown variables in the end. 12687 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12688 12689 # Check if the provided tool contains a complete path. 12690 tool_specified="$CYGPATH" 12691 tool_basename="${tool_specified##*/}" 12692 if test "x$tool_basename" = "x$tool_specified"; then 12693 # A command without a complete path is provided, search $PATH. 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12695 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12696 # Extract the first word of "$tool_basename", so it can be a program name with args. 12697 set dummy $tool_basename; ac_word=$2 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12699 $as_echo_n "checking for $ac_word... " >&6; } 12700 if ${ac_cv_path_CYGPATH+:} false; then : 12701 $as_echo_n "(cached) " >&6 12702 else 12703 case $CYGPATH in 12704 [\\/]* | ?:[\\/]*) 12705 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12706 ;; 12707 *) 12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12709 for as_dir in $PATH 12710 do 12711 IFS=$as_save_IFS 12712 test -z "$as_dir" && as_dir=. 12713 for ac_exec_ext in '' $ac_executable_extensions; do 12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12715 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12717 break 2 12718 fi 12719 done 12720 done 12721 IFS=$as_save_IFS 12722 12723 ;; 12724 esac 12725 fi 12726 CYGPATH=$ac_cv_path_CYGPATH 12727 if test -n "$CYGPATH"; then 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12729 $as_echo "$CYGPATH" >&6; } 12730 else 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12732 $as_echo "no" >&6; } 12733 fi 12734 12735 12736 if test "x$CYGPATH" = x; then 12737 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12738 fi 12739 else 12740 # Otherwise we believe it is a complete path. Use it as it is. 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12742 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12744 $as_echo_n "checking for CYGPATH... " >&6; } 12745 if test ! -x "$tool_specified"; then 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12747 $as_echo "not found" >&6; } 12748 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12749 fi 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12751 $as_echo "$tool_specified" >&6; } 12752 fi 12753 fi 12754 fi 12755 12756 12757 12758 12759 # Publish this variable in the help. 12760 12761 12762 if test "x$READLINK" = x; then 12763 # The variable is not set by user, try to locate tool using the code snippet 12764 for ac_prog in greadlink readlink 12765 do 12766 # Extract the first word of "$ac_prog", so it can be a program name with args. 12767 set dummy $ac_prog; ac_word=$2 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12769 $as_echo_n "checking for $ac_word... " >&6; } 12770 if ${ac_cv_path_READLINK+:} false; then : 12771 $as_echo_n "(cached) " >&6 12772 else 12773 case $READLINK in 12774 [\\/]* | ?:[\\/]*) 12775 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12776 ;; 12777 *) 12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12779 for as_dir in $PATH 12780 do 12781 IFS=$as_save_IFS 12782 test -z "$as_dir" && as_dir=. 12783 for ac_exec_ext in '' $ac_executable_extensions; do 12784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12785 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12787 break 2 12788 fi 12789 done 12790 done 12791 IFS=$as_save_IFS 12792 12793 ;; 12794 esac 12795 fi 12796 READLINK=$ac_cv_path_READLINK 12797 if test -n "$READLINK"; then 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12799 $as_echo "$READLINK" >&6; } 12800 else 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12802 $as_echo "no" >&6; } 12803 fi 12804 12805 12806 test -n "$READLINK" && break 12807 done 12808 12809 else 12810 # The variable is set, but is it from the command line or the environment? 12811 12812 # Try to remove the string !READLINK! from our list. 12813 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12814 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12815 # If it failed, the variable was not from the command line. Ignore it, 12816 # but warn the user (except for BASH, which is always set by the calling BASH). 12817 if test "xREADLINK" != xBASH; then 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12819 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12820 fi 12821 # Try to locate tool using the code snippet 12822 for ac_prog in greadlink readlink 12823 do 12824 # Extract the first word of "$ac_prog", so it can be a program name with args. 12825 set dummy $ac_prog; ac_word=$2 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12827 $as_echo_n "checking for $ac_word... " >&6; } 12828 if ${ac_cv_path_READLINK+:} false; then : 12829 $as_echo_n "(cached) " >&6 12830 else 12831 case $READLINK in 12832 [\\/]* | ?:[\\/]*) 12833 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12834 ;; 12835 *) 12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12837 for as_dir in $PATH 12838 do 12839 IFS=$as_save_IFS 12840 test -z "$as_dir" && as_dir=. 12841 for ac_exec_ext in '' $ac_executable_extensions; do 12842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12843 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12845 break 2 12846 fi 12847 done 12848 done 12849 IFS=$as_save_IFS 12850 12851 ;; 12852 esac 12853 fi 12854 READLINK=$ac_cv_path_READLINK 12855 if test -n "$READLINK"; then 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12857 $as_echo "$READLINK" >&6; } 12858 else 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860 $as_echo "no" >&6; } 12861 fi 12862 12863 12864 test -n "$READLINK" && break 12865 done 12866 12867 else 12868 # If it succeeded, then it was overridden by the user. We will use it 12869 # for the tool. 12870 12871 # First remove it from the list of overridden variables, so we can test 12872 # for unknown variables in the end. 12873 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12874 12875 # Check if the provided tool contains a complete path. 12876 tool_specified="$READLINK" 12877 tool_basename="${tool_specified##*/}" 12878 if test "x$tool_basename" = "x$tool_specified"; then 12879 # A command without a complete path is provided, search $PATH. 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12881 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12882 # Extract the first word of "$tool_basename", so it can be a program name with args. 12883 set dummy $tool_basename; ac_word=$2 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12885 $as_echo_n "checking for $ac_word... " >&6; } 12886 if ${ac_cv_path_READLINK+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888 else 12889 case $READLINK in 12890 [\\/]* | ?:[\\/]*) 12891 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12892 ;; 12893 *) 12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12895 for as_dir in $PATH 12896 do 12897 IFS=$as_save_IFS 12898 test -z "$as_dir" && as_dir=. 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12901 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905 done 12906 done 12907 IFS=$as_save_IFS 12908 12909 ;; 12910 esac 12911 fi 12912 READLINK=$ac_cv_path_READLINK 12913 if test -n "$READLINK"; then 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12915 $as_echo "$READLINK" >&6; } 12916 else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12918 $as_echo "no" >&6; } 12919 fi 12920 12921 12922 if test "x$READLINK" = x; then 12923 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12924 fi 12925 else 12926 # Otherwise we believe it is a complete path. Use it as it is. 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12928 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12930 $as_echo_n "checking for READLINK... " >&6; } 12931 if test ! -x "$tool_specified"; then 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12933 $as_echo "not found" >&6; } 12934 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12935 fi 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12937 $as_echo "$tool_specified" >&6; } 12938 fi 12939 fi 12940 fi 12941 12942 12943 12944 12945 # Publish this variable in the help. 12946 12947 12948 if test "x$DF" = x; then 12949 # The variable is not set by user, try to locate tool using the code snippet 12950 for ac_prog in df 12951 do 12952 # Extract the first word of "$ac_prog", so it can be a program name with args. 12953 set dummy $ac_prog; ac_word=$2 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12955 $as_echo_n "checking for $ac_word... " >&6; } 12956 if ${ac_cv_path_DF+:} false; then : 12957 $as_echo_n "(cached) " >&6 12958 else 12959 case $DF in 12960 [\\/]* | ?:[\\/]*) 12961 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12962 ;; 12963 *) 12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12965 for as_dir in $PATH 12966 do 12967 IFS=$as_save_IFS 12968 test -z "$as_dir" && as_dir=. 12969 for ac_exec_ext in '' $ac_executable_extensions; do 12970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12971 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12973 break 2 12974 fi 12975 done 12976 done 12977 IFS=$as_save_IFS 12978 12979 ;; 12980 esac 12981 fi 12982 DF=$ac_cv_path_DF 12983 if test -n "$DF"; then 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12985 $as_echo "$DF" >&6; } 12986 else 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12988 $as_echo "no" >&6; } 12989 fi 12990 12991 12992 test -n "$DF" && break 12993 done 12994 12995 else 12996 # The variable is set, but is it from the command line or the environment? 12997 12998 # Try to remove the string !DF! from our list. 12999 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 13000 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13001 # If it failed, the variable was not from the command line. Ignore it, 13002 # but warn the user (except for BASH, which is always set by the calling BASH). 13003 if test "xDF" != xBASH; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 13005 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 13006 fi 13007 # Try to locate tool using the code snippet 13008 for ac_prog in df 13009 do 13010 # Extract the first word of "$ac_prog", so it can be a program name with args. 13011 set dummy $ac_prog; ac_word=$2 13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13013 $as_echo_n "checking for $ac_word... " >&6; } 13014 if ${ac_cv_path_DF+:} false; then : 13015 $as_echo_n "(cached) " >&6 13016 else 13017 case $DF in 13018 [\\/]* | ?:[\\/]*) 13019 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13020 ;; 13021 *) 13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13023 for as_dir in $PATH 13024 do 13025 IFS=$as_save_IFS 13026 test -z "$as_dir" && as_dir=. 13027 for ac_exec_ext in '' $ac_executable_extensions; do 13028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13029 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13031 break 2 13032 fi 13033 done 13034 done 13035 IFS=$as_save_IFS 13036 13037 ;; 13038 esac 13039 fi 13040 DF=$ac_cv_path_DF 13041 if test -n "$DF"; then 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13043 $as_echo "$DF" >&6; } 13044 else 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13046 $as_echo "no" >&6; } 13047 fi 13048 13049 13050 test -n "$DF" && break 13051 done 13052 13053 else 13054 # If it succeeded, then it was overridden by the user. We will use it 13055 # for the tool. 13056 13057 # First remove it from the list of overridden variables, so we can test 13058 # for unknown variables in the end. 13059 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13060 13061 # Check if the provided tool contains a complete path. 13062 tool_specified="$DF" 13063 tool_basename="${tool_specified##*/}" 13064 if test "x$tool_basename" = "x$tool_specified"; then 13065 # A command without a complete path is provided, search $PATH. 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13067 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13068 # Extract the first word of "$tool_basename", so it can be a program name with args. 13069 set dummy $tool_basename; ac_word=$2 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13071 $as_echo_n "checking for $ac_word... " >&6; } 13072 if ${ac_cv_path_DF+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074 else 13075 case $DF in 13076 [\\/]* | ?:[\\/]*) 13077 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13078 ;; 13079 *) 13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13081 for as_dir in $PATH 13082 do 13083 IFS=$as_save_IFS 13084 test -z "$as_dir" && as_dir=. 13085 for ac_exec_ext in '' $ac_executable_extensions; do 13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13087 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13089 break 2 13090 fi 13091 done 13092 done 13093 IFS=$as_save_IFS 13094 13095 ;; 13096 esac 13097 fi 13098 DF=$ac_cv_path_DF 13099 if test -n "$DF"; then 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13101 $as_echo "$DF" >&6; } 13102 else 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13104 $as_echo "no" >&6; } 13105 fi 13106 13107 13108 if test "x$DF" = x; then 13109 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13110 fi 13111 else 13112 # Otherwise we believe it is a complete path. Use it as it is. 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13114 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13116 $as_echo_n "checking for DF... " >&6; } 13117 if test ! -x "$tool_specified"; then 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13119 $as_echo "not found" >&6; } 13120 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13121 fi 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13123 $as_echo "$tool_specified" >&6; } 13124 fi 13125 fi 13126 fi 13127 13128 13129 13130 13131 # Publish this variable in the help. 13132 13133 13134 if test "x$SETFILE" = x; then 13135 # The variable is not set by user, try to locate tool using the code snippet 13136 for ac_prog in SetFile 13137 do 13138 # Extract the first word of "$ac_prog", so it can be a program name with args. 13139 set dummy $ac_prog; ac_word=$2 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13141 $as_echo_n "checking for $ac_word... " >&6; } 13142 if ${ac_cv_path_SETFILE+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144 else 13145 case $SETFILE in 13146 [\\/]* | ?:[\\/]*) 13147 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13148 ;; 13149 *) 13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13151 for as_dir in $PATH 13152 do 13153 IFS=$as_save_IFS 13154 test -z "$as_dir" && as_dir=. 13155 for ac_exec_ext in '' $ac_executable_extensions; do 13156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13157 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13159 break 2 13160 fi 13161 done 13162 done 13163 IFS=$as_save_IFS 13164 13165 ;; 13166 esac 13167 fi 13168 SETFILE=$ac_cv_path_SETFILE 13169 if test -n "$SETFILE"; then 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13171 $as_echo "$SETFILE" >&6; } 13172 else 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13174 $as_echo "no" >&6; } 13175 fi 13176 13177 13178 test -n "$SETFILE" && break 13179 done 13180 13181 else 13182 # The variable is set, but is it from the command line or the environment? 13183 13184 # Try to remove the string !SETFILE! from our list. 13185 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13186 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13187 # If it failed, the variable was not from the command line. Ignore it, 13188 # but warn the user (except for BASH, which is always set by the calling BASH). 13189 if test "xSETFILE" != xBASH; then 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13191 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13192 fi 13193 # Try to locate tool using the code snippet 13194 for ac_prog in SetFile 13195 do 13196 # Extract the first word of "$ac_prog", so it can be a program name with args. 13197 set dummy $ac_prog; ac_word=$2 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13199 $as_echo_n "checking for $ac_word... " >&6; } 13200 if ${ac_cv_path_SETFILE+:} false; then : 13201 $as_echo_n "(cached) " >&6 13202 else 13203 case $SETFILE in 13204 [\\/]* | ?:[\\/]*) 13205 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13206 ;; 13207 *) 13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13209 for as_dir in $PATH 13210 do 13211 IFS=$as_save_IFS 13212 test -z "$as_dir" && as_dir=. 13213 for ac_exec_ext in '' $ac_executable_extensions; do 13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13215 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13217 break 2 13218 fi 13219 done 13220 done 13221 IFS=$as_save_IFS 13222 13223 ;; 13224 esac 13225 fi 13226 SETFILE=$ac_cv_path_SETFILE 13227 if test -n "$SETFILE"; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13229 $as_echo "$SETFILE" >&6; } 13230 else 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13232 $as_echo "no" >&6; } 13233 fi 13234 13235 13236 test -n "$SETFILE" && break 13237 done 13238 13239 else 13240 # If it succeeded, then it was overridden by the user. We will use it 13241 # for the tool. 13242 13243 # First remove it from the list of overridden variables, so we can test 13244 # for unknown variables in the end. 13245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13246 13247 # Check if the provided tool contains a complete path. 13248 tool_specified="$SETFILE" 13249 tool_basename="${tool_specified##*/}" 13250 if test "x$tool_basename" = "x$tool_specified"; then 13251 # A command without a complete path is provided, search $PATH. 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13253 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13254 # Extract the first word of "$tool_basename", so it can be a program name with args. 13255 set dummy $tool_basename; ac_word=$2 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13257 $as_echo_n "checking for $ac_word... " >&6; } 13258 if ${ac_cv_path_SETFILE+:} false; then : 13259 $as_echo_n "(cached) " >&6 13260 else 13261 case $SETFILE in 13262 [\\/]* | ?:[\\/]*) 13263 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13264 ;; 13265 *) 13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13267 for as_dir in $PATH 13268 do 13269 IFS=$as_save_IFS 13270 test -z "$as_dir" && as_dir=. 13271 for ac_exec_ext in '' $ac_executable_extensions; do 13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13273 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13275 break 2 13276 fi 13277 done 13278 done 13279 IFS=$as_save_IFS 13280 13281 ;; 13282 esac 13283 fi 13284 SETFILE=$ac_cv_path_SETFILE 13285 if test -n "$SETFILE"; then 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13287 $as_echo "$SETFILE" >&6; } 13288 else 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13290 $as_echo "no" >&6; } 13291 fi 13292 13293 13294 if test "x$SETFILE" = x; then 13295 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13296 fi 13297 else 13298 # Otherwise we believe it is a complete path. Use it as it is. 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13300 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13302 $as_echo_n "checking for SETFILE... " >&6; } 13303 if test ! -x "$tool_specified"; then 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13305 $as_echo "not found" >&6; } 13306 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13307 fi 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13309 $as_echo "$tool_specified" >&6; } 13310 fi 13311 fi 13312 fi 13313 13314 13315 13316 13317 # Publish this variable in the help. 13318 13319 13320 if test "x$CPIO" = x; then 13321 # The variable is not set by user, try to locate tool using the code snippet 13322 for ac_prog in cpio bsdcpio 13323 do 13324 # Extract the first word of "$ac_prog", so it can be a program name with args. 13325 set dummy $ac_prog; ac_word=$2 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13327 $as_echo_n "checking for $ac_word... " >&6; } 13328 if ${ac_cv_path_CPIO+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330 else 13331 case $CPIO in 13332 [\\/]* | ?:[\\/]*) 13333 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13334 ;; 13335 *) 13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13337 for as_dir in $PATH 13338 do 13339 IFS=$as_save_IFS 13340 test -z "$as_dir" && as_dir=. 13341 for ac_exec_ext in '' $ac_executable_extensions; do 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13343 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13345 break 2 13346 fi 13347 done 13348 done 13349 IFS=$as_save_IFS 13350 13351 ;; 13352 esac 13353 fi 13354 CPIO=$ac_cv_path_CPIO 13355 if test -n "$CPIO"; then 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13357 $as_echo "$CPIO" >&6; } 13358 else 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13360 $as_echo "no" >&6; } 13361 fi 13362 13363 13364 test -n "$CPIO" && break 13365 done 13366 13367 else 13368 # The variable is set, but is it from the command line or the environment? 13369 13370 # Try to remove the string !CPIO! from our list. 13371 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13372 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13373 # If it failed, the variable was not from the command line. Ignore it, 13374 # but warn the user (except for BASH, which is always set by the calling BASH). 13375 if test "xCPIO" != xBASH; then 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13377 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13378 fi 13379 # Try to locate tool using the code snippet 13380 for ac_prog in cpio bsdcpio 13381 do 13382 # Extract the first word of "$ac_prog", so it can be a program name with args. 13383 set dummy $ac_prog; ac_word=$2 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13385 $as_echo_n "checking for $ac_word... " >&6; } 13386 if ${ac_cv_path_CPIO+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388 else 13389 case $CPIO in 13390 [\\/]* | ?:[\\/]*) 13391 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13392 ;; 13393 *) 13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13395 for as_dir in $PATH 13396 do 13397 IFS=$as_save_IFS 13398 test -z "$as_dir" && as_dir=. 13399 for ac_exec_ext in '' $ac_executable_extensions; do 13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13401 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13403 break 2 13404 fi 13405 done 13406 done 13407 IFS=$as_save_IFS 13408 13409 ;; 13410 esac 13411 fi 13412 CPIO=$ac_cv_path_CPIO 13413 if test -n "$CPIO"; then 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13415 $as_echo "$CPIO" >&6; } 13416 else 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13418 $as_echo "no" >&6; } 13419 fi 13420 13421 13422 test -n "$CPIO" && break 13423 done 13424 13425 else 13426 # If it succeeded, then it was overridden by the user. We will use it 13427 # for the tool. 13428 13429 # First remove it from the list of overridden variables, so we can test 13430 # for unknown variables in the end. 13431 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13432 13433 # Check if the provided tool contains a complete path. 13434 tool_specified="$CPIO" 13435 tool_basename="${tool_specified##*/}" 13436 if test "x$tool_basename" = "x$tool_specified"; then 13437 # A command without a complete path is provided, search $PATH. 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13439 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13440 # Extract the first word of "$tool_basename", so it can be a program name with args. 13441 set dummy $tool_basename; ac_word=$2 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13443 $as_echo_n "checking for $ac_word... " >&6; } 13444 if ${ac_cv_path_CPIO+:} false; then : 13445 $as_echo_n "(cached) " >&6 13446 else 13447 case $CPIO in 13448 [\\/]* | ?:[\\/]*) 13449 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13450 ;; 13451 *) 13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13453 for as_dir in $PATH 13454 do 13455 IFS=$as_save_IFS 13456 test -z "$as_dir" && as_dir=. 13457 for ac_exec_ext in '' $ac_executable_extensions; do 13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13459 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13461 break 2 13462 fi 13463 done 13464 done 13465 IFS=$as_save_IFS 13466 13467 ;; 13468 esac 13469 fi 13470 CPIO=$ac_cv_path_CPIO 13471 if test -n "$CPIO"; then 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13473 $as_echo "$CPIO" >&6; } 13474 else 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13476 $as_echo "no" >&6; } 13477 fi 13478 13479 13480 if test "x$CPIO" = x; then 13481 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13482 fi 13483 else 13484 # Otherwise we believe it is a complete path. Use it as it is. 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13486 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13488 $as_echo_n "checking for CPIO... " >&6; } 13489 if test ! -x "$tool_specified"; then 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13491 $as_echo "not found" >&6; } 13492 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13493 fi 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13495 $as_echo "$tool_specified" >&6; } 13496 fi 13497 fi 13498 fi 13499 13500 13501 13502 13503 # Now we can determine OpenJDK build and target platforms. This is required to 13504 # have early on. 13505 # Make sure we can run config.sub. 13506 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13507 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13508 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13510 $as_echo_n "checking build system type... " >&6; } 13511 if ${ac_cv_build+:} false; then : 13512 $as_echo_n "(cached) " >&6 13513 else 13514 ac_build_alias=$build_alias 13515 test "x$ac_build_alias" = x && 13516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13517 test "x$ac_build_alias" = x && 13518 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13521 13522 fi 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13524 $as_echo "$ac_cv_build" >&6; } 13525 case $ac_cv_build in 13526 *-*-*) ;; 13527 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13528 esac 13529 build=$ac_cv_build 13530 ac_save_IFS=$IFS; IFS='-' 13531 set x $ac_cv_build 13532 shift 13533 build_cpu=$1 13534 build_vendor=$2 13535 shift; shift 13536 # Remember, the first character of IFS is used to create $*, 13537 # except with old shells: 13538 build_os=$* 13539 IFS=$ac_save_IFS 13540 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13541 13542 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13544 $as_echo_n "checking host system type... " >&6; } 13545 if ${ac_cv_host+:} false; then : 13546 $as_echo_n "(cached) " >&6 13547 else 13548 if test "x$host_alias" = x; then 13549 ac_cv_host=$ac_cv_build 13550 else 13551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13553 fi 13554 13555 fi 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13557 $as_echo "$ac_cv_host" >&6; } 13558 case $ac_cv_host in 13559 *-*-*) ;; 13560 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13561 esac 13562 host=$ac_cv_host 13563 ac_save_IFS=$IFS; IFS='-' 13564 set x $ac_cv_host 13565 shift 13566 host_cpu=$1 13567 host_vendor=$2 13568 shift; shift 13569 # Remember, the first character of IFS is used to create $*, 13570 # except with old shells: 13571 host_os=$* 13572 IFS=$ac_save_IFS 13573 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13574 13575 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13577 $as_echo_n "checking target system type... " >&6; } 13578 if ${ac_cv_target+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580 else 13581 if test "x$target_alias" = x; then 13582 ac_cv_target=$ac_cv_host 13583 else 13584 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13586 fi 13587 13588 fi 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13590 $as_echo "$ac_cv_target" >&6; } 13591 case $ac_cv_target in 13592 *-*-*) ;; 13593 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13594 esac 13595 target=$ac_cv_target 13596 ac_save_IFS=$IFS; IFS='-' 13597 set x $ac_cv_target 13598 shift 13599 target_cpu=$1 13600 target_vendor=$2 13601 shift; shift 13602 # Remember, the first character of IFS is used to create $*, 13603 # except with old shells: 13604 target_os=$* 13605 IFS=$ac_save_IFS 13606 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13607 13608 13609 # The aliases save the names the user supplied, while $host etc. 13610 # will get canonicalized. 13611 test -n "$target_alias" && 13612 test "$program_prefix$program_suffix$program_transform_name" = \ 13613 NONENONEs,x,x, && 13614 program_prefix=${target_alias}- 13615 13616 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13617 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13618 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13619 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13620 # to use the configure naming style. 13621 13622 13623 13624 13625 13626 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13627 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13628 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13629 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13630 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13631 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13632 13633 13634 13635 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13636 13637 case "$build_os" in 13638 *linux*) 13639 VAR_OS=linux 13640 VAR_OS_TYPE=unix 13641 ;; 13642 *solaris*) 13643 VAR_OS=solaris 13644 VAR_OS_TYPE=unix 13645 ;; 13646 *darwin*) 13647 VAR_OS=macosx 13648 VAR_OS_TYPE=unix 13649 ;; 13650 *bsd*) 13651 VAR_OS=bsd 13652 VAR_OS_TYPE=unix 13653 ;; 13654 *cygwin*) 13655 VAR_OS=windows 13656 VAR_OS_ENV=windows.cygwin 13657 ;; 13658 *mingw*) 13659 VAR_OS=windows 13660 VAR_OS_ENV=windows.msys 13661 ;; 13662 *aix*) 13663 VAR_OS=aix 13664 VAR_OS_TYPE=unix 13665 ;; 13666 *) 13667 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13668 ;; 13669 esac 13670 13671 13672 # First argument is the cpu name from the trip/quad 13673 case "$build_cpu" in 13674 x86_64) 13675 VAR_CPU=x86_64 13676 VAR_CPU_ARCH=x86 13677 VAR_CPU_BITS=64 13678 VAR_CPU_ENDIAN=little 13679 ;; 13680 i?86) 13681 VAR_CPU=x86 13682 VAR_CPU_ARCH=x86 13683 VAR_CPU_BITS=32 13684 VAR_CPU_ENDIAN=little 13685 ;; 13686 arm*) 13687 VAR_CPU=arm 13688 VAR_CPU_ARCH=arm 13689 VAR_CPU_BITS=32 13690 VAR_CPU_ENDIAN=little 13691 ;; 13692 aarch64) 13693 VAR_CPU=aarch64 13694 VAR_CPU_ARCH=aarch64 13695 VAR_CPU_BITS=64 13696 VAR_CPU_ENDIAN=little 13697 ;; 13698 powerpc) 13699 VAR_CPU=ppc 13700 VAR_CPU_ARCH=ppc 13701 VAR_CPU_BITS=32 13702 VAR_CPU_ENDIAN=big 13703 ;; 13704 powerpc64) 13705 VAR_CPU=ppc64 13706 VAR_CPU_ARCH=ppc 13707 VAR_CPU_BITS=64 13708 VAR_CPU_ENDIAN=big 13709 ;; 13710 powerpc64le) 13711 VAR_CPU=ppc64 13712 VAR_CPU_ARCH=ppc 13713 VAR_CPU_BITS=64 13714 VAR_CPU_ENDIAN=little 13715 ;; 13716 s390) 13717 VAR_CPU=s390 13718 VAR_CPU_ARCH=s390 13719 VAR_CPU_BITS=32 13720 VAR_CPU_ENDIAN=big 13721 ;; 13722 s390x) 13723 VAR_CPU=s390x 13724 VAR_CPU_ARCH=s390 13725 VAR_CPU_BITS=64 13726 VAR_CPU_ENDIAN=big 13727 ;; 13728 sparc) 13729 VAR_CPU=sparc 13730 VAR_CPU_ARCH=sparc 13731 VAR_CPU_BITS=32 13732 VAR_CPU_ENDIAN=big 13733 ;; 13734 sparcv9|sparc64) 13735 VAR_CPU=sparcv9 13736 VAR_CPU_ARCH=sparc 13737 VAR_CPU_BITS=64 13738 VAR_CPU_ENDIAN=big 13739 ;; 13740 *) 13741 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13742 ;; 13743 esac 13744 13745 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13746 OPENJDK_BUILD_OS="$VAR_OS" 13747 if test "x$VAR_OS_TYPE" != x; then 13748 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13749 else 13750 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13751 fi 13752 if test "x$VAR_OS_ENV" != x; then 13753 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13754 else 13755 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13756 fi 13757 OPENJDK_BUILD_CPU="$VAR_CPU" 13758 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13759 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13760 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13761 13762 13763 13764 13765 13766 13767 13768 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13770 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13772 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13773 13774 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13775 13776 case "$host_os" in 13777 *linux*) 13778 VAR_OS=linux 13779 VAR_OS_TYPE=unix 13780 ;; 13781 *solaris*) 13782 VAR_OS=solaris 13783 VAR_OS_TYPE=unix 13784 ;; 13785 *darwin*) 13786 VAR_OS=macosx 13787 VAR_OS_TYPE=unix 13788 ;; 13789 *bsd*) 13790 VAR_OS=bsd 13791 VAR_OS_TYPE=unix 13792 ;; 13793 *cygwin*) 13794 VAR_OS=windows 13795 VAR_OS_ENV=windows.cygwin 13796 ;; 13797 *mingw*) 13798 VAR_OS=windows 13799 VAR_OS_ENV=windows.msys 13800 ;; 13801 *aix*) 13802 VAR_OS=aix 13803 VAR_OS_TYPE=unix 13804 ;; 13805 *) 13806 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13807 ;; 13808 esac 13809 13810 13811 # First argument is the cpu name from the trip/quad 13812 case "$host_cpu" in 13813 x86_64) 13814 VAR_CPU=x86_64 13815 VAR_CPU_ARCH=x86 13816 VAR_CPU_BITS=64 13817 VAR_CPU_ENDIAN=little 13818 ;; 13819 i?86) 13820 VAR_CPU=x86 13821 VAR_CPU_ARCH=x86 13822 VAR_CPU_BITS=32 13823 VAR_CPU_ENDIAN=little 13824 ;; 13825 arm*) 13826 VAR_CPU=arm 13827 VAR_CPU_ARCH=arm 13828 VAR_CPU_BITS=32 13829 VAR_CPU_ENDIAN=little 13830 ;; 13831 aarch64) 13832 VAR_CPU=aarch64 13833 VAR_CPU_ARCH=aarch64 13834 VAR_CPU_BITS=64 13835 VAR_CPU_ENDIAN=little 13836 ;; 13837 powerpc) 13838 VAR_CPU=ppc 13839 VAR_CPU_ARCH=ppc 13840 VAR_CPU_BITS=32 13841 VAR_CPU_ENDIAN=big 13842 ;; 13843 powerpc64) 13844 VAR_CPU=ppc64 13845 VAR_CPU_ARCH=ppc 13846 VAR_CPU_BITS=64 13847 VAR_CPU_ENDIAN=big 13848 ;; 13849 powerpc64le) 13850 VAR_CPU=ppc64 13851 VAR_CPU_ARCH=ppc 13852 VAR_CPU_BITS=64 13853 VAR_CPU_ENDIAN=little 13854 ;; 13855 s390) 13856 VAR_CPU=s390 13857 VAR_CPU_ARCH=s390 13858 VAR_CPU_BITS=32 13859 VAR_CPU_ENDIAN=big 13860 ;; 13861 s390x) 13862 VAR_CPU=s390x 13863 VAR_CPU_ARCH=s390 13864 VAR_CPU_BITS=64 13865 VAR_CPU_ENDIAN=big 13866 ;; 13867 sparc) 13868 VAR_CPU=sparc 13869 VAR_CPU_ARCH=sparc 13870 VAR_CPU_BITS=32 13871 VAR_CPU_ENDIAN=big 13872 ;; 13873 sparcv9|sparc64) 13874 VAR_CPU=sparcv9 13875 VAR_CPU_ARCH=sparc 13876 VAR_CPU_BITS=64 13877 VAR_CPU_ENDIAN=big 13878 ;; 13879 *) 13880 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13881 ;; 13882 esac 13883 13884 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13885 OPENJDK_TARGET_OS="$VAR_OS" 13886 if test "x$VAR_OS_TYPE" != x; then 13887 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13888 else 13889 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13890 fi 13891 if test "x$VAR_OS_ENV" != x; then 13892 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13893 else 13894 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13895 fi 13896 OPENJDK_TARGET_CPU="$VAR_CPU" 13897 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13898 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13899 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13900 13901 13902 13903 13904 13905 13906 13907 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13909 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13911 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13912 13913 13914 13915 # Check whether --with-target-bits was given. 13916 if test "${with_target_bits+set}" = set; then : 13917 withval=$with_target_bits; 13918 fi 13919 13920 13921 # We have three types of compiles: 13922 # native == normal compilation, target system == build system 13923 # cross == traditional cross compilation, target system != build system; special toolchain needed 13924 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13925 # 13926 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13927 # We're doing a proper cross-compilation 13928 COMPILE_TYPE="cross" 13929 else 13930 COMPILE_TYPE="native" 13931 fi 13932 13933 if test "x$with_target_bits" != x; then 13934 if test "x$COMPILE_TYPE" = "xcross"; then 13935 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13936 fi 13937 13938 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13939 # A reduced build is requested 13940 COMPILE_TYPE="reduced" 13941 OPENJDK_TARGET_CPU_BITS=32 13942 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13943 OPENJDK_TARGET_CPU=x86 13944 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13945 OPENJDK_TARGET_CPU=sparc 13946 else 13947 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13948 fi 13949 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13950 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 13951 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13953 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13954 else 13955 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13956 fi 13957 fi 13958 13959 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13961 $as_echo_n "checking compilation type... " >&6; } 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13963 $as_echo "$COMPILE_TYPE" >&6; } 13964 13965 13966 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13967 REQUIRED_OS_NAME=SunOS 13968 REQUIRED_OS_VERSION=5.10 13969 fi 13970 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13971 REQUIRED_OS_NAME=Linux 13972 REQUIRED_OS_VERSION=2.6 13973 fi 13974 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13975 REQUIRED_OS_NAME=Windows 13976 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13977 REQUIRED_OS_VERSION=5.2 13978 else 13979 REQUIRED_OS_VERSION=5.1 13980 fi 13981 fi 13982 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13983 REQUIRED_OS_NAME=Darwin 13984 REQUIRED_OS_VERSION=11.2 13985 fi 13986 13987 13988 13989 13990 13991 # Also store the legacy naming of the cpu. 13992 # Ie i586 and amd64 instead of x86 and x86_64 13993 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13994 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13995 OPENJDK_TARGET_CPU_LEGACY="i586" 13996 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13997 # On all platforms except MacOSX replace x86_64 with amd64. 13998 OPENJDK_TARGET_CPU_LEGACY="amd64" 13999 fi 14000 14001 14002 # And the second legacy naming of the cpu. 14003 # Ie i386 and amd64 instead of x86 and x86_64. 14004 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 14005 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14006 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 14007 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14008 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 14009 fi 14010 14011 14012 # This is the name of the cpu (but using i386 and amd64 instead of 14013 # x86 and x86_64, respectively), preceeded by a /, to be used when 14014 # locating libraries. On macosx, it's empty, though. 14015 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 14016 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14017 OPENJDK_TARGET_CPU_LIBDIR="" 14018 fi 14019 14020 14021 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 14022 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 14023 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 14024 OPENJDK_TARGET_CPU_ISADIR="" 14025 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14026 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14027 OPENJDK_TARGET_CPU_ISADIR="/amd64" 14028 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 14029 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 14030 fi 14031 fi 14032 14033 14034 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 14035 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 14036 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 14037 # On linux only, we replace x86 with i386. 14038 OPENJDK_TARGET_CPU_OSARCH="i386" 14039 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14040 # On all platforms except macosx, we replace x86_64 with amd64. 14041 OPENJDK_TARGET_CPU_OSARCH="amd64" 14042 fi 14043 14044 14045 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14046 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14047 OPENJDK_TARGET_CPU_JLI="i386" 14048 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14049 # On all platforms except macosx, we replace x86_64 with amd64. 14050 OPENJDK_TARGET_CPU_JLI="amd64" 14051 fi 14052 # Now setup the -D flags for building libjli. 14053 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14054 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14055 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14056 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14057 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14058 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14059 fi 14060 fi 14061 14062 14063 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14064 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14065 else 14066 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 14067 fi 14068 14069 14070 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14071 A_LP64="LP64:=" 14072 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14073 # unpack200.exe 14074 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14075 ADD_LP64="-D_LP64=1" 14076 fi 14077 fi 14078 LP64=$A_LP64 14079 14080 14081 if test "x$COMPILE_TYPE" = "xcross"; then 14082 # FIXME: ... or should this include reduced builds..? 14083 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14084 else 14085 DEFINE_CROSS_COMPILE_ARCH="" 14086 fi 14087 14088 14089 # ZERO_ARCHDEF is used to enable architecture-specific code 14090 case "${OPENJDK_TARGET_CPU}" in 14091 ppc) ZERO_ARCHDEF=PPC32 ;; 14092 ppc64) ZERO_ARCHDEF=PPC64 ;; 14093 s390*) ZERO_ARCHDEF=S390 ;; 14094 sparc*) ZERO_ARCHDEF=SPARC ;; 14095 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14096 x86) ZERO_ARCHDEF=IA32 ;; 14097 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14098 esac 14099 14100 14101 14102 14103 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14104 14105 # Save the current directory this script was started from 14106 CURDIR="$PWD" 14107 14108 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14109 PATH_SEP=";" 14110 14111 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14112 if test $SRC_ROOT_LENGTH -gt 100; then 14113 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14114 fi 14115 14116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14118 $as_echo_n "checking cygwin release... " >&6; } 14119 CYGWIN_VERSION=`$UNAME -r` 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14121 $as_echo "$CYGWIN_VERSION" >&6; } 14122 WINDOWS_ENV_VENDOR='cygwin' 14123 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14124 14125 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14126 if test "x$CYGWIN_VERSION_OLD" != x; then 14127 { $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 14128 $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;} 14129 as_fn_error $? "Cannot continue" "$LINENO" 5 14130 fi 14131 if test "x$CYGPATH" = x; then 14132 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14133 fi 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14135 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14136 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14137 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14138 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14139 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14141 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14142 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14143 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14144 if test "x$test_cygdrive_prefix" = x; then 14145 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14146 fi 14147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14149 $as_echo_n "checking msys release... " >&6; } 14150 MSYS_VERSION=`$UNAME -r` 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14152 $as_echo "$MSYS_VERSION" >&6; } 14153 14154 WINDOWS_ENV_VENDOR='msys' 14155 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14156 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14158 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14159 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14160 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14161 14162 windows_path="$MSYS_ROOT_PATH" 14163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14164 unix_path=`$CYGPATH -u "$windows_path"` 14165 MSYS_ROOT_PATH="$unix_path" 14166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14168 MSYS_ROOT_PATH="$unix_path" 14169 fi 14170 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14172 $as_echo "$MSYS_ROOT_PATH" >&6; } 14173 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14174 else 14175 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14176 fi 14177 14178 # Test if windows or unix (cygwin/msys) find is first in path. 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14180 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14181 FIND_BINARY_OUTPUT=`find --version 2>&1` 14182 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14184 $as_echo "unix style" >&6; } 14185 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14187 $as_echo "Windows" >&6; } 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14189 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14190 { $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 14191 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14192 as_fn_error $? "Cannot continue" "$LINENO" 5 14193 else 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14195 $as_echo "unknown" >&6; } 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14197 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14198 fi 14199 14200 else 14201 PATH_SEP=":" 14202 fi 14203 14204 14205 # We get the top-level directory from the supporting wrappers. 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14207 $as_echo_n "checking for top-level directory... " >&6; } 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14209 $as_echo "$TOPDIR" >&6; } 14210 14211 14212 # Save the original version of TOPDIR for string comparisons 14213 ORIGINAL_TOPDIR="$TOPDIR" 14214 14215 14216 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14217 14218 # Only process if variable expands to non-empty 14219 14220 if test "x$CURDIR" != x; then 14221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14222 14223 # Input might be given as Windows format, start by converting to 14224 # unix format. 14225 path="$CURDIR" 14226 new_path=`$CYGPATH -u "$path"` 14227 14228 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14229 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14230 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14231 # "foo.exe" is OK but "foo" is an error. 14232 # 14233 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14234 # It is also a way to make sure we got the proper file name for the real test later on. 14235 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14236 if test "x$test_shortpath" = x; then 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14238 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14239 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14240 fi 14241 14242 # Call helper function which possibly converts this using DOS-style short mode. 14243 # If so, the updated path is stored in $new_path. 14244 14245 input_path="$new_path" 14246 # Check if we need to convert this using DOS-style short mode. If the path 14247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14248 # take no chances and rewrite it. 14249 # Note: m4 eats our [], so we need to use [ and ] instead. 14250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14251 if test "x$has_forbidden_chars" != x; then 14252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14253 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14254 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14255 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14256 # Going to short mode and back again did indeed matter. Since short mode is 14257 # case insensitive, let's make it lowercase to improve readability. 14258 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14259 # Now convert it back to Unix-style (cygpath) 14260 input_path=`$CYGPATH -u "$shortmode_path"` 14261 new_path="$input_path" 14262 fi 14263 fi 14264 14265 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14266 if test "x$test_cygdrive_prefix" = x; then 14267 # As a simple fix, exclude /usr/bin since it's not a real path. 14268 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14269 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14270 # a path prefixed by /cygdrive for fixpath to work. 14271 new_path="$CYGWIN_ROOT_PATH$input_path" 14272 fi 14273 fi 14274 14275 14276 if test "x$path" != "x$new_path"; then 14277 CURDIR="$new_path" 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14279 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14280 fi 14281 14282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14283 14284 path="$CURDIR" 14285 has_colon=`$ECHO $path | $GREP ^.:` 14286 new_path="$path" 14287 if test "x$has_colon" = x; then 14288 # Not in mixed or Windows style, start by that. 14289 new_path=`cmd //c echo $path` 14290 fi 14291 14292 14293 input_path="$new_path" 14294 # Check if we need to convert this using DOS-style short mode. If the path 14295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14296 # take no chances and rewrite it. 14297 # Note: m4 eats our [], so we need to use [ and ] instead. 14298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14299 if test "x$has_forbidden_chars" != x; then 14300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14301 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14302 fi 14303 14304 14305 windows_path="$new_path" 14306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14307 unix_path=`$CYGPATH -u "$windows_path"` 14308 new_path="$unix_path" 14309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14310 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14311 new_path="$unix_path" 14312 fi 14313 14314 if test "x$path" != "x$new_path"; then 14315 CURDIR="$new_path" 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14317 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14318 fi 14319 14320 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14321 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14322 14323 else 14324 # We're on a unix platform. Hooray! :) 14325 path="$CURDIR" 14326 has_space=`$ECHO "$path" | $GREP " "` 14327 if test "x$has_space" != x; then 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14329 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14330 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14331 fi 14332 14333 # Use eval to expand a potential ~ 14334 eval path="$path" 14335 if test ! -f "$path" && test ! -d "$path"; then 14336 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14337 fi 14338 14339 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14340 fi 14341 fi 14342 14343 14344 # Only process if variable expands to non-empty 14345 14346 if test "x$TOPDIR" != x; then 14347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14348 14349 # Input might be given as Windows format, start by converting to 14350 # unix format. 14351 path="$TOPDIR" 14352 new_path=`$CYGPATH -u "$path"` 14353 14354 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14355 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14356 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14357 # "foo.exe" is OK but "foo" is an error. 14358 # 14359 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14360 # It is also a way to make sure we got the proper file name for the real test later on. 14361 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14362 if test "x$test_shortpath" = x; then 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14364 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14365 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14366 fi 14367 14368 # Call helper function which possibly converts this using DOS-style short mode. 14369 # If so, the updated path is stored in $new_path. 14370 14371 input_path="$new_path" 14372 # Check if we need to convert this using DOS-style short mode. If the path 14373 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14374 # take no chances and rewrite it. 14375 # Note: m4 eats our [], so we need to use [ and ] instead. 14376 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14377 if test "x$has_forbidden_chars" != x; then 14378 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14379 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14380 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14381 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14382 # Going to short mode and back again did indeed matter. Since short mode is 14383 # case insensitive, let's make it lowercase to improve readability. 14384 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14385 # Now convert it back to Unix-style (cygpath) 14386 input_path=`$CYGPATH -u "$shortmode_path"` 14387 new_path="$input_path" 14388 fi 14389 fi 14390 14391 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14392 if test "x$test_cygdrive_prefix" = x; then 14393 # As a simple fix, exclude /usr/bin since it's not a real path. 14394 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14395 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14396 # a path prefixed by /cygdrive for fixpath to work. 14397 new_path="$CYGWIN_ROOT_PATH$input_path" 14398 fi 14399 fi 14400 14401 14402 if test "x$path" != "x$new_path"; then 14403 TOPDIR="$new_path" 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14405 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14406 fi 14407 14408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14409 14410 path="$TOPDIR" 14411 has_colon=`$ECHO $path | $GREP ^.:` 14412 new_path="$path" 14413 if test "x$has_colon" = x; then 14414 # Not in mixed or Windows style, start by that. 14415 new_path=`cmd //c echo $path` 14416 fi 14417 14418 14419 input_path="$new_path" 14420 # Check if we need to convert this using DOS-style short mode. If the path 14421 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14422 # take no chances and rewrite it. 14423 # Note: m4 eats our [], so we need to use [ and ] instead. 14424 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14425 if test "x$has_forbidden_chars" != x; then 14426 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14427 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14428 fi 14429 14430 14431 windows_path="$new_path" 14432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14433 unix_path=`$CYGPATH -u "$windows_path"` 14434 new_path="$unix_path" 14435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14437 new_path="$unix_path" 14438 fi 14439 14440 if test "x$path" != "x$new_path"; then 14441 TOPDIR="$new_path" 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14443 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14444 fi 14445 14446 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14447 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14448 14449 else 14450 # We're on a unix platform. Hooray! :) 14451 path="$TOPDIR" 14452 has_space=`$ECHO "$path" | $GREP " "` 14453 if test "x$has_space" != x; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14455 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14456 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14457 fi 14458 14459 # Use eval to expand a potential ~ 14460 eval path="$path" 14461 if test ! -f "$path" && test ! -d "$path"; then 14462 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14463 fi 14464 14465 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14466 fi 14467 fi 14468 14469 # SRC_ROOT is a traditional alias for TOPDIR. 14470 SRC_ROOT=$TOPDIR 14471 14472 # Calculate a canonical version of TOPDIR for string comparisons 14473 CANONICAL_TOPDIR=$TOPDIR 14474 14475 if test "x$OPENJDK_BUILD_OS" != xwindows; then 14476 # Follow a chain of symbolic links. Use readlink 14477 # where it exists, else fall back to horribly 14478 # complicated shell code. 14479 if test "x$READLINK_TESTED" != yes; then 14480 # On MacOSX there is a readlink tool with a different 14481 # purpose than the GNU readlink tool. Check the found readlink. 14482 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 14483 if test "x$ISGNU" = x; then 14484 # A readlink that we do not know how to use. 14485 # Are there other non-GNU readlinks out there? 14486 READLINK_TESTED=yes 14487 READLINK= 14488 fi 14489 fi 14490 14491 if test "x$READLINK" != x; then 14492 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 14493 else 14494 # Save the current directory for restoring afterwards 14495 STARTDIR=$PWD 14496 COUNTER=0 14497 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 14498 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 14499 cd $sym_link_dir 14500 # Use -P flag to resolve symlinks in directories. 14501 cd `$THEPWDCMD -P` 14502 sym_link_dir=`$THEPWDCMD -P` 14503 # Resolve file symlinks 14504 while test $COUNTER -lt 20; do 14505 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 14506 if test "x$ISLINK" == x; then 14507 # This is not a symbolic link! We are done! 14508 break 14509 fi 14510 # Again resolve directory symlinks since the target of the just found 14511 # link could be in a different directory 14512 cd `$DIRNAME $ISLINK` 14513 sym_link_dir=`$THEPWDCMD -P` 14514 sym_link_file=`$BASENAME $ISLINK` 14515 let COUNTER=COUNTER+1 14516 done 14517 cd $STARTDIR 14518 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 14519 fi 14520 fi 14521 14522 14523 14524 # Locate the directory of this script. 14525 AUTOCONF_DIR=$TOPDIR/common/autoconf 14526 14527 14528 # Check if it's a pure open build or if custom sources are to be used. 14529 14530 # Check whether --enable-openjdk-only was given. 14531 if test "${enable_openjdk_only+set}" = set; then : 14532 enableval=$enable_openjdk_only; 14533 else 14534 enable_openjdk_only="no" 14535 fi 14536 14537 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14539 $as_echo_n "checking for presence of closed sources... " >&6; } 14540 if test -d "$SRC_ROOT/jdk/src/closed"; then 14541 CLOSED_SOURCE_PRESENT=yes 14542 else 14543 CLOSED_SOURCE_PRESENT=no 14544 fi 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14546 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14547 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14549 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14550 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14552 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14553 14554 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14555 OPENJDK=true 14556 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14558 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14559 fi 14560 else 14561 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14562 OPENJDK=true 14563 else 14564 OPENJDK=false 14565 fi 14566 fi 14567 14568 if test "x$OPENJDK" = "xtrue"; then 14569 SET_OPENJDK="OPENJDK=true" 14570 fi 14571 14572 14573 14574 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14575 # the IncludeCustomExtension macro. 14576 14577 14578 # Check whether --with-custom-make-dir was given. 14579 if test "${with_custom_make_dir+set}" = set; then : 14580 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 14581 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14582 fi 14583 14584 14585 14586 14587 # These are needed to be able to create a configuration name (and thus the output directory) 14588 14589 ############################################################################### 14590 # 14591 # Check which variant of the JDK that we want to build. 14592 # Currently we have: 14593 # normal: standard edition 14594 # but the custom make system may add other variants 14595 # 14596 # Effectively the JDK variant gives a name to a specific set of 14597 # modules to compile into the JDK. In the future, these modules 14598 # might even be Jigsaw modules. 14599 # 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14601 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14602 14603 # Check whether --with-jdk-variant was given. 14604 if test "${with_jdk_variant+set}" = set; then : 14605 withval=$with_jdk_variant; 14606 fi 14607 14608 14609 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14610 JDK_VARIANT="normal" 14611 else 14612 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14613 fi 14614 14615 14616 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14618 $as_echo "$JDK_VARIANT" >&6; } 14619 14620 14621 ############################################################################### 14622 # 14623 # Check which interpreter of the JVM we want to build. 14624 # Currently we have: 14625 # template: Template interpreter (the default) 14626 # cpp : C++ interpreter 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14628 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14629 14630 # Check whether --with-jvm-interpreter was given. 14631 if test "${with_jvm_interpreter+set}" = set; then : 14632 withval=$with_jvm_interpreter; 14633 fi 14634 14635 14636 if test "x$with_jvm_interpreter" = x; then 14637 with_jvm_interpreter="template" 14638 fi 14639 14640 JVM_INTERPRETER="$with_jvm_interpreter" 14641 14642 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14643 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14644 fi 14645 14646 14647 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14649 $as_echo "$with_jvm_interpreter" >&6; } 14650 14651 14652 14653 ############################################################################### 14654 # 14655 # Check which variants of the JVM that we want to build. 14656 # Currently we have: 14657 # server: normal interpreter and a tiered C1/C2 compiler 14658 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14659 # minimal1: reduced form of client with optional VM services and features stripped out 14660 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14661 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14662 # zero: no machine code interpreter, no compiler 14663 # zeroshark: zero interpreter and shark/llvm compiler backend 14664 # core: interpreter only, no compiler (only works on some platforms) 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14666 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14667 14668 # Check whether --with-jvm-variants was given. 14669 if test "${with_jvm_variants+set}" = set; then : 14670 withval=$with_jvm_variants; 14671 fi 14672 14673 14674 if test "x$with_jvm_variants" = x; then 14675 with_jvm_variants="server" 14676 fi 14677 14678 JVM_VARIANTS=",$with_jvm_variants," 14679 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,//'` 14680 14681 if test "x$TEST_VARIANTS" != "x,"; then 14682 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14683 fi 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14685 $as_echo "$with_jvm_variants" >&6; } 14686 14687 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14688 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14689 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14690 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14691 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14692 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14693 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14694 14695 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14696 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14697 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14698 fi 14699 fi 14700 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14701 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14702 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14703 fi 14704 fi 14705 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14706 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14707 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14708 fi 14709 fi 14710 14711 # Replace the commas with AND for use in the build directory name. 14712 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14713 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/'` 14714 if test "x$COUNT_VARIANTS" != "x,1"; then 14715 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14716 else 14717 BUILDING_MULTIPLE_JVM_VARIANTS=no 14718 fi 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 INCLUDE_SA=true 14730 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14731 INCLUDE_SA=false 14732 fi 14733 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14734 INCLUDE_SA=false 14735 fi 14736 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14737 INCLUDE_SA=false 14738 fi 14739 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14740 INCLUDE_SA=false 14741 fi 14742 14743 14744 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14745 MACOSX_UNIVERSAL="true" 14746 fi 14747 14748 14749 14750 14751 ############################################################################### 14752 # 14753 # Set the debug level 14754 # release: no debug information, all optimizations, no asserts. 14755 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14756 # fastdebug: debug information (-g), all optimizations, all asserts 14757 # slowdebug: debug information (-g), no optimizations, all asserts 14758 # 14759 DEBUG_LEVEL="release" 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14761 $as_echo_n "checking which debug level to use... " >&6; } 14762 # Check whether --enable-debug was given. 14763 if test "${enable_debug+set}" = set; then : 14764 enableval=$enable_debug; 14765 ENABLE_DEBUG="${enableval}" 14766 DEBUG_LEVEL="fastdebug" 14767 14768 else 14769 ENABLE_DEBUG="no" 14770 fi 14771 14772 14773 14774 # Check whether --with-debug-level was given. 14775 if test "${with_debug_level+set}" = set; then : 14776 withval=$with_debug_level; 14777 DEBUG_LEVEL="${withval}" 14778 if test "x$ENABLE_DEBUG" = xyes; then 14779 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14780 fi 14781 14782 fi 14783 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14785 $as_echo "$DEBUG_LEVEL" >&6; } 14786 14787 if test "x$DEBUG_LEVEL" != xrelease && \ 14788 test "x$DEBUG_LEVEL" != xoptimized && \ 14789 test "x$DEBUG_LEVEL" != xfastdebug && \ 14790 test "x$DEBUG_LEVEL" != xslowdebug; then 14791 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14792 fi 14793 14794 14795 ############################################################################### 14796 # 14797 # Setup legacy vars/targets and new vars to deal with different debug levels. 14798 # 14799 14800 case $DEBUG_LEVEL in 14801 release ) 14802 VARIANT="OPT" 14803 FASTDEBUG="false" 14804 DEBUG_CLASSFILES="false" 14805 BUILD_VARIANT_RELEASE="" 14806 HOTSPOT_DEBUG_LEVEL="product" 14807 HOTSPOT_EXPORT="product" 14808 ;; 14809 fastdebug ) 14810 VARIANT="DBG" 14811 FASTDEBUG="true" 14812 DEBUG_CLASSFILES="true" 14813 BUILD_VARIANT_RELEASE="-fastdebug" 14814 HOTSPOT_DEBUG_LEVEL="fastdebug" 14815 HOTSPOT_EXPORT="fastdebug" 14816 ;; 14817 slowdebug ) 14818 VARIANT="DBG" 14819 FASTDEBUG="false" 14820 DEBUG_CLASSFILES="true" 14821 BUILD_VARIANT_RELEASE="-debug" 14822 HOTSPOT_DEBUG_LEVEL="debug" 14823 HOTSPOT_EXPORT="debug" 14824 ;; 14825 optimized ) 14826 VARIANT="OPT" 14827 FASTDEBUG="false" 14828 DEBUG_CLASSFILES="false" 14829 BUILD_VARIANT_RELEASE="-optimized" 14830 HOTSPOT_DEBUG_LEVEL="optimized" 14831 HOTSPOT_EXPORT="optimized" 14832 ;; 14833 esac 14834 14835 # The debug level 'optimized' is a little special because it is currently only 14836 # applicable to the HotSpot build where it means to build a completely 14837 # optimized version of the VM without any debugging code (like for the 14838 # 'release' debug level which is called 'product' in the HotSpot build) but 14839 # with the exception that it can contain additional code which is otherwise 14840 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14841 # test new and/or experimental features which are not intended for customer 14842 # shipment. Because these new features need to be tested and benchmarked in 14843 # real world scenarios, we want to build the containing JDK at the 'release' 14844 # debug level. 14845 if test "x$DEBUG_LEVEL" = xoptimized; then 14846 DEBUG_LEVEL="release" 14847 fi 14848 14849 ##### 14850 # Generate the legacy makefile targets for hotspot. 14851 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14852 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14853 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14854 # But until then ... 14855 HOTSPOT_TARGET="" 14856 14857 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14858 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14859 fi 14860 14861 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14862 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14863 fi 14864 14865 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14866 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14867 fi 14868 14869 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14870 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14871 fi 14872 14873 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14874 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14875 fi 14876 14877 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14878 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14879 fi 14880 14881 if test "x$JVM_VARIANT_CORE" = xtrue; then 14882 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14883 fi 14884 14885 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14886 14887 # On Macosx universal binaries are produced, but they only contain 14888 # 64 bit intel. This invalidates control of which jvms are built 14889 # from configure, but only server is valid anyway. Fix this 14890 # when hotspot makefiles are rewritten. 14891 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14892 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14893 fi 14894 14895 ##### 14896 14897 14898 14899 14900 14901 14902 14903 14904 # With basic setup done, call the custom early hook. 14905 14906 14907 # Check if we have devkits, extra paths or sysroot set. 14908 14909 14910 # Check whether --with-devkit was given. 14911 if test "${with_devkit+set}" = set; then : 14912 withval=$with_devkit; 14913 14914 # Only process if variable expands to non-empty 14915 14916 if test "x$with_devkit" != x; then 14917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14918 14919 # Input might be given as Windows format, start by converting to 14920 # unix format. 14921 path="$with_devkit" 14922 new_path=`$CYGPATH -u "$path"` 14923 14924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14927 # "foo.exe" is OK but "foo" is an error. 14928 # 14929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14930 # It is also a way to make sure we got the proper file name for the real test later on. 14931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14932 if test "x$test_shortpath" = x; then 14933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14934 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14935 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14936 fi 14937 14938 # Call helper function which possibly converts this using DOS-style short mode. 14939 # If so, the updated path is stored in $new_path. 14940 14941 input_path="$new_path" 14942 # Check if we need to convert this using DOS-style short mode. If the path 14943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14944 # take no chances and rewrite it. 14945 # Note: m4 eats our [], so we need to use [ and ] instead. 14946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14947 if test "x$has_forbidden_chars" != x; then 14948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14952 # Going to short mode and back again did indeed matter. Since short mode is 14953 # case insensitive, let's make it lowercase to improve readability. 14954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14955 # Now convert it back to Unix-style (cygpath) 14956 input_path=`$CYGPATH -u "$shortmode_path"` 14957 new_path="$input_path" 14958 fi 14959 fi 14960 14961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14962 if test "x$test_cygdrive_prefix" = x; then 14963 # As a simple fix, exclude /usr/bin since it's not a real path. 14964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14966 # a path prefixed by /cygdrive for fixpath to work. 14967 new_path="$CYGWIN_ROOT_PATH$input_path" 14968 fi 14969 fi 14970 14971 14972 if test "x$path" != "x$new_path"; then 14973 with_devkit="$new_path" 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14975 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14976 fi 14977 14978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14979 14980 path="$with_devkit" 14981 has_colon=`$ECHO $path | $GREP ^.:` 14982 new_path="$path" 14983 if test "x$has_colon" = x; then 14984 # Not in mixed or Windows style, start by that. 14985 new_path=`cmd //c echo $path` 14986 fi 14987 14988 14989 input_path="$new_path" 14990 # Check if we need to convert this using DOS-style short mode. If the path 14991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14992 # take no chances and rewrite it. 14993 # Note: m4 eats our [], so we need to use [ and ] instead. 14994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14995 if test "x$has_forbidden_chars" != x; then 14996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14998 fi 14999 15000 15001 windows_path="$new_path" 15002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15003 unix_path=`$CYGPATH -u "$windows_path"` 15004 new_path="$unix_path" 15005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15007 new_path="$unix_path" 15008 fi 15009 15010 if test "x$path" != "x$new_path"; then 15011 with_devkit="$new_path" 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 15013 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 15014 fi 15015 15016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15018 15019 else 15020 # We're on a unix platform. Hooray! :) 15021 path="$with_devkit" 15022 has_space=`$ECHO "$path" | $GREP " "` 15023 if test "x$has_space" != x; then 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 15025 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 15026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15027 fi 15028 15029 # Use eval to expand a potential ~ 15030 eval path="$path" 15031 if test ! -f "$path" && test ! -d "$path"; then 15032 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 15033 fi 15034 15035 with_devkit="`cd "$path"; $THEPWDCMD -L`" 15036 fi 15037 fi 15038 15039 DEVKIT_ROOT="$with_devkit" 15040 # Check for a meta data info file in the root of the devkit 15041 if test -f "$DEVKIT_ROOT/devkit.info"; then 15042 . $DEVKIT_ROOT/devkit.info 15043 # This potentially sets the following: 15044 # A descriptive name of the devkit 15045 15046 if test "x$DEVKIT_NAME" = x; then 15047 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 15048 fi 15049 15050 # Corresponds to --with-extra-path 15051 15052 if test "x$DEVKIT_EXTRA_PATH" = x; then 15053 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 15054 fi 15055 15056 # Corresponds to --with-toolchain-path 15057 15058 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15059 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 15060 fi 15061 15062 # Corresponds to --with-sysroot 15063 15064 if test "x$DEVKIT_SYSROOT" = x; then 15065 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 15066 fi 15067 15068 15069 # Identifies the Visual Studio version in the devkit 15070 15071 if test "x$DEVKIT_VS_VERSION" = x; then 15072 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 15073 fi 15074 15075 # The Visual Studio include environment variable 15076 15077 if test "x$DEVKIT_VS_INCLUDE" = x; then 15078 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 15079 fi 15080 15081 # The Visual Studio lib environment variable 15082 15083 if test "x$DEVKIT_VS_LIB" = x; then 15084 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 15085 fi 15086 15087 # Corresponds to --with-msvcr-dll 15088 15089 if test "x$DEVKIT_MSVCR_DLL" = x; then 15090 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 15091 fi 15092 15093 # Corresponds to --with-msvcp-dll 15094 15095 if test "x$DEVKIT_MSVCP_DLL" = x; then 15096 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 15097 fi 15098 15099 fi 15100 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 15102 $as_echo_n "checking for devkit... " >&6; } 15103 if test "x$DEVKIT_NAME" != x; then 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 15105 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 15106 else 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 15108 $as_echo "$DEVKIT_ROOT" >&6; } 15109 fi 15110 15111 15112 if test "x$DEVKIT_EXTRA_PATH" != x; then 15113 if test "x$EXTRA_PATH" = x; then 15114 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 15115 else 15116 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 15117 fi 15118 fi 15119 15120 15121 # Fallback default of just /bin if DEVKIT_PATH is not defined 15122 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15123 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15124 fi 15125 15126 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15127 if test "x$TOOLCHAIN_PATH" = x; then 15128 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15129 else 15130 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15131 fi 15132 fi 15133 15134 15135 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15136 # places for backwards compatiblity. 15137 if test "x$DEVKIT_SYSROOT" != x; then 15138 SYSROOT="$DEVKIT_SYSROOT" 15139 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15140 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15141 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15142 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15143 fi 15144 15145 15146 fi 15147 15148 15149 # You can force the sysroot if the sysroot encoded into the compiler tools 15150 # is not correct. 15151 15152 # Check whether --with-sys-root was given. 15153 if test "${with_sys_root+set}" = set; then : 15154 withval=$with_sys_root; SYSROOT=$with_sys_root 15155 15156 fi 15157 15158 15159 15160 # Check whether --with-sysroot was given. 15161 if test "${with_sysroot+set}" = set; then : 15162 withval=$with_sysroot; SYSROOT=$with_sysroot 15163 15164 fi 15165 15166 15167 15168 # Check whether --with-tools-dir was given. 15169 if test "${with_tools_dir+set}" = set; then : 15170 withval=$with_tools_dir; 15171 if test "x$with_tools_dir" != x; then 15172 if test "x$TOOLCHAIN_PATH" = x; then 15173 TOOLCHAIN_PATH="$with_tools_dir" 15174 else 15175 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15176 fi 15177 fi 15178 15179 15180 fi 15181 15182 15183 15184 # Check whether --with-toolchain-path was given. 15185 if test "${with_toolchain_path+set}" = set; then : 15186 withval=$with_toolchain_path; 15187 if test "x$with_toolchain_path" != x; then 15188 if test "x$TOOLCHAIN_PATH" = x; then 15189 TOOLCHAIN_PATH="$with_toolchain_path" 15190 else 15191 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15192 fi 15193 fi 15194 15195 15196 fi 15197 15198 15199 15200 # Check whether --with-extra-path was given. 15201 if test "${with_extra_path+set}" = set; then : 15202 withval=$with_extra_path; 15203 if test "x$with_extra_path" != x; then 15204 if test "x$EXTRA_PATH" = x; then 15205 EXTRA_PATH="$with_extra_path" 15206 else 15207 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15208 fi 15209 fi 15210 15211 15212 fi 15213 15214 15215 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15216 # detect if Xcode is installed by running xcodebuild -version 15217 # if no Xcode installed, xcodebuild exits with 1 15218 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15219 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15220 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15221 # fall back on the stub binary in /usr/bin/xcodebuild 15222 # Extract the first word of "xcodebuild", so it can be a program name with args. 15223 set dummy xcodebuild; ac_word=$2 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15225 $as_echo_n "checking for $ac_word... " >&6; } 15226 if ${ac_cv_path_XCODEBUILD+:} false; then : 15227 $as_echo_n "(cached) " >&6 15228 else 15229 case $XCODEBUILD in 15230 [\\/]* | ?:[\\/]*) 15231 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15232 ;; 15233 *) 15234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15235 for as_dir in $TOOLCHAIN_PATH 15236 do 15237 IFS=$as_save_IFS 15238 test -z "$as_dir" && as_dir=. 15239 for ac_exec_ext in '' $ac_executable_extensions; do 15240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15241 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15243 break 2 15244 fi 15245 done 15246 done 15247 IFS=$as_save_IFS 15248 15249 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15250 ;; 15251 esac 15252 fi 15253 XCODEBUILD=$ac_cv_path_XCODEBUILD 15254 if test -n "$XCODEBUILD"; then 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15256 $as_echo "$XCODEBUILD" >&6; } 15257 else 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15259 $as_echo "no" >&6; } 15260 fi 15261 15262 15263 else 15264 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15265 # when only the command line tools are installed there are no SDKs, so headers 15266 # are copied into the system frameworks 15267 XCODEBUILD= 15268 15269 fi 15270 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15272 $as_echo_n "checking for sdk name... " >&6; } 15273 15274 # Check whether --with-sdk-name was given. 15275 if test "${with_sdk_name+set}" = set; then : 15276 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15277 15278 fi 15279 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15281 $as_echo "$SDKNAME" >&6; } 15282 15283 # if toolchain path is specified then don't rely on system headers, they may not compile 15284 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15285 test -z "$TOOLCHAIN_PATH" && \ 15286 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15287 15288 if test -z "$SYSROOT"; then 15289 if test -n "$XCODEBUILD"; then 15290 # if we don't have system headers, use default SDK name (last resort) 15291 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15292 SDKNAME=${SDKNAME:-macosx} 15293 fi 15294 15295 if test -n "$SDKNAME"; then 15296 # Call xcodebuild to determine SYSROOT 15297 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15298 fi 15299 else 15300 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15301 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 15302 fi 15303 fi 15304 else 15305 # warn user if --with-sdk-name was also set 15306 if test -n "$with_sdk_name"; then 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15308 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15309 fi 15310 fi 15311 15312 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15313 # If no system framework headers, then SYSROOT must be set, or we won't build 15314 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 15315 fi 15316 15317 # Perform a basic sanity test 15318 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15319 if test -z "$SYSROOT"; then 15320 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 15321 else 15322 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15323 fi 15324 fi 15325 15326 # set SDKROOT too, Xcode tools will pick it up 15327 SDKROOT=$SYSROOT 15328 15329 fi 15330 15331 # Prepend the extra path to the global path 15332 15333 if test "x$EXTRA_PATH" != x; then 15334 if test "x$PATH" = x; then 15335 PATH="$EXTRA_PATH" 15336 else 15337 PATH="$EXTRA_PATH:$PATH" 15338 fi 15339 fi 15340 15341 15342 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15343 # Add extra search paths on solaris for utilities like ar and as etc... 15344 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15345 fi 15346 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15348 $as_echo_n "checking for sysroot... " >&6; } 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15350 $as_echo "$SYSROOT" >&6; } 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15352 $as_echo_n "checking for toolchain path... " >&6; } 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15354 $as_echo "$TOOLCHAIN_PATH" >&6; } 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15356 $as_echo_n "checking for extra path... " >&6; } 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15358 $as_echo "$EXTRA_PATH" >&6; } 15359 15360 15361 # To properly create a configuration name, we need to have the OpenJDK target 15362 # and options (variants and debug level) parsed. 15363 15364 15365 15366 # Check whether --with-conf-name was given. 15367 if test "${with_conf_name+set}" = set; then : 15368 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15369 fi 15370 15371 15372 # Test from where we are running configure, in or outside of src root. 15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15374 $as_echo_n "checking where to store configuration... " >&6; } 15375 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15376 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15377 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15378 # We are running configure from the src root. 15379 # Create a default ./build/target-variant-debuglevel output root. 15380 if test "x${CONF_NAME}" = x; then 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15382 $as_echo "in default location" >&6; } 15383 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15384 else 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15386 $as_echo "in build directory with custom name" >&6; } 15387 fi 15388 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15389 $MKDIR -p "$OUTPUT_ROOT" 15390 if test ! -d "$OUTPUT_ROOT"; then 15391 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15392 fi 15393 else 15394 # We are running configure from outside of the src dir. 15395 # Then use the current directory as output dir! 15396 # If configuration is situated in normal build directory, just use the build 15397 # directory name as configuration name, otherwise use the complete path. 15398 if test "x${CONF_NAME}" = x; then 15399 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15400 fi 15401 OUTPUT_ROOT="$CURDIR" 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15403 $as_echo "in current directory" >&6; } 15404 15405 # WARNING: This might be a bad thing to do. You need to be sure you want to 15406 # have a configuration in this directory. Do some sanity checks! 15407 15408 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15409 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15410 # other files 15411 files_present=`$LS $OUTPUT_ROOT` 15412 # Configure has already touched config.log and confdefs.h in the current dir when this check 15413 # is performed. 15414 filtered_files=`$ECHO "$files_present" \ 15415 | $SED -e 's/config.log//g' \ 15416 -e 's/configure.log//g' \ 15417 -e 's/confdefs.h//g' \ 15418 -e 's/ //g' \ 15419 | $TR -d '\n'` 15420 if test "x$filtered_files" != x; then 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15422 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15424 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15426 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15428 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15429 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15430 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15432 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15434 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15435 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15436 fi 15437 fi 15438 fi 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15440 $as_echo_n "checking what configuration name to use... " >&6; } 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15442 $as_echo "$CONF_NAME" >&6; } 15443 15444 15445 # Only process if variable expands to non-empty 15446 15447 if test "x$OUTPUT_ROOT" != x; then 15448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15449 15450 # Input might be given as Windows format, start by converting to 15451 # unix format. 15452 path="$OUTPUT_ROOT" 15453 new_path=`$CYGPATH -u "$path"` 15454 15455 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15456 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15457 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15458 # "foo.exe" is OK but "foo" is an error. 15459 # 15460 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15461 # It is also a way to make sure we got the proper file name for the real test later on. 15462 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15463 if test "x$test_shortpath" = x; then 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15465 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15466 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15467 fi 15468 15469 # Call helper function which possibly converts this using DOS-style short mode. 15470 # If so, the updated path is stored in $new_path. 15471 15472 input_path="$new_path" 15473 # Check if we need to convert this using DOS-style short mode. If the path 15474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15475 # take no chances and rewrite it. 15476 # Note: m4 eats our [], so we need to use [ and ] instead. 15477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15478 if test "x$has_forbidden_chars" != x; then 15479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15480 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15481 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15482 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15483 # Going to short mode and back again did indeed matter. Since short mode is 15484 # case insensitive, let's make it lowercase to improve readability. 15485 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15486 # Now convert it back to Unix-style (cygpath) 15487 input_path=`$CYGPATH -u "$shortmode_path"` 15488 new_path="$input_path" 15489 fi 15490 fi 15491 15492 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15493 if test "x$test_cygdrive_prefix" = x; then 15494 # As a simple fix, exclude /usr/bin since it's not a real path. 15495 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15496 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15497 # a path prefixed by /cygdrive for fixpath to work. 15498 new_path="$CYGWIN_ROOT_PATH$input_path" 15499 fi 15500 fi 15501 15502 15503 if test "x$path" != "x$new_path"; then 15504 OUTPUT_ROOT="$new_path" 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15506 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15507 fi 15508 15509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15510 15511 path="$OUTPUT_ROOT" 15512 has_colon=`$ECHO $path | $GREP ^.:` 15513 new_path="$path" 15514 if test "x$has_colon" = x; then 15515 # Not in mixed or Windows style, start by that. 15516 new_path=`cmd //c echo $path` 15517 fi 15518 15519 15520 input_path="$new_path" 15521 # Check if we need to convert this using DOS-style short mode. If the path 15522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15523 # take no chances and rewrite it. 15524 # Note: m4 eats our [], so we need to use [ and ] instead. 15525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15526 if test "x$has_forbidden_chars" != x; then 15527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15529 fi 15530 15531 15532 windows_path="$new_path" 15533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15534 unix_path=`$CYGPATH -u "$windows_path"` 15535 new_path="$unix_path" 15536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15538 new_path="$unix_path" 15539 fi 15540 15541 if test "x$path" != "x$new_path"; then 15542 OUTPUT_ROOT="$new_path" 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15544 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15545 fi 15546 15547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15549 15550 else 15551 # We're on a unix platform. Hooray! :) 15552 path="$OUTPUT_ROOT" 15553 has_space=`$ECHO "$path" | $GREP " "` 15554 if test "x$has_space" != x; then 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15556 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15557 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15558 fi 15559 15560 # Use eval to expand a potential ~ 15561 eval path="$path" 15562 if test ! -f "$path" && test ! -d "$path"; then 15563 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15564 fi 15565 15566 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15567 fi 15568 fi 15569 15570 15571 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 15572 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 15573 15574 SPEC=$OUTPUT_ROOT/spec.gmk 15575 15576 CONF_NAME=$CONF_NAME 15577 15578 OUTPUT_ROOT=$OUTPUT_ROOT 15579 15580 15581 15582 # The spec.gmk file contains all variables for the make system. 15583 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15584 15585 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15586 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15587 15588 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15589 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15590 15591 # The compare.sh is used to compare the build output to other builds. 15592 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15593 15594 # The generated Makefile knows where the spec.gmk is and where the source is. 15595 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15596 # which will look for generated configurations 15597 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15598 15599 15600 15601 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15602 15603 for ac_prog in apt-get yum port pkgutil pkgadd 15604 do 15605 # Extract the first word of "$ac_prog", so it can be a program name with args. 15606 set dummy $ac_prog; ac_word=$2 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15608 $as_echo_n "checking for $ac_word... " >&6; } 15609 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15610 $as_echo_n "(cached) " >&6 15611 else 15612 if test -n "$PKGHANDLER"; then 15613 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15614 else 15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15616 for as_dir in $PATH 15617 do 15618 IFS=$as_save_IFS 15619 test -z "$as_dir" && as_dir=. 15620 for ac_exec_ext in '' $ac_executable_extensions; do 15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15622 ac_cv_prog_PKGHANDLER="$ac_prog" 15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15624 break 2 15625 fi 15626 done 15627 done 15628 IFS=$as_save_IFS 15629 15630 fi 15631 fi 15632 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15633 if test -n "$PKGHANDLER"; then 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15635 $as_echo "$PKGHANDLER" >&6; } 15636 else 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15638 $as_echo "no" >&6; } 15639 fi 15640 15641 15642 test -n "$PKGHANDLER" && break 15643 done 15644 15645 15646 15647 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15648 15649 15650 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15651 if test "x$MAKE" != x; then 15652 # User has supplied a make, test it. 15653 if test ! -f "$MAKE"; then 15654 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15655 fi 15656 15657 MAKE_CANDIDATE=""$MAKE"" 15658 DESCRIPTION="user supplied MAKE=$MAKE" 15659 15660 # On Cygwin, we require a newer version of make than on other platforms 15661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15662 MAKE_VERSION_EXPR="-e 4\." 15663 MAKE_REQUIRED_VERSION="4.0" 15664 else 15665 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 15666 MAKE_REQUIRED_VERSION="3.81" 15667 fi 15668 15669 if test "x$MAKE_CANDIDATE" != x; then 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15671 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15672 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15673 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15674 if test "x$IS_GNU_MAKE" = x; then 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15676 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15677 else 15678 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 15679 if test "x$IS_MODERN_MAKE" = x; then 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15681 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15682 else 15683 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15685 MAKE_EXPECTED_ENV='cygwin' 15686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15687 MAKE_EXPECTED_ENV='msys' 15688 else 15689 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15690 fi 15691 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15692 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15693 else 15694 # Not relevant for non-Windows 15695 IS_MAKE_CORRECT_ENV=true 15696 fi 15697 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15698 { $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 15699 $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;} 15700 else 15701 FOUND_MAKE=$MAKE_CANDIDATE 15702 15703 # Only process if variable expands to non-empty 15704 15705 if test "x$FOUND_MAKE" != x; then 15706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15707 15708 # First separate the path from the arguments. This will split at the first 15709 # space. 15710 complete="$FOUND_MAKE" 15711 path="${complete%% *}" 15712 tmp="$complete EOL" 15713 arguments="${tmp#* }" 15714 15715 # Input might be given as Windows format, start by converting to 15716 # unix format. 15717 new_path=`$CYGPATH -u "$path"` 15718 15719 # Now try to locate executable using which 15720 new_path=`$WHICH "$new_path" 2> /dev/null` 15721 # bat and cmd files are not always considered executable in cygwin causing which 15722 # to not find them 15723 if test "x$new_path" = x \ 15724 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15725 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15726 new_path=`$CYGPATH -u "$path"` 15727 fi 15728 if test "x$new_path" = x; then 15729 # Oops. Which didn't find the executable. 15730 # The splitting of arguments from the executable at a space might have been incorrect, 15731 # since paths with space are more likely in Windows. Give it another try with the whole 15732 # argument. 15733 path="$complete" 15734 arguments="EOL" 15735 new_path=`$CYGPATH -u "$path"` 15736 new_path=`$WHICH "$new_path" 2> /dev/null` 15737 # bat and cmd files are not always considered executable in cygwin causing which 15738 # to not find them 15739 if test "x$new_path" = x \ 15740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15742 new_path=`$CYGPATH -u "$path"` 15743 fi 15744 if test "x$new_path" = x; then 15745 # It's still not found. Now this is an unrecoverable error. 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15747 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15748 has_space=`$ECHO "$complete" | $GREP " "` 15749 if test "x$has_space" != x; then 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15752 fi 15753 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15754 fi 15755 fi 15756 15757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15760 # "foo.exe" is OK but "foo" is an error. 15761 # 15762 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15763 # It is also a way to make sure we got the proper file name for the real test later on. 15764 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15765 if test "x$test_shortpath" = x; then 15766 # Short path failed, file does not exist as specified. 15767 # Try adding .exe or .cmd 15768 if test -f "${new_path}.exe"; then 15769 input_to_shortpath="${new_path}.exe" 15770 elif test -f "${new_path}.cmd"; then 15771 input_to_shortpath="${new_path}.cmd" 15772 else 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15774 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15776 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15777 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15778 fi 15779 else 15780 input_to_shortpath="$new_path" 15781 fi 15782 15783 # Call helper function which possibly converts this using DOS-style short mode. 15784 # If so, the updated path is stored in $new_path. 15785 new_path="$input_to_shortpath" 15786 15787 input_path="$input_to_shortpath" 15788 # Check if we need to convert this using DOS-style short mode. If the path 15789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15790 # take no chances and rewrite it. 15791 # Note: m4 eats our [], so we need to use [ and ] instead. 15792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15793 if test "x$has_forbidden_chars" != x; then 15794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15795 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15796 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15797 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15798 # Going to short mode and back again did indeed matter. Since short mode is 15799 # case insensitive, let's make it lowercase to improve readability. 15800 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15801 # Now convert it back to Unix-style (cygpath) 15802 input_path=`$CYGPATH -u "$shortmode_path"` 15803 new_path="$input_path" 15804 fi 15805 fi 15806 15807 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15808 if test "x$test_cygdrive_prefix" = x; then 15809 # As a simple fix, exclude /usr/bin since it's not a real path. 15810 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15811 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15812 # a path prefixed by /cygdrive for fixpath to work. 15813 new_path="$CYGWIN_ROOT_PATH$input_path" 15814 fi 15815 fi 15816 15817 # remove trailing .exe if any 15818 new_path="${new_path/%.exe/}" 15819 15820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15821 15822 # First separate the path from the arguments. This will split at the first 15823 # space. 15824 complete="$FOUND_MAKE" 15825 path="${complete%% *}" 15826 tmp="$complete EOL" 15827 arguments="${tmp#* }" 15828 15829 # Input might be given as Windows format, start by converting to 15830 # unix format. 15831 new_path="$path" 15832 15833 windows_path="$new_path" 15834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15835 unix_path=`$CYGPATH -u "$windows_path"` 15836 new_path="$unix_path" 15837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15839 new_path="$unix_path" 15840 fi 15841 15842 15843 # Now try to locate executable using which 15844 new_path=`$WHICH "$new_path" 2> /dev/null` 15845 15846 if test "x$new_path" = x; then 15847 # Oops. Which didn't find the executable. 15848 # The splitting of arguments from the executable at a space might have been incorrect, 15849 # since paths with space are more likely in Windows. Give it another try with the whole 15850 # argument. 15851 path="$complete" 15852 arguments="EOL" 15853 new_path="$path" 15854 15855 windows_path="$new_path" 15856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15857 unix_path=`$CYGPATH -u "$windows_path"` 15858 new_path="$unix_path" 15859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15861 new_path="$unix_path" 15862 fi 15863 15864 15865 new_path=`$WHICH "$new_path" 2> /dev/null` 15866 # bat and cmd files are not always considered executable in MSYS causing which 15867 # to not find them 15868 if test "x$new_path" = x \ 15869 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15870 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15871 new_path="$path" 15872 15873 windows_path="$new_path" 15874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15875 unix_path=`$CYGPATH -u "$windows_path"` 15876 new_path="$unix_path" 15877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15879 new_path="$unix_path" 15880 fi 15881 15882 fi 15883 15884 if test "x$new_path" = x; then 15885 # It's still not found. Now this is an unrecoverable error. 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15887 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15888 has_space=`$ECHO "$complete" | $GREP " "` 15889 if test "x$has_space" != x; then 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15891 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15892 fi 15893 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15894 fi 15895 fi 15896 15897 # Now new_path has a complete unix path to the binary 15898 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15899 # Keep paths in /bin as-is, but remove trailing .exe if any 15900 new_path="${new_path/%.exe/}" 15901 # Do not save /bin paths to all_fixpath_prefixes! 15902 else 15903 # Not in mixed or Windows style, start by that. 15904 new_path=`cmd //c echo $new_path` 15905 15906 input_path="$new_path" 15907 # Check if we need to convert this using DOS-style short mode. If the path 15908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15909 # take no chances and rewrite it. 15910 # Note: m4 eats our [], so we need to use [ and ] instead. 15911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15912 if test "x$has_forbidden_chars" != x; then 15913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15914 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15915 fi 15916 15917 # Output is in $new_path 15918 15919 windows_path="$new_path" 15920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15921 unix_path=`$CYGPATH -u "$windows_path"` 15922 new_path="$unix_path" 15923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15925 new_path="$unix_path" 15926 fi 15927 15928 # remove trailing .exe if any 15929 new_path="${new_path/%.exe/}" 15930 15931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15933 fi 15934 15935 else 15936 # We're on a unix platform. Hooray! :) 15937 # First separate the path from the arguments. This will split at the first 15938 # space. 15939 complete="$FOUND_MAKE" 15940 path="${complete%% *}" 15941 tmp="$complete EOL" 15942 arguments="${tmp#* }" 15943 15944 # Cannot rely on the command "which" here since it doesn't always work. 15945 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15946 if test -z "$is_absolute_path"; then 15947 # Path to executable is not absolute. Find it. 15948 IFS_save="$IFS" 15949 IFS=: 15950 for p in $PATH; do 15951 if test -f "$p/$path" && test -x "$p/$path"; then 15952 new_path="$p/$path" 15953 break 15954 fi 15955 done 15956 IFS="$IFS_save" 15957 else 15958 # This is an absolute path, we can use it without further modifications. 15959 new_path="$path" 15960 fi 15961 15962 if test "x$new_path" = x; then 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15964 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15965 has_space=`$ECHO "$complete" | $GREP " "` 15966 if test "x$has_space" != x; then 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15968 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15969 fi 15970 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15971 fi 15972 fi 15973 15974 # Now join together the path and the arguments once again 15975 if test "x$arguments" != xEOL; then 15976 new_complete="$new_path ${arguments% *}" 15977 else 15978 new_complete="$new_path" 15979 fi 15980 15981 if test "x$complete" != "x$new_complete"; then 15982 FOUND_MAKE="$new_complete" 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15984 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15985 fi 15986 fi 15987 15988 fi 15989 fi 15990 fi 15991 fi 15992 15993 if test "x$FOUND_MAKE" = x; then 15994 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 15995 fi 15996 else 15997 # Try our hardest to locate a correct version of GNU make 15998 for ac_prog in gmake 15999 do 16000 # Extract the first word of "$ac_prog", so it can be a program name with args. 16001 set dummy $ac_prog; ac_word=$2 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16003 $as_echo_n "checking for $ac_word... " >&6; } 16004 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 16005 $as_echo_n "(cached) " >&6 16006 else 16007 case $CHECK_GMAKE in 16008 [\\/]* | ?:[\\/]*) 16009 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 16010 ;; 16011 *) 16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16013 for as_dir in $PATH 16014 do 16015 IFS=$as_save_IFS 16016 test -z "$as_dir" && as_dir=. 16017 for ac_exec_ext in '' $ac_executable_extensions; do 16018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16019 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16021 break 2 16022 fi 16023 done 16024 done 16025 IFS=$as_save_IFS 16026 16027 ;; 16028 esac 16029 fi 16030 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 16031 if test -n "$CHECK_GMAKE"; then 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 16033 $as_echo "$CHECK_GMAKE" >&6; } 16034 else 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16036 $as_echo "no" >&6; } 16037 fi 16038 16039 16040 test -n "$CHECK_GMAKE" && break 16041 done 16042 16043 16044 MAKE_CANDIDATE=""$CHECK_GMAKE"" 16045 DESCRIPTION="gmake in PATH" 16046 16047 # On Cygwin, we require a newer version of make than on other platforms 16048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16049 MAKE_VERSION_EXPR="-e 4\." 16050 MAKE_REQUIRED_VERSION="4.0" 16051 else 16052 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16053 MAKE_REQUIRED_VERSION="3.81" 16054 fi 16055 16056 if test "x$MAKE_CANDIDATE" != x; then 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16058 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16059 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16060 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16061 if test "x$IS_GNU_MAKE" = x; then 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16063 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16064 else 16065 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16066 if test "x$IS_MODERN_MAKE" = x; then 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16068 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16069 else 16070 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16072 MAKE_EXPECTED_ENV='cygwin' 16073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16074 MAKE_EXPECTED_ENV='msys' 16075 else 16076 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16077 fi 16078 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16079 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16080 else 16081 # Not relevant for non-Windows 16082 IS_MAKE_CORRECT_ENV=true 16083 fi 16084 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16085 { $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 16086 $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;} 16087 else 16088 FOUND_MAKE=$MAKE_CANDIDATE 16089 16090 # Only process if variable expands to non-empty 16091 16092 if test "x$FOUND_MAKE" != x; then 16093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16094 16095 # First separate the path from the arguments. This will split at the first 16096 # space. 16097 complete="$FOUND_MAKE" 16098 path="${complete%% *}" 16099 tmp="$complete EOL" 16100 arguments="${tmp#* }" 16101 16102 # Input might be given as Windows format, start by converting to 16103 # unix format. 16104 new_path=`$CYGPATH -u "$path"` 16105 16106 # Now try to locate executable using which 16107 new_path=`$WHICH "$new_path" 2> /dev/null` 16108 # bat and cmd files are not always considered executable in cygwin causing which 16109 # to not find them 16110 if test "x$new_path" = x \ 16111 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16112 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16113 new_path=`$CYGPATH -u "$path"` 16114 fi 16115 if test "x$new_path" = x; then 16116 # Oops. Which didn't find the executable. 16117 # The splitting of arguments from the executable at a space might have been incorrect, 16118 # since paths with space are more likely in Windows. Give it another try with the whole 16119 # argument. 16120 path="$complete" 16121 arguments="EOL" 16122 new_path=`$CYGPATH -u "$path"` 16123 new_path=`$WHICH "$new_path" 2> /dev/null` 16124 # bat and cmd files are not always considered executable in cygwin causing which 16125 # to not find them 16126 if test "x$new_path" = x \ 16127 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16128 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16129 new_path=`$CYGPATH -u "$path"` 16130 fi 16131 if test "x$new_path" = x; then 16132 # It's still not found. Now this is an unrecoverable error. 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16134 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16135 has_space=`$ECHO "$complete" | $GREP " "` 16136 if test "x$has_space" != x; then 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16138 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16139 fi 16140 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16141 fi 16142 fi 16143 16144 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16145 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16146 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16147 # "foo.exe" is OK but "foo" is an error. 16148 # 16149 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16150 # It is also a way to make sure we got the proper file name for the real test later on. 16151 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16152 if test "x$test_shortpath" = x; then 16153 # Short path failed, file does not exist as specified. 16154 # Try adding .exe or .cmd 16155 if test -f "${new_path}.exe"; then 16156 input_to_shortpath="${new_path}.exe" 16157 elif test -f "${new_path}.cmd"; then 16158 input_to_shortpath="${new_path}.cmd" 16159 else 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16161 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16163 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16164 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16165 fi 16166 else 16167 input_to_shortpath="$new_path" 16168 fi 16169 16170 # Call helper function which possibly converts this using DOS-style short mode. 16171 # If so, the updated path is stored in $new_path. 16172 new_path="$input_to_shortpath" 16173 16174 input_path="$input_to_shortpath" 16175 # Check if we need to convert this using DOS-style short mode. If the path 16176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16177 # take no chances and rewrite it. 16178 # Note: m4 eats our [], so we need to use [ and ] instead. 16179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16180 if test "x$has_forbidden_chars" != x; then 16181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16182 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16183 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16184 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16185 # Going to short mode and back again did indeed matter. Since short mode is 16186 # case insensitive, let's make it lowercase to improve readability. 16187 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16188 # Now convert it back to Unix-style (cygpath) 16189 input_path=`$CYGPATH -u "$shortmode_path"` 16190 new_path="$input_path" 16191 fi 16192 fi 16193 16194 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16195 if test "x$test_cygdrive_prefix" = x; then 16196 # As a simple fix, exclude /usr/bin since it's not a real path. 16197 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16198 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16199 # a path prefixed by /cygdrive for fixpath to work. 16200 new_path="$CYGWIN_ROOT_PATH$input_path" 16201 fi 16202 fi 16203 16204 # remove trailing .exe if any 16205 new_path="${new_path/%.exe/}" 16206 16207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16208 16209 # First separate the path from the arguments. This will split at the first 16210 # space. 16211 complete="$FOUND_MAKE" 16212 path="${complete%% *}" 16213 tmp="$complete EOL" 16214 arguments="${tmp#* }" 16215 16216 # Input might be given as Windows format, start by converting to 16217 # unix format. 16218 new_path="$path" 16219 16220 windows_path="$new_path" 16221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16222 unix_path=`$CYGPATH -u "$windows_path"` 16223 new_path="$unix_path" 16224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16226 new_path="$unix_path" 16227 fi 16228 16229 16230 # Now try to locate executable using which 16231 new_path=`$WHICH "$new_path" 2> /dev/null` 16232 16233 if test "x$new_path" = x; then 16234 # Oops. Which didn't find the executable. 16235 # The splitting of arguments from the executable at a space might have been incorrect, 16236 # since paths with space are more likely in Windows. Give it another try with the whole 16237 # argument. 16238 path="$complete" 16239 arguments="EOL" 16240 new_path="$path" 16241 16242 windows_path="$new_path" 16243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16244 unix_path=`$CYGPATH -u "$windows_path"` 16245 new_path="$unix_path" 16246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16248 new_path="$unix_path" 16249 fi 16250 16251 16252 new_path=`$WHICH "$new_path" 2> /dev/null` 16253 # bat and cmd files are not always considered executable in MSYS causing which 16254 # to not find them 16255 if test "x$new_path" = x \ 16256 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16257 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16258 new_path="$path" 16259 16260 windows_path="$new_path" 16261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16262 unix_path=`$CYGPATH -u "$windows_path"` 16263 new_path="$unix_path" 16264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16266 new_path="$unix_path" 16267 fi 16268 16269 fi 16270 16271 if test "x$new_path" = x; then 16272 # It's still not found. Now this is an unrecoverable error. 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16274 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16275 has_space=`$ECHO "$complete" | $GREP " "` 16276 if test "x$has_space" != x; then 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16278 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16279 fi 16280 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16281 fi 16282 fi 16283 16284 # Now new_path has a complete unix path to the binary 16285 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16286 # Keep paths in /bin as-is, but remove trailing .exe if any 16287 new_path="${new_path/%.exe/}" 16288 # Do not save /bin paths to all_fixpath_prefixes! 16289 else 16290 # Not in mixed or Windows style, start by that. 16291 new_path=`cmd //c echo $new_path` 16292 16293 input_path="$new_path" 16294 # Check if we need to convert this using DOS-style short mode. If the path 16295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16296 # take no chances and rewrite it. 16297 # Note: m4 eats our [], so we need to use [ and ] instead. 16298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16299 if test "x$has_forbidden_chars" != x; then 16300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16301 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16302 fi 16303 16304 # Output is in $new_path 16305 16306 windows_path="$new_path" 16307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16308 unix_path=`$CYGPATH -u "$windows_path"` 16309 new_path="$unix_path" 16310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16312 new_path="$unix_path" 16313 fi 16314 16315 # remove trailing .exe if any 16316 new_path="${new_path/%.exe/}" 16317 16318 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16319 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16320 fi 16321 16322 else 16323 # We're on a unix platform. Hooray! :) 16324 # First separate the path from the arguments. This will split at the first 16325 # space. 16326 complete="$FOUND_MAKE" 16327 path="${complete%% *}" 16328 tmp="$complete EOL" 16329 arguments="${tmp#* }" 16330 16331 # Cannot rely on the command "which" here since it doesn't always work. 16332 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16333 if test -z "$is_absolute_path"; then 16334 # Path to executable is not absolute. Find it. 16335 IFS_save="$IFS" 16336 IFS=: 16337 for p in $PATH; do 16338 if test -f "$p/$path" && test -x "$p/$path"; then 16339 new_path="$p/$path" 16340 break 16341 fi 16342 done 16343 IFS="$IFS_save" 16344 else 16345 # This is an absolute path, we can use it without further modifications. 16346 new_path="$path" 16347 fi 16348 16349 if test "x$new_path" = x; then 16350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16351 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16352 has_space=`$ECHO "$complete" | $GREP " "` 16353 if test "x$has_space" != x; then 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16355 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16356 fi 16357 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16358 fi 16359 fi 16360 16361 # Now join together the path and the arguments once again 16362 if test "x$arguments" != xEOL; then 16363 new_complete="$new_path ${arguments% *}" 16364 else 16365 new_complete="$new_path" 16366 fi 16367 16368 if test "x$complete" != "x$new_complete"; then 16369 FOUND_MAKE="$new_complete" 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16371 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16372 fi 16373 fi 16374 16375 fi 16376 fi 16377 fi 16378 fi 16379 16380 16381 if test "x$FOUND_MAKE" = x; then 16382 for ac_prog in make 16383 do 16384 # Extract the first word of "$ac_prog", so it can be a program name with args. 16385 set dummy $ac_prog; ac_word=$2 16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16387 $as_echo_n "checking for $ac_word... " >&6; } 16388 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16389 $as_echo_n "(cached) " >&6 16390 else 16391 case $CHECK_MAKE in 16392 [\\/]* | ?:[\\/]*) 16393 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16394 ;; 16395 *) 16396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16397 for as_dir in $PATH 16398 do 16399 IFS=$as_save_IFS 16400 test -z "$as_dir" && as_dir=. 16401 for ac_exec_ext in '' $ac_executable_extensions; do 16402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16403 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16405 break 2 16406 fi 16407 done 16408 done 16409 IFS=$as_save_IFS 16410 16411 ;; 16412 esac 16413 fi 16414 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16415 if test -n "$CHECK_MAKE"; then 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16417 $as_echo "$CHECK_MAKE" >&6; } 16418 else 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16420 $as_echo "no" >&6; } 16421 fi 16422 16423 16424 test -n "$CHECK_MAKE" && break 16425 done 16426 16427 16428 MAKE_CANDIDATE=""$CHECK_MAKE"" 16429 DESCRIPTION="make in PATH" 16430 16431 # On Cygwin, we require a newer version of make than on other platforms 16432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16433 MAKE_VERSION_EXPR="-e 4\." 16434 MAKE_REQUIRED_VERSION="4.0" 16435 else 16436 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16437 MAKE_REQUIRED_VERSION="3.81" 16438 fi 16439 16440 if test "x$MAKE_CANDIDATE" != x; then 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16442 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16443 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16444 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16445 if test "x$IS_GNU_MAKE" = x; then 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16447 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16448 else 16449 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16450 if test "x$IS_MODERN_MAKE" = x; then 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16452 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16453 else 16454 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16456 MAKE_EXPECTED_ENV='cygwin' 16457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16458 MAKE_EXPECTED_ENV='msys' 16459 else 16460 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16461 fi 16462 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16463 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16464 else 16465 # Not relevant for non-Windows 16466 IS_MAKE_CORRECT_ENV=true 16467 fi 16468 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16469 { $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 16470 $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;} 16471 else 16472 FOUND_MAKE=$MAKE_CANDIDATE 16473 16474 # Only process if variable expands to non-empty 16475 16476 if test "x$FOUND_MAKE" != x; then 16477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16478 16479 # First separate the path from the arguments. This will split at the first 16480 # space. 16481 complete="$FOUND_MAKE" 16482 path="${complete%% *}" 16483 tmp="$complete EOL" 16484 arguments="${tmp#* }" 16485 16486 # Input might be given as Windows format, start by converting to 16487 # unix format. 16488 new_path=`$CYGPATH -u "$path"` 16489 16490 # Now try to locate executable using which 16491 new_path=`$WHICH "$new_path" 2> /dev/null` 16492 # bat and cmd files are not always considered executable in cygwin causing which 16493 # to not find them 16494 if test "x$new_path" = x \ 16495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16497 new_path=`$CYGPATH -u "$path"` 16498 fi 16499 if test "x$new_path" = x; then 16500 # Oops. Which didn't find the executable. 16501 # The splitting of arguments from the executable at a space might have been incorrect, 16502 # since paths with space are more likely in Windows. Give it another try with the whole 16503 # argument. 16504 path="$complete" 16505 arguments="EOL" 16506 new_path=`$CYGPATH -u "$path"` 16507 new_path=`$WHICH "$new_path" 2> /dev/null` 16508 # bat and cmd files are not always considered executable in cygwin causing which 16509 # to not find them 16510 if test "x$new_path" = x \ 16511 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16512 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16513 new_path=`$CYGPATH -u "$path"` 16514 fi 16515 if test "x$new_path" = x; then 16516 # It's still not found. Now this is an unrecoverable error. 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16518 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16519 has_space=`$ECHO "$complete" | $GREP " "` 16520 if test "x$has_space" != x; then 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16523 fi 16524 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16525 fi 16526 fi 16527 16528 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16529 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16530 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16531 # "foo.exe" is OK but "foo" is an error. 16532 # 16533 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16534 # It is also a way to make sure we got the proper file name for the real test later on. 16535 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16536 if test "x$test_shortpath" = x; then 16537 # Short path failed, file does not exist as specified. 16538 # Try adding .exe or .cmd 16539 if test -f "${new_path}.exe"; then 16540 input_to_shortpath="${new_path}.exe" 16541 elif test -f "${new_path}.cmd"; then 16542 input_to_shortpath="${new_path}.cmd" 16543 else 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16545 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16547 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16548 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16549 fi 16550 else 16551 input_to_shortpath="$new_path" 16552 fi 16553 16554 # Call helper function which possibly converts this using DOS-style short mode. 16555 # If so, the updated path is stored in $new_path. 16556 new_path="$input_to_shortpath" 16557 16558 input_path="$input_to_shortpath" 16559 # Check if we need to convert this using DOS-style short mode. If the path 16560 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16561 # take no chances and rewrite it. 16562 # Note: m4 eats our [], so we need to use [ and ] instead. 16563 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16564 if test "x$has_forbidden_chars" != x; then 16565 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16566 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16567 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16568 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16569 # Going to short mode and back again did indeed matter. Since short mode is 16570 # case insensitive, let's make it lowercase to improve readability. 16571 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16572 # Now convert it back to Unix-style (cygpath) 16573 input_path=`$CYGPATH -u "$shortmode_path"` 16574 new_path="$input_path" 16575 fi 16576 fi 16577 16578 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16579 if test "x$test_cygdrive_prefix" = x; then 16580 # As a simple fix, exclude /usr/bin since it's not a real path. 16581 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16582 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16583 # a path prefixed by /cygdrive for fixpath to work. 16584 new_path="$CYGWIN_ROOT_PATH$input_path" 16585 fi 16586 fi 16587 16588 # remove trailing .exe if any 16589 new_path="${new_path/%.exe/}" 16590 16591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16592 16593 # First separate the path from the arguments. This will split at the first 16594 # space. 16595 complete="$FOUND_MAKE" 16596 path="${complete%% *}" 16597 tmp="$complete EOL" 16598 arguments="${tmp#* }" 16599 16600 # Input might be given as Windows format, start by converting to 16601 # unix format. 16602 new_path="$path" 16603 16604 windows_path="$new_path" 16605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16606 unix_path=`$CYGPATH -u "$windows_path"` 16607 new_path="$unix_path" 16608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16610 new_path="$unix_path" 16611 fi 16612 16613 16614 # Now try to locate executable using which 16615 new_path=`$WHICH "$new_path" 2> /dev/null` 16616 16617 if test "x$new_path" = x; then 16618 # Oops. Which didn't find the executable. 16619 # The splitting of arguments from the executable at a space might have been incorrect, 16620 # since paths with space are more likely in Windows. Give it another try with the whole 16621 # argument. 16622 path="$complete" 16623 arguments="EOL" 16624 new_path="$path" 16625 16626 windows_path="$new_path" 16627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16628 unix_path=`$CYGPATH -u "$windows_path"` 16629 new_path="$unix_path" 16630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16632 new_path="$unix_path" 16633 fi 16634 16635 16636 new_path=`$WHICH "$new_path" 2> /dev/null` 16637 # bat and cmd files are not always considered executable in MSYS causing which 16638 # to not find them 16639 if test "x$new_path" = x \ 16640 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16641 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16642 new_path="$path" 16643 16644 windows_path="$new_path" 16645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16646 unix_path=`$CYGPATH -u "$windows_path"` 16647 new_path="$unix_path" 16648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16650 new_path="$unix_path" 16651 fi 16652 16653 fi 16654 16655 if test "x$new_path" = x; then 16656 # It's still not found. Now this is an unrecoverable error. 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16658 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16659 has_space=`$ECHO "$complete" | $GREP " "` 16660 if test "x$has_space" != x; then 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16662 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16663 fi 16664 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16665 fi 16666 fi 16667 16668 # Now new_path has a complete unix path to the binary 16669 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16670 # Keep paths in /bin as-is, but remove trailing .exe if any 16671 new_path="${new_path/%.exe/}" 16672 # Do not save /bin paths to all_fixpath_prefixes! 16673 else 16674 # Not in mixed or Windows style, start by that. 16675 new_path=`cmd //c echo $new_path` 16676 16677 input_path="$new_path" 16678 # Check if we need to convert this using DOS-style short mode. If the path 16679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16680 # take no chances and rewrite it. 16681 # Note: m4 eats our [], so we need to use [ and ] instead. 16682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16683 if test "x$has_forbidden_chars" != x; then 16684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16685 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16686 fi 16687 16688 # Output is in $new_path 16689 16690 windows_path="$new_path" 16691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16692 unix_path=`$CYGPATH -u "$windows_path"` 16693 new_path="$unix_path" 16694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16696 new_path="$unix_path" 16697 fi 16698 16699 # remove trailing .exe if any 16700 new_path="${new_path/%.exe/}" 16701 16702 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16703 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16704 fi 16705 16706 else 16707 # We're on a unix platform. Hooray! :) 16708 # First separate the path from the arguments. This will split at the first 16709 # space. 16710 complete="$FOUND_MAKE" 16711 path="${complete%% *}" 16712 tmp="$complete EOL" 16713 arguments="${tmp#* }" 16714 16715 # Cannot rely on the command "which" here since it doesn't always work. 16716 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16717 if test -z "$is_absolute_path"; then 16718 # Path to executable is not absolute. Find it. 16719 IFS_save="$IFS" 16720 IFS=: 16721 for p in $PATH; do 16722 if test -f "$p/$path" && test -x "$p/$path"; then 16723 new_path="$p/$path" 16724 break 16725 fi 16726 done 16727 IFS="$IFS_save" 16728 else 16729 # This is an absolute path, we can use it without further modifications. 16730 new_path="$path" 16731 fi 16732 16733 if test "x$new_path" = x; then 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16735 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16736 has_space=`$ECHO "$complete" | $GREP " "` 16737 if test "x$has_space" != x; then 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16739 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16740 fi 16741 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16742 fi 16743 fi 16744 16745 # Now join together the path and the arguments once again 16746 if test "x$arguments" != xEOL; then 16747 new_complete="$new_path ${arguments% *}" 16748 else 16749 new_complete="$new_path" 16750 fi 16751 16752 if test "x$complete" != "x$new_complete"; then 16753 FOUND_MAKE="$new_complete" 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16755 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16756 fi 16757 fi 16758 16759 fi 16760 fi 16761 fi 16762 fi 16763 16764 fi 16765 16766 if test "x$FOUND_MAKE" = x; then 16767 if test "x$TOOLCHAIN_PATH" != x; then 16768 # We have a toolchain path, check that as well before giving up. 16769 OLD_PATH=$PATH 16770 PATH=$TOOLCHAIN_PATH:$PATH 16771 for ac_prog in gmake 16772 do 16773 # Extract the first word of "$ac_prog", so it can be a program name with args. 16774 set dummy $ac_prog; ac_word=$2 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16776 $as_echo_n "checking for $ac_word... " >&6; } 16777 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16778 $as_echo_n "(cached) " >&6 16779 else 16780 case $CHECK_TOOLSDIR_GMAKE in 16781 [\\/]* | ?:[\\/]*) 16782 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16783 ;; 16784 *) 16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16786 for as_dir in $PATH 16787 do 16788 IFS=$as_save_IFS 16789 test -z "$as_dir" && as_dir=. 16790 for ac_exec_ext in '' $ac_executable_extensions; do 16791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16792 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16794 break 2 16795 fi 16796 done 16797 done 16798 IFS=$as_save_IFS 16799 16800 ;; 16801 esac 16802 fi 16803 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16804 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16806 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16807 else 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16809 $as_echo "no" >&6; } 16810 fi 16811 16812 16813 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16814 done 16815 16816 16817 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16818 DESCRIPTION="gmake in tools-dir" 16819 16820 # On Cygwin, we require a newer version of make than on other platforms 16821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16822 MAKE_VERSION_EXPR="-e 4\." 16823 MAKE_REQUIRED_VERSION="4.0" 16824 else 16825 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16826 MAKE_REQUIRED_VERSION="3.81" 16827 fi 16828 16829 if test "x$MAKE_CANDIDATE" != x; then 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16831 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16832 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16833 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16834 if test "x$IS_GNU_MAKE" = x; then 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16836 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16837 else 16838 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16839 if test "x$IS_MODERN_MAKE" = x; then 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16841 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16842 else 16843 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16845 MAKE_EXPECTED_ENV='cygwin' 16846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16847 MAKE_EXPECTED_ENV='msys' 16848 else 16849 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16850 fi 16851 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16852 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16853 else 16854 # Not relevant for non-Windows 16855 IS_MAKE_CORRECT_ENV=true 16856 fi 16857 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16858 { $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 16859 $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;} 16860 else 16861 FOUND_MAKE=$MAKE_CANDIDATE 16862 16863 # Only process if variable expands to non-empty 16864 16865 if test "x$FOUND_MAKE" != x; then 16866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16867 16868 # First separate the path from the arguments. This will split at the first 16869 # space. 16870 complete="$FOUND_MAKE" 16871 path="${complete%% *}" 16872 tmp="$complete EOL" 16873 arguments="${tmp#* }" 16874 16875 # Input might be given as Windows format, start by converting to 16876 # unix format. 16877 new_path=`$CYGPATH -u "$path"` 16878 16879 # Now try to locate executable using which 16880 new_path=`$WHICH "$new_path" 2> /dev/null` 16881 # bat and cmd files are not always considered executable in cygwin causing which 16882 # to not find them 16883 if test "x$new_path" = x \ 16884 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16885 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16886 new_path=`$CYGPATH -u "$path"` 16887 fi 16888 if test "x$new_path" = x; then 16889 # Oops. Which didn't find the executable. 16890 # The splitting of arguments from the executable at a space might have been incorrect, 16891 # since paths with space are more likely in Windows. Give it another try with the whole 16892 # argument. 16893 path="$complete" 16894 arguments="EOL" 16895 new_path=`$CYGPATH -u "$path"` 16896 new_path=`$WHICH "$new_path" 2> /dev/null` 16897 # bat and cmd files are not always considered executable in cygwin causing which 16898 # to not find them 16899 if test "x$new_path" = x \ 16900 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16901 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16902 new_path=`$CYGPATH -u "$path"` 16903 fi 16904 if test "x$new_path" = x; then 16905 # It's still not found. Now this is an unrecoverable error. 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16908 has_space=`$ECHO "$complete" | $GREP " "` 16909 if test "x$has_space" != x; then 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16912 fi 16913 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16914 fi 16915 fi 16916 16917 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16918 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16919 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16920 # "foo.exe" is OK but "foo" is an error. 16921 # 16922 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16923 # It is also a way to make sure we got the proper file name for the real test later on. 16924 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16925 if test "x$test_shortpath" = x; then 16926 # Short path failed, file does not exist as specified. 16927 # Try adding .exe or .cmd 16928 if test -f "${new_path}.exe"; then 16929 input_to_shortpath="${new_path}.exe" 16930 elif test -f "${new_path}.cmd"; then 16931 input_to_shortpath="${new_path}.cmd" 16932 else 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16934 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16936 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16937 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16938 fi 16939 else 16940 input_to_shortpath="$new_path" 16941 fi 16942 16943 # Call helper function which possibly converts this using DOS-style short mode. 16944 # If so, the updated path is stored in $new_path. 16945 new_path="$input_to_shortpath" 16946 16947 input_path="$input_to_shortpath" 16948 # Check if we need to convert this using DOS-style short mode. If the path 16949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16950 # take no chances and rewrite it. 16951 # Note: m4 eats our [], so we need to use [ and ] instead. 16952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16953 if test "x$has_forbidden_chars" != x; then 16954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16958 # Going to short mode and back again did indeed matter. Since short mode is 16959 # case insensitive, let's make it lowercase to improve readability. 16960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16961 # Now convert it back to Unix-style (cygpath) 16962 input_path=`$CYGPATH -u "$shortmode_path"` 16963 new_path="$input_path" 16964 fi 16965 fi 16966 16967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16968 if test "x$test_cygdrive_prefix" = x; then 16969 # As a simple fix, exclude /usr/bin since it's not a real path. 16970 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16972 # a path prefixed by /cygdrive for fixpath to work. 16973 new_path="$CYGWIN_ROOT_PATH$input_path" 16974 fi 16975 fi 16976 16977 # remove trailing .exe if any 16978 new_path="${new_path/%.exe/}" 16979 16980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16981 16982 # First separate the path from the arguments. This will split at the first 16983 # space. 16984 complete="$FOUND_MAKE" 16985 path="${complete%% *}" 16986 tmp="$complete EOL" 16987 arguments="${tmp#* }" 16988 16989 # Input might be given as Windows format, start by converting to 16990 # unix format. 16991 new_path="$path" 16992 16993 windows_path="$new_path" 16994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16995 unix_path=`$CYGPATH -u "$windows_path"` 16996 new_path="$unix_path" 16997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16999 new_path="$unix_path" 17000 fi 17001 17002 17003 # Now try to locate executable using which 17004 new_path=`$WHICH "$new_path" 2> /dev/null` 17005 17006 if test "x$new_path" = x; then 17007 # Oops. Which didn't find the executable. 17008 # The splitting of arguments from the executable at a space might have been incorrect, 17009 # since paths with space are more likely in Windows. Give it another try with the whole 17010 # argument. 17011 path="$complete" 17012 arguments="EOL" 17013 new_path="$path" 17014 17015 windows_path="$new_path" 17016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17017 unix_path=`$CYGPATH -u "$windows_path"` 17018 new_path="$unix_path" 17019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17021 new_path="$unix_path" 17022 fi 17023 17024 17025 new_path=`$WHICH "$new_path" 2> /dev/null` 17026 # bat and cmd files are not always considered executable in MSYS causing which 17027 # to not find them 17028 if test "x$new_path" = x \ 17029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17031 new_path="$path" 17032 17033 windows_path="$new_path" 17034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17035 unix_path=`$CYGPATH -u "$windows_path"` 17036 new_path="$unix_path" 17037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17038 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17039 new_path="$unix_path" 17040 fi 17041 17042 fi 17043 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 # Now new_path has a complete unix path to the binary 17058 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17059 # Keep paths in /bin as-is, but remove trailing .exe if any 17060 new_path="${new_path/%.exe/}" 17061 # Do not save /bin paths to all_fixpath_prefixes! 17062 else 17063 # Not in mixed or Windows style, start by that. 17064 new_path=`cmd //c echo $new_path` 17065 17066 input_path="$new_path" 17067 # Check if we need to convert this using DOS-style short mode. If the path 17068 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17069 # take no chances and rewrite it. 17070 # Note: m4 eats our [], so we need to use [ and ] instead. 17071 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17072 if test "x$has_forbidden_chars" != x; then 17073 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17074 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17075 fi 17076 17077 # Output is in $new_path 17078 17079 windows_path="$new_path" 17080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17081 unix_path=`$CYGPATH -u "$windows_path"` 17082 new_path="$unix_path" 17083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17085 new_path="$unix_path" 17086 fi 17087 17088 # remove trailing .exe if any 17089 new_path="${new_path/%.exe/}" 17090 17091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17093 fi 17094 17095 else 17096 # We're on a unix platform. Hooray! :) 17097 # First separate the path from the arguments. This will split at the first 17098 # space. 17099 complete="$FOUND_MAKE" 17100 path="${complete%% *}" 17101 tmp="$complete EOL" 17102 arguments="${tmp#* }" 17103 17104 # Cannot rely on the command "which" here since it doesn't always work. 17105 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17106 if test -z "$is_absolute_path"; then 17107 # Path to executable is not absolute. Find it. 17108 IFS_save="$IFS" 17109 IFS=: 17110 for p in $PATH; do 17111 if test -f "$p/$path" && test -x "$p/$path"; then 17112 new_path="$p/$path" 17113 break 17114 fi 17115 done 17116 IFS="$IFS_save" 17117 else 17118 # This is an absolute path, we can use it without further modifications. 17119 new_path="$path" 17120 fi 17121 17122 if test "x$new_path" = x; then 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17124 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17125 has_space=`$ECHO "$complete" | $GREP " "` 17126 if test "x$has_space" != x; then 17127 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17128 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17129 fi 17130 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17131 fi 17132 fi 17133 17134 # Now join together the path and the arguments once again 17135 if test "x$arguments" != xEOL; then 17136 new_complete="$new_path ${arguments% *}" 17137 else 17138 new_complete="$new_path" 17139 fi 17140 17141 if test "x$complete" != "x$new_complete"; then 17142 FOUND_MAKE="$new_complete" 17143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17144 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17145 fi 17146 fi 17147 17148 fi 17149 fi 17150 fi 17151 fi 17152 17153 if test "x$FOUND_MAKE" = x; then 17154 for ac_prog in make 17155 do 17156 # Extract the first word of "$ac_prog", so it can be a program name with args. 17157 set dummy $ac_prog; ac_word=$2 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17159 $as_echo_n "checking for $ac_word... " >&6; } 17160 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 17161 $as_echo_n "(cached) " >&6 17162 else 17163 case $CHECK_TOOLSDIR_MAKE in 17164 [\\/]* | ?:[\\/]*) 17165 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 17166 ;; 17167 *) 17168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17169 for as_dir in $PATH 17170 do 17171 IFS=$as_save_IFS 17172 test -z "$as_dir" && as_dir=. 17173 for ac_exec_ext in '' $ac_executable_extensions; do 17174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17175 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17177 break 2 17178 fi 17179 done 17180 done 17181 IFS=$as_save_IFS 17182 17183 ;; 17184 esac 17185 fi 17186 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17187 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17189 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17190 else 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17192 $as_echo "no" >&6; } 17193 fi 17194 17195 17196 test -n "$CHECK_TOOLSDIR_MAKE" && break 17197 done 17198 17199 17200 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17201 DESCRIPTION="make in tools-dir" 17202 17203 # On Cygwin, we require a newer version of make than on other platforms 17204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17205 MAKE_VERSION_EXPR="-e 4\." 17206 MAKE_REQUIRED_VERSION="4.0" 17207 else 17208 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17209 MAKE_REQUIRED_VERSION="3.81" 17210 fi 17211 17212 if test "x$MAKE_CANDIDATE" != x; then 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17214 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17215 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17216 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17217 if test "x$IS_GNU_MAKE" = x; then 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17219 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17220 else 17221 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17222 if test "x$IS_MODERN_MAKE" = x; then 17223 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17224 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17225 else 17226 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17228 MAKE_EXPECTED_ENV='cygwin' 17229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17230 MAKE_EXPECTED_ENV='msys' 17231 else 17232 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17233 fi 17234 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17235 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17236 else 17237 # Not relevant for non-Windows 17238 IS_MAKE_CORRECT_ENV=true 17239 fi 17240 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17241 { $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 17242 $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;} 17243 else 17244 FOUND_MAKE=$MAKE_CANDIDATE 17245 17246 # Only process if variable expands to non-empty 17247 17248 if test "x$FOUND_MAKE" != x; then 17249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17250 17251 # First separate the path from the arguments. This will split at the first 17252 # space. 17253 complete="$FOUND_MAKE" 17254 path="${complete%% *}" 17255 tmp="$complete EOL" 17256 arguments="${tmp#* }" 17257 17258 # Input might be given as Windows format, start by converting to 17259 # unix format. 17260 new_path=`$CYGPATH -u "$path"` 17261 17262 # Now try to locate executable using which 17263 new_path=`$WHICH "$new_path" 2> /dev/null` 17264 # bat and cmd files are not always considered executable in cygwin causing which 17265 # to not find them 17266 if test "x$new_path" = x \ 17267 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17268 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17269 new_path=`$CYGPATH -u "$path"` 17270 fi 17271 if test "x$new_path" = x; then 17272 # Oops. Which didn't find the executable. 17273 # The splitting of arguments from the executable at a space might have been incorrect, 17274 # since paths with space are more likely in Windows. Give it another try with the whole 17275 # argument. 17276 path="$complete" 17277 arguments="EOL" 17278 new_path=`$CYGPATH -u "$path"` 17279 new_path=`$WHICH "$new_path" 2> /dev/null` 17280 # bat and cmd files are not always considered executable in cygwin causing which 17281 # to not find them 17282 if test "x$new_path" = x \ 17283 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17284 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17285 new_path=`$CYGPATH -u "$path"` 17286 fi 17287 if test "x$new_path" = x; then 17288 # It's still not found. Now this is an unrecoverable error. 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17291 has_space=`$ECHO "$complete" | $GREP " "` 17292 if test "x$has_space" != x; then 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17295 fi 17296 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17297 fi 17298 fi 17299 17300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17303 # "foo.exe" is OK but "foo" is an error. 17304 # 17305 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17306 # It is also a way to make sure we got the proper file name for the real test later on. 17307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17308 if test "x$test_shortpath" = x; then 17309 # Short path failed, file does not exist as specified. 17310 # Try adding .exe or .cmd 17311 if test -f "${new_path}.exe"; then 17312 input_to_shortpath="${new_path}.exe" 17313 elif test -f "${new_path}.cmd"; then 17314 input_to_shortpath="${new_path}.cmd" 17315 else 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17317 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17318 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17319 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17320 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17321 fi 17322 else 17323 input_to_shortpath="$new_path" 17324 fi 17325 17326 # Call helper function which possibly converts this using DOS-style short mode. 17327 # If so, the updated path is stored in $new_path. 17328 new_path="$input_to_shortpath" 17329 17330 input_path="$input_to_shortpath" 17331 # Check if we need to convert this using DOS-style short mode. If the path 17332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17333 # take no chances and rewrite it. 17334 # Note: m4 eats our [], so we need to use [ and ] instead. 17335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17336 if test "x$has_forbidden_chars" != x; then 17337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17341 # Going to short mode and back again did indeed matter. Since short mode is 17342 # case insensitive, let's make it lowercase to improve readability. 17343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17344 # Now convert it back to Unix-style (cygpath) 17345 input_path=`$CYGPATH -u "$shortmode_path"` 17346 new_path="$input_path" 17347 fi 17348 fi 17349 17350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17351 if test "x$test_cygdrive_prefix" = x; then 17352 # As a simple fix, exclude /usr/bin since it's not a real path. 17353 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17355 # a path prefixed by /cygdrive for fixpath to work. 17356 new_path="$CYGWIN_ROOT_PATH$input_path" 17357 fi 17358 fi 17359 17360 # remove trailing .exe if any 17361 new_path="${new_path/%.exe/}" 17362 17363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17364 17365 # First separate the path from the arguments. This will split at the first 17366 # space. 17367 complete="$FOUND_MAKE" 17368 path="${complete%% *}" 17369 tmp="$complete EOL" 17370 arguments="${tmp#* }" 17371 17372 # Input might be given as Windows format, start by converting to 17373 # unix format. 17374 new_path="$path" 17375 17376 windows_path="$new_path" 17377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17378 unix_path=`$CYGPATH -u "$windows_path"` 17379 new_path="$unix_path" 17380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17382 new_path="$unix_path" 17383 fi 17384 17385 17386 # Now try to locate executable using which 17387 new_path=`$WHICH "$new_path" 2> /dev/null` 17388 17389 if test "x$new_path" = x; then 17390 # Oops. Which didn't find the executable. 17391 # The splitting of arguments from the executable at a space might have been incorrect, 17392 # since paths with space are more likely in Windows. Give it another try with the whole 17393 # argument. 17394 path="$complete" 17395 arguments="EOL" 17396 new_path="$path" 17397 17398 windows_path="$new_path" 17399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17400 unix_path=`$CYGPATH -u "$windows_path"` 17401 new_path="$unix_path" 17402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17404 new_path="$unix_path" 17405 fi 17406 17407 17408 new_path=`$WHICH "$new_path" 2> /dev/null` 17409 # bat and cmd files are not always considered executable in MSYS causing which 17410 # to not find them 17411 if test "x$new_path" = x \ 17412 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17413 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17414 new_path="$path" 17415 17416 windows_path="$new_path" 17417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17418 unix_path=`$CYGPATH -u "$windows_path"` 17419 new_path="$unix_path" 17420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17422 new_path="$unix_path" 17423 fi 17424 17425 fi 17426 17427 if test "x$new_path" = x; then 17428 # It's still not found. Now this is an unrecoverable error. 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17430 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17431 has_space=`$ECHO "$complete" | $GREP " "` 17432 if test "x$has_space" != x; then 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17434 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17435 fi 17436 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17437 fi 17438 fi 17439 17440 # Now new_path has a complete unix path to the binary 17441 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17442 # Keep paths in /bin as-is, but remove trailing .exe if any 17443 new_path="${new_path/%.exe/}" 17444 # Do not save /bin paths to all_fixpath_prefixes! 17445 else 17446 # Not in mixed or Windows style, start by that. 17447 new_path=`cmd //c echo $new_path` 17448 17449 input_path="$new_path" 17450 # Check if we need to convert this using DOS-style short mode. If the path 17451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17452 # take no chances and rewrite it. 17453 # Note: m4 eats our [], so we need to use [ and ] instead. 17454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17455 if test "x$has_forbidden_chars" != x; then 17456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17457 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17458 fi 17459 17460 # Output is in $new_path 17461 17462 windows_path="$new_path" 17463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17464 unix_path=`$CYGPATH -u "$windows_path"` 17465 new_path="$unix_path" 17466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17468 new_path="$unix_path" 17469 fi 17470 17471 # remove trailing .exe if any 17472 new_path="${new_path/%.exe/}" 17473 17474 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17475 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17476 fi 17477 17478 else 17479 # We're on a unix platform. Hooray! :) 17480 # First separate the path from the arguments. This will split at the first 17481 # space. 17482 complete="$FOUND_MAKE" 17483 path="${complete%% *}" 17484 tmp="$complete EOL" 17485 arguments="${tmp#* }" 17486 17487 # Cannot rely on the command "which" here since it doesn't always work. 17488 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17489 if test -z "$is_absolute_path"; then 17490 # Path to executable is not absolute. Find it. 17491 IFS_save="$IFS" 17492 IFS=: 17493 for p in $PATH; do 17494 if test -f "$p/$path" && test -x "$p/$path"; then 17495 new_path="$p/$path" 17496 break 17497 fi 17498 done 17499 IFS="$IFS_save" 17500 else 17501 # This is an absolute path, we can use it without further modifications. 17502 new_path="$path" 17503 fi 17504 17505 if test "x$new_path" = x; then 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17507 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17508 has_space=`$ECHO "$complete" | $GREP " "` 17509 if test "x$has_space" != x; then 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17511 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17512 fi 17513 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17514 fi 17515 fi 17516 17517 # Now join together the path and the arguments once again 17518 if test "x$arguments" != xEOL; then 17519 new_complete="$new_path ${arguments% *}" 17520 else 17521 new_complete="$new_path" 17522 fi 17523 17524 if test "x$complete" != "x$new_complete"; then 17525 FOUND_MAKE="$new_complete" 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17527 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17528 fi 17529 fi 17530 17531 fi 17532 fi 17533 fi 17534 fi 17535 17536 fi 17537 PATH=$OLD_PATH 17538 fi 17539 fi 17540 17541 if test "x$FOUND_MAKE" = x; then 17542 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 17543 fi 17544 fi 17545 17546 MAKE=$FOUND_MAKE 17547 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17549 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17550 17551 17552 # Check if make supports the output sync option and if so, setup using it. 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17554 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17555 if $MAKE --version -O > /dev/null 2>&1; then 17556 OUTPUT_SYNC_SUPPORTED=true 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17558 $as_echo "yes" >&6; } 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17560 $as_echo_n "checking for output-sync value... " >&6; } 17561 17562 # Check whether --with-output-sync was given. 17563 if test "${with_output_sync+set}" = set; then : 17564 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17565 fi 17566 17567 if test "x$OUTPUT_SYNC" = "x"; then 17568 OUTPUT_SYNC=none 17569 fi 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17571 $as_echo "$OUTPUT_SYNC" >&6; } 17572 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17573 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17574 fi 17575 else 17576 OUTPUT_SYNC_SUPPORTED=false 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17578 $as_echo "no" >&6; } 17579 fi 17580 17581 17582 17583 17584 17585 17586 # Test if find supports -delete 17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17588 $as_echo_n "checking if find supports -delete... " >&6; } 17589 FIND_DELETE="-delete" 17590 17591 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17592 17593 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17594 17595 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17596 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17597 # No, it does not. 17598 rm $DELETEDIR/TestIfFindSupportsDelete 17599 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17600 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17601 FIND_DELETE="-print | xargs rm" 17602 else 17603 FIND_DELETE="-exec rm \{\} \+" 17604 fi 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17606 $as_echo "no" >&6; } 17607 else 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17609 $as_echo "yes" >&6; } 17610 fi 17611 rmdir $DELETEDIR 17612 17613 17614 17615 # These tools might not be installed by default, 17616 # need hint on how to install them. 17617 17618 17619 17620 # Publish this variable in the help. 17621 17622 17623 if test "x$UNZIP" = x; then 17624 # The variable is not set by user, try to locate tool using the code snippet 17625 for ac_prog in unzip 17626 do 17627 # Extract the first word of "$ac_prog", so it can be a program name with args. 17628 set dummy $ac_prog; ac_word=$2 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17630 $as_echo_n "checking for $ac_word... " >&6; } 17631 if ${ac_cv_path_UNZIP+:} false; then : 17632 $as_echo_n "(cached) " >&6 17633 else 17634 case $UNZIP in 17635 [\\/]* | ?:[\\/]*) 17636 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17637 ;; 17638 *) 17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17640 for as_dir in $PATH 17641 do 17642 IFS=$as_save_IFS 17643 test -z "$as_dir" && as_dir=. 17644 for ac_exec_ext in '' $ac_executable_extensions; do 17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17646 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17648 break 2 17649 fi 17650 done 17651 done 17652 IFS=$as_save_IFS 17653 17654 ;; 17655 esac 17656 fi 17657 UNZIP=$ac_cv_path_UNZIP 17658 if test -n "$UNZIP"; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17660 $as_echo "$UNZIP" >&6; } 17661 else 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17663 $as_echo "no" >&6; } 17664 fi 17665 17666 17667 test -n "$UNZIP" && break 17668 done 17669 17670 else 17671 # The variable is set, but is it from the command line or the environment? 17672 17673 # Try to remove the string !UNZIP! from our list. 17674 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17675 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17676 # If it failed, the variable was not from the command line. Ignore it, 17677 # but warn the user (except for BASH, which is always set by the calling BASH). 17678 if test "xUNZIP" != xBASH; then 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17680 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17681 fi 17682 # Try to locate tool using the code snippet 17683 for ac_prog in unzip 17684 do 17685 # Extract the first word of "$ac_prog", so it can be a program name with args. 17686 set dummy $ac_prog; ac_word=$2 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17688 $as_echo_n "checking for $ac_word... " >&6; } 17689 if ${ac_cv_path_UNZIP+:} false; then : 17690 $as_echo_n "(cached) " >&6 17691 else 17692 case $UNZIP in 17693 [\\/]* | ?:[\\/]*) 17694 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17695 ;; 17696 *) 17697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17698 for as_dir in $PATH 17699 do 17700 IFS=$as_save_IFS 17701 test -z "$as_dir" && as_dir=. 17702 for ac_exec_ext in '' $ac_executable_extensions; do 17703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17704 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17706 break 2 17707 fi 17708 done 17709 done 17710 IFS=$as_save_IFS 17711 17712 ;; 17713 esac 17714 fi 17715 UNZIP=$ac_cv_path_UNZIP 17716 if test -n "$UNZIP"; then 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17718 $as_echo "$UNZIP" >&6; } 17719 else 17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17721 $as_echo "no" >&6; } 17722 fi 17723 17724 17725 test -n "$UNZIP" && break 17726 done 17727 17728 else 17729 # If it succeeded, then it was overridden by the user. We will use it 17730 # for the tool. 17731 17732 # First remove it from the list of overridden variables, so we can test 17733 # for unknown variables in the end. 17734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17735 17736 # Check if the provided tool contains a complete path. 17737 tool_specified="$UNZIP" 17738 tool_basename="${tool_specified##*/}" 17739 if test "x$tool_basename" = "x$tool_specified"; then 17740 # A command without a complete path is provided, search $PATH. 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17742 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17743 # Extract the first word of "$tool_basename", so it can be a program name with args. 17744 set dummy $tool_basename; ac_word=$2 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17746 $as_echo_n "checking for $ac_word... " >&6; } 17747 if ${ac_cv_path_UNZIP+:} false; then : 17748 $as_echo_n "(cached) " >&6 17749 else 17750 case $UNZIP in 17751 [\\/]* | ?:[\\/]*) 17752 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17753 ;; 17754 *) 17755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17756 for as_dir in $PATH 17757 do 17758 IFS=$as_save_IFS 17759 test -z "$as_dir" && as_dir=. 17760 for ac_exec_ext in '' $ac_executable_extensions; do 17761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17762 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17764 break 2 17765 fi 17766 done 17767 done 17768 IFS=$as_save_IFS 17769 17770 ;; 17771 esac 17772 fi 17773 UNZIP=$ac_cv_path_UNZIP 17774 if test -n "$UNZIP"; then 17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17776 $as_echo "$UNZIP" >&6; } 17777 else 17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17779 $as_echo "no" >&6; } 17780 fi 17781 17782 17783 if test "x$UNZIP" = x; then 17784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17785 fi 17786 else 17787 # Otherwise we believe it is a complete path. Use it as it is. 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17789 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17791 $as_echo_n "checking for UNZIP... " >&6; } 17792 if test ! -x "$tool_specified"; then 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17794 $as_echo "not found" >&6; } 17795 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17796 fi 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17798 $as_echo "$tool_specified" >&6; } 17799 fi 17800 fi 17801 fi 17802 17803 17804 17805 if test "x$UNZIP" = x; then 17806 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17807 fi 17808 17809 17810 17811 17812 17813 # Publish this variable in the help. 17814 17815 17816 if test "x$ZIP" = x; then 17817 # The variable is not set by user, try to locate tool using the code snippet 17818 for ac_prog in zip 17819 do 17820 # Extract the first word of "$ac_prog", so it can be a program name with args. 17821 set dummy $ac_prog; ac_word=$2 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17823 $as_echo_n "checking for $ac_word... " >&6; } 17824 if ${ac_cv_path_ZIP+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826 else 17827 case $ZIP in 17828 [\\/]* | ?:[\\/]*) 17829 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17830 ;; 17831 *) 17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17833 for as_dir in $PATH 17834 do 17835 IFS=$as_save_IFS 17836 test -z "$as_dir" && as_dir=. 17837 for ac_exec_ext in '' $ac_executable_extensions; do 17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17839 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17841 break 2 17842 fi 17843 done 17844 done 17845 IFS=$as_save_IFS 17846 17847 ;; 17848 esac 17849 fi 17850 ZIP=$ac_cv_path_ZIP 17851 if test -n "$ZIP"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17853 $as_echo "$ZIP" >&6; } 17854 else 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17856 $as_echo "no" >&6; } 17857 fi 17858 17859 17860 test -n "$ZIP" && break 17861 done 17862 17863 else 17864 # The variable is set, but is it from the command line or the environment? 17865 17866 # Try to remove the string !ZIP! from our list. 17867 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17868 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17869 # If it failed, the variable was not from the command line. Ignore it, 17870 # but warn the user (except for BASH, which is always set by the calling BASH). 17871 if test "xZIP" != xBASH; then 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17873 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17874 fi 17875 # Try to locate tool using the code snippet 17876 for ac_prog in zip 17877 do 17878 # Extract the first word of "$ac_prog", so it can be a program name with args. 17879 set dummy $ac_prog; ac_word=$2 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17881 $as_echo_n "checking for $ac_word... " >&6; } 17882 if ${ac_cv_path_ZIP+:} false; then : 17883 $as_echo_n "(cached) " >&6 17884 else 17885 case $ZIP in 17886 [\\/]* | ?:[\\/]*) 17887 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17888 ;; 17889 *) 17890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17891 for as_dir in $PATH 17892 do 17893 IFS=$as_save_IFS 17894 test -z "$as_dir" && as_dir=. 17895 for ac_exec_ext in '' $ac_executable_extensions; do 17896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17897 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17899 break 2 17900 fi 17901 done 17902 done 17903 IFS=$as_save_IFS 17904 17905 ;; 17906 esac 17907 fi 17908 ZIP=$ac_cv_path_ZIP 17909 if test -n "$ZIP"; then 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17911 $as_echo "$ZIP" >&6; } 17912 else 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17914 $as_echo "no" >&6; } 17915 fi 17916 17917 17918 test -n "$ZIP" && break 17919 done 17920 17921 else 17922 # If it succeeded, then it was overridden by the user. We will use it 17923 # for the tool. 17924 17925 # First remove it from the list of overridden variables, so we can test 17926 # for unknown variables in the end. 17927 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17928 17929 # Check if the provided tool contains a complete path. 17930 tool_specified="$ZIP" 17931 tool_basename="${tool_specified##*/}" 17932 if test "x$tool_basename" = "x$tool_specified"; then 17933 # A command without a complete path is provided, search $PATH. 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17935 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17936 # Extract the first word of "$tool_basename", so it can be a program name with args. 17937 set dummy $tool_basename; ac_word=$2 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17939 $as_echo_n "checking for $ac_word... " >&6; } 17940 if ${ac_cv_path_ZIP+:} false; then : 17941 $as_echo_n "(cached) " >&6 17942 else 17943 case $ZIP in 17944 [\\/]* | ?:[\\/]*) 17945 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17946 ;; 17947 *) 17948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17949 for as_dir in $PATH 17950 do 17951 IFS=$as_save_IFS 17952 test -z "$as_dir" && as_dir=. 17953 for ac_exec_ext in '' $ac_executable_extensions; do 17954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17955 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17957 break 2 17958 fi 17959 done 17960 done 17961 IFS=$as_save_IFS 17962 17963 ;; 17964 esac 17965 fi 17966 ZIP=$ac_cv_path_ZIP 17967 if test -n "$ZIP"; then 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17969 $as_echo "$ZIP" >&6; } 17970 else 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17972 $as_echo "no" >&6; } 17973 fi 17974 17975 17976 if test "x$ZIP" = x; then 17977 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17978 fi 17979 else 17980 # Otherwise we believe it is a complete path. Use it as it is. 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17982 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17984 $as_echo_n "checking for ZIP... " >&6; } 17985 if test ! -x "$tool_specified"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17987 $as_echo "not found" >&6; } 17988 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17989 fi 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17991 $as_echo "$tool_specified" >&6; } 17992 fi 17993 fi 17994 fi 17995 17996 17997 17998 if test "x$ZIP" = x; then 17999 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 18000 fi 18001 18002 18003 18004 # Non-required basic tools 18005 18006 18007 18008 # Publish this variable in the help. 18009 18010 18011 if test "x$LDD" = x; then 18012 # The variable is not set by user, try to locate tool using the code snippet 18013 for ac_prog in ldd 18014 do 18015 # Extract the first word of "$ac_prog", so it can be a program name with args. 18016 set dummy $ac_prog; ac_word=$2 18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18018 $as_echo_n "checking for $ac_word... " >&6; } 18019 if ${ac_cv_path_LDD+:} false; then : 18020 $as_echo_n "(cached) " >&6 18021 else 18022 case $LDD in 18023 [\\/]* | ?:[\\/]*) 18024 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18025 ;; 18026 *) 18027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18028 for as_dir in $PATH 18029 do 18030 IFS=$as_save_IFS 18031 test -z "$as_dir" && as_dir=. 18032 for ac_exec_ext in '' $ac_executable_extensions; do 18033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18034 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18036 break 2 18037 fi 18038 done 18039 done 18040 IFS=$as_save_IFS 18041 18042 ;; 18043 esac 18044 fi 18045 LDD=$ac_cv_path_LDD 18046 if test -n "$LDD"; then 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18048 $as_echo "$LDD" >&6; } 18049 else 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18051 $as_echo "no" >&6; } 18052 fi 18053 18054 18055 test -n "$LDD" && break 18056 done 18057 18058 else 18059 # The variable is set, but is it from the command line or the environment? 18060 18061 # Try to remove the string !LDD! from our list. 18062 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 18063 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18064 # If it failed, the variable was not from the command line. Ignore it, 18065 # but warn the user (except for BASH, which is always set by the calling BASH). 18066 if test "xLDD" != xBASH; then 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 18068 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 18069 fi 18070 # Try to locate tool using the code snippet 18071 for ac_prog in ldd 18072 do 18073 # Extract the first word of "$ac_prog", so it can be a program name with args. 18074 set dummy $ac_prog; ac_word=$2 18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18076 $as_echo_n "checking for $ac_word... " >&6; } 18077 if ${ac_cv_path_LDD+:} false; then : 18078 $as_echo_n "(cached) " >&6 18079 else 18080 case $LDD in 18081 [\\/]* | ?:[\\/]*) 18082 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18083 ;; 18084 *) 18085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18086 for as_dir in $PATH 18087 do 18088 IFS=$as_save_IFS 18089 test -z "$as_dir" && as_dir=. 18090 for ac_exec_ext in '' $ac_executable_extensions; do 18091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18092 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18094 break 2 18095 fi 18096 done 18097 done 18098 IFS=$as_save_IFS 18099 18100 ;; 18101 esac 18102 fi 18103 LDD=$ac_cv_path_LDD 18104 if test -n "$LDD"; then 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18106 $as_echo "$LDD" >&6; } 18107 else 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18109 $as_echo "no" >&6; } 18110 fi 18111 18112 18113 test -n "$LDD" && break 18114 done 18115 18116 else 18117 # If it succeeded, then it was overridden by the user. We will use it 18118 # for the tool. 18119 18120 # First remove it from the list of overridden variables, so we can test 18121 # for unknown variables in the end. 18122 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18123 18124 # Check if the provided tool contains a complete path. 18125 tool_specified="$LDD" 18126 tool_basename="${tool_specified##*/}" 18127 if test "x$tool_basename" = "x$tool_specified"; then 18128 # A command without a complete path is provided, search $PATH. 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 18130 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 18131 # Extract the first word of "$tool_basename", so it can be a program name with args. 18132 set dummy $tool_basename; ac_word=$2 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18134 $as_echo_n "checking for $ac_word... " >&6; } 18135 if ${ac_cv_path_LDD+:} false; then : 18136 $as_echo_n "(cached) " >&6 18137 else 18138 case $LDD in 18139 [\\/]* | ?:[\\/]*) 18140 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18141 ;; 18142 *) 18143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18144 for as_dir in $PATH 18145 do 18146 IFS=$as_save_IFS 18147 test -z "$as_dir" && as_dir=. 18148 for ac_exec_ext in '' $ac_executable_extensions; do 18149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18150 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18152 break 2 18153 fi 18154 done 18155 done 18156 IFS=$as_save_IFS 18157 18158 ;; 18159 esac 18160 fi 18161 LDD=$ac_cv_path_LDD 18162 if test -n "$LDD"; then 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18164 $as_echo "$LDD" >&6; } 18165 else 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18167 $as_echo "no" >&6; } 18168 fi 18169 18170 18171 if test "x$LDD" = x; then 18172 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18173 fi 18174 else 18175 # Otherwise we believe it is a complete path. Use it as it is. 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 18177 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18179 $as_echo_n "checking for LDD... " >&6; } 18180 if test ! -x "$tool_specified"; then 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18182 $as_echo "not found" >&6; } 18183 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 18184 fi 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18186 $as_echo "$tool_specified" >&6; } 18187 fi 18188 fi 18189 fi 18190 18191 18192 if test "x$LDD" = "x"; then 18193 # List shared lib dependencies is used for 18194 # debug output and checking for forbidden dependencies. 18195 # We can build without it. 18196 LDD="true" 18197 fi 18198 18199 18200 # Publish this variable in the help. 18201 18202 18203 if test "x$OTOOL" = x; then 18204 # The variable is not set by user, try to locate tool using the code snippet 18205 for ac_prog in otool 18206 do 18207 # Extract the first word of "$ac_prog", so it can be a program name with args. 18208 set dummy $ac_prog; ac_word=$2 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18210 $as_echo_n "checking for $ac_word... " >&6; } 18211 if ${ac_cv_path_OTOOL+:} false; then : 18212 $as_echo_n "(cached) " >&6 18213 else 18214 case $OTOOL in 18215 [\\/]* | ?:[\\/]*) 18216 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18217 ;; 18218 *) 18219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18220 for as_dir in $PATH 18221 do 18222 IFS=$as_save_IFS 18223 test -z "$as_dir" && as_dir=. 18224 for ac_exec_ext in '' $ac_executable_extensions; do 18225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18226 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18228 break 2 18229 fi 18230 done 18231 done 18232 IFS=$as_save_IFS 18233 18234 ;; 18235 esac 18236 fi 18237 OTOOL=$ac_cv_path_OTOOL 18238 if test -n "$OTOOL"; then 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18240 $as_echo "$OTOOL" >&6; } 18241 else 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18243 $as_echo "no" >&6; } 18244 fi 18245 18246 18247 test -n "$OTOOL" && break 18248 done 18249 18250 else 18251 # The variable is set, but is it from the command line or the environment? 18252 18253 # Try to remove the string !OTOOL! from our list. 18254 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18255 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18256 # If it failed, the variable was not from the command line. Ignore it, 18257 # but warn the user (except for BASH, which is always set by the calling BASH). 18258 if test "xOTOOL" != xBASH; then 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18260 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18261 fi 18262 # Try to locate tool using the code snippet 18263 for ac_prog in otool 18264 do 18265 # Extract the first word of "$ac_prog", so it can be a program name with args. 18266 set dummy $ac_prog; ac_word=$2 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18268 $as_echo_n "checking for $ac_word... " >&6; } 18269 if ${ac_cv_path_OTOOL+:} false; then : 18270 $as_echo_n "(cached) " >&6 18271 else 18272 case $OTOOL in 18273 [\\/]* | ?:[\\/]*) 18274 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18275 ;; 18276 *) 18277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18278 for as_dir in $PATH 18279 do 18280 IFS=$as_save_IFS 18281 test -z "$as_dir" && as_dir=. 18282 for ac_exec_ext in '' $ac_executable_extensions; do 18283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18284 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18286 break 2 18287 fi 18288 done 18289 done 18290 IFS=$as_save_IFS 18291 18292 ;; 18293 esac 18294 fi 18295 OTOOL=$ac_cv_path_OTOOL 18296 if test -n "$OTOOL"; then 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18298 $as_echo "$OTOOL" >&6; } 18299 else 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18301 $as_echo "no" >&6; } 18302 fi 18303 18304 18305 test -n "$OTOOL" && break 18306 done 18307 18308 else 18309 # If it succeeded, then it was overridden by the user. We will use it 18310 # for the tool. 18311 18312 # First remove it from the list of overridden variables, so we can test 18313 # for unknown variables in the end. 18314 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18315 18316 # Check if the provided tool contains a complete path. 18317 tool_specified="$OTOOL" 18318 tool_basename="${tool_specified##*/}" 18319 if test "x$tool_basename" = "x$tool_specified"; then 18320 # A command without a complete path is provided, search $PATH. 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18322 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18323 # Extract the first word of "$tool_basename", so it can be a program name with args. 18324 set dummy $tool_basename; ac_word=$2 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18326 $as_echo_n "checking for $ac_word... " >&6; } 18327 if ${ac_cv_path_OTOOL+:} false; then : 18328 $as_echo_n "(cached) " >&6 18329 else 18330 case $OTOOL in 18331 [\\/]* | ?:[\\/]*) 18332 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18333 ;; 18334 *) 18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18336 for as_dir in $PATH 18337 do 18338 IFS=$as_save_IFS 18339 test -z "$as_dir" && as_dir=. 18340 for ac_exec_ext in '' $ac_executable_extensions; do 18341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18342 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18344 break 2 18345 fi 18346 done 18347 done 18348 IFS=$as_save_IFS 18349 18350 ;; 18351 esac 18352 fi 18353 OTOOL=$ac_cv_path_OTOOL 18354 if test -n "$OTOOL"; then 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18356 $as_echo "$OTOOL" >&6; } 18357 else 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18359 $as_echo "no" >&6; } 18360 fi 18361 18362 18363 if test "x$OTOOL" = x; then 18364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18365 fi 18366 else 18367 # Otherwise we believe it is a complete path. Use it as it is. 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18369 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18371 $as_echo_n "checking for OTOOL... " >&6; } 18372 if test ! -x "$tool_specified"; then 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18374 $as_echo "not found" >&6; } 18375 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18376 fi 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18378 $as_echo "$tool_specified" >&6; } 18379 fi 18380 fi 18381 fi 18382 18383 18384 if test "x$OTOOL" = "x"; then 18385 OTOOL="true" 18386 fi 18387 18388 18389 # Publish this variable in the help. 18390 18391 18392 if test "x$READELF" = x; then 18393 # The variable is not set by user, try to locate tool using the code snippet 18394 for ac_prog in greadelf readelf 18395 do 18396 # Extract the first word of "$ac_prog", so it can be a program name with args. 18397 set dummy $ac_prog; ac_word=$2 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18399 $as_echo_n "checking for $ac_word... " >&6; } 18400 if ${ac_cv_path_READELF+:} false; then : 18401 $as_echo_n "(cached) " >&6 18402 else 18403 case $READELF in 18404 [\\/]* | ?:[\\/]*) 18405 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18406 ;; 18407 *) 18408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18409 for as_dir in $PATH 18410 do 18411 IFS=$as_save_IFS 18412 test -z "$as_dir" && as_dir=. 18413 for ac_exec_ext in '' $ac_executable_extensions; do 18414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18415 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18417 break 2 18418 fi 18419 done 18420 done 18421 IFS=$as_save_IFS 18422 18423 ;; 18424 esac 18425 fi 18426 READELF=$ac_cv_path_READELF 18427 if test -n "$READELF"; then 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18429 $as_echo "$READELF" >&6; } 18430 else 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18432 $as_echo "no" >&6; } 18433 fi 18434 18435 18436 test -n "$READELF" && break 18437 done 18438 18439 else 18440 # The variable is set, but is it from the command line or the environment? 18441 18442 # Try to remove the string !READELF! from our list. 18443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18445 # If it failed, the variable was not from the command line. Ignore it, 18446 # but warn the user (except for BASH, which is always set by the calling BASH). 18447 if test "xREADELF" != xBASH; then 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18449 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18450 fi 18451 # Try to locate tool using the code snippet 18452 for ac_prog in greadelf readelf 18453 do 18454 # Extract the first word of "$ac_prog", so it can be a program name with args. 18455 set dummy $ac_prog; ac_word=$2 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18457 $as_echo_n "checking for $ac_word... " >&6; } 18458 if ${ac_cv_path_READELF+:} false; then : 18459 $as_echo_n "(cached) " >&6 18460 else 18461 case $READELF in 18462 [\\/]* | ?:[\\/]*) 18463 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18464 ;; 18465 *) 18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18467 for as_dir in $PATH 18468 do 18469 IFS=$as_save_IFS 18470 test -z "$as_dir" && as_dir=. 18471 for ac_exec_ext in '' $ac_executable_extensions; do 18472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18473 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18475 break 2 18476 fi 18477 done 18478 done 18479 IFS=$as_save_IFS 18480 18481 ;; 18482 esac 18483 fi 18484 READELF=$ac_cv_path_READELF 18485 if test -n "$READELF"; then 18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18487 $as_echo "$READELF" >&6; } 18488 else 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18490 $as_echo "no" >&6; } 18491 fi 18492 18493 18494 test -n "$READELF" && break 18495 done 18496 18497 else 18498 # If it succeeded, then it was overridden by the user. We will use it 18499 # for the tool. 18500 18501 # First remove it from the list of overridden variables, so we can test 18502 # for unknown variables in the end. 18503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18504 18505 # Check if the provided tool contains a complete path. 18506 tool_specified="$READELF" 18507 tool_basename="${tool_specified##*/}" 18508 if test "x$tool_basename" = "x$tool_specified"; then 18509 # A command without a complete path is provided, search $PATH. 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18511 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18512 # Extract the first word of "$tool_basename", so it can be a program name with args. 18513 set dummy $tool_basename; ac_word=$2 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18515 $as_echo_n "checking for $ac_word... " >&6; } 18516 if ${ac_cv_path_READELF+:} false; then : 18517 $as_echo_n "(cached) " >&6 18518 else 18519 case $READELF in 18520 [\\/]* | ?:[\\/]*) 18521 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18522 ;; 18523 *) 18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18525 for as_dir in $PATH 18526 do 18527 IFS=$as_save_IFS 18528 test -z "$as_dir" && as_dir=. 18529 for ac_exec_ext in '' $ac_executable_extensions; do 18530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18531 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18533 break 2 18534 fi 18535 done 18536 done 18537 IFS=$as_save_IFS 18538 18539 ;; 18540 esac 18541 fi 18542 READELF=$ac_cv_path_READELF 18543 if test -n "$READELF"; then 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18545 $as_echo "$READELF" >&6; } 18546 else 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18548 $as_echo "no" >&6; } 18549 fi 18550 18551 18552 if test "x$READELF" = x; then 18553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18554 fi 18555 else 18556 # Otherwise we believe it is a complete path. Use it as it is. 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18558 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18560 $as_echo_n "checking for READELF... " >&6; } 18561 if test ! -x "$tool_specified"; then 18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18563 $as_echo "not found" >&6; } 18564 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18565 fi 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18567 $as_echo "$tool_specified" >&6; } 18568 fi 18569 fi 18570 fi 18571 18572 18573 18574 18575 # Publish this variable in the help. 18576 18577 18578 if test "x$HG" = x; then 18579 # The variable is not set by user, try to locate tool using the code snippet 18580 for ac_prog in hg 18581 do 18582 # Extract the first word of "$ac_prog", so it can be a program name with args. 18583 set dummy $ac_prog; ac_word=$2 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18585 $as_echo_n "checking for $ac_word... " >&6; } 18586 if ${ac_cv_path_HG+:} false; then : 18587 $as_echo_n "(cached) " >&6 18588 else 18589 case $HG in 18590 [\\/]* | ?:[\\/]*) 18591 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18592 ;; 18593 *) 18594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18595 for as_dir in $PATH 18596 do 18597 IFS=$as_save_IFS 18598 test -z "$as_dir" && as_dir=. 18599 for ac_exec_ext in '' $ac_executable_extensions; do 18600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18601 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18603 break 2 18604 fi 18605 done 18606 done 18607 IFS=$as_save_IFS 18608 18609 ;; 18610 esac 18611 fi 18612 HG=$ac_cv_path_HG 18613 if test -n "$HG"; then 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18615 $as_echo "$HG" >&6; } 18616 else 18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18618 $as_echo "no" >&6; } 18619 fi 18620 18621 18622 test -n "$HG" && break 18623 done 18624 18625 else 18626 # The variable is set, but is it from the command line or the environment? 18627 18628 # Try to remove the string !HG! from our list. 18629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18631 # If it failed, the variable was not from the command line. Ignore it, 18632 # but warn the user (except for BASH, which is always set by the calling BASH). 18633 if test "xHG" != xBASH; then 18634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18635 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18636 fi 18637 # Try to locate tool using the code snippet 18638 for ac_prog in hg 18639 do 18640 # Extract the first word of "$ac_prog", so it can be a program name with args. 18641 set dummy $ac_prog; ac_word=$2 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18643 $as_echo_n "checking for $ac_word... " >&6; } 18644 if ${ac_cv_path_HG+:} false; then : 18645 $as_echo_n "(cached) " >&6 18646 else 18647 case $HG in 18648 [\\/]* | ?:[\\/]*) 18649 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18650 ;; 18651 *) 18652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18653 for as_dir in $PATH 18654 do 18655 IFS=$as_save_IFS 18656 test -z "$as_dir" && as_dir=. 18657 for ac_exec_ext in '' $ac_executable_extensions; do 18658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18659 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18661 break 2 18662 fi 18663 done 18664 done 18665 IFS=$as_save_IFS 18666 18667 ;; 18668 esac 18669 fi 18670 HG=$ac_cv_path_HG 18671 if test -n "$HG"; then 18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18673 $as_echo "$HG" >&6; } 18674 else 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18676 $as_echo "no" >&6; } 18677 fi 18678 18679 18680 test -n "$HG" && break 18681 done 18682 18683 else 18684 # If it succeeded, then it was overridden by the user. We will use it 18685 # for the tool. 18686 18687 # First remove it from the list of overridden variables, so we can test 18688 # for unknown variables in the end. 18689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18690 18691 # Check if the provided tool contains a complete path. 18692 tool_specified="$HG" 18693 tool_basename="${tool_specified##*/}" 18694 if test "x$tool_basename" = "x$tool_specified"; then 18695 # A command without a complete path is provided, search $PATH. 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18697 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18698 # Extract the first word of "$tool_basename", so it can be a program name with args. 18699 set dummy $tool_basename; ac_word=$2 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18701 $as_echo_n "checking for $ac_word... " >&6; } 18702 if ${ac_cv_path_HG+:} false; then : 18703 $as_echo_n "(cached) " >&6 18704 else 18705 case $HG in 18706 [\\/]* | ?:[\\/]*) 18707 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18708 ;; 18709 *) 18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18711 for as_dir in $PATH 18712 do 18713 IFS=$as_save_IFS 18714 test -z "$as_dir" && as_dir=. 18715 for ac_exec_ext in '' $ac_executable_extensions; do 18716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18717 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18719 break 2 18720 fi 18721 done 18722 done 18723 IFS=$as_save_IFS 18724 18725 ;; 18726 esac 18727 fi 18728 HG=$ac_cv_path_HG 18729 if test -n "$HG"; then 18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18731 $as_echo "$HG" >&6; } 18732 else 18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18734 $as_echo "no" >&6; } 18735 fi 18736 18737 18738 if test "x$HG" = x; then 18739 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18740 fi 18741 else 18742 # Otherwise we believe it is a complete path. Use it as it is. 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18744 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18746 $as_echo_n "checking for HG... " >&6; } 18747 if test ! -x "$tool_specified"; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18749 $as_echo "not found" >&6; } 18750 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18751 fi 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18753 $as_echo "$tool_specified" >&6; } 18754 fi 18755 fi 18756 fi 18757 18758 18759 18760 18761 # Publish this variable in the help. 18762 18763 18764 if test "x$STAT" = x; then 18765 # The variable is not set by user, try to locate tool using the code snippet 18766 for ac_prog in stat 18767 do 18768 # Extract the first word of "$ac_prog", so it can be a program name with args. 18769 set dummy $ac_prog; ac_word=$2 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18771 $as_echo_n "checking for $ac_word... " >&6; } 18772 if ${ac_cv_path_STAT+:} false; then : 18773 $as_echo_n "(cached) " >&6 18774 else 18775 case $STAT in 18776 [\\/]* | ?:[\\/]*) 18777 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18778 ;; 18779 *) 18780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18781 for as_dir in $PATH 18782 do 18783 IFS=$as_save_IFS 18784 test -z "$as_dir" && as_dir=. 18785 for ac_exec_ext in '' $ac_executable_extensions; do 18786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18787 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18789 break 2 18790 fi 18791 done 18792 done 18793 IFS=$as_save_IFS 18794 18795 ;; 18796 esac 18797 fi 18798 STAT=$ac_cv_path_STAT 18799 if test -n "$STAT"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18801 $as_echo "$STAT" >&6; } 18802 else 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18804 $as_echo "no" >&6; } 18805 fi 18806 18807 18808 test -n "$STAT" && break 18809 done 18810 18811 else 18812 # The variable is set, but is it from the command line or the environment? 18813 18814 # Try to remove the string !STAT! from our list. 18815 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18816 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18817 # If it failed, the variable was not from the command line. Ignore it, 18818 # but warn the user (except for BASH, which is always set by the calling BASH). 18819 if test "xSTAT" != xBASH; then 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18821 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18822 fi 18823 # Try to locate tool using the code snippet 18824 for ac_prog in stat 18825 do 18826 # Extract the first word of "$ac_prog", so it can be a program name with args. 18827 set dummy $ac_prog; ac_word=$2 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18829 $as_echo_n "checking for $ac_word... " >&6; } 18830 if ${ac_cv_path_STAT+:} false; then : 18831 $as_echo_n "(cached) " >&6 18832 else 18833 case $STAT in 18834 [\\/]* | ?:[\\/]*) 18835 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18836 ;; 18837 *) 18838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18839 for as_dir in $PATH 18840 do 18841 IFS=$as_save_IFS 18842 test -z "$as_dir" && as_dir=. 18843 for ac_exec_ext in '' $ac_executable_extensions; do 18844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18845 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18847 break 2 18848 fi 18849 done 18850 done 18851 IFS=$as_save_IFS 18852 18853 ;; 18854 esac 18855 fi 18856 STAT=$ac_cv_path_STAT 18857 if test -n "$STAT"; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18859 $as_echo "$STAT" >&6; } 18860 else 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18862 $as_echo "no" >&6; } 18863 fi 18864 18865 18866 test -n "$STAT" && break 18867 done 18868 18869 else 18870 # If it succeeded, then it was overridden by the user. We will use it 18871 # for the tool. 18872 18873 # First remove it from the list of overridden variables, so we can test 18874 # for unknown variables in the end. 18875 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18876 18877 # Check if the provided tool contains a complete path. 18878 tool_specified="$STAT" 18879 tool_basename="${tool_specified##*/}" 18880 if test "x$tool_basename" = "x$tool_specified"; then 18881 # A command without a complete path is provided, search $PATH. 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18883 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18884 # Extract the first word of "$tool_basename", so it can be a program name with args. 18885 set dummy $tool_basename; ac_word=$2 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18887 $as_echo_n "checking for $ac_word... " >&6; } 18888 if ${ac_cv_path_STAT+:} false; then : 18889 $as_echo_n "(cached) " >&6 18890 else 18891 case $STAT in 18892 [\\/]* | ?:[\\/]*) 18893 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18894 ;; 18895 *) 18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18897 for as_dir in $PATH 18898 do 18899 IFS=$as_save_IFS 18900 test -z "$as_dir" && as_dir=. 18901 for ac_exec_ext in '' $ac_executable_extensions; do 18902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18903 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18905 break 2 18906 fi 18907 done 18908 done 18909 IFS=$as_save_IFS 18910 18911 ;; 18912 esac 18913 fi 18914 STAT=$ac_cv_path_STAT 18915 if test -n "$STAT"; then 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18917 $as_echo "$STAT" >&6; } 18918 else 18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18920 $as_echo "no" >&6; } 18921 fi 18922 18923 18924 if test "x$STAT" = x; then 18925 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18926 fi 18927 else 18928 # Otherwise we believe it is a complete path. Use it as it is. 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18930 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18932 $as_echo_n "checking for STAT... " >&6; } 18933 if test ! -x "$tool_specified"; then 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18935 $as_echo "not found" >&6; } 18936 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18937 fi 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18939 $as_echo "$tool_specified" >&6; } 18940 fi 18941 fi 18942 fi 18943 18944 18945 18946 18947 # Publish this variable in the help. 18948 18949 18950 if test "x$TIME" = x; then 18951 # The variable is not set by user, try to locate tool using the code snippet 18952 for ac_prog in time 18953 do 18954 # Extract the first word of "$ac_prog", so it can be a program name with args. 18955 set dummy $ac_prog; ac_word=$2 18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18957 $as_echo_n "checking for $ac_word... " >&6; } 18958 if ${ac_cv_path_TIME+:} false; then : 18959 $as_echo_n "(cached) " >&6 18960 else 18961 case $TIME in 18962 [\\/]* | ?:[\\/]*) 18963 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18964 ;; 18965 *) 18966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18967 for as_dir in $PATH 18968 do 18969 IFS=$as_save_IFS 18970 test -z "$as_dir" && as_dir=. 18971 for ac_exec_ext in '' $ac_executable_extensions; do 18972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18973 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18975 break 2 18976 fi 18977 done 18978 done 18979 IFS=$as_save_IFS 18980 18981 ;; 18982 esac 18983 fi 18984 TIME=$ac_cv_path_TIME 18985 if test -n "$TIME"; then 18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18987 $as_echo "$TIME" >&6; } 18988 else 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18990 $as_echo "no" >&6; } 18991 fi 18992 18993 18994 test -n "$TIME" && break 18995 done 18996 18997 else 18998 # The variable is set, but is it from the command line or the environment? 18999 19000 # Try to remove the string !TIME! from our list. 19001 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 19002 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19003 # If it failed, the variable was not from the command line. Ignore it, 19004 # but warn the user (except for BASH, which is always set by the calling BASH). 19005 if test "xTIME" != xBASH; then 19006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 19007 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 19008 fi 19009 # Try to locate tool using the code snippet 19010 for ac_prog in time 19011 do 19012 # Extract the first word of "$ac_prog", so it can be a program name with args. 19013 set dummy $ac_prog; ac_word=$2 19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19015 $as_echo_n "checking for $ac_word... " >&6; } 19016 if ${ac_cv_path_TIME+:} false; then : 19017 $as_echo_n "(cached) " >&6 19018 else 19019 case $TIME in 19020 [\\/]* | ?:[\\/]*) 19021 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 19022 ;; 19023 *) 19024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19025 for as_dir in $PATH 19026 do 19027 IFS=$as_save_IFS 19028 test -z "$as_dir" && as_dir=. 19029 for ac_exec_ext in '' $ac_executable_extensions; do 19030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19031 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 19032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19033 break 2 19034 fi 19035 done 19036 done 19037 IFS=$as_save_IFS 19038 19039 ;; 19040 esac 19041 fi 19042 TIME=$ac_cv_path_TIME 19043 if test -n "$TIME"; then 19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 19045 $as_echo "$TIME" >&6; } 19046 else 19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19048 $as_echo "no" >&6; } 19049 fi 19050 19051 19052 test -n "$TIME" && break 19053 done 19054 19055 else 19056 # If it succeeded, then it was overridden by the user. We will use it 19057 # for the tool. 19058 19059 # First remove it from the list of overridden variables, so we can test 19060 # for unknown variables in the end. 19061 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19062 19063 # Check if the provided tool contains a complete path. 19064 tool_specified="$TIME" 19065 tool_basename="${tool_specified##*/}" 19066 if test "x$tool_basename" = "x$tool_specified"; then 19067 # A command without a complete path is provided, search $PATH. 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 19069 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 19070 # Extract the first word of "$tool_basename", so it can be a program name with args. 19071 set dummy $tool_basename; ac_word=$2 19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19073 $as_echo_n "checking for $ac_word... " >&6; } 19074 if ${ac_cv_path_TIME+:} false; then : 19075 $as_echo_n "(cached) " >&6 19076 else 19077 case $TIME in 19078 [\\/]* | ?:[\\/]*) 19079 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 19080 ;; 19081 *) 19082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19083 for as_dir in $PATH 19084 do 19085 IFS=$as_save_IFS 19086 test -z "$as_dir" && as_dir=. 19087 for ac_exec_ext in '' $ac_executable_extensions; do 19088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19089 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 19090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19091 break 2 19092 fi 19093 done 19094 done 19095 IFS=$as_save_IFS 19096 19097 ;; 19098 esac 19099 fi 19100 TIME=$ac_cv_path_TIME 19101 if test -n "$TIME"; then 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 19103 $as_echo "$TIME" >&6; } 19104 else 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19106 $as_echo "no" >&6; } 19107 fi 19108 19109 19110 if test "x$TIME" = x; then 19111 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19112 fi 19113 else 19114 # Otherwise we believe it is a complete path. Use it as it is. 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 19116 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 19118 $as_echo_n "checking for TIME... " >&6; } 19119 if test ! -x "$tool_specified"; then 19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19121 $as_echo "not found" >&6; } 19122 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 19123 fi 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19125 $as_echo "$tool_specified" >&6; } 19126 fi 19127 fi 19128 fi 19129 19130 19131 # Check if it's GNU time 19132 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 19133 if test "x$IS_GNU_TIME" != x; then 19134 IS_GNU_TIME=yes 19135 else 19136 IS_GNU_TIME=no 19137 fi 19138 19139 19140 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19141 19142 19143 19144 # Publish this variable in the help. 19145 19146 19147 if test "x$DSYMUTIL" = x; then 19148 # The variable is not set by user, try to locate tool using the code snippet 19149 for ac_prog in dsymutil 19150 do 19151 # Extract the first word of "$ac_prog", so it can be a program name with args. 19152 set dummy $ac_prog; ac_word=$2 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19154 $as_echo_n "checking for $ac_word... " >&6; } 19155 if ${ac_cv_path_DSYMUTIL+:} false; then : 19156 $as_echo_n "(cached) " >&6 19157 else 19158 case $DSYMUTIL in 19159 [\\/]* | ?:[\\/]*) 19160 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19161 ;; 19162 *) 19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19164 for as_dir in $PATH 19165 do 19166 IFS=$as_save_IFS 19167 test -z "$as_dir" && as_dir=. 19168 for ac_exec_ext in '' $ac_executable_extensions; do 19169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19170 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19172 break 2 19173 fi 19174 done 19175 done 19176 IFS=$as_save_IFS 19177 19178 ;; 19179 esac 19180 fi 19181 DSYMUTIL=$ac_cv_path_DSYMUTIL 19182 if test -n "$DSYMUTIL"; then 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19184 $as_echo "$DSYMUTIL" >&6; } 19185 else 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19187 $as_echo "no" >&6; } 19188 fi 19189 19190 19191 test -n "$DSYMUTIL" && break 19192 done 19193 19194 else 19195 # The variable is set, but is it from the command line or the environment? 19196 19197 # Try to remove the string !DSYMUTIL! from our list. 19198 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19199 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19200 # If it failed, the variable was not from the command line. Ignore it, 19201 # but warn the user (except for BASH, which is always set by the calling BASH). 19202 if test "xDSYMUTIL" != xBASH; then 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19204 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19205 fi 19206 # Try to locate tool using the code snippet 19207 for ac_prog in dsymutil 19208 do 19209 # Extract the first word of "$ac_prog", so it can be a program name with args. 19210 set dummy $ac_prog; ac_word=$2 19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19212 $as_echo_n "checking for $ac_word... " >&6; } 19213 if ${ac_cv_path_DSYMUTIL+:} false; then : 19214 $as_echo_n "(cached) " >&6 19215 else 19216 case $DSYMUTIL in 19217 [\\/]* | ?:[\\/]*) 19218 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19219 ;; 19220 *) 19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19222 for as_dir in $PATH 19223 do 19224 IFS=$as_save_IFS 19225 test -z "$as_dir" && as_dir=. 19226 for ac_exec_ext in '' $ac_executable_extensions; do 19227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19228 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19230 break 2 19231 fi 19232 done 19233 done 19234 IFS=$as_save_IFS 19235 19236 ;; 19237 esac 19238 fi 19239 DSYMUTIL=$ac_cv_path_DSYMUTIL 19240 if test -n "$DSYMUTIL"; then 19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19242 $as_echo "$DSYMUTIL" >&6; } 19243 else 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19245 $as_echo "no" >&6; } 19246 fi 19247 19248 19249 test -n "$DSYMUTIL" && break 19250 done 19251 19252 else 19253 # If it succeeded, then it was overridden by the user. We will use it 19254 # for the tool. 19255 19256 # First remove it from the list of overridden variables, so we can test 19257 # for unknown variables in the end. 19258 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19259 19260 # Check if the provided tool contains a complete path. 19261 tool_specified="$DSYMUTIL" 19262 tool_basename="${tool_specified##*/}" 19263 if test "x$tool_basename" = "x$tool_specified"; then 19264 # A command without a complete path is provided, search $PATH. 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19266 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19267 # Extract the first word of "$tool_basename", so it can be a program name with args. 19268 set dummy $tool_basename; ac_word=$2 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19270 $as_echo_n "checking for $ac_word... " >&6; } 19271 if ${ac_cv_path_DSYMUTIL+:} false; then : 19272 $as_echo_n "(cached) " >&6 19273 else 19274 case $DSYMUTIL in 19275 [\\/]* | ?:[\\/]*) 19276 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19277 ;; 19278 *) 19279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19280 for as_dir in $PATH 19281 do 19282 IFS=$as_save_IFS 19283 test -z "$as_dir" && as_dir=. 19284 for ac_exec_ext in '' $ac_executable_extensions; do 19285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19286 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19288 break 2 19289 fi 19290 done 19291 done 19292 IFS=$as_save_IFS 19293 19294 ;; 19295 esac 19296 fi 19297 DSYMUTIL=$ac_cv_path_DSYMUTIL 19298 if test -n "$DSYMUTIL"; then 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19300 $as_echo "$DSYMUTIL" >&6; } 19301 else 19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19303 $as_echo "no" >&6; } 19304 fi 19305 19306 19307 if test "x$DSYMUTIL" = x; then 19308 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19309 fi 19310 else 19311 # Otherwise we believe it is a complete path. Use it as it is. 19312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19313 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19315 $as_echo_n "checking for DSYMUTIL... " >&6; } 19316 if test ! -x "$tool_specified"; then 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19318 $as_echo "not found" >&6; } 19319 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19320 fi 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19322 $as_echo "$tool_specified" >&6; } 19323 fi 19324 fi 19325 fi 19326 19327 19328 19329 if test "x$DSYMUTIL" = x; then 19330 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19331 fi 19332 19333 19334 19335 19336 19337 # Publish this variable in the help. 19338 19339 19340 if test "x$XATTR" = x; then 19341 # The variable is not set by user, try to locate tool using the code snippet 19342 for ac_prog in xattr 19343 do 19344 # Extract the first word of "$ac_prog", so it can be a program name with args. 19345 set dummy $ac_prog; ac_word=$2 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19347 $as_echo_n "checking for $ac_word... " >&6; } 19348 if ${ac_cv_path_XATTR+:} false; then : 19349 $as_echo_n "(cached) " >&6 19350 else 19351 case $XATTR in 19352 [\\/]* | ?:[\\/]*) 19353 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19354 ;; 19355 *) 19356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19357 for as_dir in $PATH 19358 do 19359 IFS=$as_save_IFS 19360 test -z "$as_dir" && as_dir=. 19361 for ac_exec_ext in '' $ac_executable_extensions; do 19362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19363 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19365 break 2 19366 fi 19367 done 19368 done 19369 IFS=$as_save_IFS 19370 19371 ;; 19372 esac 19373 fi 19374 XATTR=$ac_cv_path_XATTR 19375 if test -n "$XATTR"; then 19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19377 $as_echo "$XATTR" >&6; } 19378 else 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19380 $as_echo "no" >&6; } 19381 fi 19382 19383 19384 test -n "$XATTR" && break 19385 done 19386 19387 else 19388 # The variable is set, but is it from the command line or the environment? 19389 19390 # Try to remove the string !XATTR! from our list. 19391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19393 # If it failed, the variable was not from the command line. Ignore it, 19394 # but warn the user (except for BASH, which is always set by the calling BASH). 19395 if test "xXATTR" != xBASH; then 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19397 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19398 fi 19399 # Try to locate tool using the code snippet 19400 for ac_prog in xattr 19401 do 19402 # Extract the first word of "$ac_prog", so it can be a program name with args. 19403 set dummy $ac_prog; ac_word=$2 19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19405 $as_echo_n "checking for $ac_word... " >&6; } 19406 if ${ac_cv_path_XATTR+:} false; then : 19407 $as_echo_n "(cached) " >&6 19408 else 19409 case $XATTR in 19410 [\\/]* | ?:[\\/]*) 19411 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19412 ;; 19413 *) 19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19415 for as_dir in $PATH 19416 do 19417 IFS=$as_save_IFS 19418 test -z "$as_dir" && as_dir=. 19419 for ac_exec_ext in '' $ac_executable_extensions; do 19420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19421 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19423 break 2 19424 fi 19425 done 19426 done 19427 IFS=$as_save_IFS 19428 19429 ;; 19430 esac 19431 fi 19432 XATTR=$ac_cv_path_XATTR 19433 if test -n "$XATTR"; then 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19435 $as_echo "$XATTR" >&6; } 19436 else 19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19438 $as_echo "no" >&6; } 19439 fi 19440 19441 19442 test -n "$XATTR" && break 19443 done 19444 19445 else 19446 # If it succeeded, then it was overridden by the user. We will use it 19447 # for the tool. 19448 19449 # First remove it from the list of overridden variables, so we can test 19450 # for unknown variables in the end. 19451 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19452 19453 # Check if the provided tool contains a complete path. 19454 tool_specified="$XATTR" 19455 tool_basename="${tool_specified##*/}" 19456 if test "x$tool_basename" = "x$tool_specified"; then 19457 # A command without a complete path is provided, search $PATH. 19458 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19459 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19460 # Extract the first word of "$tool_basename", so it can be a program name with args. 19461 set dummy $tool_basename; ac_word=$2 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19463 $as_echo_n "checking for $ac_word... " >&6; } 19464 if ${ac_cv_path_XATTR+:} false; then : 19465 $as_echo_n "(cached) " >&6 19466 else 19467 case $XATTR in 19468 [\\/]* | ?:[\\/]*) 19469 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19470 ;; 19471 *) 19472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19473 for as_dir in $PATH 19474 do 19475 IFS=$as_save_IFS 19476 test -z "$as_dir" && as_dir=. 19477 for ac_exec_ext in '' $ac_executable_extensions; do 19478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19479 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19481 break 2 19482 fi 19483 done 19484 done 19485 IFS=$as_save_IFS 19486 19487 ;; 19488 esac 19489 fi 19490 XATTR=$ac_cv_path_XATTR 19491 if test -n "$XATTR"; then 19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19493 $as_echo "$XATTR" >&6; } 19494 else 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19496 $as_echo "no" >&6; } 19497 fi 19498 19499 19500 if test "x$XATTR" = x; then 19501 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19502 fi 19503 else 19504 # Otherwise we believe it is a complete path. Use it as it is. 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19506 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19508 $as_echo_n "checking for XATTR... " >&6; } 19509 if test ! -x "$tool_specified"; then 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19511 $as_echo "not found" >&6; } 19512 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19513 fi 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19515 $as_echo "$tool_specified" >&6; } 19516 fi 19517 fi 19518 fi 19519 19520 19521 19522 if test "x$XATTR" = x; then 19523 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19524 fi 19525 19526 19527 19528 19529 # Publish this variable in the help. 19530 19531 19532 if test "x$CODESIGN" = x; then 19533 # The variable is not set by user, try to locate tool using the code snippet 19534 for ac_prog in codesign 19535 do 19536 # Extract the first word of "$ac_prog", so it can be a program name with args. 19537 set dummy $ac_prog; ac_word=$2 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19539 $as_echo_n "checking for $ac_word... " >&6; } 19540 if ${ac_cv_path_CODESIGN+:} false; then : 19541 $as_echo_n "(cached) " >&6 19542 else 19543 case $CODESIGN in 19544 [\\/]* | ?:[\\/]*) 19545 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19546 ;; 19547 *) 19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19549 for as_dir in $PATH 19550 do 19551 IFS=$as_save_IFS 19552 test -z "$as_dir" && as_dir=. 19553 for ac_exec_ext in '' $ac_executable_extensions; do 19554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19555 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19557 break 2 19558 fi 19559 done 19560 done 19561 IFS=$as_save_IFS 19562 19563 ;; 19564 esac 19565 fi 19566 CODESIGN=$ac_cv_path_CODESIGN 19567 if test -n "$CODESIGN"; then 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19569 $as_echo "$CODESIGN" >&6; } 19570 else 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19572 $as_echo "no" >&6; } 19573 fi 19574 19575 19576 test -n "$CODESIGN" && break 19577 done 19578 19579 else 19580 # The variable is set, but is it from the command line or the environment? 19581 19582 # Try to remove the string !CODESIGN! from our list. 19583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19585 # If it failed, the variable was not from the command line. Ignore it, 19586 # but warn the user (except for BASH, which is always set by the calling BASH). 19587 if test "xCODESIGN" != xBASH; then 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19589 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19590 fi 19591 # Try to locate tool using the code snippet 19592 for ac_prog in codesign 19593 do 19594 # Extract the first word of "$ac_prog", so it can be a program name with args. 19595 set dummy $ac_prog; ac_word=$2 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19597 $as_echo_n "checking for $ac_word... " >&6; } 19598 if ${ac_cv_path_CODESIGN+:} false; then : 19599 $as_echo_n "(cached) " >&6 19600 else 19601 case $CODESIGN in 19602 [\\/]* | ?:[\\/]*) 19603 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19604 ;; 19605 *) 19606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19607 for as_dir in $PATH 19608 do 19609 IFS=$as_save_IFS 19610 test -z "$as_dir" && as_dir=. 19611 for ac_exec_ext in '' $ac_executable_extensions; do 19612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19613 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19615 break 2 19616 fi 19617 done 19618 done 19619 IFS=$as_save_IFS 19620 19621 ;; 19622 esac 19623 fi 19624 CODESIGN=$ac_cv_path_CODESIGN 19625 if test -n "$CODESIGN"; then 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19627 $as_echo "$CODESIGN" >&6; } 19628 else 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19630 $as_echo "no" >&6; } 19631 fi 19632 19633 19634 test -n "$CODESIGN" && break 19635 done 19636 19637 else 19638 # If it succeeded, then it was overridden by the user. We will use it 19639 # for the tool. 19640 19641 # First remove it from the list of overridden variables, so we can test 19642 # for unknown variables in the end. 19643 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19644 19645 # Check if the provided tool contains a complete path. 19646 tool_specified="$CODESIGN" 19647 tool_basename="${tool_specified##*/}" 19648 if test "x$tool_basename" = "x$tool_specified"; then 19649 # A command without a complete path is provided, search $PATH. 19650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19651 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19652 # Extract the first word of "$tool_basename", so it can be a program name with args. 19653 set dummy $tool_basename; ac_word=$2 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19655 $as_echo_n "checking for $ac_word... " >&6; } 19656 if ${ac_cv_path_CODESIGN+:} false; then : 19657 $as_echo_n "(cached) " >&6 19658 else 19659 case $CODESIGN in 19660 [\\/]* | ?:[\\/]*) 19661 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19662 ;; 19663 *) 19664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19665 for as_dir in $PATH 19666 do 19667 IFS=$as_save_IFS 19668 test -z "$as_dir" && as_dir=. 19669 for ac_exec_ext in '' $ac_executable_extensions; do 19670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19671 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19673 break 2 19674 fi 19675 done 19676 done 19677 IFS=$as_save_IFS 19678 19679 ;; 19680 esac 19681 fi 19682 CODESIGN=$ac_cv_path_CODESIGN 19683 if test -n "$CODESIGN"; then 19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19685 $as_echo "$CODESIGN" >&6; } 19686 else 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19688 $as_echo "no" >&6; } 19689 fi 19690 19691 19692 if test "x$CODESIGN" = x; then 19693 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19694 fi 19695 else 19696 # Otherwise we believe it is a complete path. Use it as it is. 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19698 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19700 $as_echo_n "checking for CODESIGN... " >&6; } 19701 if test ! -x "$tool_specified"; then 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19703 $as_echo "not found" >&6; } 19704 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19705 fi 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19707 $as_echo "$tool_specified" >&6; } 19708 fi 19709 fi 19710 fi 19711 19712 19713 if test "x$CODESIGN" != "x"; then 19714 # Verify that the openjdk_codesign certificate is present 19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19716 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19717 rm -f codesign-testfile 19718 touch codesign-testfile 19719 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19720 rm -f codesign-testfile 19721 if test "x$CODESIGN" = x; then 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19723 $as_echo "no" >&6; } 19724 else 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19726 $as_echo "yes" >&6; } 19727 fi 19728 fi 19729 fi 19730 19731 19732 # Test if bash supports pipefail. 19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 19734 $as_echo_n "checking if bash supports pipefail... " >&6; } 19735 if ${BASH} -c 'set -o pipefail'; then 19736 BASH_ARGS="$BASH_ARGS -o pipefail" 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19738 $as_echo "yes" >&6; } 19739 else 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19741 $as_echo "no" >&6; } 19742 fi 19743 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 19745 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 19746 if ${BASH} -e -c 'true'; then 19747 BASH_ARGS="$BASH_ARGS -e" 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19749 $as_echo "yes" >&6; } 19750 else 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19752 $as_echo "no" >&6; } 19753 fi 19754 19755 19756 19757 19758 # Check if pkg-config is available. 19759 19760 19761 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19762 if test -n "$ac_tool_prefix"; then 19763 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19764 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19766 $as_echo_n "checking for $ac_word... " >&6; } 19767 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19768 $as_echo_n "(cached) " >&6 19769 else 19770 case $PKG_CONFIG in 19771 [\\/]* | ?:[\\/]*) 19772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19773 ;; 19774 *) 19775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19776 for as_dir in $PATH 19777 do 19778 IFS=$as_save_IFS 19779 test -z "$as_dir" && as_dir=. 19780 for ac_exec_ext in '' $ac_executable_extensions; do 19781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19784 break 2 19785 fi 19786 done 19787 done 19788 IFS=$as_save_IFS 19789 19790 ;; 19791 esac 19792 fi 19793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19794 if test -n "$PKG_CONFIG"; then 19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19796 $as_echo "$PKG_CONFIG" >&6; } 19797 else 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19799 $as_echo "no" >&6; } 19800 fi 19801 19802 19803 fi 19804 if test -z "$ac_cv_path_PKG_CONFIG"; then 19805 ac_pt_PKG_CONFIG=$PKG_CONFIG 19806 # Extract the first word of "pkg-config", so it can be a program name with args. 19807 set dummy pkg-config; ac_word=$2 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19809 $as_echo_n "checking for $ac_word... " >&6; } 19810 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19811 $as_echo_n "(cached) " >&6 19812 else 19813 case $ac_pt_PKG_CONFIG in 19814 [\\/]* | ?:[\\/]*) 19815 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19816 ;; 19817 *) 19818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19819 for as_dir in $PATH 19820 do 19821 IFS=$as_save_IFS 19822 test -z "$as_dir" && as_dir=. 19823 for ac_exec_ext in '' $ac_executable_extensions; do 19824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19825 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19827 break 2 19828 fi 19829 done 19830 done 19831 IFS=$as_save_IFS 19832 19833 ;; 19834 esac 19835 fi 19836 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19837 if test -n "$ac_pt_PKG_CONFIG"; then 19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19839 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19840 else 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19842 $as_echo "no" >&6; } 19843 fi 19844 19845 if test "x$ac_pt_PKG_CONFIG" = x; then 19846 PKG_CONFIG="" 19847 else 19848 case $cross_compiling:$ac_tool_warned in 19849 yes:) 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19852 ac_tool_warned=yes ;; 19853 esac 19854 PKG_CONFIG=$ac_pt_PKG_CONFIG 19855 fi 19856 else 19857 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19858 fi 19859 19860 fi 19861 if test -n "$PKG_CONFIG"; then 19862 _pkg_min_version=0.9.0 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19864 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19865 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19867 $as_echo "yes" >&6; } 19868 else 19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19870 $as_echo "no" >&6; } 19871 PKG_CONFIG="" 19872 fi 19873 19874 fi 19875 19876 # After basic tools have been setup, we can check build os specific details. 19877 19878 ############################################################################### 19879 19880 # Note that this is the build platform OS version! 19881 19882 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19883 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19884 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19885 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19886 19887 19888 19889 19890 19891 # Setup builddeps, for automatic downloading of tools we need. 19892 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19893 # boot-jdk setup, but we need to have basic tools setup first. 19894 19895 19896 # Check whether --with-builddeps-conf was given. 19897 if test "${with_builddeps_conf+set}" = set; then : 19898 withval=$with_builddeps_conf; 19899 fi 19900 19901 19902 19903 # Check whether --with-builddeps-server was given. 19904 if test "${with_builddeps_server+set}" = set; then : 19905 withval=$with_builddeps_server; 19906 fi 19907 19908 19909 19910 # Check whether --with-builddeps-dir was given. 19911 if test "${with_builddeps_dir+set}" = set; then : 19912 withval=$with_builddeps_dir; 19913 else 19914 with_builddeps_dir=/localhome/builddeps 19915 fi 19916 19917 19918 19919 # Check whether --with-builddeps-group was given. 19920 if test "${with_builddeps_group+set}" = set; then : 19921 withval=$with_builddeps_group; 19922 fi 19923 19924 19925 19926 19927 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19928 if test "x$with_builddeps_conf" != x; then 19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19930 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19931 builddepsfile=$with_builddeps_conf 19932 if test -s $builddepsfile; then 19933 . $builddepsfile 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19935 $as_echo "loaded!" >&6; } 19936 else 19937 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19938 fi 19939 else 19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19941 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19942 builddepsfile=`mktemp` 19943 touch $builddepsfile 19944 # Put all found confs into a single file. 19945 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19946 # Source the file to acquire the variables 19947 if test -s $builddepsfile; then 19948 . $builddepsfile 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19950 $as_echo "found at least one!" >&6; } 19951 else 19952 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19953 fi 19954 fi 19955 # Create build and target names that use _ instead of "-" and ".". 19956 # This is necessary to use them in variable names. 19957 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19958 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19959 # Extract rewrite information for build and target 19960 eval rewritten_build=\${REWRITE_${build_var}} 19961 if test "x$rewritten_build" = x; then 19962 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19963 echo Build stays the same $rewritten_build 19964 else 19965 echo Rewriting build for builddeps into $rewritten_build 19966 fi 19967 eval rewritten_target=\${REWRITE_${target_var}} 19968 if test "x$rewritten_target" = x; then 19969 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19970 echo Target stays the same $rewritten_target 19971 else 19972 echo Rewriting target for builddeps into $rewritten_target 19973 fi 19974 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19975 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19976 fi 19977 for ac_prog in 7z unzip 19978 do 19979 # Extract the first word of "$ac_prog", so it can be a program name with args. 19980 set dummy $ac_prog; ac_word=$2 19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19982 $as_echo_n "checking for $ac_word... " >&6; } 19983 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19984 $as_echo_n "(cached) " >&6 19985 else 19986 if test -n "$BDEPS_UNZIP"; then 19987 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19988 else 19989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19990 for as_dir in $PATH 19991 do 19992 IFS=$as_save_IFS 19993 test -z "$as_dir" && as_dir=. 19994 for ac_exec_ext in '' $ac_executable_extensions; do 19995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19996 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19998 break 2 19999 fi 20000 done 20001 done 20002 IFS=$as_save_IFS 20003 20004 fi 20005 fi 20006 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 20007 if test -n "$BDEPS_UNZIP"; then 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 20009 $as_echo "$BDEPS_UNZIP" >&6; } 20010 else 20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20012 $as_echo "no" >&6; } 20013 fi 20014 20015 20016 test -n "$BDEPS_UNZIP" && break 20017 done 20018 20019 if test "x$BDEPS_UNZIP" = x7z; then 20020 BDEPS_UNZIP="7z x" 20021 fi 20022 20023 for ac_prog in wget lftp ftp 20024 do 20025 # Extract the first word of "$ac_prog", so it can be a program name with args. 20026 set dummy $ac_prog; ac_word=$2 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20028 $as_echo_n "checking for $ac_word... " >&6; } 20029 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 20030 $as_echo_n "(cached) " >&6 20031 else 20032 if test -n "$BDEPS_FTP"; then 20033 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 20034 else 20035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20036 for as_dir in $PATH 20037 do 20038 IFS=$as_save_IFS 20039 test -z "$as_dir" && as_dir=. 20040 for ac_exec_ext in '' $ac_executable_extensions; do 20041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20042 ac_cv_prog_BDEPS_FTP="$ac_prog" 20043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20044 break 2 20045 fi 20046 done 20047 done 20048 IFS=$as_save_IFS 20049 20050 fi 20051 fi 20052 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 20053 if test -n "$BDEPS_FTP"; then 20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 20055 $as_echo "$BDEPS_FTP" >&6; } 20056 else 20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20058 $as_echo "no" >&6; } 20059 fi 20060 20061 20062 test -n "$BDEPS_FTP" && break 20063 done 20064 20065 20066 20067 ############################################################################### 20068 # 20069 # Determine OpenJDK variants, options and version numbers. 20070 # 20071 ############################################################################### 20072 20073 # We need build & target for this. 20074 20075 20076 ############################################################################### 20077 # 20078 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 20079 # We always build headless support. 20080 # 20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 20082 $as_echo_n "checking headful support... " >&6; } 20083 # Check whether --enable-headful was given. 20084 if test "${enable_headful+set}" = set; then : 20085 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 20086 else 20087 SUPPORT_HEADFUL=yes 20088 fi 20089 20090 20091 SUPPORT_HEADLESS=yes 20092 BUILD_HEADLESS="BUILD_HEADLESS:=true" 20093 20094 if test "x$SUPPORT_HEADFUL" = xyes; then 20095 # We are building both headful and headless. 20096 headful_msg="include support for both headful and headless" 20097 fi 20098 20099 if test "x$SUPPORT_HEADFUL" = xno; then 20100 # Thus we are building headless only. 20101 BUILD_HEADLESS="BUILD_HEADLESS:=true" 20102 headful_msg="headless only" 20103 fi 20104 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 20106 $as_echo "$headful_msg" >&6; } 20107 20108 20109 20110 20111 20112 # Control wether Hotspot runs Queens test after build. 20113 # Check whether --enable-hotspot-test-in-build was given. 20114 if test "${enable_hotspot_test_in_build+set}" = set; then : 20115 enableval=$enable_hotspot_test_in_build; 20116 else 20117 enable_hotspot_test_in_build=no 20118 fi 20119 20120 if test "x$enable_hotspot_test_in_build" = "xyes"; then 20121 TEST_IN_BUILD=true 20122 else 20123 TEST_IN_BUILD=false 20124 fi 20125 20126 20127 ############################################################################### 20128 # 20129 # Choose cacerts source file 20130 # 20131 20132 # Check whether --with-cacerts-file was given. 20133 if test "${with_cacerts_file+set}" = set; then : 20134 withval=$with_cacerts_file; 20135 fi 20136 20137 if test "x$with_cacerts_file" != x; then 20138 CACERTS_FILE=$with_cacerts_file 20139 fi 20140 20141 20142 ############################################################################### 20143 # 20144 # Enable or disable unlimited crypto 20145 # 20146 # Check whether --enable-unlimited-crypto was given. 20147 if test "${enable_unlimited_crypto+set}" = set; then : 20148 enableval=$enable_unlimited_crypto; 20149 else 20150 enable_unlimited_crypto=no 20151 fi 20152 20153 if test "x$enable_unlimited_crypto" = "xyes"; then 20154 UNLIMITED_CRYPTO=true 20155 else 20156 UNLIMITED_CRYPTO=false 20157 fi 20158 20159 20160 ############################################################################### 20161 # 20162 # --enable-rmiconnector-iiop 20163 # 20164 # Check whether --enable-rmiconnector-iiop was given. 20165 if test "${enable_rmiconnector_iiop+set}" = set; then : 20166 enableval=$enable_rmiconnector_iiop; 20167 fi 20168 20169 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20170 RMICONNECTOR_IIOP=true 20171 else 20172 RMICONNECTOR_IIOP=false 20173 fi 20174 20175 20176 ############################################################################### 20177 # 20178 # Compress jars 20179 # 20180 COMPRESS_JARS=false 20181 20182 20183 20184 # Setup default copyright year. Mostly overridden when building close to a new year. 20185 20186 # Check whether --with-copyright-year was given. 20187 if test "${with_copyright_year+set}" = set; then : 20188 withval=$with_copyright_year; 20189 fi 20190 20191 if test "x$with_copyright_year" = xyes; then 20192 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20193 elif test "x$with_copyright_year" != x; then 20194 COPYRIGHT_YEAR="$with_copyright_year" 20195 else 20196 COPYRIGHT_YEAR=`date +'%Y'` 20197 fi 20198 20199 20200 20201 # Warn user that old version arguments are deprecated. 20202 20203 20204 # Check whether --with-milestone was given. 20205 if test "${with_milestone+set}" = set; then : 20206 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 20207 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 20208 fi 20209 20210 20211 20212 20213 # Check whether --with-update-version was given. 20214 if test "${with_update_version+set}" = set; then : 20215 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 20216 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 20217 fi 20218 20219 20220 20221 20222 # Check whether --with-user-release-suffix was given. 20223 if test "${with_user_release_suffix+set}" = set; then : 20224 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5 20225 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 20226 fi 20227 20228 20229 20230 20231 # Check whether --with-build-number was given. 20232 if test "${with_build_number+set}" = set; then : 20233 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 20234 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 20235 fi 20236 20237 20238 20239 # Source the version numbers file 20240 . $AUTOCONF_DIR/version-numbers 20241 20242 # Some non-version number information is set in that file 20243 20244 20245 20246 20247 20248 20249 20250 20251 # Override version from arguments 20252 20253 # If --with-version-string is set, process it first. It is possible to 20254 # override parts with more specific flags, since these are processed later. 20255 20256 # Check whether --with-version-string was given. 20257 if test "${with_version_string+set}" = set; then : 20258 withval=$with_version_string; 20259 fi 20260 20261 if test "x$with_version_string" = xyes; then 20262 as_fn_error $? "--with--version-string must have a value" "$LINENO" 5 20263 elif test "x$with_version_string" != x; then 20264 # Additional [] needed to keep m4 from mangling shell constructs. 20265 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?(\.([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 20266 VERSION_MAJOR=${BASH_REMATCH[1]} 20267 VERSION_MINOR=${BASH_REMATCH[3]} 20268 VERSION_SECURITY=${BASH_REMATCH[5]} 20269 VERSION_PATCH=${BASH_REMATCH[7]} 20270 VERSION_PRE_BASE=${BASH_REMATCH[9]} 20271 VERSION_PRE_DEBUGLEVEL=${BASH_REMATCH[11]} 20272 version_plus_separator=${BASH_REMATCH[13]} 20273 VERSION_BUILD=${BASH_REMATCH[14]} 20274 VERSION_OPT=${BASH_REMATCH[16]} 20275 # Unspecified numerical fields is interpreted as 0. 20276 if test "x$VERSION_MINOR" = x; then 20277 VERSION_MINOR=0 20278 fi 20279 if test "x$VERSION_SECURITY" = x; then 20280 VERSION_SECURITY=0 20281 fi 20282 if test "x$VERSION_PATCH" = x; then 20283 VERSION_PATCH=0 20284 fi 20285 if test "x$version_plus_separator" != x && test "x$VERSION_BUILD$VERSION_OPT" = x; then 20286 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' is missing" "$LINENO" 5 20287 fi 20288 # Stop the version part process from setting default values. 20289 # We still allow them to explicitely override though. 20290 NO_DEFAULT_VERSION_PARTS=true 20291 else 20292 as_fn_error $? "--with--version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 20293 fi 20294 fi 20295 20296 20297 # Check whether --with-version-pre-base was given. 20298 if test "${with_version_pre_base+set}" = set; then : 20299 withval=$with_version_pre_base; with_version_pre_base_present=true 20300 else 20301 with_version_pre_base_present=false 20302 fi 20303 20304 20305 if test "x$with_version_pre_base_present" = xtrue; then 20306 if test "x$with_version_pre_base" = xyes; then 20307 as_fn_error $? "--with--version-pre-base must have a value" "$LINENO" 5 20308 elif test "x$with_version_pre_base" = xno; then 20309 # Interpret --without-* as empty string instead of the literal "no" 20310 VERSION_PRE_BASE= 20311 else 20312 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 20313 VERSION_PRE_BASE=`$ECHO "$with_version_pre_base" | $TR -c -d '[a-z][A-Z]'` 20314 if test "x$VERSION_PRE_BASE" != "x$with_version_pre_base"; then 20315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-pre-base value has been sanitized from '$with_version_pre_base' to '$VERSION_PRE_BASE'" >&5 20316 $as_echo "$as_me: WARNING: --with--version-pre-base value has been sanitized from '$with_version_pre_base' to '$VERSION_PRE_BASE'" >&2;} 20317 fi 20318 fi 20319 else 20320 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20321 # Default is to use "internal" as pre 20322 VERSION_PRE_BASE="internal" 20323 fi 20324 fi 20325 20326 20327 # Check whether --with-version-pre-debuglevel was given. 20328 if test "${with_version_pre_debuglevel+set}" = set; then : 20329 withval=$with_version_pre_debuglevel; with_version_pre_debuglevel_present=true 20330 else 20331 with_version_pre_debuglevel_present=false 20332 fi 20333 20334 20335 if test "x$with_version_pre_debuglevel_present" = xtrue; then 20336 if test "x$with_version_pre_debuglevel" = xyes; then 20337 as_fn_error $? "--with--version-pre-debuglevel must have a value" "$LINENO" 5 20338 elif test "x$with_version_pre_debuglevel" = xno; then 20339 # Interpret --without-* as empty string instead of the literal "no" 20340 VERSION_PRE_DEBUGLEVEL= 20341 else 20342 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 20343 VERSION_PRE_DEBUGLEVEL=`$ECHO "$with_version_pre_debuglevel" | $TR -c -d '[a-z][A-Z]'` 20344 if test "x$VERSION_PRE_DEBUGLEVEL" != "x$with_version_pre_debuglevel"; then 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-pre-debuglevel value has been sanitized from '$with_version_pre_debuglevel' to '$VERSION_PRE_DEBUGLEVEL'" >&5 20346 $as_echo "$as_me: WARNING: --with--version-pre-debuglevel value has been sanitized from '$with_version_pre_debuglevel' to '$VERSION_PRE_DEBUGLEVEL'" >&2;} 20347 fi 20348 fi 20349 else 20350 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20351 # Default is to use the debug level name, except for release which is empty. 20352 if test "x$DEBUG_LEVEL" != "xrelease"; then 20353 VERSION_PRE_DEBUGLEVEL="$DEBUG_LEVEL" 20354 else 20355 VERSION_PRE_DEBUGLEVEL="" 20356 fi 20357 fi 20358 fi 20359 20360 20361 # Check whether --with-version-opt was given. 20362 if test "${with_version_opt+set}" = set; then : 20363 withval=$with_version_opt; with_version_opt_present=true 20364 else 20365 with_version_opt_present=false 20366 fi 20367 20368 20369 if test "x$with_version_opt_present" = xtrue; then 20370 if test "x$with_version_opt" = xyes; then 20371 as_fn_error $? "--with--version-opt must have a value" "$LINENO" 5 20372 elif test "x$with_version_opt" = xno; then 20373 # Interpret --without-* as empty string instead of the literal "no" 20374 VERSION_OPT= 20375 else 20376 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 20377 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 20378 if test "x$VERSION_OPT" != "x$with_version_opt"; then 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with--version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 20380 $as_echo "$as_me: WARNING: --with--version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 20381 fi 20382 fi 20383 else 20384 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20385 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 20386 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 20387 # Outer [ ] to quote m4. 20388 username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 20389 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 20390 VERSION_OPT="$timestamp.$username.$basedirname" 20391 fi 20392 fi 20393 20394 20395 # Check whether --with-version-build was given. 20396 if test "${with_version_build+set}" = set; then : 20397 withval=$with_version_build; with_version_build_present=true 20398 else 20399 with_version_build_present=false 20400 fi 20401 20402 20403 if test "x$with_version_build_present" = xtrue; then 20404 if test "x$with_version_build" = xyes; then 20405 as_fn_error $? "--with--version-build must have a value" "$LINENO" 5 20406 elif test "x$with_version_build" = xno; then 20407 # Interpret --without-* as empty string instead of the literal "no" 20408 VERSION_BUILD= 20409 elif test "x$with_version_build" = x; then 20410 VERSION_BUILD= 20411 else 20412 20413 # Additional [] needed to keep m4 from mangling shell constructs. 20414 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 20415 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 20416 fi 20417 # Extract the version number without leading zeros. 20418 cleaned_value=${BASH_REMATCH[1]} 20419 if test "x$cleaned_value" = x; then 20420 # Special case for zero 20421 cleaned_value=${BASH_REMATCH[2]} 20422 fi 20423 20424 if test $cleaned_value -gt 255; then 20425 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 20426 fi 20427 if test "x$cleaned_value" != "x$with_version_build"; then 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 20429 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 20430 fi 20431 VERSION_BUILD=$cleaned_value 20432 20433 fi 20434 else 20435 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20436 # Default is to not have a build number. 20437 VERSION_BUILD="" 20438 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 20439 VERSION_BUILD=0 20440 fi 20441 fi 20442 20443 20444 # Check whether --with-version-major was given. 20445 if test "${with_version_major+set}" = set; then : 20446 withval=$with_version_major; with_version_major_present=true 20447 else 20448 with_version_major_present=false 20449 fi 20450 20451 20452 if test "x$with_version_major_present" = xtrue; then 20453 if test "x$with_version_major" = xyes; then 20454 as_fn_error $? "--with--version-major must have a value" "$LINENO" 5 20455 else 20456 20457 # Additional [] needed to keep m4 from mangling shell constructs. 20458 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 20459 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 20460 fi 20461 # Extract the version number without leading zeros. 20462 cleaned_value=${BASH_REMATCH[1]} 20463 if test "x$cleaned_value" = x; then 20464 # Special case for zero 20465 cleaned_value=${BASH_REMATCH[2]} 20466 fi 20467 20468 if test $cleaned_value -gt 255; then 20469 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 20470 fi 20471 if test "x$cleaned_value" != "x$with_version_major"; then 20472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 20473 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 20474 fi 20475 VERSION_MAJOR=$cleaned_value 20476 20477 fi 20478 else 20479 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20480 # Default is to get value from version-numbers 20481 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 20482 fi 20483 fi 20484 20485 20486 # Check whether --with-version-minor was given. 20487 if test "${with_version_minor+set}" = set; then : 20488 withval=$with_version_minor; with_version_minor_present=true 20489 else 20490 with_version_minor_present=false 20491 fi 20492 20493 20494 if test "x$with_version_minor_present" = xtrue; then 20495 if test "x$with_version_minor" = xyes; then 20496 as_fn_error $? "--with--version-minor must have a value" "$LINENO" 5 20497 elif test "x$with_version_minor" = xno; then 20498 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 20499 VERSION_MINOR=0 20500 elif test "x$with_version_minor" = x; then 20501 VERSION_MINOR=0 20502 else 20503 20504 # Additional [] needed to keep m4 from mangling shell constructs. 20505 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 20506 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 20507 fi 20508 # Extract the version number without leading zeros. 20509 cleaned_value=${BASH_REMATCH[1]} 20510 if test "x$cleaned_value" = x; then 20511 # Special case for zero 20512 cleaned_value=${BASH_REMATCH[2]} 20513 fi 20514 20515 if test $cleaned_value -gt 255; then 20516 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 20517 fi 20518 if test "x$cleaned_value" != "x$with_version_minor"; then 20519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 20520 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 20521 fi 20522 VERSION_MINOR=$cleaned_value 20523 20524 fi 20525 else 20526 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20527 # Default is 0, if unspecified 20528 VERSION_MINOR=0 20529 fi 20530 fi 20531 20532 20533 # Check whether --with-version-security was given. 20534 if test "${with_version_security+set}" = set; then : 20535 withval=$with_version_security; with_version_security_present=true 20536 else 20537 with_version_security_present=false 20538 fi 20539 20540 20541 if test "x$with_version_security_present" = xtrue; then 20542 if test "x$with_version_security" = xyes; then 20543 as_fn_error $? "--with--version-security must have a value" "$LINENO" 5 20544 elif test "x$with_version_security" = xno; then 20545 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 20546 VERSION_SECURITY=0 20547 elif test "x$with_version_security" = x; then 20548 VERSION_SECURITY=0 20549 else 20550 20551 # Additional [] needed to keep m4 from mangling shell constructs. 20552 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 20553 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 20554 fi 20555 # Extract the version number without leading zeros. 20556 cleaned_value=${BASH_REMATCH[1]} 20557 if test "x$cleaned_value" = x; then 20558 # Special case for zero 20559 cleaned_value=${BASH_REMATCH[2]} 20560 fi 20561 20562 if test $cleaned_value -gt 255; then 20563 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 20564 fi 20565 if test "x$cleaned_value" != "x$with_version_security"; then 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 20567 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 20568 fi 20569 VERSION_SECURITY=$cleaned_value 20570 20571 fi 20572 else 20573 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20574 # Default is 0, if unspecified 20575 VERSION_SECURITY=0 20576 fi 20577 fi 20578 20579 20580 # Check whether --with-version-patch was given. 20581 if test "${with_version_patch+set}" = set; then : 20582 withval=$with_version_patch; with_version_patch_present=true 20583 else 20584 with_version_patch_present=false 20585 fi 20586 20587 20588 if test "x$with_version_patch_present" = xtrue; then 20589 if test "x$with_version_patch" = xyes; then 20590 as_fn_error $? "--with--version-patch must have a value" "$LINENO" 5 20591 elif test "x$with_version_patch" = xno; then 20592 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 20593 VERSION_PATCH=0 20594 elif test "x$with_version_patch" = x; then 20595 VERSION_PATCH=0 20596 else 20597 20598 # Additional [] needed to keep m4 from mangling shell constructs. 20599 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 20600 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 20601 fi 20602 # Extract the version number without leading zeros. 20603 cleaned_value=${BASH_REMATCH[1]} 20604 if test "x$cleaned_value" = x; then 20605 # Special case for zero 20606 cleaned_value=${BASH_REMATCH[2]} 20607 fi 20608 20609 if test $cleaned_value -gt 255; then 20610 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 20611 fi 20612 if test "x$cleaned_value" != "x$with_version_patch"; then 20613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 20614 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 20615 fi 20616 VERSION_PATCH=$cleaned_value 20617 20618 fi 20619 else 20620 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 20621 # Default is 0, if unspecified 20622 VERSION_PATCH=0 20623 fi 20624 fi 20625 20626 # Calculate derived version properties 20627 20628 # Set pre to "pre-base" if debug level is empty (i.e. release), or 20629 # "pre-base.debug-level" otherwise. 20630 if test "x$VERSION_PRE_BASE" = x && test "x$VERSION_PRE_DEBUGLEVEL" != x; then 20631 as_fn_error $? "Cannot set version-pre-debuglevel when version-pre-base is empty" "$LINENO" 5 20632 fi 20633 VERSION_PRE=$VERSION_PRE_BASE${VERSION_PRE_DEBUGLEVEL:+.$VERSION_PRE_DEBUGLEVEL} 20634 20635 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 20636 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 20637 20638 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 20639 # Strip trailing zeroes from stripped_version_number 20640 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 20641 VERSION_NUMBER=$stripped_version_number 20642 20643 # The complete version string, with additional build information 20644 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 20645 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 20646 else 20647 # If either build or opt is set, we need a + separator 20648 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 20649 fi 20650 20651 # The short version string, just VERSION_NUMBER and PRE, if present. 20652 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 20653 20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 20655 $as_echo_n "checking for version string... " >&6; } 20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 20657 $as_echo "$VERSION_STRING" >&6; } 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 ############################################################################### 20673 # 20674 # Setup BootJDK, used to bootstrap the build. 20675 # 20676 ############################################################################### 20677 20678 20679 BOOT_JDK_FOUND=no 20680 20681 # Check whether --with-boot-jdk was given. 20682 if test "${with_boot_jdk+set}" = set; then : 20683 withval=$with_boot_jdk; 20684 fi 20685 20686 20687 # We look for the Boot JDK through various means, going from more certain to 20688 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20689 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20690 # must check if this is indeed valid; otherwise we'll continue looking. 20691 20692 # Test: Is bootjdk explicitely set by command line arguments? 20693 20694 if test "x$BOOT_JDK_FOUND" = xno; then 20695 # Now execute the test 20696 20697 if test "x$with_boot_jdk" != x; then 20698 BOOT_JDK=$with_boot_jdk 20699 BOOT_JDK_FOUND=maybe 20700 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20701 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20702 fi 20703 20704 20705 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20706 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20707 # Do we have a bin/java? 20708 if test ! -x "$BOOT_JDK/bin/java"; then 20709 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20710 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20711 BOOT_JDK_FOUND=no 20712 else 20713 # Do we have a bin/javac? 20714 if test ! -x "$BOOT_JDK/bin/javac"; then 20715 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20716 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20718 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20719 BOOT_JDK_FOUND=no 20720 else 20721 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20722 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20723 20724 # Extra M4 quote needed to protect [] in grep expression. 20725 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20726 if test "x$FOUND_CORRECT_VERSION" = x; then 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20730 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20731 BOOT_JDK_FOUND=no 20732 else 20733 # We're done! :-) 20734 BOOT_JDK_FOUND=yes 20735 20736 # Only process if variable expands to non-empty 20737 20738 if test "x$BOOT_JDK" != x; then 20739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20740 20741 # Input might be given as Windows format, start by converting to 20742 # unix format. 20743 path="$BOOT_JDK" 20744 new_path=`$CYGPATH -u "$path"` 20745 20746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20749 # "foo.exe" is OK but "foo" is an error. 20750 # 20751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20752 # It is also a way to make sure we got the proper file name for the real test later on. 20753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20754 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20758 fi 20759 20760 # Call helper function which possibly converts this using DOS-style short mode. 20761 # If so, the updated path is stored in $new_path. 20762 20763 input_path="$new_path" 20764 # Check if we need to convert this using DOS-style short mode. If the path 20765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20766 # take no chances and rewrite it. 20767 # Note: m4 eats our [], so we need to use [ and ] instead. 20768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20769 if test "x$has_forbidden_chars" != x; then 20770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20774 # Going to short mode and back again did indeed matter. Since short mode is 20775 # case insensitive, let's make it lowercase to improve readability. 20776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20777 # Now convert it back to Unix-style (cygpath) 20778 input_path=`$CYGPATH -u "$shortmode_path"` 20779 new_path="$input_path" 20780 fi 20781 fi 20782 20783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20784 if test "x$test_cygdrive_prefix" = x; then 20785 # As a simple fix, exclude /usr/bin since it's not a real path. 20786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20788 # a path prefixed by /cygdrive for fixpath to work. 20789 new_path="$CYGWIN_ROOT_PATH$input_path" 20790 fi 20791 fi 20792 20793 20794 if test "x$path" != "x$new_path"; then 20795 BOOT_JDK="$new_path" 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20797 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20798 fi 20799 20800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20801 20802 path="$BOOT_JDK" 20803 has_colon=`$ECHO $path | $GREP ^.:` 20804 new_path="$path" 20805 if test "x$has_colon" = x; then 20806 # Not in mixed or Windows style, start by that. 20807 new_path=`cmd //c echo $path` 20808 fi 20809 20810 20811 input_path="$new_path" 20812 # Check if we need to convert this using DOS-style short mode. If the path 20813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20814 # take no chances and rewrite it. 20815 # Note: m4 eats our [], so we need to use [ and ] instead. 20816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20817 if test "x$has_forbidden_chars" != x; then 20818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20820 fi 20821 20822 20823 windows_path="$new_path" 20824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20825 unix_path=`$CYGPATH -u "$windows_path"` 20826 new_path="$unix_path" 20827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20829 new_path="$unix_path" 20830 fi 20831 20832 if test "x$path" != "x$new_path"; then 20833 BOOT_JDK="$new_path" 20834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20835 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20836 fi 20837 20838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20840 20841 else 20842 # We're on a unix platform. Hooray! :) 20843 path="$BOOT_JDK" 20844 has_space=`$ECHO "$path" | $GREP " "` 20845 if test "x$has_space" != x; then 20846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20847 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20849 fi 20850 20851 # Use eval to expand a potential ~ 20852 eval path="$path" 20853 if test ! -f "$path" && test ! -d "$path"; then 20854 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20855 fi 20856 20857 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20858 fi 20859 fi 20860 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20862 $as_echo_n "checking for Boot JDK... " >&6; } 20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20864 $as_echo "$BOOT_JDK" >&6; } 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20866 $as_echo_n "checking Boot JDK version... " >&6; } 20867 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20869 $as_echo "$BOOT_JDK_VERSION" >&6; } 20870 fi # end check jdk version 20871 fi # end check javac 20872 fi # end check java 20873 fi # end check boot jdk found 20874 fi 20875 20876 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20877 # Having specified an argument which is incorrect will produce an instant failure; 20878 # we should not go on looking 20879 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20880 fi 20881 20882 # Test: Is bootjdk available from builddeps? 20883 20884 if test "x$BOOT_JDK_FOUND" = xno; then 20885 # Now execute the test 20886 20887 20888 20889 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20890 # Source the builddeps file again, to make sure it uses the latest variables! 20891 . $builddepsfile 20892 # Look for a target and build machine specific resource! 20893 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20894 if test "x$resource" = x; then 20895 # Ok, lets instead look for a target specific resource 20896 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20897 fi 20898 if test "x$resource" = x; then 20899 # Ok, lets instead look for a build specific resource 20900 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20901 fi 20902 if test "x$resource" = x; then 20903 # Ok, lets instead look for a generic resource 20904 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20905 resource=${builddep_bootjdk} 20906 fi 20907 if test "x$resource" != x; then 20908 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20909 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20910 # If the resource in the builddeps.conf file is an existing directory, 20911 # for example /java/linux/cups 20912 if test -d ${resource}; then 20913 depdir=${resource} 20914 else 20915 20916 # bootjdk is for example mymodule 20917 # $resource is for example libs/general/libmymod_1_2_3.zip 20918 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20919 # $with_builddeps_dir is for example /localhome/builddeps 20920 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20921 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20922 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20923 filename=`basename $resource` 20924 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20925 filebase=${filename%%.*} 20926 extension=${filename#*.} 20927 installdir=$with_builddeps_dir/$filebase 20928 if test ! -f $installdir/$filename.unpacked; then 20929 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20930 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20931 if test ! -d $installdir; then 20932 mkdir -p $installdir 20933 fi 20934 if test ! -d $installdir; then 20935 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20936 fi 20937 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20938 touch $tmpfile 20939 if test ! -f $tmpfile; then 20940 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20941 fi 20942 20943 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20944 # $tmpfile is the local file name for the downloaded file. 20945 VALID_TOOL=no 20946 if test "x$BDEPS_FTP" = xwget; then 20947 VALID_TOOL=yes 20948 wget -O $tmpfile $with_builddeps_server/$resource 20949 fi 20950 if test "x$BDEPS_FTP" = xlftp; then 20951 VALID_TOOL=yes 20952 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20953 fi 20954 if test "x$BDEPS_FTP" = xftp; then 20955 VALID_TOOL=yes 20956 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20957 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20958 FTPUSERPWD=${FTPSERVER%%@*} 20959 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20960 FTPUSER=${userpwd%%:*} 20961 FTPPWD=${userpwd#*@} 20962 FTPSERVER=${FTPSERVER#*@} 20963 else 20964 FTPUSER=ftp 20965 FTPPWD=ftp 20966 fi 20967 # the "pass" command does not work on some 20968 # ftp clients (read ftp.exe) but if it works, 20969 # passive mode is better! 20970 ( \ 20971 echo "user $FTPUSER $FTPPWD" ; \ 20972 echo "pass" ; \ 20973 echo "bin" ; \ 20974 echo "get $FTPPATH $tmpfile" ; \ 20975 ) | ftp -in $FTPSERVER 20976 fi 20977 if test "x$VALID_TOOL" != xyes; then 20978 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20979 fi 20980 20981 mv $tmpfile $installdir/$filename 20982 if test ! -s $installdir/$filename; then 20983 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20984 fi 20985 case "$extension" in 20986 zip) echo "Unzipping $installdir/$filename..." 20987 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20988 ;; 20989 tar.gz) echo "Untaring $installdir/$filename..." 20990 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20991 ;; 20992 tgz) echo "Untaring $installdir/$filename..." 20993 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20994 ;; 20995 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20996 ;; 20997 esac 20998 fi 20999 if test -f $installdir/$filename.unpacked; then 21000 depdir=$installdir 21001 fi 21002 21003 fi 21004 # Source the builddeps file again, because in the previous command, the depdir 21005 # was updated to point at the current build dependency install directory. 21006 . $builddepsfile 21007 # Now extract variables from the builddeps.conf files. 21008 theroot=${builddep_bootjdk_ROOT} 21009 thecflags=${builddep_bootjdk_CFLAGS} 21010 thelibs=${builddep_bootjdk_LIBS} 21011 if test "x$depdir" = x; then 21012 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 21013 fi 21014 BOOT_JDK=$depdir 21015 if test "x$theroot" != x; then 21016 BOOT_JDK="$theroot" 21017 fi 21018 if test "x$thecflags" != x; then 21019 BOOT_JDK_CFLAGS="$thecflags" 21020 fi 21021 if test "x$thelibs" != x; then 21022 BOOT_JDK_LIBS="$thelibs" 21023 fi 21024 BOOT_JDK_FOUND=maybe 21025 else BOOT_JDK_FOUND=no 21026 21027 fi 21028 else BOOT_JDK_FOUND=no 21029 21030 fi 21031 21032 21033 21034 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21035 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21036 # Do we have a bin/java? 21037 if test ! -x "$BOOT_JDK/bin/java"; then 21038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21040 BOOT_JDK_FOUND=no 21041 else 21042 # Do we have a bin/javac? 21043 if test ! -x "$BOOT_JDK/bin/javac"; then 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21048 BOOT_JDK_FOUND=no 21049 else 21050 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21052 21053 # Extra M4 quote needed to protect [] in grep expression. 21054 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21055 if test "x$FOUND_CORRECT_VERSION" = x; then 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21058 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21059 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21060 BOOT_JDK_FOUND=no 21061 else 21062 # We're done! :-) 21063 BOOT_JDK_FOUND=yes 21064 21065 # Only process if variable expands to non-empty 21066 21067 if test "x$BOOT_JDK" != x; then 21068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21069 21070 # Input might be given as Windows format, start by converting to 21071 # unix format. 21072 path="$BOOT_JDK" 21073 new_path=`$CYGPATH -u "$path"` 21074 21075 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21076 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21077 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21078 # "foo.exe" is OK but "foo" is an error. 21079 # 21080 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21081 # It is also a way to make sure we got the proper file name for the real test later on. 21082 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21083 if test "x$test_shortpath" = x; then 21084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21086 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21087 fi 21088 21089 # Call helper function which possibly converts this using DOS-style short mode. 21090 # If so, the updated path is stored in $new_path. 21091 21092 input_path="$new_path" 21093 # Check if we need to convert this using DOS-style short mode. If the path 21094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21095 # take no chances and rewrite it. 21096 # Note: m4 eats our [], so we need to use [ and ] instead. 21097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21098 if test "x$has_forbidden_chars" != x; then 21099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21103 # Going to short mode and back again did indeed matter. Since short mode is 21104 # case insensitive, let's make it lowercase to improve readability. 21105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21106 # Now convert it back to Unix-style (cygpath) 21107 input_path=`$CYGPATH -u "$shortmode_path"` 21108 new_path="$input_path" 21109 fi 21110 fi 21111 21112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21113 if test "x$test_cygdrive_prefix" = x; then 21114 # As a simple fix, exclude /usr/bin since it's not a real path. 21115 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21117 # a path prefixed by /cygdrive for fixpath to work. 21118 new_path="$CYGWIN_ROOT_PATH$input_path" 21119 fi 21120 fi 21121 21122 21123 if test "x$path" != "x$new_path"; then 21124 BOOT_JDK="$new_path" 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21126 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21127 fi 21128 21129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21130 21131 path="$BOOT_JDK" 21132 has_colon=`$ECHO $path | $GREP ^.:` 21133 new_path="$path" 21134 if test "x$has_colon" = x; then 21135 # Not in mixed or Windows style, start by that. 21136 new_path=`cmd //c echo $path` 21137 fi 21138 21139 21140 input_path="$new_path" 21141 # Check if we need to convert this using DOS-style short mode. If the path 21142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21143 # take no chances and rewrite it. 21144 # Note: m4 eats our [], so we need to use [ and ] instead. 21145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21146 if test "x$has_forbidden_chars" != x; then 21147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21148 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21149 fi 21150 21151 21152 windows_path="$new_path" 21153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21154 unix_path=`$CYGPATH -u "$windows_path"` 21155 new_path="$unix_path" 21156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21158 new_path="$unix_path" 21159 fi 21160 21161 if test "x$path" != "x$new_path"; then 21162 BOOT_JDK="$new_path" 21163 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21164 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21165 fi 21166 21167 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21168 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21169 21170 else 21171 # We're on a unix platform. Hooray! :) 21172 path="$BOOT_JDK" 21173 has_space=`$ECHO "$path" | $GREP " "` 21174 if test "x$has_space" != x; then 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21176 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21177 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21178 fi 21179 21180 # Use eval to expand a potential ~ 21181 eval path="$path" 21182 if test ! -f "$path" && test ! -d "$path"; then 21183 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21184 fi 21185 21186 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21187 fi 21188 fi 21189 21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21191 $as_echo_n "checking for Boot JDK... " >&6; } 21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21193 $as_echo "$BOOT_JDK" >&6; } 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21195 $as_echo_n "checking Boot JDK version... " >&6; } 21196 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21198 $as_echo "$BOOT_JDK_VERSION" >&6; } 21199 fi # end check jdk version 21200 fi # end check javac 21201 fi # end check java 21202 fi # end check boot jdk found 21203 fi 21204 21205 21206 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 21207 21208 if test "x$BOOT_JDK_FOUND" = xno; then 21209 # Now execute the test 21210 21211 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 21212 # First check at user selected default 21213 21214 if test "x$BOOT_JDK_FOUND" = xno; then 21215 # Now execute the test 21216 21217 if test -x /usr/libexec/java_home; then 21218 BOOT_JDK=`/usr/libexec/java_home ` 21219 BOOT_JDK_FOUND=maybe 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 21221 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 21222 fi 21223 21224 21225 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21226 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21227 # Do we have a bin/java? 21228 if test ! -x "$BOOT_JDK/bin/java"; then 21229 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21230 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21231 BOOT_JDK_FOUND=no 21232 else 21233 # Do we have a bin/javac? 21234 if test ! -x "$BOOT_JDK/bin/javac"; then 21235 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21236 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21238 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21239 BOOT_JDK_FOUND=no 21240 else 21241 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21242 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21243 21244 # Extra M4 quote needed to protect [] in grep expression. 21245 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21246 if test "x$FOUND_CORRECT_VERSION" = x; then 21247 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21248 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21250 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21251 BOOT_JDK_FOUND=no 21252 else 21253 # We're done! :-) 21254 BOOT_JDK_FOUND=yes 21255 21256 # Only process if variable expands to non-empty 21257 21258 if test "x$BOOT_JDK" != x; then 21259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21260 21261 # Input might be given as Windows format, start by converting to 21262 # unix format. 21263 path="$BOOT_JDK" 21264 new_path=`$CYGPATH -u "$path"` 21265 21266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21269 # "foo.exe" is OK but "foo" is an error. 21270 # 21271 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21272 # It is also a way to make sure we got the proper file name for the real test later on. 21273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21274 if test "x$test_shortpath" = x; then 21275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21276 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21277 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21278 fi 21279 21280 # Call helper function which possibly converts this using DOS-style short mode. 21281 # If so, the updated path is stored in $new_path. 21282 21283 input_path="$new_path" 21284 # Check if we need to convert this using DOS-style short mode. If the path 21285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21286 # take no chances and rewrite it. 21287 # Note: m4 eats our [], so we need to use [ and ] instead. 21288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21289 if test "x$has_forbidden_chars" != x; then 21290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21291 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21292 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21293 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21294 # Going to short mode and back again did indeed matter. Since short mode is 21295 # case insensitive, let's make it lowercase to improve readability. 21296 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21297 # Now convert it back to Unix-style (cygpath) 21298 input_path=`$CYGPATH -u "$shortmode_path"` 21299 new_path="$input_path" 21300 fi 21301 fi 21302 21303 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21304 if test "x$test_cygdrive_prefix" = x; then 21305 # As a simple fix, exclude /usr/bin since it's not a real path. 21306 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21307 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21308 # a path prefixed by /cygdrive for fixpath to work. 21309 new_path="$CYGWIN_ROOT_PATH$input_path" 21310 fi 21311 fi 21312 21313 21314 if test "x$path" != "x$new_path"; then 21315 BOOT_JDK="$new_path" 21316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21317 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21318 fi 21319 21320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21321 21322 path="$BOOT_JDK" 21323 has_colon=`$ECHO $path | $GREP ^.:` 21324 new_path="$path" 21325 if test "x$has_colon" = x; then 21326 # Not in mixed or Windows style, start by that. 21327 new_path=`cmd //c echo $path` 21328 fi 21329 21330 21331 input_path="$new_path" 21332 # Check if we need to convert this using DOS-style short mode. If the path 21333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21334 # take no chances and rewrite it. 21335 # Note: m4 eats our [], so we need to use [ and ] instead. 21336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21337 if test "x$has_forbidden_chars" != x; then 21338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21339 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21340 fi 21341 21342 21343 windows_path="$new_path" 21344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21345 unix_path=`$CYGPATH -u "$windows_path"` 21346 new_path="$unix_path" 21347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21349 new_path="$unix_path" 21350 fi 21351 21352 if test "x$path" != "x$new_path"; then 21353 BOOT_JDK="$new_path" 21354 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21355 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21356 fi 21357 21358 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21359 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21360 21361 else 21362 # We're on a unix platform. Hooray! :) 21363 path="$BOOT_JDK" 21364 has_space=`$ECHO "$path" | $GREP " "` 21365 if test "x$has_space" != x; then 21366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21367 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21368 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21369 fi 21370 21371 # Use eval to expand a potential ~ 21372 eval path="$path" 21373 if test ! -f "$path" && test ! -d "$path"; then 21374 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21375 fi 21376 21377 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21378 fi 21379 fi 21380 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21382 $as_echo_n "checking for Boot JDK... " >&6; } 21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21384 $as_echo "$BOOT_JDK" >&6; } 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21386 $as_echo_n "checking Boot JDK version... " >&6; } 21387 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21389 $as_echo "$BOOT_JDK_VERSION" >&6; } 21390 fi # end check jdk version 21391 fi # end check javac 21392 fi # end check java 21393 fi # end check boot jdk found 21394 fi 21395 21396 # If that did not work out (e.g. too old), try explicit versions instead 21397 21398 if test "x$BOOT_JDK_FOUND" = xno; then 21399 # Now execute the test 21400 21401 if test -x /usr/libexec/java_home; then 21402 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 21403 BOOT_JDK_FOUND=maybe 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 21405 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 21406 fi 21407 21408 21409 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21410 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21411 # Do we have a bin/java? 21412 if test ! -x "$BOOT_JDK/bin/java"; then 21413 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21415 BOOT_JDK_FOUND=no 21416 else 21417 # Do we have a bin/javac? 21418 if test ! -x "$BOOT_JDK/bin/javac"; then 21419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21423 BOOT_JDK_FOUND=no 21424 else 21425 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21426 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21427 21428 # Extra M4 quote needed to protect [] in grep expression. 21429 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21430 if test "x$FOUND_CORRECT_VERSION" = x; then 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21434 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21435 BOOT_JDK_FOUND=no 21436 else 21437 # We're done! :-) 21438 BOOT_JDK_FOUND=yes 21439 21440 # Only process if variable expands to non-empty 21441 21442 if test "x$BOOT_JDK" != x; then 21443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21444 21445 # Input might be given as Windows format, start by converting to 21446 # unix format. 21447 path="$BOOT_JDK" 21448 new_path=`$CYGPATH -u "$path"` 21449 21450 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21451 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21452 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21453 # "foo.exe" is OK but "foo" is an error. 21454 # 21455 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21456 # It is also a way to make sure we got the proper file name for the real test later on. 21457 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21458 if test "x$test_shortpath" = x; then 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21461 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21462 fi 21463 21464 # Call helper function which possibly converts this using DOS-style short mode. 21465 # If so, the updated path is stored in $new_path. 21466 21467 input_path="$new_path" 21468 # Check if we need to convert this using DOS-style short mode. If the path 21469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21470 # take no chances and rewrite it. 21471 # Note: m4 eats our [], so we need to use [ and ] instead. 21472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21473 if test "x$has_forbidden_chars" != x; then 21474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21478 # Going to short mode and back again did indeed matter. Since short mode is 21479 # case insensitive, let's make it lowercase to improve readability. 21480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21481 # Now convert it back to Unix-style (cygpath) 21482 input_path=`$CYGPATH -u "$shortmode_path"` 21483 new_path="$input_path" 21484 fi 21485 fi 21486 21487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21488 if test "x$test_cygdrive_prefix" = x; then 21489 # As a simple fix, exclude /usr/bin since it's not a real path. 21490 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21492 # a path prefixed by /cygdrive for fixpath to work. 21493 new_path="$CYGWIN_ROOT_PATH$input_path" 21494 fi 21495 fi 21496 21497 21498 if test "x$path" != "x$new_path"; then 21499 BOOT_JDK="$new_path" 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21502 fi 21503 21504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21505 21506 path="$BOOT_JDK" 21507 has_colon=`$ECHO $path | $GREP ^.:` 21508 new_path="$path" 21509 if test "x$has_colon" = x; then 21510 # Not in mixed or Windows style, start by that. 21511 new_path=`cmd //c echo $path` 21512 fi 21513 21514 21515 input_path="$new_path" 21516 # Check if we need to convert this using DOS-style short mode. If the path 21517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21518 # take no chances and rewrite it. 21519 # Note: m4 eats our [], so we need to use [ and ] instead. 21520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21521 if test "x$has_forbidden_chars" != x; then 21522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21524 fi 21525 21526 21527 windows_path="$new_path" 21528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21529 unix_path=`$CYGPATH -u "$windows_path"` 21530 new_path="$unix_path" 21531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21533 new_path="$unix_path" 21534 fi 21535 21536 if test "x$path" != "x$new_path"; then 21537 BOOT_JDK="$new_path" 21538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21540 fi 21541 21542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21544 21545 else 21546 # We're on a unix platform. Hooray! :) 21547 path="$BOOT_JDK" 21548 has_space=`$ECHO "$path" | $GREP " "` 21549 if test "x$has_space" != x; then 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21552 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21553 fi 21554 21555 # Use eval to expand a potential ~ 21556 eval path="$path" 21557 if test ! -f "$path" && test ! -d "$path"; then 21558 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21559 fi 21560 21561 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21562 fi 21563 fi 21564 21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21566 $as_echo_n "checking for Boot JDK... " >&6; } 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21568 $as_echo "$BOOT_JDK" >&6; } 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21570 $as_echo_n "checking Boot JDK version... " >&6; } 21571 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21573 $as_echo "$BOOT_JDK_VERSION" >&6; } 21574 fi # end check jdk version 21575 fi # end check javac 21576 fi # end check java 21577 fi # end check boot jdk found 21578 fi 21579 21580 21581 if test "x$BOOT_JDK_FOUND" = xno; then 21582 # Now execute the test 21583 21584 if test -x /usr/libexec/java_home; then 21585 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21586 BOOT_JDK_FOUND=maybe 21587 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21588 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21589 fi 21590 21591 21592 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21593 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21594 # Do we have a bin/java? 21595 if test ! -x "$BOOT_JDK/bin/java"; then 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21598 BOOT_JDK_FOUND=no 21599 else 21600 # Do we have a bin/javac? 21601 if test ! -x "$BOOT_JDK/bin/javac"; then 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21604 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21605 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21606 BOOT_JDK_FOUND=no 21607 else 21608 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21609 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21610 21611 # Extra M4 quote needed to protect [] in grep expression. 21612 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21613 if test "x$FOUND_CORRECT_VERSION" = x; then 21614 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21617 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21618 BOOT_JDK_FOUND=no 21619 else 21620 # We're done! :-) 21621 BOOT_JDK_FOUND=yes 21622 21623 # Only process if variable expands to non-empty 21624 21625 if test "x$BOOT_JDK" != x; then 21626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21627 21628 # Input might be given as Windows format, start by converting to 21629 # unix format. 21630 path="$BOOT_JDK" 21631 new_path=`$CYGPATH -u "$path"` 21632 21633 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21634 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21635 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21636 # "foo.exe" is OK but "foo" is an error. 21637 # 21638 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21639 # It is also a way to make sure we got the proper file name for the real test later on. 21640 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21641 if test "x$test_shortpath" = x; then 21642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21643 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21644 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21645 fi 21646 21647 # Call helper function which possibly converts this using DOS-style short mode. 21648 # If so, the updated path is stored in $new_path. 21649 21650 input_path="$new_path" 21651 # Check if we need to convert this using DOS-style short mode. If the path 21652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21653 # take no chances and rewrite it. 21654 # Note: m4 eats our [], so we need to use [ and ] instead. 21655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21656 if test "x$has_forbidden_chars" != x; then 21657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21661 # Going to short mode and back again did indeed matter. Since short mode is 21662 # case insensitive, let's make it lowercase to improve readability. 21663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21664 # Now convert it back to Unix-style (cygpath) 21665 input_path=`$CYGPATH -u "$shortmode_path"` 21666 new_path="$input_path" 21667 fi 21668 fi 21669 21670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21671 if test "x$test_cygdrive_prefix" = x; then 21672 # As a simple fix, exclude /usr/bin since it's not a real path. 21673 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21675 # a path prefixed by /cygdrive for fixpath to work. 21676 new_path="$CYGWIN_ROOT_PATH$input_path" 21677 fi 21678 fi 21679 21680 21681 if test "x$path" != "x$new_path"; then 21682 BOOT_JDK="$new_path" 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21684 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21685 fi 21686 21687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21688 21689 path="$BOOT_JDK" 21690 has_colon=`$ECHO $path | $GREP ^.:` 21691 new_path="$path" 21692 if test "x$has_colon" = x; then 21693 # Not in mixed or Windows style, start by that. 21694 new_path=`cmd //c echo $path` 21695 fi 21696 21697 21698 input_path="$new_path" 21699 # Check if we need to convert this using DOS-style short mode. If the path 21700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21701 # take no chances and rewrite it. 21702 # Note: m4 eats our [], so we need to use [ and ] instead. 21703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21704 if test "x$has_forbidden_chars" != x; then 21705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21706 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21707 fi 21708 21709 21710 windows_path="$new_path" 21711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21712 unix_path=`$CYGPATH -u "$windows_path"` 21713 new_path="$unix_path" 21714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21716 new_path="$unix_path" 21717 fi 21718 21719 if test "x$path" != "x$new_path"; then 21720 BOOT_JDK="$new_path" 21721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21722 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21723 fi 21724 21725 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21726 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21727 21728 else 21729 # We're on a unix platform. Hooray! :) 21730 path="$BOOT_JDK" 21731 has_space=`$ECHO "$path" | $GREP " "` 21732 if test "x$has_space" != x; then 21733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21734 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21735 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21736 fi 21737 21738 # Use eval to expand a potential ~ 21739 eval path="$path" 21740 if test ! -f "$path" && test ! -d "$path"; then 21741 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21742 fi 21743 21744 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21745 fi 21746 fi 21747 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21749 $as_echo_n "checking for Boot JDK... " >&6; } 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21751 $as_echo "$BOOT_JDK" >&6; } 21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21753 $as_echo_n "checking Boot JDK version... " >&6; } 21754 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21756 $as_echo "$BOOT_JDK_VERSION" >&6; } 21757 fi # end check jdk version 21758 fi # end check javac 21759 fi # end check java 21760 fi # end check boot jdk found 21761 fi 21762 21763 21764 if test "x$BOOT_JDK_FOUND" = xno; then 21765 # Now execute the test 21766 21767 if test -x /usr/libexec/java_home; then 21768 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21769 BOOT_JDK_FOUND=maybe 21770 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21771 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21772 fi 21773 21774 21775 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21776 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21777 # Do we have a bin/java? 21778 if test ! -x "$BOOT_JDK/bin/java"; then 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21781 BOOT_JDK_FOUND=no 21782 else 21783 # Do we have a bin/javac? 21784 if test ! -x "$BOOT_JDK/bin/javac"; then 21785 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21786 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21788 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21789 BOOT_JDK_FOUND=no 21790 else 21791 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21792 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21793 21794 # Extra M4 quote needed to protect [] in grep expression. 21795 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21796 if test "x$FOUND_CORRECT_VERSION" = x; then 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21799 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21800 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21801 BOOT_JDK_FOUND=no 21802 else 21803 # We're done! :-) 21804 BOOT_JDK_FOUND=yes 21805 21806 # Only process if variable expands to non-empty 21807 21808 if test "x$BOOT_JDK" != x; then 21809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21810 21811 # Input might be given as Windows format, start by converting to 21812 # unix format. 21813 path="$BOOT_JDK" 21814 new_path=`$CYGPATH -u "$path"` 21815 21816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21819 # "foo.exe" is OK but "foo" is an error. 21820 # 21821 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21822 # It is also a way to make sure we got the proper file name for the real test later on. 21823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21824 if test "x$test_shortpath" = x; then 21825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21826 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21827 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21828 fi 21829 21830 # Call helper function which possibly converts this using DOS-style short mode. 21831 # If so, the updated path is stored in $new_path. 21832 21833 input_path="$new_path" 21834 # Check if we need to convert this using DOS-style short mode. If the path 21835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21836 # take no chances and rewrite it. 21837 # Note: m4 eats our [], so we need to use [ and ] instead. 21838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21839 if test "x$has_forbidden_chars" != x; then 21840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21841 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21842 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21843 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21844 # Going to short mode and back again did indeed matter. Since short mode is 21845 # case insensitive, let's make it lowercase to improve readability. 21846 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21847 # Now convert it back to Unix-style (cygpath) 21848 input_path=`$CYGPATH -u "$shortmode_path"` 21849 new_path="$input_path" 21850 fi 21851 fi 21852 21853 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21854 if test "x$test_cygdrive_prefix" = x; then 21855 # As a simple fix, exclude /usr/bin since it's not a real path. 21856 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21857 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21858 # a path prefixed by /cygdrive for fixpath to work. 21859 new_path="$CYGWIN_ROOT_PATH$input_path" 21860 fi 21861 fi 21862 21863 21864 if test "x$path" != "x$new_path"; then 21865 BOOT_JDK="$new_path" 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21867 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21868 fi 21869 21870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21871 21872 path="$BOOT_JDK" 21873 has_colon=`$ECHO $path | $GREP ^.:` 21874 new_path="$path" 21875 if test "x$has_colon" = x; then 21876 # Not in mixed or Windows style, start by that. 21877 new_path=`cmd //c echo $path` 21878 fi 21879 21880 21881 input_path="$new_path" 21882 # Check if we need to convert this using DOS-style short mode. If the path 21883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21884 # take no chances and rewrite it. 21885 # Note: m4 eats our [], so we need to use [ and ] instead. 21886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21887 if test "x$has_forbidden_chars" != x; then 21888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21890 fi 21891 21892 21893 windows_path="$new_path" 21894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21895 unix_path=`$CYGPATH -u "$windows_path"` 21896 new_path="$unix_path" 21897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21899 new_path="$unix_path" 21900 fi 21901 21902 if test "x$path" != "x$new_path"; then 21903 BOOT_JDK="$new_path" 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21906 fi 21907 21908 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21909 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21910 21911 else 21912 # We're on a unix platform. Hooray! :) 21913 path="$BOOT_JDK" 21914 has_space=`$ECHO "$path" | $GREP " "` 21915 if test "x$has_space" != x; then 21916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21918 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21919 fi 21920 21921 # Use eval to expand a potential ~ 21922 eval path="$path" 21923 if test ! -f "$path" && test ! -d "$path"; then 21924 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21925 fi 21926 21927 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21928 fi 21929 fi 21930 21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21932 $as_echo_n "checking for Boot JDK... " >&6; } 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21934 $as_echo "$BOOT_JDK" >&6; } 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21936 $as_echo_n "checking Boot JDK version... " >&6; } 21937 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21939 $as_echo "$BOOT_JDK_VERSION" >&6; } 21940 fi # end check jdk version 21941 fi # end check javac 21942 fi # end check java 21943 fi # end check boot jdk found 21944 fi 21945 21946 fi 21947 21948 21949 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21950 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21951 # Do we have a bin/java? 21952 if test ! -x "$BOOT_JDK/bin/java"; then 21953 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21955 BOOT_JDK_FOUND=no 21956 else 21957 # Do we have a bin/javac? 21958 if test ! -x "$BOOT_JDK/bin/javac"; then 21959 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21961 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21962 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21963 BOOT_JDK_FOUND=no 21964 else 21965 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21966 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21967 21968 # Extra M4 quote needed to protect [] in grep expression. 21969 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21970 if test "x$FOUND_CORRECT_VERSION" = x; then 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21972 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21974 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21975 BOOT_JDK_FOUND=no 21976 else 21977 # We're done! :-) 21978 BOOT_JDK_FOUND=yes 21979 21980 # Only process if variable expands to non-empty 21981 21982 if test "x$BOOT_JDK" != x; then 21983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21984 21985 # Input might be given as Windows format, start by converting to 21986 # unix format. 21987 path="$BOOT_JDK" 21988 new_path=`$CYGPATH -u "$path"` 21989 21990 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21991 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21992 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21993 # "foo.exe" is OK but "foo" is an error. 21994 # 21995 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21996 # It is also a way to make sure we got the proper file name for the real test later on. 21997 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21998 if test "x$test_shortpath" = x; then 21999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22000 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22001 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22002 fi 22003 22004 # Call helper function which possibly converts this using DOS-style short mode. 22005 # If so, the updated path is stored in $new_path. 22006 22007 input_path="$new_path" 22008 # Check if we need to convert this using DOS-style short mode. If the path 22009 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22010 # take no chances and rewrite it. 22011 # Note: m4 eats our [], so we need to use [ and ] instead. 22012 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22013 if test "x$has_forbidden_chars" != x; then 22014 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22015 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22016 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22017 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22018 # Going to short mode and back again did indeed matter. Since short mode is 22019 # case insensitive, let's make it lowercase to improve readability. 22020 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22021 # Now convert it back to Unix-style (cygpath) 22022 input_path=`$CYGPATH -u "$shortmode_path"` 22023 new_path="$input_path" 22024 fi 22025 fi 22026 22027 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22028 if test "x$test_cygdrive_prefix" = x; then 22029 # As a simple fix, exclude /usr/bin since it's not a real path. 22030 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22031 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22032 # a path prefixed by /cygdrive for fixpath to work. 22033 new_path="$CYGWIN_ROOT_PATH$input_path" 22034 fi 22035 fi 22036 22037 22038 if test "x$path" != "x$new_path"; then 22039 BOOT_JDK="$new_path" 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22041 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22042 fi 22043 22044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22045 22046 path="$BOOT_JDK" 22047 has_colon=`$ECHO $path | $GREP ^.:` 22048 new_path="$path" 22049 if test "x$has_colon" = x; then 22050 # Not in mixed or Windows style, start by that. 22051 new_path=`cmd //c echo $path` 22052 fi 22053 22054 22055 input_path="$new_path" 22056 # Check if we need to convert this using DOS-style short mode. If the path 22057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22058 # take no chances and rewrite it. 22059 # Note: m4 eats our [], so we need to use [ and ] instead. 22060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22061 if test "x$has_forbidden_chars" != x; then 22062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22063 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22064 fi 22065 22066 22067 windows_path="$new_path" 22068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22069 unix_path=`$CYGPATH -u "$windows_path"` 22070 new_path="$unix_path" 22071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22073 new_path="$unix_path" 22074 fi 22075 22076 if test "x$path" != "x$new_path"; then 22077 BOOT_JDK="$new_path" 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22079 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22080 fi 22081 22082 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22083 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22084 22085 else 22086 # We're on a unix platform. Hooray! :) 22087 path="$BOOT_JDK" 22088 has_space=`$ECHO "$path" | $GREP " "` 22089 if test "x$has_space" != x; then 22090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22091 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22092 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22093 fi 22094 22095 # Use eval to expand a potential ~ 22096 eval path="$path" 22097 if test ! -f "$path" && test ! -d "$path"; then 22098 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22099 fi 22100 22101 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22102 fi 22103 fi 22104 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22106 $as_echo_n "checking for Boot JDK... " >&6; } 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22108 $as_echo "$BOOT_JDK" >&6; } 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22110 $as_echo_n "checking Boot JDK version... " >&6; } 22111 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22113 $as_echo "$BOOT_JDK_VERSION" >&6; } 22114 fi # end check jdk version 22115 fi # end check javac 22116 fi # end check java 22117 fi # end check boot jdk found 22118 fi 22119 22120 22121 # Test: Is $JAVA_HOME set? 22122 22123 if test "x$BOOT_JDK_FOUND" = xno; then 22124 # Now execute the test 22125 22126 if test "x$JAVA_HOME" != x; then 22127 JAVA_HOME_PROCESSED="$JAVA_HOME" 22128 22129 # Only process if variable expands to non-empty 22130 22131 if test "x$JAVA_HOME_PROCESSED" != x; then 22132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22133 22134 # Input might be given as Windows format, start by converting to 22135 # unix format. 22136 path="$JAVA_HOME_PROCESSED" 22137 new_path=`$CYGPATH -u "$path"` 22138 22139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22142 # "foo.exe" is OK but "foo" is an error. 22143 # 22144 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22145 # It is also a way to make sure we got the proper file name for the real test later on. 22146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22147 if test "x$test_shortpath" = x; then 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 22149 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 22150 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 22151 fi 22152 22153 # Call helper function which possibly converts this using DOS-style short mode. 22154 # If so, the updated path is stored in $new_path. 22155 22156 input_path="$new_path" 22157 # Check if we need to convert this using DOS-style short mode. If the path 22158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22159 # take no chances and rewrite it. 22160 # Note: m4 eats our [], so we need to use [ and ] instead. 22161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22162 if test "x$has_forbidden_chars" != x; then 22163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22164 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22165 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22166 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22167 # Going to short mode and back again did indeed matter. Since short mode is 22168 # case insensitive, let's make it lowercase to improve readability. 22169 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22170 # Now convert it back to Unix-style (cygpath) 22171 input_path=`$CYGPATH -u "$shortmode_path"` 22172 new_path="$input_path" 22173 fi 22174 fi 22175 22176 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22177 if test "x$test_cygdrive_prefix" = x; then 22178 # As a simple fix, exclude /usr/bin since it's not a real path. 22179 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22180 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22181 # a path prefixed by /cygdrive for fixpath to work. 22182 new_path="$CYGWIN_ROOT_PATH$input_path" 22183 fi 22184 fi 22185 22186 22187 if test "x$path" != "x$new_path"; then 22188 JAVA_HOME_PROCESSED="$new_path" 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 22190 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 22191 fi 22192 22193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22194 22195 path="$JAVA_HOME_PROCESSED" 22196 has_colon=`$ECHO $path | $GREP ^.:` 22197 new_path="$path" 22198 if test "x$has_colon" = x; then 22199 # Not in mixed or Windows style, start by that. 22200 new_path=`cmd //c echo $path` 22201 fi 22202 22203 22204 input_path="$new_path" 22205 # Check if we need to convert this using DOS-style short mode. If the path 22206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22207 # take no chances and rewrite it. 22208 # Note: m4 eats our [], so we need to use [ and ] instead. 22209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22210 if test "x$has_forbidden_chars" != x; then 22211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22213 fi 22214 22215 22216 windows_path="$new_path" 22217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22218 unix_path=`$CYGPATH -u "$windows_path"` 22219 new_path="$unix_path" 22220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22222 new_path="$unix_path" 22223 fi 22224 22225 if test "x$path" != "x$new_path"; then 22226 JAVA_HOME_PROCESSED="$new_path" 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 22228 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 22229 fi 22230 22231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22233 22234 else 22235 # We're on a unix platform. Hooray! :) 22236 path="$JAVA_HOME_PROCESSED" 22237 has_space=`$ECHO "$path" | $GREP " "` 22238 if test "x$has_space" != x; then 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 22240 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 22241 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22242 fi 22243 22244 # Use eval to expand a potential ~ 22245 eval path="$path" 22246 if test ! -f "$path" && test ! -d "$path"; then 22247 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 22248 fi 22249 22250 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 22251 fi 22252 fi 22253 22254 if test ! -d "$JAVA_HOME_PROCESSED"; then 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 22256 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 22257 else 22258 # Aha, the user has set a JAVA_HOME 22259 # let us use that as the Boot JDK. 22260 BOOT_JDK="$JAVA_HOME_PROCESSED" 22261 BOOT_JDK_FOUND=maybe 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 22263 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 22264 fi 22265 fi 22266 22267 22268 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22269 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22270 # Do we have a bin/java? 22271 if test ! -x "$BOOT_JDK/bin/java"; then 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22273 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22274 BOOT_JDK_FOUND=no 22275 else 22276 # Do we have a bin/javac? 22277 if test ! -x "$BOOT_JDK/bin/javac"; then 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22279 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22280 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22281 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22282 BOOT_JDK_FOUND=no 22283 else 22284 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22285 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22286 22287 # Extra M4 quote needed to protect [] in grep expression. 22288 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22289 if test "x$FOUND_CORRECT_VERSION" = x; then 22290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22292 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22293 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22294 BOOT_JDK_FOUND=no 22295 else 22296 # We're done! :-) 22297 BOOT_JDK_FOUND=yes 22298 22299 # Only process if variable expands to non-empty 22300 22301 if test "x$BOOT_JDK" != x; then 22302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22303 22304 # Input might be given as Windows format, start by converting to 22305 # unix format. 22306 path="$BOOT_JDK" 22307 new_path=`$CYGPATH -u "$path"` 22308 22309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22312 # "foo.exe" is OK but "foo" is an error. 22313 # 22314 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22315 # It is also a way to make sure we got the proper file name for the real test later on. 22316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22317 if test "x$test_shortpath" = x; then 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22320 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22321 fi 22322 22323 # Call helper function which possibly converts this using DOS-style short mode. 22324 # If so, the updated path is stored in $new_path. 22325 22326 input_path="$new_path" 22327 # Check if we need to convert this using DOS-style short mode. If the path 22328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22329 # take no chances and rewrite it. 22330 # Note: m4 eats our [], so we need to use [ and ] instead. 22331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22332 if test "x$has_forbidden_chars" != x; then 22333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22337 # Going to short mode and back again did indeed matter. Since short mode is 22338 # case insensitive, let's make it lowercase to improve readability. 22339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22340 # Now convert it back to Unix-style (cygpath) 22341 input_path=`$CYGPATH -u "$shortmode_path"` 22342 new_path="$input_path" 22343 fi 22344 fi 22345 22346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22347 if test "x$test_cygdrive_prefix" = x; then 22348 # As a simple fix, exclude /usr/bin since it's not a real path. 22349 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22351 # a path prefixed by /cygdrive for fixpath to work. 22352 new_path="$CYGWIN_ROOT_PATH$input_path" 22353 fi 22354 fi 22355 22356 22357 if test "x$path" != "x$new_path"; then 22358 BOOT_JDK="$new_path" 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22361 fi 22362 22363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22364 22365 path="$BOOT_JDK" 22366 has_colon=`$ECHO $path | $GREP ^.:` 22367 new_path="$path" 22368 if test "x$has_colon" = x; then 22369 # Not in mixed or Windows style, start by that. 22370 new_path=`cmd //c echo $path` 22371 fi 22372 22373 22374 input_path="$new_path" 22375 # Check if we need to convert this using DOS-style short mode. If the path 22376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22377 # take no chances and rewrite it. 22378 # Note: m4 eats our [], so we need to use [ and ] instead. 22379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22380 if test "x$has_forbidden_chars" != x; then 22381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22383 fi 22384 22385 22386 windows_path="$new_path" 22387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22388 unix_path=`$CYGPATH -u "$windows_path"` 22389 new_path="$unix_path" 22390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22392 new_path="$unix_path" 22393 fi 22394 22395 if test "x$path" != "x$new_path"; then 22396 BOOT_JDK="$new_path" 22397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22398 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22399 fi 22400 22401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22403 22404 else 22405 # We're on a unix platform. Hooray! :) 22406 path="$BOOT_JDK" 22407 has_space=`$ECHO "$path" | $GREP " "` 22408 if test "x$has_space" != x; then 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22410 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22411 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22412 fi 22413 22414 # Use eval to expand a potential ~ 22415 eval path="$path" 22416 if test ! -f "$path" && test ! -d "$path"; then 22417 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22418 fi 22419 22420 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22421 fi 22422 fi 22423 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22425 $as_echo_n "checking for Boot JDK... " >&6; } 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22427 $as_echo "$BOOT_JDK" >&6; } 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22429 $as_echo_n "checking Boot JDK version... " >&6; } 22430 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22432 $as_echo "$BOOT_JDK_VERSION" >&6; } 22433 fi # end check jdk version 22434 fi # end check javac 22435 fi # end check java 22436 fi # end check boot jdk found 22437 fi 22438 22439 22440 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 22441 22442 if test "x$BOOT_JDK_FOUND" = xno; then 22443 # Now execute the test 22444 22445 # Extract the first word of "javac", so it can be a program name with args. 22446 set dummy javac; ac_word=$2 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22448 $as_echo_n "checking for $ac_word... " >&6; } 22449 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 22450 $as_echo_n "(cached) " >&6 22451 else 22452 case $JAVAC_CHECK in 22453 [\\/]* | ?:[\\/]*) 22454 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 22455 ;; 22456 *) 22457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22458 for as_dir in $PATH 22459 do 22460 IFS=$as_save_IFS 22461 test -z "$as_dir" && as_dir=. 22462 for ac_exec_ext in '' $ac_executable_extensions; do 22463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22464 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 22465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22466 break 2 22467 fi 22468 done 22469 done 22470 IFS=$as_save_IFS 22471 22472 ;; 22473 esac 22474 fi 22475 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 22476 if test -n "$JAVAC_CHECK"; then 22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 22478 $as_echo "$JAVAC_CHECK" >&6; } 22479 else 22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22481 $as_echo "no" >&6; } 22482 fi 22483 22484 22485 # Extract the first word of "java", so it can be a program name with args. 22486 set dummy java; ac_word=$2 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22488 $as_echo_n "checking for $ac_word... " >&6; } 22489 if ${ac_cv_path_JAVA_CHECK+:} false; then : 22490 $as_echo_n "(cached) " >&6 22491 else 22492 case $JAVA_CHECK in 22493 [\\/]* | ?:[\\/]*) 22494 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 22495 ;; 22496 *) 22497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22498 for as_dir in $PATH 22499 do 22500 IFS=$as_save_IFS 22501 test -z "$as_dir" && as_dir=. 22502 for ac_exec_ext in '' $ac_executable_extensions; do 22503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22504 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22506 break 2 22507 fi 22508 done 22509 done 22510 IFS=$as_save_IFS 22511 22512 ;; 22513 esac 22514 fi 22515 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22516 if test -n "$JAVA_CHECK"; then 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22518 $as_echo "$JAVA_CHECK" >&6; } 22519 else 22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22521 $as_echo "no" >&6; } 22522 fi 22523 22524 22525 BINARY="$JAVAC_CHECK" 22526 if test "x$JAVAC_CHECK" = x; then 22527 BINARY="$JAVA_CHECK" 22528 fi 22529 if test "x$BINARY" != x; then 22530 # So there is a java(c) binary, it might be part of a JDK. 22531 # Lets find the JDK/JRE directory by following symbolic links. 22532 # Linux/GNU systems often have links from /usr/bin/java to 22533 # /etc/alternatives/java to the real JDK binary. 22534 22535 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22536 # Follow a chain of symbolic links. Use readlink 22537 # where it exists, else fall back to horribly 22538 # complicated shell code. 22539 if test "x$READLINK_TESTED" != yes; then 22540 # On MacOSX there is a readlink tool with a different 22541 # purpose than the GNU readlink tool. Check the found readlink. 22542 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22543 if test "x$ISGNU" = x; then 22544 # A readlink that we do not know how to use. 22545 # Are there other non-GNU readlinks out there? 22546 READLINK_TESTED=yes 22547 READLINK= 22548 fi 22549 fi 22550 22551 if test "x$READLINK" != x; then 22552 BINARY=`$READLINK -f $BINARY` 22553 else 22554 # Save the current directory for restoring afterwards 22555 STARTDIR=$PWD 22556 COUNTER=0 22557 sym_link_dir=`$DIRNAME $BINARY` 22558 sym_link_file=`$BASENAME $BINARY` 22559 cd $sym_link_dir 22560 # Use -P flag to resolve symlinks in directories. 22561 cd `$THEPWDCMD -P` 22562 sym_link_dir=`$THEPWDCMD -P` 22563 # Resolve file symlinks 22564 while test $COUNTER -lt 20; do 22565 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22566 if test "x$ISLINK" == x; then 22567 # This is not a symbolic link! We are done! 22568 break 22569 fi 22570 # Again resolve directory symlinks since the target of the just found 22571 # link could be in a different directory 22572 cd `$DIRNAME $ISLINK` 22573 sym_link_dir=`$THEPWDCMD -P` 22574 sym_link_file=`$BASENAME $ISLINK` 22575 let COUNTER=COUNTER+1 22576 done 22577 cd $STARTDIR 22578 BINARY=$sym_link_dir/$sym_link_file 22579 fi 22580 fi 22581 22582 BOOT_JDK=`dirname "$BINARY"` 22583 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22584 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22585 # Looks like we found ourselves an JDK 22586 BOOT_JDK_FOUND=maybe 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22588 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22589 fi 22590 fi 22591 22592 22593 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22594 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22595 # Do we have a bin/java? 22596 if test ! -x "$BOOT_JDK/bin/java"; then 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22599 BOOT_JDK_FOUND=no 22600 else 22601 # Do we have a bin/javac? 22602 if test ! -x "$BOOT_JDK/bin/javac"; then 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22606 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22607 BOOT_JDK_FOUND=no 22608 else 22609 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22610 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22611 22612 # Extra M4 quote needed to protect [] in grep expression. 22613 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22614 if test "x$FOUND_CORRECT_VERSION" = x; then 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22618 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22619 BOOT_JDK_FOUND=no 22620 else 22621 # We're done! :-) 22622 BOOT_JDK_FOUND=yes 22623 22624 # Only process if variable expands to non-empty 22625 22626 if test "x$BOOT_JDK" != x; then 22627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22628 22629 # Input might be given as Windows format, start by converting to 22630 # unix format. 22631 path="$BOOT_JDK" 22632 new_path=`$CYGPATH -u "$path"` 22633 22634 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22635 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22636 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22637 # "foo.exe" is OK but "foo" is an error. 22638 # 22639 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22640 # It is also a way to make sure we got the proper file name for the real test later on. 22641 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22642 if test "x$test_shortpath" = x; then 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22644 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22645 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22646 fi 22647 22648 # Call helper function which possibly converts this using DOS-style short mode. 22649 # If so, the updated path is stored in $new_path. 22650 22651 input_path="$new_path" 22652 # Check if we need to convert this using DOS-style short mode. If the path 22653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22654 # take no chances and rewrite it. 22655 # Note: m4 eats our [], so we need to use [ and ] instead. 22656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22657 if test "x$has_forbidden_chars" != x; then 22658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22659 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22660 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22661 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22662 # Going to short mode and back again did indeed matter. Since short mode is 22663 # case insensitive, let's make it lowercase to improve readability. 22664 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22665 # Now convert it back to Unix-style (cygpath) 22666 input_path=`$CYGPATH -u "$shortmode_path"` 22667 new_path="$input_path" 22668 fi 22669 fi 22670 22671 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22672 if test "x$test_cygdrive_prefix" = x; then 22673 # As a simple fix, exclude /usr/bin since it's not a real path. 22674 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22675 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22676 # a path prefixed by /cygdrive for fixpath to work. 22677 new_path="$CYGWIN_ROOT_PATH$input_path" 22678 fi 22679 fi 22680 22681 22682 if test "x$path" != "x$new_path"; then 22683 BOOT_JDK="$new_path" 22684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22685 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22686 fi 22687 22688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22689 22690 path="$BOOT_JDK" 22691 has_colon=`$ECHO $path | $GREP ^.:` 22692 new_path="$path" 22693 if test "x$has_colon" = x; then 22694 # Not in mixed or Windows style, start by that. 22695 new_path=`cmd //c echo $path` 22696 fi 22697 22698 22699 input_path="$new_path" 22700 # Check if we need to convert this using DOS-style short mode. If the path 22701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22702 # take no chances and rewrite it. 22703 # Note: m4 eats our [], so we need to use [ and ] instead. 22704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22705 if test "x$has_forbidden_chars" != x; then 22706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22708 fi 22709 22710 22711 windows_path="$new_path" 22712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22713 unix_path=`$CYGPATH -u "$windows_path"` 22714 new_path="$unix_path" 22715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22717 new_path="$unix_path" 22718 fi 22719 22720 if test "x$path" != "x$new_path"; then 22721 BOOT_JDK="$new_path" 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22723 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22724 fi 22725 22726 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22727 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22728 22729 else 22730 # We're on a unix platform. Hooray! :) 22731 path="$BOOT_JDK" 22732 has_space=`$ECHO "$path" | $GREP " "` 22733 if test "x$has_space" != x; then 22734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22735 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22736 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22737 fi 22738 22739 # Use eval to expand a potential ~ 22740 eval path="$path" 22741 if test ! -f "$path" && test ! -d "$path"; then 22742 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22743 fi 22744 22745 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22746 fi 22747 fi 22748 22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22750 $as_echo_n "checking for Boot JDK... " >&6; } 22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22752 $as_echo "$BOOT_JDK" >&6; } 22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22754 $as_echo_n "checking Boot JDK version... " >&6; } 22755 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22757 $as_echo "$BOOT_JDK_VERSION" >&6; } 22758 fi # end check jdk version 22759 fi # end check javac 22760 fi # end check java 22761 fi # end check boot jdk found 22762 fi 22763 22764 22765 # Test: Is there a JDK installed in default, well-known locations? 22766 22767 if test "x$BOOT_JDK_FOUND" = xno; then 22768 # Now execute the test 22769 22770 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22771 22772 if test "x$BOOT_JDK_FOUND" = xno; then 22773 # Now execute the test 22774 22775 if test "x$ProgramW6432" != x; then 22776 VIRTUAL_DIR="$ProgramW6432/Java" 22777 22778 windows_path="$VIRTUAL_DIR" 22779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22780 unix_path=`$CYGPATH -u "$windows_path"` 22781 VIRTUAL_DIR="$unix_path" 22782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22784 VIRTUAL_DIR="$unix_path" 22785 fi 22786 22787 22788 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22789 BOOT_JDK_SUFFIX="" 22790 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22791 if test "x$ALL_JDKS_FOUND" != x; then 22792 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22793 22794 if test "x$BOOT_JDK_FOUND" = xno; then 22795 # Now execute the test 22796 22797 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22798 if test -d "$BOOT_JDK"; then 22799 BOOT_JDK_FOUND=maybe 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22801 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22802 fi 22803 22804 22805 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22806 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22807 # Do we have a bin/java? 22808 if test ! -x "$BOOT_JDK/bin/java"; then 22809 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22811 BOOT_JDK_FOUND=no 22812 else 22813 # Do we have a bin/javac? 22814 if test ! -x "$BOOT_JDK/bin/javac"; then 22815 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22817 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22818 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22819 BOOT_JDK_FOUND=no 22820 else 22821 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22822 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22823 22824 # Extra M4 quote needed to protect [] in grep expression. 22825 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22826 if test "x$FOUND_CORRECT_VERSION" = x; then 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22828 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22830 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22831 BOOT_JDK_FOUND=no 22832 else 22833 # We're done! :-) 22834 BOOT_JDK_FOUND=yes 22835 22836 # Only process if variable expands to non-empty 22837 22838 if test "x$BOOT_JDK" != x; then 22839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22840 22841 # Input might be given as Windows format, start by converting to 22842 # unix format. 22843 path="$BOOT_JDK" 22844 new_path=`$CYGPATH -u "$path"` 22845 22846 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22847 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22848 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22849 # "foo.exe" is OK but "foo" is an error. 22850 # 22851 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22852 # It is also a way to make sure we got the proper file name for the real test later on. 22853 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22854 if test "x$test_shortpath" = x; then 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22856 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22857 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22858 fi 22859 22860 # Call helper function which possibly converts this using DOS-style short mode. 22861 # If so, the updated path is stored in $new_path. 22862 22863 input_path="$new_path" 22864 # Check if we need to convert this using DOS-style short mode. If the path 22865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22866 # take no chances and rewrite it. 22867 # Note: m4 eats our [], so we need to use [ and ] instead. 22868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22869 if test "x$has_forbidden_chars" != x; then 22870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22871 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22872 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22873 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22874 # Going to short mode and back again did indeed matter. Since short mode is 22875 # case insensitive, let's make it lowercase to improve readability. 22876 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22877 # Now convert it back to Unix-style (cygpath) 22878 input_path=`$CYGPATH -u "$shortmode_path"` 22879 new_path="$input_path" 22880 fi 22881 fi 22882 22883 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22884 if test "x$test_cygdrive_prefix" = x; then 22885 # As a simple fix, exclude /usr/bin since it's not a real path. 22886 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22887 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22888 # a path prefixed by /cygdrive for fixpath to work. 22889 new_path="$CYGWIN_ROOT_PATH$input_path" 22890 fi 22891 fi 22892 22893 22894 if test "x$path" != "x$new_path"; then 22895 BOOT_JDK="$new_path" 22896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22898 fi 22899 22900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22901 22902 path="$BOOT_JDK" 22903 has_colon=`$ECHO $path | $GREP ^.:` 22904 new_path="$path" 22905 if test "x$has_colon" = x; then 22906 # Not in mixed or Windows style, start by that. 22907 new_path=`cmd //c echo $path` 22908 fi 22909 22910 22911 input_path="$new_path" 22912 # Check if we need to convert this using DOS-style short mode. If the path 22913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22914 # take no chances and rewrite it. 22915 # Note: m4 eats our [], so we need to use [ and ] instead. 22916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22917 if test "x$has_forbidden_chars" != x; then 22918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22919 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22920 fi 22921 22922 22923 windows_path="$new_path" 22924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22925 unix_path=`$CYGPATH -u "$windows_path"` 22926 new_path="$unix_path" 22927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22928 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22929 new_path="$unix_path" 22930 fi 22931 22932 if test "x$path" != "x$new_path"; then 22933 BOOT_JDK="$new_path" 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22935 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22936 fi 22937 22938 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22939 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22940 22941 else 22942 # We're on a unix platform. Hooray! :) 22943 path="$BOOT_JDK" 22944 has_space=`$ECHO "$path" | $GREP " "` 22945 if test "x$has_space" != x; then 22946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22947 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22948 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22949 fi 22950 22951 # Use eval to expand a potential ~ 22952 eval path="$path" 22953 if test ! -f "$path" && test ! -d "$path"; then 22954 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22955 fi 22956 22957 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22958 fi 22959 fi 22960 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22962 $as_echo_n "checking for Boot JDK... " >&6; } 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22964 $as_echo "$BOOT_JDK" >&6; } 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22966 $as_echo_n "checking Boot JDK version... " >&6; } 22967 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22969 $as_echo "$BOOT_JDK_VERSION" >&6; } 22970 fi # end check jdk version 22971 fi # end check javac 22972 fi # end check java 22973 fi # end check boot jdk found 22974 fi 22975 22976 done 22977 fi 22978 22979 fi 22980 22981 22982 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22983 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22984 # Do we have a bin/java? 22985 if test ! -x "$BOOT_JDK/bin/java"; then 22986 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22988 BOOT_JDK_FOUND=no 22989 else 22990 # Do we have a bin/javac? 22991 if test ! -x "$BOOT_JDK/bin/javac"; then 22992 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22993 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22995 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22996 BOOT_JDK_FOUND=no 22997 else 22998 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22999 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23000 23001 # Extra M4 quote needed to protect [] in grep expression. 23002 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23003 if test "x$FOUND_CORRECT_VERSION" = x; then 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23006 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23007 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23008 BOOT_JDK_FOUND=no 23009 else 23010 # We're done! :-) 23011 BOOT_JDK_FOUND=yes 23012 23013 # Only process if variable expands to non-empty 23014 23015 if test "x$BOOT_JDK" != x; then 23016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23017 23018 # Input might be given as Windows format, start by converting to 23019 # unix format. 23020 path="$BOOT_JDK" 23021 new_path=`$CYGPATH -u "$path"` 23022 23023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23026 # "foo.exe" is OK but "foo" is an error. 23027 # 23028 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23029 # It is also a way to make sure we got the proper file name for the real test later on. 23030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23031 if test "x$test_shortpath" = x; then 23032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23034 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23035 fi 23036 23037 # Call helper function which possibly converts this using DOS-style short mode. 23038 # If so, the updated path is stored in $new_path. 23039 23040 input_path="$new_path" 23041 # Check if we need to convert this using DOS-style short mode. If the path 23042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23043 # take no chances and rewrite it. 23044 # Note: m4 eats our [], so we need to use [ and ] instead. 23045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23046 if test "x$has_forbidden_chars" != x; then 23047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23051 # Going to short mode and back again did indeed matter. Since short mode is 23052 # case insensitive, let's make it lowercase to improve readability. 23053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23054 # Now convert it back to Unix-style (cygpath) 23055 input_path=`$CYGPATH -u "$shortmode_path"` 23056 new_path="$input_path" 23057 fi 23058 fi 23059 23060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23061 if test "x$test_cygdrive_prefix" = x; then 23062 # As a simple fix, exclude /usr/bin since it's not a real path. 23063 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23065 # a path prefixed by /cygdrive for fixpath to work. 23066 new_path="$CYGWIN_ROOT_PATH$input_path" 23067 fi 23068 fi 23069 23070 23071 if test "x$path" != "x$new_path"; then 23072 BOOT_JDK="$new_path" 23073 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23075 fi 23076 23077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23078 23079 path="$BOOT_JDK" 23080 has_colon=`$ECHO $path | $GREP ^.:` 23081 new_path="$path" 23082 if test "x$has_colon" = x; then 23083 # Not in mixed or Windows style, start by that. 23084 new_path=`cmd //c echo $path` 23085 fi 23086 23087 23088 input_path="$new_path" 23089 # Check if we need to convert this using DOS-style short mode. If the path 23090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23091 # take no chances and rewrite it. 23092 # Note: m4 eats our [], so we need to use [ and ] instead. 23093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23094 if test "x$has_forbidden_chars" != x; then 23095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23096 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23097 fi 23098 23099 23100 windows_path="$new_path" 23101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23102 unix_path=`$CYGPATH -u "$windows_path"` 23103 new_path="$unix_path" 23104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23106 new_path="$unix_path" 23107 fi 23108 23109 if test "x$path" != "x$new_path"; then 23110 BOOT_JDK="$new_path" 23111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23113 fi 23114 23115 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23116 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23117 23118 else 23119 # We're on a unix platform. Hooray! :) 23120 path="$BOOT_JDK" 23121 has_space=`$ECHO "$path" | $GREP " "` 23122 if test "x$has_space" != x; then 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23125 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23126 fi 23127 23128 # Use eval to expand a potential ~ 23129 eval path="$path" 23130 if test ! -f "$path" && test ! -d "$path"; then 23131 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23132 fi 23133 23134 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23135 fi 23136 fi 23137 23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23139 $as_echo_n "checking for Boot JDK... " >&6; } 23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23141 $as_echo "$BOOT_JDK" >&6; } 23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23143 $as_echo_n "checking Boot JDK version... " >&6; } 23144 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23146 $as_echo "$BOOT_JDK_VERSION" >&6; } 23147 fi # end check jdk version 23148 fi # end check javac 23149 fi # end check java 23150 fi # end check boot jdk found 23151 fi 23152 23153 23154 if test "x$BOOT_JDK_FOUND" = xno; then 23155 # Now execute the test 23156 23157 if test "x$PROGRAMW6432" != x; then 23158 VIRTUAL_DIR="$PROGRAMW6432/Java" 23159 23160 windows_path="$VIRTUAL_DIR" 23161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23162 unix_path=`$CYGPATH -u "$windows_path"` 23163 VIRTUAL_DIR="$unix_path" 23164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23166 VIRTUAL_DIR="$unix_path" 23167 fi 23168 23169 23170 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23171 BOOT_JDK_SUFFIX="" 23172 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23173 if test "x$ALL_JDKS_FOUND" != x; then 23174 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23175 23176 if test "x$BOOT_JDK_FOUND" = xno; then 23177 # Now execute the test 23178 23179 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23180 if test -d "$BOOT_JDK"; then 23181 BOOT_JDK_FOUND=maybe 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23183 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23184 fi 23185 23186 23187 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23188 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23189 # Do we have a bin/java? 23190 if test ! -x "$BOOT_JDK/bin/java"; then 23191 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23192 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23193 BOOT_JDK_FOUND=no 23194 else 23195 # Do we have a bin/javac? 23196 if test ! -x "$BOOT_JDK/bin/javac"; then 23197 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23199 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23200 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23201 BOOT_JDK_FOUND=no 23202 else 23203 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23204 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23205 23206 # Extra M4 quote needed to protect [] in grep expression. 23207 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23208 if test "x$FOUND_CORRECT_VERSION" = x; then 23209 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23212 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23213 BOOT_JDK_FOUND=no 23214 else 23215 # We're done! :-) 23216 BOOT_JDK_FOUND=yes 23217 23218 # Only process if variable expands to non-empty 23219 23220 if test "x$BOOT_JDK" != x; then 23221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23222 23223 # Input might be given as Windows format, start by converting to 23224 # unix format. 23225 path="$BOOT_JDK" 23226 new_path=`$CYGPATH -u "$path"` 23227 23228 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23229 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23230 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23231 # "foo.exe" is OK but "foo" is an error. 23232 # 23233 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23234 # It is also a way to make sure we got the proper file name for the real test later on. 23235 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23236 if test "x$test_shortpath" = x; then 23237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23238 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23239 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23240 fi 23241 23242 # Call helper function which possibly converts this using DOS-style short mode. 23243 # If so, the updated path is stored in $new_path. 23244 23245 input_path="$new_path" 23246 # Check if we need to convert this using DOS-style short mode. If the path 23247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23248 # take no chances and rewrite it. 23249 # Note: m4 eats our [], so we need to use [ and ] instead. 23250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23251 if test "x$has_forbidden_chars" != x; then 23252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23253 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23254 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23255 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23256 # Going to short mode and back again did indeed matter. Since short mode is 23257 # case insensitive, let's make it lowercase to improve readability. 23258 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23259 # Now convert it back to Unix-style (cygpath) 23260 input_path=`$CYGPATH -u "$shortmode_path"` 23261 new_path="$input_path" 23262 fi 23263 fi 23264 23265 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23266 if test "x$test_cygdrive_prefix" = x; then 23267 # As a simple fix, exclude /usr/bin since it's not a real path. 23268 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23269 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23270 # a path prefixed by /cygdrive for fixpath to work. 23271 new_path="$CYGWIN_ROOT_PATH$input_path" 23272 fi 23273 fi 23274 23275 23276 if test "x$path" != "x$new_path"; then 23277 BOOT_JDK="$new_path" 23278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23279 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23280 fi 23281 23282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23283 23284 path="$BOOT_JDK" 23285 has_colon=`$ECHO $path | $GREP ^.:` 23286 new_path="$path" 23287 if test "x$has_colon" = x; then 23288 # Not in mixed or Windows style, start by that. 23289 new_path=`cmd //c echo $path` 23290 fi 23291 23292 23293 input_path="$new_path" 23294 # Check if we need to convert this using DOS-style short mode. If the path 23295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23296 # take no chances and rewrite it. 23297 # Note: m4 eats our [], so we need to use [ and ] instead. 23298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23299 if test "x$has_forbidden_chars" != x; then 23300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23301 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23302 fi 23303 23304 23305 windows_path="$new_path" 23306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23307 unix_path=`$CYGPATH -u "$windows_path"` 23308 new_path="$unix_path" 23309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23310 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23311 new_path="$unix_path" 23312 fi 23313 23314 if test "x$path" != "x$new_path"; then 23315 BOOT_JDK="$new_path" 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23317 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23318 fi 23319 23320 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23321 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23322 23323 else 23324 # We're on a unix platform. Hooray! :) 23325 path="$BOOT_JDK" 23326 has_space=`$ECHO "$path" | $GREP " "` 23327 if test "x$has_space" != x; then 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23329 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23330 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23331 fi 23332 23333 # Use eval to expand a potential ~ 23334 eval path="$path" 23335 if test ! -f "$path" && test ! -d "$path"; then 23336 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23337 fi 23338 23339 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23340 fi 23341 fi 23342 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23344 $as_echo_n "checking for Boot JDK... " >&6; } 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23346 $as_echo "$BOOT_JDK" >&6; } 23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23348 $as_echo_n "checking Boot JDK version... " >&6; } 23349 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23351 $as_echo "$BOOT_JDK_VERSION" >&6; } 23352 fi # end check jdk version 23353 fi # end check javac 23354 fi # end check java 23355 fi # end check boot jdk found 23356 fi 23357 23358 done 23359 fi 23360 23361 fi 23362 23363 23364 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23365 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23366 # Do we have a bin/java? 23367 if test ! -x "$BOOT_JDK/bin/java"; then 23368 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23370 BOOT_JDK_FOUND=no 23371 else 23372 # Do we have a bin/javac? 23373 if test ! -x "$BOOT_JDK/bin/javac"; then 23374 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23376 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23377 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23378 BOOT_JDK_FOUND=no 23379 else 23380 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23381 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23382 23383 # Extra M4 quote needed to protect [] in grep expression. 23384 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23385 if test "x$FOUND_CORRECT_VERSION" = x; then 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23389 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23390 BOOT_JDK_FOUND=no 23391 else 23392 # We're done! :-) 23393 BOOT_JDK_FOUND=yes 23394 23395 # Only process if variable expands to non-empty 23396 23397 if test "x$BOOT_JDK" != x; then 23398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23399 23400 # Input might be given as Windows format, start by converting to 23401 # unix format. 23402 path="$BOOT_JDK" 23403 new_path=`$CYGPATH -u "$path"` 23404 23405 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23406 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23407 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23408 # "foo.exe" is OK but "foo" is an error. 23409 # 23410 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23411 # It is also a way to make sure we got the proper file name for the real test later on. 23412 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23413 if test "x$test_shortpath" = x; then 23414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23415 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23416 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23417 fi 23418 23419 # Call helper function which possibly converts this using DOS-style short mode. 23420 # If so, the updated path is stored in $new_path. 23421 23422 input_path="$new_path" 23423 # Check if we need to convert this using DOS-style short mode. If the path 23424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23425 # take no chances and rewrite it. 23426 # Note: m4 eats our [], so we need to use [ and ] instead. 23427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23428 if test "x$has_forbidden_chars" != x; then 23429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23430 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23431 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23432 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23433 # Going to short mode and back again did indeed matter. Since short mode is 23434 # case insensitive, let's make it lowercase to improve readability. 23435 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23436 # Now convert it back to Unix-style (cygpath) 23437 input_path=`$CYGPATH -u "$shortmode_path"` 23438 new_path="$input_path" 23439 fi 23440 fi 23441 23442 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23443 if test "x$test_cygdrive_prefix" = x; then 23444 # As a simple fix, exclude /usr/bin since it's not a real path. 23445 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23446 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23447 # a path prefixed by /cygdrive for fixpath to work. 23448 new_path="$CYGWIN_ROOT_PATH$input_path" 23449 fi 23450 fi 23451 23452 23453 if test "x$path" != "x$new_path"; then 23454 BOOT_JDK="$new_path" 23455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23456 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23457 fi 23458 23459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23460 23461 path="$BOOT_JDK" 23462 has_colon=`$ECHO $path | $GREP ^.:` 23463 new_path="$path" 23464 if test "x$has_colon" = x; then 23465 # Not in mixed or Windows style, start by that. 23466 new_path=`cmd //c echo $path` 23467 fi 23468 23469 23470 input_path="$new_path" 23471 # Check if we need to convert this using DOS-style short mode. If the path 23472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23473 # take no chances and rewrite it. 23474 # Note: m4 eats our [], so we need to use [ and ] instead. 23475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23476 if test "x$has_forbidden_chars" != x; then 23477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23478 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23479 fi 23480 23481 23482 windows_path="$new_path" 23483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23484 unix_path=`$CYGPATH -u "$windows_path"` 23485 new_path="$unix_path" 23486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23488 new_path="$unix_path" 23489 fi 23490 23491 if test "x$path" != "x$new_path"; then 23492 BOOT_JDK="$new_path" 23493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23494 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23495 fi 23496 23497 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23498 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23499 23500 else 23501 # We're on a unix platform. Hooray! :) 23502 path="$BOOT_JDK" 23503 has_space=`$ECHO "$path" | $GREP " "` 23504 if test "x$has_space" != x; then 23505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23506 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23507 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23508 fi 23509 23510 # Use eval to expand a potential ~ 23511 eval path="$path" 23512 if test ! -f "$path" && test ! -d "$path"; then 23513 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23514 fi 23515 23516 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23517 fi 23518 fi 23519 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23521 $as_echo_n "checking for Boot JDK... " >&6; } 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23523 $as_echo "$BOOT_JDK" >&6; } 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23525 $as_echo_n "checking Boot JDK version... " >&6; } 23526 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23528 $as_echo "$BOOT_JDK_VERSION" >&6; } 23529 fi # end check jdk version 23530 fi # end check javac 23531 fi # end check java 23532 fi # end check boot jdk found 23533 fi 23534 23535 23536 if test "x$BOOT_JDK_FOUND" = xno; then 23537 # Now execute the test 23538 23539 if test "x$PROGRAMFILES" != x; then 23540 VIRTUAL_DIR="$PROGRAMFILES/Java" 23541 23542 windows_path="$VIRTUAL_DIR" 23543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23544 unix_path=`$CYGPATH -u "$windows_path"` 23545 VIRTUAL_DIR="$unix_path" 23546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23548 VIRTUAL_DIR="$unix_path" 23549 fi 23550 23551 23552 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23553 BOOT_JDK_SUFFIX="" 23554 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23555 if test "x$ALL_JDKS_FOUND" != x; then 23556 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23557 23558 if test "x$BOOT_JDK_FOUND" = xno; then 23559 # Now execute the test 23560 23561 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23562 if test -d "$BOOT_JDK"; then 23563 BOOT_JDK_FOUND=maybe 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23565 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23566 fi 23567 23568 23569 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23570 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23571 # Do we have a bin/java? 23572 if test ! -x "$BOOT_JDK/bin/java"; then 23573 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23575 BOOT_JDK_FOUND=no 23576 else 23577 # Do we have a bin/javac? 23578 if test ! -x "$BOOT_JDK/bin/javac"; then 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23582 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23583 BOOT_JDK_FOUND=no 23584 else 23585 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23586 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23587 23588 # Extra M4 quote needed to protect [] in grep expression. 23589 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23590 if test "x$FOUND_CORRECT_VERSION" = x; then 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23592 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23593 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23594 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23595 BOOT_JDK_FOUND=no 23596 else 23597 # We're done! :-) 23598 BOOT_JDK_FOUND=yes 23599 23600 # Only process if variable expands to non-empty 23601 23602 if test "x$BOOT_JDK" != x; then 23603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23604 23605 # Input might be given as Windows format, start by converting to 23606 # unix format. 23607 path="$BOOT_JDK" 23608 new_path=`$CYGPATH -u "$path"` 23609 23610 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23611 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23612 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23613 # "foo.exe" is OK but "foo" is an error. 23614 # 23615 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23616 # It is also a way to make sure we got the proper file name for the real test later on. 23617 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23618 if test "x$test_shortpath" = x; then 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23620 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23621 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23622 fi 23623 23624 # Call helper function which possibly converts this using DOS-style short mode. 23625 # If so, the updated path is stored in $new_path. 23626 23627 input_path="$new_path" 23628 # Check if we need to convert this using DOS-style short mode. If the path 23629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23630 # take no chances and rewrite it. 23631 # Note: m4 eats our [], so we need to use [ and ] instead. 23632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23633 if test "x$has_forbidden_chars" != x; then 23634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23635 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23636 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23637 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23638 # Going to short mode and back again did indeed matter. Since short mode is 23639 # case insensitive, let's make it lowercase to improve readability. 23640 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23641 # Now convert it back to Unix-style (cygpath) 23642 input_path=`$CYGPATH -u "$shortmode_path"` 23643 new_path="$input_path" 23644 fi 23645 fi 23646 23647 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23648 if test "x$test_cygdrive_prefix" = x; then 23649 # As a simple fix, exclude /usr/bin since it's not a real path. 23650 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23651 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23652 # a path prefixed by /cygdrive for fixpath to work. 23653 new_path="$CYGWIN_ROOT_PATH$input_path" 23654 fi 23655 fi 23656 23657 23658 if test "x$path" != "x$new_path"; then 23659 BOOT_JDK="$new_path" 23660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23661 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23662 fi 23663 23664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23665 23666 path="$BOOT_JDK" 23667 has_colon=`$ECHO $path | $GREP ^.:` 23668 new_path="$path" 23669 if test "x$has_colon" = x; then 23670 # Not in mixed or Windows style, start by that. 23671 new_path=`cmd //c echo $path` 23672 fi 23673 23674 23675 input_path="$new_path" 23676 # Check if we need to convert this using DOS-style short mode. If the path 23677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23678 # take no chances and rewrite it. 23679 # Note: m4 eats our [], so we need to use [ and ] instead. 23680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23681 if test "x$has_forbidden_chars" != x; then 23682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23684 fi 23685 23686 23687 windows_path="$new_path" 23688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23689 unix_path=`$CYGPATH -u "$windows_path"` 23690 new_path="$unix_path" 23691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23693 new_path="$unix_path" 23694 fi 23695 23696 if test "x$path" != "x$new_path"; then 23697 BOOT_JDK="$new_path" 23698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23699 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23700 fi 23701 23702 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23703 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23704 23705 else 23706 # We're on a unix platform. Hooray! :) 23707 path="$BOOT_JDK" 23708 has_space=`$ECHO "$path" | $GREP " "` 23709 if test "x$has_space" != x; then 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23711 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23712 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23713 fi 23714 23715 # Use eval to expand a potential ~ 23716 eval path="$path" 23717 if test ! -f "$path" && test ! -d "$path"; then 23718 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23719 fi 23720 23721 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23722 fi 23723 fi 23724 23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23726 $as_echo_n "checking for Boot JDK... " >&6; } 23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23728 $as_echo "$BOOT_JDK" >&6; } 23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23730 $as_echo_n "checking Boot JDK version... " >&6; } 23731 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23733 $as_echo "$BOOT_JDK_VERSION" >&6; } 23734 fi # end check jdk version 23735 fi # end check javac 23736 fi # end check java 23737 fi # end check boot jdk found 23738 fi 23739 23740 done 23741 fi 23742 23743 fi 23744 23745 23746 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23747 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23748 # Do we have a bin/java? 23749 if test ! -x "$BOOT_JDK/bin/java"; then 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23752 BOOT_JDK_FOUND=no 23753 else 23754 # Do we have a bin/javac? 23755 if test ! -x "$BOOT_JDK/bin/javac"; then 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23758 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23760 BOOT_JDK_FOUND=no 23761 else 23762 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23763 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23764 23765 # Extra M4 quote needed to protect [] in grep expression. 23766 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23767 if test "x$FOUND_CORRECT_VERSION" = x; then 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23771 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23772 BOOT_JDK_FOUND=no 23773 else 23774 # We're done! :-) 23775 BOOT_JDK_FOUND=yes 23776 23777 # Only process if variable expands to non-empty 23778 23779 if test "x$BOOT_JDK" != x; then 23780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23781 23782 # Input might be given as Windows format, start by converting to 23783 # unix format. 23784 path="$BOOT_JDK" 23785 new_path=`$CYGPATH -u "$path"` 23786 23787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23790 # "foo.exe" is OK but "foo" is an error. 23791 # 23792 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23793 # It is also a way to make sure we got the proper file name for the real test later on. 23794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23795 if test "x$test_shortpath" = x; then 23796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23798 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23799 fi 23800 23801 # Call helper function which possibly converts this using DOS-style short mode. 23802 # If so, the updated path is stored in $new_path. 23803 23804 input_path="$new_path" 23805 # Check if we need to convert this using DOS-style short mode. If the path 23806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23807 # take no chances and rewrite it. 23808 # Note: m4 eats our [], so we need to use [ and ] instead. 23809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23810 if test "x$has_forbidden_chars" != x; then 23811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23812 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23813 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23814 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23815 # Going to short mode and back again did indeed matter. Since short mode is 23816 # case insensitive, let's make it lowercase to improve readability. 23817 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23818 # Now convert it back to Unix-style (cygpath) 23819 input_path=`$CYGPATH -u "$shortmode_path"` 23820 new_path="$input_path" 23821 fi 23822 fi 23823 23824 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23825 if test "x$test_cygdrive_prefix" = x; then 23826 # As a simple fix, exclude /usr/bin since it's not a real path. 23827 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23828 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23829 # a path prefixed by /cygdrive for fixpath to work. 23830 new_path="$CYGWIN_ROOT_PATH$input_path" 23831 fi 23832 fi 23833 23834 23835 if test "x$path" != "x$new_path"; then 23836 BOOT_JDK="$new_path" 23837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23838 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23839 fi 23840 23841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23842 23843 path="$BOOT_JDK" 23844 has_colon=`$ECHO $path | $GREP ^.:` 23845 new_path="$path" 23846 if test "x$has_colon" = x; then 23847 # Not in mixed or Windows style, start by that. 23848 new_path=`cmd //c echo $path` 23849 fi 23850 23851 23852 input_path="$new_path" 23853 # Check if we need to convert this using DOS-style short mode. If the path 23854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23855 # take no chances and rewrite it. 23856 # Note: m4 eats our [], so we need to use [ and ] instead. 23857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23858 if test "x$has_forbidden_chars" != x; then 23859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23861 fi 23862 23863 23864 windows_path="$new_path" 23865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23866 unix_path=`$CYGPATH -u "$windows_path"` 23867 new_path="$unix_path" 23868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23870 new_path="$unix_path" 23871 fi 23872 23873 if test "x$path" != "x$new_path"; then 23874 BOOT_JDK="$new_path" 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23877 fi 23878 23879 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23880 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23881 23882 else 23883 # We're on a unix platform. Hooray! :) 23884 path="$BOOT_JDK" 23885 has_space=`$ECHO "$path" | $GREP " "` 23886 if test "x$has_space" != x; then 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23889 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23890 fi 23891 23892 # Use eval to expand a potential ~ 23893 eval path="$path" 23894 if test ! -f "$path" && test ! -d "$path"; then 23895 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23896 fi 23897 23898 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23899 fi 23900 fi 23901 23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23903 $as_echo_n "checking for Boot JDK... " >&6; } 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23905 $as_echo "$BOOT_JDK" >&6; } 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23907 $as_echo_n "checking Boot JDK version... " >&6; } 23908 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23910 $as_echo "$BOOT_JDK_VERSION" >&6; } 23911 fi # end check jdk version 23912 fi # end check javac 23913 fi # end check java 23914 fi # end check boot jdk found 23915 fi 23916 23917 23918 if test "x$BOOT_JDK_FOUND" = xno; then 23919 # Now execute the test 23920 23921 if test "x$ProgramFiles" != x; then 23922 VIRTUAL_DIR="$ProgramFiles/Java" 23923 23924 windows_path="$VIRTUAL_DIR" 23925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23926 unix_path=`$CYGPATH -u "$windows_path"` 23927 VIRTUAL_DIR="$unix_path" 23928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23930 VIRTUAL_DIR="$unix_path" 23931 fi 23932 23933 23934 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23935 BOOT_JDK_SUFFIX="" 23936 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23937 if test "x$ALL_JDKS_FOUND" != x; then 23938 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23939 23940 if test "x$BOOT_JDK_FOUND" = xno; then 23941 # Now execute the test 23942 23943 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23944 if test -d "$BOOT_JDK"; then 23945 BOOT_JDK_FOUND=maybe 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23947 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23948 fi 23949 23950 23951 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23952 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23953 # Do we have a bin/java? 23954 if test ! -x "$BOOT_JDK/bin/java"; then 23955 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23956 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23957 BOOT_JDK_FOUND=no 23958 else 23959 # Do we have a bin/javac? 23960 if test ! -x "$BOOT_JDK/bin/javac"; then 23961 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23962 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23964 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23965 BOOT_JDK_FOUND=no 23966 else 23967 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23969 23970 # Extra M4 quote needed to protect [] in grep expression. 23971 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23972 if test "x$FOUND_CORRECT_VERSION" = x; then 23973 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23974 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23975 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23976 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23977 BOOT_JDK_FOUND=no 23978 else 23979 # We're done! :-) 23980 BOOT_JDK_FOUND=yes 23981 23982 # Only process if variable expands to non-empty 23983 23984 if test "x$BOOT_JDK" != x; then 23985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23986 23987 # Input might be given as Windows format, start by converting to 23988 # unix format. 23989 path="$BOOT_JDK" 23990 new_path=`$CYGPATH -u "$path"` 23991 23992 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23993 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23994 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23995 # "foo.exe" is OK but "foo" is an error. 23996 # 23997 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23998 # It is also a way to make sure we got the proper file name for the real test later on. 23999 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24000 if test "x$test_shortpath" = x; then 24001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24002 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24003 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24004 fi 24005 24006 # Call helper function which possibly converts this using DOS-style short mode. 24007 # If so, the updated path is stored in $new_path. 24008 24009 input_path="$new_path" 24010 # Check if we need to convert this using DOS-style short mode. If the path 24011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24012 # take no chances and rewrite it. 24013 # Note: m4 eats our [], so we need to use [ and ] instead. 24014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24015 if test "x$has_forbidden_chars" != x; then 24016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24017 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24018 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24019 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24020 # Going to short mode and back again did indeed matter. Since short mode is 24021 # case insensitive, let's make it lowercase to improve readability. 24022 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24023 # Now convert it back to Unix-style (cygpath) 24024 input_path=`$CYGPATH -u "$shortmode_path"` 24025 new_path="$input_path" 24026 fi 24027 fi 24028 24029 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24030 if test "x$test_cygdrive_prefix" = x; then 24031 # As a simple fix, exclude /usr/bin since it's not a real path. 24032 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24033 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24034 # a path prefixed by /cygdrive for fixpath to work. 24035 new_path="$CYGWIN_ROOT_PATH$input_path" 24036 fi 24037 fi 24038 24039 24040 if test "x$path" != "x$new_path"; then 24041 BOOT_JDK="$new_path" 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24043 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24044 fi 24045 24046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24047 24048 path="$BOOT_JDK" 24049 has_colon=`$ECHO $path | $GREP ^.:` 24050 new_path="$path" 24051 if test "x$has_colon" = x; then 24052 # Not in mixed or Windows style, start by that. 24053 new_path=`cmd //c echo $path` 24054 fi 24055 24056 24057 input_path="$new_path" 24058 # Check if we need to convert this using DOS-style short mode. If the path 24059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24060 # take no chances and rewrite it. 24061 # Note: m4 eats our [], so we need to use [ and ] instead. 24062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24063 if test "x$has_forbidden_chars" != x; then 24064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24065 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24066 fi 24067 24068 24069 windows_path="$new_path" 24070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24071 unix_path=`$CYGPATH -u "$windows_path"` 24072 new_path="$unix_path" 24073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24075 new_path="$unix_path" 24076 fi 24077 24078 if test "x$path" != "x$new_path"; then 24079 BOOT_JDK="$new_path" 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24081 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24082 fi 24083 24084 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24085 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24086 24087 else 24088 # We're on a unix platform. Hooray! :) 24089 path="$BOOT_JDK" 24090 has_space=`$ECHO "$path" | $GREP " "` 24091 if test "x$has_space" != x; then 24092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24093 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24094 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24095 fi 24096 24097 # Use eval to expand a potential ~ 24098 eval path="$path" 24099 if test ! -f "$path" && test ! -d "$path"; then 24100 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24101 fi 24102 24103 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24104 fi 24105 fi 24106 24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24108 $as_echo_n "checking for Boot JDK... " >&6; } 24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24110 $as_echo "$BOOT_JDK" >&6; } 24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24112 $as_echo_n "checking Boot JDK version... " >&6; } 24113 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24115 $as_echo "$BOOT_JDK_VERSION" >&6; } 24116 fi # end check jdk version 24117 fi # end check javac 24118 fi # end check java 24119 fi # end check boot jdk found 24120 fi 24121 24122 done 24123 fi 24124 24125 fi 24126 24127 24128 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24129 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24130 # Do we have a bin/java? 24131 if test ! -x "$BOOT_JDK/bin/java"; then 24132 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24134 BOOT_JDK_FOUND=no 24135 else 24136 # Do we have a bin/javac? 24137 if test ! -x "$BOOT_JDK/bin/javac"; then 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24140 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24141 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24142 BOOT_JDK_FOUND=no 24143 else 24144 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24145 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24146 24147 # Extra M4 quote needed to protect [] in grep expression. 24148 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24149 if test "x$FOUND_CORRECT_VERSION" = x; then 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24151 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24152 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24153 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24154 BOOT_JDK_FOUND=no 24155 else 24156 # We're done! :-) 24157 BOOT_JDK_FOUND=yes 24158 24159 # Only process if variable expands to non-empty 24160 24161 if test "x$BOOT_JDK" != x; then 24162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24163 24164 # Input might be given as Windows format, start by converting to 24165 # unix format. 24166 path="$BOOT_JDK" 24167 new_path=`$CYGPATH -u "$path"` 24168 24169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24172 # "foo.exe" is OK but "foo" is an error. 24173 # 24174 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24175 # It is also a way to make sure we got the proper file name for the real test later on. 24176 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24177 if test "x$test_shortpath" = x; then 24178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24180 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24181 fi 24182 24183 # Call helper function which possibly converts this using DOS-style short mode. 24184 # If so, the updated path is stored in $new_path. 24185 24186 input_path="$new_path" 24187 # Check if we need to convert this using DOS-style short mode. If the path 24188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24189 # take no chances and rewrite it. 24190 # Note: m4 eats our [], so we need to use [ and ] instead. 24191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24192 if test "x$has_forbidden_chars" != x; then 24193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24197 # Going to short mode and back again did indeed matter. Since short mode is 24198 # case insensitive, let's make it lowercase to improve readability. 24199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24200 # Now convert it back to Unix-style (cygpath) 24201 input_path=`$CYGPATH -u "$shortmode_path"` 24202 new_path="$input_path" 24203 fi 24204 fi 24205 24206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24207 if test "x$test_cygdrive_prefix" = x; then 24208 # As a simple fix, exclude /usr/bin since it's not a real path. 24209 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24211 # a path prefixed by /cygdrive for fixpath to work. 24212 new_path="$CYGWIN_ROOT_PATH$input_path" 24213 fi 24214 fi 24215 24216 24217 if test "x$path" != "x$new_path"; then 24218 BOOT_JDK="$new_path" 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24220 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24221 fi 24222 24223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24224 24225 path="$BOOT_JDK" 24226 has_colon=`$ECHO $path | $GREP ^.:` 24227 new_path="$path" 24228 if test "x$has_colon" = x; then 24229 # Not in mixed or Windows style, start by that. 24230 new_path=`cmd //c echo $path` 24231 fi 24232 24233 24234 input_path="$new_path" 24235 # Check if we need to convert this using DOS-style short mode. If the path 24236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24237 # take no chances and rewrite it. 24238 # Note: m4 eats our [], so we need to use [ and ] instead. 24239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24240 if test "x$has_forbidden_chars" != x; then 24241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24242 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24243 fi 24244 24245 24246 windows_path="$new_path" 24247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24248 unix_path=`$CYGPATH -u "$windows_path"` 24249 new_path="$unix_path" 24250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24252 new_path="$unix_path" 24253 fi 24254 24255 if test "x$path" != "x$new_path"; then 24256 BOOT_JDK="$new_path" 24257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24258 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24259 fi 24260 24261 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24262 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24263 24264 else 24265 # We're on a unix platform. Hooray! :) 24266 path="$BOOT_JDK" 24267 has_space=`$ECHO "$path" | $GREP " "` 24268 if test "x$has_space" != x; then 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24271 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24272 fi 24273 24274 # Use eval to expand a potential ~ 24275 eval path="$path" 24276 if test ! -f "$path" && test ! -d "$path"; then 24277 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24278 fi 24279 24280 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24281 fi 24282 fi 24283 24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24285 $as_echo_n "checking for Boot JDK... " >&6; } 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24287 $as_echo "$BOOT_JDK" >&6; } 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24289 $as_echo_n "checking Boot JDK version... " >&6; } 24290 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24292 $as_echo "$BOOT_JDK_VERSION" >&6; } 24293 fi # end check jdk version 24294 fi # end check javac 24295 fi # end check java 24296 fi # end check boot jdk found 24297 fi 24298 24299 24300 if test "x$BOOT_JDK_FOUND" = xno; then 24301 # Now execute the test 24302 24303 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 24304 BOOT_JDK_SUFFIX="" 24305 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24306 if test "x$ALL_JDKS_FOUND" != x; then 24307 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24308 24309 if test "x$BOOT_JDK_FOUND" = xno; then 24310 # Now execute the test 24311 24312 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24313 if test -d "$BOOT_JDK"; then 24314 BOOT_JDK_FOUND=maybe 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24316 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24317 fi 24318 24319 24320 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24321 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24322 # Do we have a bin/java? 24323 if test ! -x "$BOOT_JDK/bin/java"; then 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24326 BOOT_JDK_FOUND=no 24327 else 24328 # Do we have a bin/javac? 24329 if test ! -x "$BOOT_JDK/bin/javac"; then 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24332 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24333 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24334 BOOT_JDK_FOUND=no 24335 else 24336 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24337 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24338 24339 # Extra M4 quote needed to protect [] in grep expression. 24340 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24341 if test "x$FOUND_CORRECT_VERSION" = x; then 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24343 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24344 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24345 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24346 BOOT_JDK_FOUND=no 24347 else 24348 # We're done! :-) 24349 BOOT_JDK_FOUND=yes 24350 24351 # Only process if variable expands to non-empty 24352 24353 if test "x$BOOT_JDK" != x; then 24354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24355 24356 # Input might be given as Windows format, start by converting to 24357 # unix format. 24358 path="$BOOT_JDK" 24359 new_path=`$CYGPATH -u "$path"` 24360 24361 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24362 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24363 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24364 # "foo.exe" is OK but "foo" is an error. 24365 # 24366 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24367 # It is also a way to make sure we got the proper file name for the real test later on. 24368 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24369 if test "x$test_shortpath" = x; then 24370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24372 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24373 fi 24374 24375 # Call helper function which possibly converts this using DOS-style short mode. 24376 # If so, the updated path is stored in $new_path. 24377 24378 input_path="$new_path" 24379 # Check if we need to convert this using DOS-style short mode. If the path 24380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24381 # take no chances and rewrite it. 24382 # Note: m4 eats our [], so we need to use [ and ] instead. 24383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24384 if test "x$has_forbidden_chars" != x; then 24385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24386 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24387 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24388 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24389 # Going to short mode and back again did indeed matter. Since short mode is 24390 # case insensitive, let's make it lowercase to improve readability. 24391 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24392 # Now convert it back to Unix-style (cygpath) 24393 input_path=`$CYGPATH -u "$shortmode_path"` 24394 new_path="$input_path" 24395 fi 24396 fi 24397 24398 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24399 if test "x$test_cygdrive_prefix" = x; then 24400 # As a simple fix, exclude /usr/bin since it's not a real path. 24401 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24402 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24403 # a path prefixed by /cygdrive for fixpath to work. 24404 new_path="$CYGWIN_ROOT_PATH$input_path" 24405 fi 24406 fi 24407 24408 24409 if test "x$path" != "x$new_path"; then 24410 BOOT_JDK="$new_path" 24411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24412 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24413 fi 24414 24415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24416 24417 path="$BOOT_JDK" 24418 has_colon=`$ECHO $path | $GREP ^.:` 24419 new_path="$path" 24420 if test "x$has_colon" = x; then 24421 # Not in mixed or Windows style, start by that. 24422 new_path=`cmd //c echo $path` 24423 fi 24424 24425 24426 input_path="$new_path" 24427 # Check if we need to convert this using DOS-style short mode. If the path 24428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24429 # take no chances and rewrite it. 24430 # Note: m4 eats our [], so we need to use [ and ] instead. 24431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24432 if test "x$has_forbidden_chars" != x; then 24433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24435 fi 24436 24437 24438 windows_path="$new_path" 24439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24440 unix_path=`$CYGPATH -u "$windows_path"` 24441 new_path="$unix_path" 24442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24444 new_path="$unix_path" 24445 fi 24446 24447 if test "x$path" != "x$new_path"; then 24448 BOOT_JDK="$new_path" 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24450 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24451 fi 24452 24453 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24454 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24455 24456 else 24457 # We're on a unix platform. Hooray! :) 24458 path="$BOOT_JDK" 24459 has_space=`$ECHO "$path" | $GREP " "` 24460 if test "x$has_space" != x; then 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24462 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24463 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24464 fi 24465 24466 # Use eval to expand a potential ~ 24467 eval path="$path" 24468 if test ! -f "$path" && test ! -d "$path"; then 24469 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24470 fi 24471 24472 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24473 fi 24474 fi 24475 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24477 $as_echo_n "checking for Boot JDK... " >&6; } 24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24479 $as_echo "$BOOT_JDK" >&6; } 24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24481 $as_echo_n "checking Boot JDK version... " >&6; } 24482 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24484 $as_echo "$BOOT_JDK_VERSION" >&6; } 24485 fi # end check jdk version 24486 fi # end check javac 24487 fi # end check java 24488 fi # end check boot jdk found 24489 fi 24490 24491 done 24492 fi 24493 24494 24495 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24496 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24497 # Do we have a bin/java? 24498 if test ! -x "$BOOT_JDK/bin/java"; then 24499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24501 BOOT_JDK_FOUND=no 24502 else 24503 # Do we have a bin/javac? 24504 if test ! -x "$BOOT_JDK/bin/javac"; then 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24508 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24509 BOOT_JDK_FOUND=no 24510 else 24511 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24512 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24513 24514 # Extra M4 quote needed to protect [] in grep expression. 24515 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24516 if test "x$FOUND_CORRECT_VERSION" = x; then 24517 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24518 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24519 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24520 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24521 BOOT_JDK_FOUND=no 24522 else 24523 # We're done! :-) 24524 BOOT_JDK_FOUND=yes 24525 24526 # Only process if variable expands to non-empty 24527 24528 if test "x$BOOT_JDK" != x; then 24529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24530 24531 # Input might be given as Windows format, start by converting to 24532 # unix format. 24533 path="$BOOT_JDK" 24534 new_path=`$CYGPATH -u "$path"` 24535 24536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24539 # "foo.exe" is OK but "foo" is an error. 24540 # 24541 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24542 # It is also a way to make sure we got the proper file name for the real test later on. 24543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24544 if test "x$test_shortpath" = x; then 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24546 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24547 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24548 fi 24549 24550 # Call helper function which possibly converts this using DOS-style short mode. 24551 # If so, the updated path is stored in $new_path. 24552 24553 input_path="$new_path" 24554 # Check if we need to convert this using DOS-style short mode. If the path 24555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24556 # take no chances and rewrite it. 24557 # Note: m4 eats our [], so we need to use [ and ] instead. 24558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24559 if test "x$has_forbidden_chars" != x; then 24560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24564 # Going to short mode and back again did indeed matter. Since short mode is 24565 # case insensitive, let's make it lowercase to improve readability. 24566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24567 # Now convert it back to Unix-style (cygpath) 24568 input_path=`$CYGPATH -u "$shortmode_path"` 24569 new_path="$input_path" 24570 fi 24571 fi 24572 24573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24574 if test "x$test_cygdrive_prefix" = x; then 24575 # As a simple fix, exclude /usr/bin since it's not a real path. 24576 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24578 # a path prefixed by /cygdrive for fixpath to work. 24579 new_path="$CYGWIN_ROOT_PATH$input_path" 24580 fi 24581 fi 24582 24583 24584 if test "x$path" != "x$new_path"; then 24585 BOOT_JDK="$new_path" 24586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24587 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24588 fi 24589 24590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24591 24592 path="$BOOT_JDK" 24593 has_colon=`$ECHO $path | $GREP ^.:` 24594 new_path="$path" 24595 if test "x$has_colon" = x; then 24596 # Not in mixed or Windows style, start by that. 24597 new_path=`cmd //c echo $path` 24598 fi 24599 24600 24601 input_path="$new_path" 24602 # Check if we need to convert this using DOS-style short mode. If the path 24603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24604 # take no chances and rewrite it. 24605 # Note: m4 eats our [], so we need to use [ and ] instead. 24606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24607 if test "x$has_forbidden_chars" != x; then 24608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24609 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24610 fi 24611 24612 24613 windows_path="$new_path" 24614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24615 unix_path=`$CYGPATH -u "$windows_path"` 24616 new_path="$unix_path" 24617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24619 new_path="$unix_path" 24620 fi 24621 24622 if test "x$path" != "x$new_path"; then 24623 BOOT_JDK="$new_path" 24624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24625 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24626 fi 24627 24628 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24629 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24630 24631 else 24632 # We're on a unix platform. Hooray! :) 24633 path="$BOOT_JDK" 24634 has_space=`$ECHO "$path" | $GREP " "` 24635 if test "x$has_space" != x; then 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24637 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24638 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24639 fi 24640 24641 # Use eval to expand a potential ~ 24642 eval path="$path" 24643 if test ! -f "$path" && test ! -d "$path"; then 24644 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24645 fi 24646 24647 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24648 fi 24649 fi 24650 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24652 $as_echo_n "checking for Boot JDK... " >&6; } 24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24654 $as_echo "$BOOT_JDK" >&6; } 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24656 $as_echo_n "checking Boot JDK version... " >&6; } 24657 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24659 $as_echo "$BOOT_JDK_VERSION" >&6; } 24660 fi # end check jdk version 24661 fi # end check javac 24662 fi # end check java 24663 fi # end check boot jdk found 24664 fi 24665 24666 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24667 24668 if test "x$BOOT_JDK_FOUND" = xno; then 24669 # Now execute the test 24670 24671 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24672 BOOT_JDK_SUFFIX="/Contents/Home" 24673 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24674 if test "x$ALL_JDKS_FOUND" != x; then 24675 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24676 24677 if test "x$BOOT_JDK_FOUND" = xno; then 24678 # Now execute the test 24679 24680 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24681 if test -d "$BOOT_JDK"; then 24682 BOOT_JDK_FOUND=maybe 24683 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24684 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24685 fi 24686 24687 24688 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24689 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24690 # Do we have a bin/java? 24691 if test ! -x "$BOOT_JDK/bin/java"; then 24692 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24694 BOOT_JDK_FOUND=no 24695 else 24696 # Do we have a bin/javac? 24697 if test ! -x "$BOOT_JDK/bin/javac"; then 24698 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24700 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24701 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24702 BOOT_JDK_FOUND=no 24703 else 24704 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24705 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24706 24707 # Extra M4 quote needed to protect [] in grep expression. 24708 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24709 if test "x$FOUND_CORRECT_VERSION" = x; then 24710 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24713 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24714 BOOT_JDK_FOUND=no 24715 else 24716 # We're done! :-) 24717 BOOT_JDK_FOUND=yes 24718 24719 # Only process if variable expands to non-empty 24720 24721 if test "x$BOOT_JDK" != x; then 24722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24723 24724 # Input might be given as Windows format, start by converting to 24725 # unix format. 24726 path="$BOOT_JDK" 24727 new_path=`$CYGPATH -u "$path"` 24728 24729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24732 # "foo.exe" is OK but "foo" is an error. 24733 # 24734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24735 # It is also a way to make sure we got the proper file name for the real test later on. 24736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24737 if test "x$test_shortpath" = x; then 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24739 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24740 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24741 fi 24742 24743 # Call helper function which possibly converts this using DOS-style short mode. 24744 # If so, the updated path is stored in $new_path. 24745 24746 input_path="$new_path" 24747 # Check if we need to convert this using DOS-style short mode. If the path 24748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24749 # take no chances and rewrite it. 24750 # Note: m4 eats our [], so we need to use [ and ] instead. 24751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24752 if test "x$has_forbidden_chars" != x; then 24753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24757 # Going to short mode and back again did indeed matter. Since short mode is 24758 # case insensitive, let's make it lowercase to improve readability. 24759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24760 # Now convert it back to Unix-style (cygpath) 24761 input_path=`$CYGPATH -u "$shortmode_path"` 24762 new_path="$input_path" 24763 fi 24764 fi 24765 24766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24767 if test "x$test_cygdrive_prefix" = x; then 24768 # As a simple fix, exclude /usr/bin since it's not a real path. 24769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24771 # a path prefixed by /cygdrive for fixpath to work. 24772 new_path="$CYGWIN_ROOT_PATH$input_path" 24773 fi 24774 fi 24775 24776 24777 if test "x$path" != "x$new_path"; then 24778 BOOT_JDK="$new_path" 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24780 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24781 fi 24782 24783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24784 24785 path="$BOOT_JDK" 24786 has_colon=`$ECHO $path | $GREP ^.:` 24787 new_path="$path" 24788 if test "x$has_colon" = x; then 24789 # Not in mixed or Windows style, start by that. 24790 new_path=`cmd //c echo $path` 24791 fi 24792 24793 24794 input_path="$new_path" 24795 # Check if we need to convert this using DOS-style short mode. If the path 24796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24797 # take no chances and rewrite it. 24798 # Note: m4 eats our [], so we need to use [ and ] instead. 24799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24800 if test "x$has_forbidden_chars" != x; then 24801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24803 fi 24804 24805 24806 windows_path="$new_path" 24807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24808 unix_path=`$CYGPATH -u "$windows_path"` 24809 new_path="$unix_path" 24810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24812 new_path="$unix_path" 24813 fi 24814 24815 if test "x$path" != "x$new_path"; then 24816 BOOT_JDK="$new_path" 24817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24818 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24819 fi 24820 24821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24823 24824 else 24825 # We're on a unix platform. Hooray! :) 24826 path="$BOOT_JDK" 24827 has_space=`$ECHO "$path" | $GREP " "` 24828 if test "x$has_space" != x; then 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24832 fi 24833 24834 # Use eval to expand a potential ~ 24835 eval path="$path" 24836 if test ! -f "$path" && test ! -d "$path"; then 24837 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24838 fi 24839 24840 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24841 fi 24842 fi 24843 24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24845 $as_echo_n "checking for Boot JDK... " >&6; } 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24847 $as_echo "$BOOT_JDK" >&6; } 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24849 $as_echo_n "checking Boot JDK version... " >&6; } 24850 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24852 $as_echo "$BOOT_JDK_VERSION" >&6; } 24853 fi # end check jdk version 24854 fi # end check javac 24855 fi # end check java 24856 fi # end check boot jdk found 24857 fi 24858 24859 done 24860 fi 24861 24862 24863 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24864 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24865 # Do we have a bin/java? 24866 if test ! -x "$BOOT_JDK/bin/java"; then 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24869 BOOT_JDK_FOUND=no 24870 else 24871 # Do we have a bin/javac? 24872 if test ! -x "$BOOT_JDK/bin/javac"; then 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24874 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24876 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24877 BOOT_JDK_FOUND=no 24878 else 24879 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24880 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24881 24882 # Extra M4 quote needed to protect [] in grep expression. 24883 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24884 if test "x$FOUND_CORRECT_VERSION" = x; then 24885 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24887 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24888 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24889 BOOT_JDK_FOUND=no 24890 else 24891 # We're done! :-) 24892 BOOT_JDK_FOUND=yes 24893 24894 # Only process if variable expands to non-empty 24895 24896 if test "x$BOOT_JDK" != x; then 24897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24898 24899 # Input might be given as Windows format, start by converting to 24900 # unix format. 24901 path="$BOOT_JDK" 24902 new_path=`$CYGPATH -u "$path"` 24903 24904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24907 # "foo.exe" is OK but "foo" is an error. 24908 # 24909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24910 # It is also a way to make sure we got the proper file name for the real test later on. 24911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24912 if test "x$test_shortpath" = x; then 24913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24915 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24916 fi 24917 24918 # Call helper function which possibly converts this using DOS-style short mode. 24919 # If so, the updated path is stored in $new_path. 24920 24921 input_path="$new_path" 24922 # Check if we need to convert this using DOS-style short mode. If the path 24923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24924 # take no chances and rewrite it. 24925 # Note: m4 eats our [], so we need to use [ and ] instead. 24926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24927 if test "x$has_forbidden_chars" != x; then 24928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24932 # Going to short mode and back again did indeed matter. Since short mode is 24933 # case insensitive, let's make it lowercase to improve readability. 24934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24935 # Now convert it back to Unix-style (cygpath) 24936 input_path=`$CYGPATH -u "$shortmode_path"` 24937 new_path="$input_path" 24938 fi 24939 fi 24940 24941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24942 if test "x$test_cygdrive_prefix" = x; then 24943 # As a simple fix, exclude /usr/bin since it's not a real path. 24944 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24946 # a path prefixed by /cygdrive for fixpath to work. 24947 new_path="$CYGWIN_ROOT_PATH$input_path" 24948 fi 24949 fi 24950 24951 24952 if test "x$path" != "x$new_path"; then 24953 BOOT_JDK="$new_path" 24954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24956 fi 24957 24958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24959 24960 path="$BOOT_JDK" 24961 has_colon=`$ECHO $path | $GREP ^.:` 24962 new_path="$path" 24963 if test "x$has_colon" = x; then 24964 # Not in mixed or Windows style, start by that. 24965 new_path=`cmd //c echo $path` 24966 fi 24967 24968 24969 input_path="$new_path" 24970 # Check if we need to convert this using DOS-style short mode. If the path 24971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24972 # take no chances and rewrite it. 24973 # Note: m4 eats our [], so we need to use [ and ] instead. 24974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24975 if test "x$has_forbidden_chars" != x; then 24976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24978 fi 24979 24980 24981 windows_path="$new_path" 24982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24983 unix_path=`$CYGPATH -u "$windows_path"` 24984 new_path="$unix_path" 24985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24987 new_path="$unix_path" 24988 fi 24989 24990 if test "x$path" != "x$new_path"; then 24991 BOOT_JDK="$new_path" 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24993 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24994 fi 24995 24996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24998 24999 else 25000 # We're on a unix platform. Hooray! :) 25001 path="$BOOT_JDK" 25002 has_space=`$ECHO "$path" | $GREP " "` 25003 if test "x$has_space" != x; then 25004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25005 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25006 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25007 fi 25008 25009 # Use eval to expand a potential ~ 25010 eval path="$path" 25011 if test ! -f "$path" && test ! -d "$path"; then 25012 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25013 fi 25014 25015 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25016 fi 25017 fi 25018 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25020 $as_echo_n "checking for Boot JDK... " >&6; } 25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25022 $as_echo "$BOOT_JDK" >&6; } 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25024 $as_echo_n "checking Boot JDK version... " >&6; } 25025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25027 $as_echo "$BOOT_JDK_VERSION" >&6; } 25028 fi # end check jdk version 25029 fi # end check javac 25030 fi # end check java 25031 fi # end check boot jdk found 25032 fi 25033 25034 25035 if test "x$BOOT_JDK_FOUND" = xno; then 25036 # Now execute the test 25037 25038 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 25039 BOOT_JDK_SUFFIX="/Contents/Home" 25040 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25041 if test "x$ALL_JDKS_FOUND" != x; then 25042 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25043 25044 if test "x$BOOT_JDK_FOUND" = xno; then 25045 # Now execute the test 25046 25047 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25048 if test -d "$BOOT_JDK"; then 25049 BOOT_JDK_FOUND=maybe 25050 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25051 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25052 fi 25053 25054 25055 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25056 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25057 # Do we have a bin/java? 25058 if test ! -x "$BOOT_JDK/bin/java"; then 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25061 BOOT_JDK_FOUND=no 25062 else 25063 # Do we have a bin/javac? 25064 if test ! -x "$BOOT_JDK/bin/javac"; then 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25067 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25068 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25069 BOOT_JDK_FOUND=no 25070 else 25071 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25072 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25073 25074 # Extra M4 quote needed to protect [] in grep expression. 25075 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25076 if test "x$FOUND_CORRECT_VERSION" = x; then 25077 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25078 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25079 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25080 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25081 BOOT_JDK_FOUND=no 25082 else 25083 # We're done! :-) 25084 BOOT_JDK_FOUND=yes 25085 25086 # Only process if variable expands to non-empty 25087 25088 if test "x$BOOT_JDK" != x; then 25089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25090 25091 # Input might be given as Windows format, start by converting to 25092 # unix format. 25093 path="$BOOT_JDK" 25094 new_path=`$CYGPATH -u "$path"` 25095 25096 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25097 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25098 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25099 # "foo.exe" is OK but "foo" is an error. 25100 # 25101 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25102 # It is also a way to make sure we got the proper file name for the real test later on. 25103 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25104 if test "x$test_shortpath" = x; then 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25106 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25107 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25108 fi 25109 25110 # Call helper function which possibly converts this using DOS-style short mode. 25111 # If so, the updated path is stored in $new_path. 25112 25113 input_path="$new_path" 25114 # Check if we need to convert this using DOS-style short mode. If the path 25115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25116 # take no chances and rewrite it. 25117 # Note: m4 eats our [], so we need to use [ and ] instead. 25118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25119 if test "x$has_forbidden_chars" != x; then 25120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25124 # Going to short mode and back again did indeed matter. Since short mode is 25125 # case insensitive, let's make it lowercase to improve readability. 25126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25127 # Now convert it back to Unix-style (cygpath) 25128 input_path=`$CYGPATH -u "$shortmode_path"` 25129 new_path="$input_path" 25130 fi 25131 fi 25132 25133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25134 if test "x$test_cygdrive_prefix" = x; then 25135 # As a simple fix, exclude /usr/bin since it's not a real path. 25136 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25138 # a path prefixed by /cygdrive for fixpath to work. 25139 new_path="$CYGWIN_ROOT_PATH$input_path" 25140 fi 25141 fi 25142 25143 25144 if test "x$path" != "x$new_path"; then 25145 BOOT_JDK="$new_path" 25146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25147 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25148 fi 25149 25150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25151 25152 path="$BOOT_JDK" 25153 has_colon=`$ECHO $path | $GREP ^.:` 25154 new_path="$path" 25155 if test "x$has_colon" = x; then 25156 # Not in mixed or Windows style, start by that. 25157 new_path=`cmd //c echo $path` 25158 fi 25159 25160 25161 input_path="$new_path" 25162 # Check if we need to convert this using DOS-style short mode. If the path 25163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25164 # take no chances and rewrite it. 25165 # Note: m4 eats our [], so we need to use [ and ] instead. 25166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25167 if test "x$has_forbidden_chars" != x; then 25168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25170 fi 25171 25172 25173 windows_path="$new_path" 25174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25175 unix_path=`$CYGPATH -u "$windows_path"` 25176 new_path="$unix_path" 25177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25179 new_path="$unix_path" 25180 fi 25181 25182 if test "x$path" != "x$new_path"; then 25183 BOOT_JDK="$new_path" 25184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25185 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25186 fi 25187 25188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25190 25191 else 25192 # We're on a unix platform. Hooray! :) 25193 path="$BOOT_JDK" 25194 has_space=`$ECHO "$path" | $GREP " "` 25195 if test "x$has_space" != x; then 25196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25197 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25198 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25199 fi 25200 25201 # Use eval to expand a potential ~ 25202 eval path="$path" 25203 if test ! -f "$path" && test ! -d "$path"; then 25204 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25205 fi 25206 25207 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25208 fi 25209 fi 25210 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25212 $as_echo_n "checking for Boot JDK... " >&6; } 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25214 $as_echo "$BOOT_JDK" >&6; } 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25216 $as_echo_n "checking Boot JDK version... " >&6; } 25217 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25219 $as_echo "$BOOT_JDK_VERSION" >&6; } 25220 fi # end check jdk version 25221 fi # end check javac 25222 fi # end check java 25223 fi # end check boot jdk found 25224 fi 25225 25226 done 25227 fi 25228 25229 25230 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25231 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25232 # Do we have a bin/java? 25233 if test ! -x "$BOOT_JDK/bin/java"; then 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25235 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25236 BOOT_JDK_FOUND=no 25237 else 25238 # Do we have a bin/javac? 25239 if test ! -x "$BOOT_JDK/bin/javac"; then 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25242 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25243 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25244 BOOT_JDK_FOUND=no 25245 else 25246 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25247 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25248 25249 # Extra M4 quote needed to protect [] in grep expression. 25250 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25251 if test "x$FOUND_CORRECT_VERSION" = x; then 25252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25255 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25256 BOOT_JDK_FOUND=no 25257 else 25258 # We're done! :-) 25259 BOOT_JDK_FOUND=yes 25260 25261 # Only process if variable expands to non-empty 25262 25263 if test "x$BOOT_JDK" != x; then 25264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25265 25266 # Input might be given as Windows format, start by converting to 25267 # unix format. 25268 path="$BOOT_JDK" 25269 new_path=`$CYGPATH -u "$path"` 25270 25271 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25272 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25273 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25274 # "foo.exe" is OK but "foo" is an error. 25275 # 25276 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25277 # It is also a way to make sure we got the proper file name for the real test later on. 25278 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25279 if test "x$test_shortpath" = x; then 25280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25282 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25283 fi 25284 25285 # Call helper function which possibly converts this using DOS-style short mode. 25286 # If so, the updated path is stored in $new_path. 25287 25288 input_path="$new_path" 25289 # Check if we need to convert this using DOS-style short mode. If the path 25290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25291 # take no chances and rewrite it. 25292 # Note: m4 eats our [], so we need to use [ and ] instead. 25293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25294 if test "x$has_forbidden_chars" != x; then 25295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25296 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25297 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25298 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25299 # Going to short mode and back again did indeed matter. Since short mode is 25300 # case insensitive, let's make it lowercase to improve readability. 25301 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25302 # Now convert it back to Unix-style (cygpath) 25303 input_path=`$CYGPATH -u "$shortmode_path"` 25304 new_path="$input_path" 25305 fi 25306 fi 25307 25308 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25309 if test "x$test_cygdrive_prefix" = x; then 25310 # As a simple fix, exclude /usr/bin since it's not a real path. 25311 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25312 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25313 # a path prefixed by /cygdrive for fixpath to work. 25314 new_path="$CYGWIN_ROOT_PATH$input_path" 25315 fi 25316 fi 25317 25318 25319 if test "x$path" != "x$new_path"; then 25320 BOOT_JDK="$new_path" 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25323 fi 25324 25325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25326 25327 path="$BOOT_JDK" 25328 has_colon=`$ECHO $path | $GREP ^.:` 25329 new_path="$path" 25330 if test "x$has_colon" = x; then 25331 # Not in mixed or Windows style, start by that. 25332 new_path=`cmd //c echo $path` 25333 fi 25334 25335 25336 input_path="$new_path" 25337 # Check if we need to convert this using DOS-style short mode. If the path 25338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25339 # take no chances and rewrite it. 25340 # Note: m4 eats our [], so we need to use [ and ] instead. 25341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25342 if test "x$has_forbidden_chars" != x; then 25343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25344 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25345 fi 25346 25347 25348 windows_path="$new_path" 25349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25350 unix_path=`$CYGPATH -u "$windows_path"` 25351 new_path="$unix_path" 25352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25354 new_path="$unix_path" 25355 fi 25356 25357 if test "x$path" != "x$new_path"; then 25358 BOOT_JDK="$new_path" 25359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25361 fi 25362 25363 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25364 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25365 25366 else 25367 # We're on a unix platform. Hooray! :) 25368 path="$BOOT_JDK" 25369 has_space=`$ECHO "$path" | $GREP " "` 25370 if test "x$has_space" != x; then 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25373 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25374 fi 25375 25376 # Use eval to expand a potential ~ 25377 eval path="$path" 25378 if test ! -f "$path" && test ! -d "$path"; then 25379 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25380 fi 25381 25382 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25383 fi 25384 fi 25385 25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25387 $as_echo_n "checking for Boot JDK... " >&6; } 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25389 $as_echo "$BOOT_JDK" >&6; } 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25391 $as_echo_n "checking Boot JDK version... " >&6; } 25392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25394 $as_echo "$BOOT_JDK_VERSION" >&6; } 25395 fi # end check jdk version 25396 fi # end check javac 25397 fi # end check java 25398 fi # end check boot jdk found 25399 fi 25400 25401 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 25402 25403 if test "x$BOOT_JDK_FOUND" = xno; then 25404 # Now execute the test 25405 25406 BOOT_JDK_PREFIX="/usr/lib/jvm" 25407 BOOT_JDK_SUFFIX="" 25408 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25409 if test "x$ALL_JDKS_FOUND" != x; then 25410 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25411 25412 if test "x$BOOT_JDK_FOUND" = xno; then 25413 # Now execute the test 25414 25415 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25416 if test -d "$BOOT_JDK"; then 25417 BOOT_JDK_FOUND=maybe 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25419 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25420 fi 25421 25422 25423 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25424 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25425 # Do we have a bin/java? 25426 if test ! -x "$BOOT_JDK/bin/java"; then 25427 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25429 BOOT_JDK_FOUND=no 25430 else 25431 # Do we have a bin/javac? 25432 if test ! -x "$BOOT_JDK/bin/javac"; then 25433 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25435 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25436 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25437 BOOT_JDK_FOUND=no 25438 else 25439 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25440 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25441 25442 # Extra M4 quote needed to protect [] in grep expression. 25443 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25444 if test "x$FOUND_CORRECT_VERSION" = x; then 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25447 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25448 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25449 BOOT_JDK_FOUND=no 25450 else 25451 # We're done! :-) 25452 BOOT_JDK_FOUND=yes 25453 25454 # Only process if variable expands to non-empty 25455 25456 if test "x$BOOT_JDK" != x; then 25457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25458 25459 # Input might be given as Windows format, start by converting to 25460 # unix format. 25461 path="$BOOT_JDK" 25462 new_path=`$CYGPATH -u "$path"` 25463 25464 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25465 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25466 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25467 # "foo.exe" is OK but "foo" is an error. 25468 # 25469 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25470 # It is also a way to make sure we got the proper file name for the real test later on. 25471 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25472 if test "x$test_shortpath" = x; then 25473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25474 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25475 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25476 fi 25477 25478 # Call helper function which possibly converts this using DOS-style short mode. 25479 # If so, the updated path is stored in $new_path. 25480 25481 input_path="$new_path" 25482 # Check if we need to convert this using DOS-style short mode. If the path 25483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25484 # take no chances and rewrite it. 25485 # Note: m4 eats our [], so we need to use [ and ] instead. 25486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25487 if test "x$has_forbidden_chars" != x; then 25488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25489 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25490 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25491 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25492 # Going to short mode and back again did indeed matter. Since short mode is 25493 # case insensitive, let's make it lowercase to improve readability. 25494 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25495 # Now convert it back to Unix-style (cygpath) 25496 input_path=`$CYGPATH -u "$shortmode_path"` 25497 new_path="$input_path" 25498 fi 25499 fi 25500 25501 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25502 if test "x$test_cygdrive_prefix" = x; then 25503 # As a simple fix, exclude /usr/bin since it's not a real path. 25504 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25505 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25506 # a path prefixed by /cygdrive for fixpath to work. 25507 new_path="$CYGWIN_ROOT_PATH$input_path" 25508 fi 25509 fi 25510 25511 25512 if test "x$path" != "x$new_path"; then 25513 BOOT_JDK="$new_path" 25514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25515 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25516 fi 25517 25518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25519 25520 path="$BOOT_JDK" 25521 has_colon=`$ECHO $path | $GREP ^.:` 25522 new_path="$path" 25523 if test "x$has_colon" = x; then 25524 # Not in mixed or Windows style, start by that. 25525 new_path=`cmd //c echo $path` 25526 fi 25527 25528 25529 input_path="$new_path" 25530 # Check if we need to convert this using DOS-style short mode. If the path 25531 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25532 # take no chances and rewrite it. 25533 # Note: m4 eats our [], so we need to use [ and ] instead. 25534 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25535 if test "x$has_forbidden_chars" != x; then 25536 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25537 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25538 fi 25539 25540 25541 windows_path="$new_path" 25542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25543 unix_path=`$CYGPATH -u "$windows_path"` 25544 new_path="$unix_path" 25545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25547 new_path="$unix_path" 25548 fi 25549 25550 if test "x$path" != "x$new_path"; then 25551 BOOT_JDK="$new_path" 25552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25554 fi 25555 25556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25558 25559 else 25560 # We're on a unix platform. Hooray! :) 25561 path="$BOOT_JDK" 25562 has_space=`$ECHO "$path" | $GREP " "` 25563 if test "x$has_space" != x; then 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25565 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25566 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25567 fi 25568 25569 # Use eval to expand a potential ~ 25570 eval path="$path" 25571 if test ! -f "$path" && test ! -d "$path"; then 25572 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25573 fi 25574 25575 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25576 fi 25577 fi 25578 25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25580 $as_echo_n "checking for Boot JDK... " >&6; } 25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25582 $as_echo "$BOOT_JDK" >&6; } 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25584 $as_echo_n "checking Boot JDK version... " >&6; } 25585 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25587 $as_echo "$BOOT_JDK_VERSION" >&6; } 25588 fi # end check jdk version 25589 fi # end check javac 25590 fi # end check java 25591 fi # end check boot jdk found 25592 fi 25593 25594 done 25595 fi 25596 25597 25598 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25599 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25600 # Do we have a bin/java? 25601 if test ! -x "$BOOT_JDK/bin/java"; then 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25604 BOOT_JDK_FOUND=no 25605 else 25606 # Do we have a bin/javac? 25607 if test ! -x "$BOOT_JDK/bin/javac"; then 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25610 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25611 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25612 BOOT_JDK_FOUND=no 25613 else 25614 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25615 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25616 25617 # Extra M4 quote needed to protect [] in grep expression. 25618 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25619 if test "x$FOUND_CORRECT_VERSION" = x; then 25620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25622 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25623 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25624 BOOT_JDK_FOUND=no 25625 else 25626 # We're done! :-) 25627 BOOT_JDK_FOUND=yes 25628 25629 # Only process if variable expands to non-empty 25630 25631 if test "x$BOOT_JDK" != x; then 25632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25633 25634 # Input might be given as Windows format, start by converting to 25635 # unix format. 25636 path="$BOOT_JDK" 25637 new_path=`$CYGPATH -u "$path"` 25638 25639 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25640 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25641 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25642 # "foo.exe" is OK but "foo" is an error. 25643 # 25644 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25645 # It is also a way to make sure we got the proper file name for the real test later on. 25646 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25647 if test "x$test_shortpath" = x; then 25648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25649 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25650 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25651 fi 25652 25653 # Call helper function which possibly converts this using DOS-style short mode. 25654 # If so, the updated path is stored in $new_path. 25655 25656 input_path="$new_path" 25657 # Check if we need to convert this using DOS-style short mode. If the path 25658 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25659 # take no chances and rewrite it. 25660 # Note: m4 eats our [], so we need to use [ and ] instead. 25661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25662 if test "x$has_forbidden_chars" != x; then 25663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25664 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25665 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25666 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25667 # Going to short mode and back again did indeed matter. Since short mode is 25668 # case insensitive, let's make it lowercase to improve readability. 25669 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25670 # Now convert it back to Unix-style (cygpath) 25671 input_path=`$CYGPATH -u "$shortmode_path"` 25672 new_path="$input_path" 25673 fi 25674 fi 25675 25676 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25677 if test "x$test_cygdrive_prefix" = x; then 25678 # As a simple fix, exclude /usr/bin since it's not a real path. 25679 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25680 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25681 # a path prefixed by /cygdrive for fixpath to work. 25682 new_path="$CYGWIN_ROOT_PATH$input_path" 25683 fi 25684 fi 25685 25686 25687 if test "x$path" != "x$new_path"; then 25688 BOOT_JDK="$new_path" 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25690 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25691 fi 25692 25693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25694 25695 path="$BOOT_JDK" 25696 has_colon=`$ECHO $path | $GREP ^.:` 25697 new_path="$path" 25698 if test "x$has_colon" = x; then 25699 # Not in mixed or Windows style, start by that. 25700 new_path=`cmd //c echo $path` 25701 fi 25702 25703 25704 input_path="$new_path" 25705 # Check if we need to convert this using DOS-style short mode. If the path 25706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25707 # take no chances and rewrite it. 25708 # Note: m4 eats our [], so we need to use [ and ] instead. 25709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25710 if test "x$has_forbidden_chars" != x; then 25711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25712 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25713 fi 25714 25715 25716 windows_path="$new_path" 25717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25718 unix_path=`$CYGPATH -u "$windows_path"` 25719 new_path="$unix_path" 25720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25722 new_path="$unix_path" 25723 fi 25724 25725 if test "x$path" != "x$new_path"; then 25726 BOOT_JDK="$new_path" 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25728 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25729 fi 25730 25731 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25732 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25733 25734 else 25735 # We're on a unix platform. Hooray! :) 25736 path="$BOOT_JDK" 25737 has_space=`$ECHO "$path" | $GREP " "` 25738 if test "x$has_space" != x; then 25739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25740 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25741 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25742 fi 25743 25744 # Use eval to expand a potential ~ 25745 eval path="$path" 25746 if test ! -f "$path" && test ! -d "$path"; then 25747 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25748 fi 25749 25750 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25751 fi 25752 fi 25753 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25755 $as_echo_n "checking for Boot JDK... " >&6; } 25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25757 $as_echo "$BOOT_JDK" >&6; } 25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25759 $as_echo_n "checking Boot JDK version... " >&6; } 25760 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25762 $as_echo "$BOOT_JDK_VERSION" >&6; } 25763 fi # end check jdk version 25764 fi # end check javac 25765 fi # end check java 25766 fi # end check boot jdk found 25767 fi 25768 25769 fi 25770 25771 25772 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25773 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25774 # Do we have a bin/java? 25775 if test ! -x "$BOOT_JDK/bin/java"; then 25776 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25778 BOOT_JDK_FOUND=no 25779 else 25780 # Do we have a bin/javac? 25781 if test ! -x "$BOOT_JDK/bin/javac"; then 25782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25784 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25785 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25786 BOOT_JDK_FOUND=no 25787 else 25788 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25789 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25790 25791 # Extra M4 quote needed to protect [] in grep expression. 25792 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25793 if test "x$FOUND_CORRECT_VERSION" = x; then 25794 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25797 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25798 BOOT_JDK_FOUND=no 25799 else 25800 # We're done! :-) 25801 BOOT_JDK_FOUND=yes 25802 25803 # Only process if variable expands to non-empty 25804 25805 if test "x$BOOT_JDK" != x; then 25806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25807 25808 # Input might be given as Windows format, start by converting to 25809 # unix format. 25810 path="$BOOT_JDK" 25811 new_path=`$CYGPATH -u "$path"` 25812 25813 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25814 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25815 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25816 # "foo.exe" is OK but "foo" is an error. 25817 # 25818 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25819 # It is also a way to make sure we got the proper file name for the real test later on. 25820 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25821 if test "x$test_shortpath" = x; then 25822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25823 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25824 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25825 fi 25826 25827 # Call helper function which possibly converts this using DOS-style short mode. 25828 # If so, the updated path is stored in $new_path. 25829 25830 input_path="$new_path" 25831 # Check if we need to convert this using DOS-style short mode. If the path 25832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25833 # take no chances and rewrite it. 25834 # Note: m4 eats our [], so we need to use [ and ] instead. 25835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25836 if test "x$has_forbidden_chars" != x; then 25837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25838 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25839 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25840 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25841 # Going to short mode and back again did indeed matter. Since short mode is 25842 # case insensitive, let's make it lowercase to improve readability. 25843 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25844 # Now convert it back to Unix-style (cygpath) 25845 input_path=`$CYGPATH -u "$shortmode_path"` 25846 new_path="$input_path" 25847 fi 25848 fi 25849 25850 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25851 if test "x$test_cygdrive_prefix" = x; then 25852 # As a simple fix, exclude /usr/bin since it's not a real path. 25853 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25854 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25855 # a path prefixed by /cygdrive for fixpath to work. 25856 new_path="$CYGWIN_ROOT_PATH$input_path" 25857 fi 25858 fi 25859 25860 25861 if test "x$path" != "x$new_path"; then 25862 BOOT_JDK="$new_path" 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25864 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25865 fi 25866 25867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25868 25869 path="$BOOT_JDK" 25870 has_colon=`$ECHO $path | $GREP ^.:` 25871 new_path="$path" 25872 if test "x$has_colon" = x; then 25873 # Not in mixed or Windows style, start by that. 25874 new_path=`cmd //c echo $path` 25875 fi 25876 25877 25878 input_path="$new_path" 25879 # Check if we need to convert this using DOS-style short mode. If the path 25880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25881 # take no chances and rewrite it. 25882 # Note: m4 eats our [], so we need to use [ and ] instead. 25883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25884 if test "x$has_forbidden_chars" != x; then 25885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25886 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25887 fi 25888 25889 25890 windows_path="$new_path" 25891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25892 unix_path=`$CYGPATH -u "$windows_path"` 25893 new_path="$unix_path" 25894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25896 new_path="$unix_path" 25897 fi 25898 25899 if test "x$path" != "x$new_path"; then 25900 BOOT_JDK="$new_path" 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25903 fi 25904 25905 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25906 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25907 25908 else 25909 # We're on a unix platform. Hooray! :) 25910 path="$BOOT_JDK" 25911 has_space=`$ECHO "$path" | $GREP " "` 25912 if test "x$has_space" != x; then 25913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25915 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25916 fi 25917 25918 # Use eval to expand a potential ~ 25919 eval path="$path" 25920 if test ! -f "$path" && test ! -d "$path"; then 25921 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25922 fi 25923 25924 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25925 fi 25926 fi 25927 25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25929 $as_echo_n "checking for Boot JDK... " >&6; } 25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25931 $as_echo "$BOOT_JDK" >&6; } 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25933 $as_echo_n "checking Boot JDK version... " >&6; } 25934 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25936 $as_echo "$BOOT_JDK_VERSION" >&6; } 25937 fi # end check jdk version 25938 fi # end check javac 25939 fi # end check java 25940 fi # end check boot jdk found 25941 fi 25942 25943 25944 # If we haven't found anything yet, we've truly lost. Give up. 25945 if test "x$BOOT_JDK_FOUND" = xno; then 25946 25947 # Print a helpful message on how to acquire the necessary build dependency. 25948 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25949 MISSING_DEPENDENCY=openjdk 25950 25951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25952 cygwin_help $MISSING_DEPENDENCY 25953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25954 msys_help $MISSING_DEPENDENCY 25955 else 25956 PKGHANDLER_COMMAND= 25957 25958 case $PKGHANDLER in 25959 apt-get) 25960 apt_help $MISSING_DEPENDENCY ;; 25961 yum) 25962 yum_help $MISSING_DEPENDENCY ;; 25963 port) 25964 port_help $MISSING_DEPENDENCY ;; 25965 pkgutil) 25966 pkgutil_help $MISSING_DEPENDENCY ;; 25967 pkgadd) 25968 pkgadd_help $MISSING_DEPENDENCY ;; 25969 esac 25970 25971 if test "x$PKGHANDLER_COMMAND" != x; then 25972 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25973 fi 25974 fi 25975 25976 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25977 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25978 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25979 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25980 as_fn_error $? "Cannot continue" "$LINENO" 5 25981 fi 25982 25983 25984 25985 # Setup tools from the Boot JDK. 25986 25987 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25988 25989 # Publish this variable in the help. 25990 25991 25992 if test "x$JAVA" = x; then 25993 # The variable is not set by user, try to locate tool using the code snippet 25994 25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25996 $as_echo_n "checking for java in Boot JDK... " >&6; } 25997 JAVA=$BOOT_JDK/bin/java 25998 if test ! -x $JAVA; then 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26000 $as_echo "not found" >&6; } 26001 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26002 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26003 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 26004 fi 26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26006 $as_echo "ok" >&6; } 26007 26008 26009 else 26010 # The variable is set, but is it from the command line or the environment? 26011 26012 # Try to remove the string !JAVA! from our list. 26013 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 26014 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26015 # If it failed, the variable was not from the command line. Ignore it, 26016 # but warn the user (except for BASH, which is always set by the calling BASH). 26017 if test "xJAVA" != xBASH; then 26018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 26019 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 26020 fi 26021 # Try to locate tool using the code snippet 26022 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 26024 $as_echo_n "checking for java in Boot JDK... " >&6; } 26025 JAVA=$BOOT_JDK/bin/java 26026 if test ! -x $JAVA; then 26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26028 $as_echo "not found" >&6; } 26029 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26030 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26031 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 26032 fi 26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26034 $as_echo "ok" >&6; } 26035 26036 26037 else 26038 # If it succeeded, then it was overridden by the user. We will use it 26039 # for the tool. 26040 26041 # First remove it from the list of overridden variables, so we can test 26042 # for unknown variables in the end. 26043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26044 26045 # Check if the provided tool contains a complete path. 26046 tool_specified="$JAVA" 26047 tool_basename="${tool_specified##*/}" 26048 if test "x$tool_basename" = "x$tool_specified"; then 26049 # A command without a complete path is provided, search $PATH. 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 26051 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 26052 # Extract the first word of "$tool_basename", so it can be a program name with args. 26053 set dummy $tool_basename; ac_word=$2 26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26055 $as_echo_n "checking for $ac_word... " >&6; } 26056 if ${ac_cv_path_JAVA+:} false; then : 26057 $as_echo_n "(cached) " >&6 26058 else 26059 case $JAVA in 26060 [\\/]* | ?:[\\/]*) 26061 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 26062 ;; 26063 *) 26064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26065 for as_dir in $PATH 26066 do 26067 IFS=$as_save_IFS 26068 test -z "$as_dir" && as_dir=. 26069 for ac_exec_ext in '' $ac_executable_extensions; do 26070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26071 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 26072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26073 break 2 26074 fi 26075 done 26076 done 26077 IFS=$as_save_IFS 26078 26079 ;; 26080 esac 26081 fi 26082 JAVA=$ac_cv_path_JAVA 26083 if test -n "$JAVA"; then 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 26085 $as_echo "$JAVA" >&6; } 26086 else 26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26088 $as_echo "no" >&6; } 26089 fi 26090 26091 26092 if test "x$JAVA" = x; then 26093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26094 fi 26095 else 26096 # Otherwise we believe it is a complete path. Use it as it is. 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 26098 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 26100 $as_echo_n "checking for JAVA... " >&6; } 26101 if test ! -x "$tool_specified"; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26103 $as_echo "not found" >&6; } 26104 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 26105 fi 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26107 $as_echo "$tool_specified" >&6; } 26108 fi 26109 fi 26110 fi 26111 26112 26113 26114 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26115 26116 # Publish this variable in the help. 26117 26118 26119 if test "x$JAVAC" = x; then 26120 # The variable is not set by user, try to locate tool using the code snippet 26121 26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 26123 $as_echo_n "checking for javac in Boot JDK... " >&6; } 26124 JAVAC=$BOOT_JDK/bin/javac 26125 if test ! -x $JAVAC; then 26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26127 $as_echo "not found" >&6; } 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26129 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26130 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 26131 fi 26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26133 $as_echo "ok" >&6; } 26134 26135 26136 else 26137 # The variable is set, but is it from the command line or the environment? 26138 26139 # Try to remove the string !JAVAC! from our list. 26140 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 26141 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26142 # If it failed, the variable was not from the command line. Ignore it, 26143 # but warn the user (except for BASH, which is always set by the calling BASH). 26144 if test "xJAVAC" != xBASH; then 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 26146 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 26147 fi 26148 # Try to locate tool using the code snippet 26149 26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 26151 $as_echo_n "checking for javac in Boot JDK... " >&6; } 26152 JAVAC=$BOOT_JDK/bin/javac 26153 if test ! -x $JAVAC; then 26154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26155 $as_echo "not found" >&6; } 26156 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26157 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26158 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 26159 fi 26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26161 $as_echo "ok" >&6; } 26162 26163 26164 else 26165 # If it succeeded, then it was overridden by the user. We will use it 26166 # for the tool. 26167 26168 # First remove it from the list of overridden variables, so we can test 26169 # for unknown variables in the end. 26170 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26171 26172 # Check if the provided tool contains a complete path. 26173 tool_specified="$JAVAC" 26174 tool_basename="${tool_specified##*/}" 26175 if test "x$tool_basename" = "x$tool_specified"; then 26176 # A command without a complete path is provided, search $PATH. 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 26178 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 26179 # Extract the first word of "$tool_basename", so it can be a program name with args. 26180 set dummy $tool_basename; ac_word=$2 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26182 $as_echo_n "checking for $ac_word... " >&6; } 26183 if ${ac_cv_path_JAVAC+:} false; then : 26184 $as_echo_n "(cached) " >&6 26185 else 26186 case $JAVAC in 26187 [\\/]* | ?:[\\/]*) 26188 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 26189 ;; 26190 *) 26191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26192 for as_dir in $PATH 26193 do 26194 IFS=$as_save_IFS 26195 test -z "$as_dir" && as_dir=. 26196 for ac_exec_ext in '' $ac_executable_extensions; do 26197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26198 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 26199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26200 break 2 26201 fi 26202 done 26203 done 26204 IFS=$as_save_IFS 26205 26206 ;; 26207 esac 26208 fi 26209 JAVAC=$ac_cv_path_JAVAC 26210 if test -n "$JAVAC"; then 26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 26212 $as_echo "$JAVAC" >&6; } 26213 else 26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26215 $as_echo "no" >&6; } 26216 fi 26217 26218 26219 if test "x$JAVAC" = x; then 26220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26221 fi 26222 else 26223 # Otherwise we believe it is a complete path. Use it as it is. 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 26225 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 26227 $as_echo_n "checking for JAVAC... " >&6; } 26228 if test ! -x "$tool_specified"; then 26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26230 $as_echo "not found" >&6; } 26231 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 26232 fi 26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26234 $as_echo "$tool_specified" >&6; } 26235 fi 26236 fi 26237 fi 26238 26239 26240 26241 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26242 26243 # Publish this variable in the help. 26244 26245 26246 if test "x$JAVAH" = x; then 26247 # The variable is not set by user, try to locate tool using the code snippet 26248 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 26250 $as_echo_n "checking for javah in Boot JDK... " >&6; } 26251 JAVAH=$BOOT_JDK/bin/javah 26252 if test ! -x $JAVAH; then 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26254 $as_echo "not found" >&6; } 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26256 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26257 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 26258 fi 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26260 $as_echo "ok" >&6; } 26261 26262 26263 else 26264 # The variable is set, but is it from the command line or the environment? 26265 26266 # Try to remove the string !JAVAH! from our list. 26267 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 26268 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26269 # If it failed, the variable was not from the command line. Ignore it, 26270 # but warn the user (except for BASH, which is always set by the calling BASH). 26271 if test "xJAVAH" != xBASH; then 26272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 26273 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 26274 fi 26275 # Try to locate tool using the code snippet 26276 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 26278 $as_echo_n "checking for javah in Boot JDK... " >&6; } 26279 JAVAH=$BOOT_JDK/bin/javah 26280 if test ! -x $JAVAH; then 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26282 $as_echo "not found" >&6; } 26283 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26284 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26285 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 26286 fi 26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26288 $as_echo "ok" >&6; } 26289 26290 26291 else 26292 # If it succeeded, then it was overridden by the user. We will use it 26293 # for the tool. 26294 26295 # First remove it from the list of overridden variables, so we can test 26296 # for unknown variables in the end. 26297 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26298 26299 # Check if the provided tool contains a complete path. 26300 tool_specified="$JAVAH" 26301 tool_basename="${tool_specified##*/}" 26302 if test "x$tool_basename" = "x$tool_specified"; then 26303 # A command without a complete path is provided, search $PATH. 26304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 26305 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 26306 # Extract the first word of "$tool_basename", so it can be a program name with args. 26307 set dummy $tool_basename; ac_word=$2 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26309 $as_echo_n "checking for $ac_word... " >&6; } 26310 if ${ac_cv_path_JAVAH+:} false; then : 26311 $as_echo_n "(cached) " >&6 26312 else 26313 case $JAVAH in 26314 [\\/]* | ?:[\\/]*) 26315 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 26316 ;; 26317 *) 26318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26319 for as_dir in $PATH 26320 do 26321 IFS=$as_save_IFS 26322 test -z "$as_dir" && as_dir=. 26323 for ac_exec_ext in '' $ac_executable_extensions; do 26324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26325 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 26326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26327 break 2 26328 fi 26329 done 26330 done 26331 IFS=$as_save_IFS 26332 26333 ;; 26334 esac 26335 fi 26336 JAVAH=$ac_cv_path_JAVAH 26337 if test -n "$JAVAH"; then 26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 26339 $as_echo "$JAVAH" >&6; } 26340 else 26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26342 $as_echo "no" >&6; } 26343 fi 26344 26345 26346 if test "x$JAVAH" = x; then 26347 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26348 fi 26349 else 26350 # Otherwise we believe it is a complete path. Use it as it is. 26351 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 26352 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 26354 $as_echo_n "checking for JAVAH... " >&6; } 26355 if test ! -x "$tool_specified"; then 26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26357 $as_echo "not found" >&6; } 26358 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 26359 fi 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26361 $as_echo "$tool_specified" >&6; } 26362 fi 26363 fi 26364 fi 26365 26366 26367 26368 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26369 26370 # Publish this variable in the help. 26371 26372 26373 if test "x$JAR" = x; then 26374 # The variable is not set by user, try to locate tool using the code snippet 26375 26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 26377 $as_echo_n "checking for jar in Boot JDK... " >&6; } 26378 JAR=$BOOT_JDK/bin/jar 26379 if test ! -x $JAR; then 26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26381 $as_echo "not found" >&6; } 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26383 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26384 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 26385 fi 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26387 $as_echo "ok" >&6; } 26388 26389 26390 else 26391 # The variable is set, but is it from the command line or the environment? 26392 26393 # Try to remove the string !JAR! from our list. 26394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 26395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26396 # If it failed, the variable was not from the command line. Ignore it, 26397 # but warn the user (except for BASH, which is always set by the calling BASH). 26398 if test "xJAR" != xBASH; then 26399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 26400 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 26401 fi 26402 # Try to locate tool using the code snippet 26403 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 26405 $as_echo_n "checking for jar in Boot JDK... " >&6; } 26406 JAR=$BOOT_JDK/bin/jar 26407 if test ! -x $JAR; then 26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26409 $as_echo "not found" >&6; } 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26411 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26412 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 26413 fi 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26415 $as_echo "ok" >&6; } 26416 26417 26418 else 26419 # If it succeeded, then it was overridden by the user. We will use it 26420 # for the tool. 26421 26422 # First remove it from the list of overridden variables, so we can test 26423 # for unknown variables in the end. 26424 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26425 26426 # Check if the provided tool contains a complete path. 26427 tool_specified="$JAR" 26428 tool_basename="${tool_specified##*/}" 26429 if test "x$tool_basename" = "x$tool_specified"; then 26430 # A command without a complete path is provided, search $PATH. 26431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 26432 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 26433 # Extract the first word of "$tool_basename", so it can be a program name with args. 26434 set dummy $tool_basename; ac_word=$2 26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26436 $as_echo_n "checking for $ac_word... " >&6; } 26437 if ${ac_cv_path_JAR+:} false; then : 26438 $as_echo_n "(cached) " >&6 26439 else 26440 case $JAR in 26441 [\\/]* | ?:[\\/]*) 26442 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 26443 ;; 26444 *) 26445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26446 for as_dir in $PATH 26447 do 26448 IFS=$as_save_IFS 26449 test -z "$as_dir" && as_dir=. 26450 for ac_exec_ext in '' $ac_executable_extensions; do 26451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26452 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 26453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26454 break 2 26455 fi 26456 done 26457 done 26458 IFS=$as_save_IFS 26459 26460 ;; 26461 esac 26462 fi 26463 JAR=$ac_cv_path_JAR 26464 if test -n "$JAR"; then 26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 26466 $as_echo "$JAR" >&6; } 26467 else 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26469 $as_echo "no" >&6; } 26470 fi 26471 26472 26473 if test "x$JAR" = x; then 26474 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26475 fi 26476 else 26477 # Otherwise we believe it is a complete path. Use it as it is. 26478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 26479 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26481 $as_echo_n "checking for JAR... " >&6; } 26482 if test ! -x "$tool_specified"; then 26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26484 $as_echo "not found" >&6; } 26485 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26486 fi 26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26488 $as_echo "$tool_specified" >&6; } 26489 fi 26490 fi 26491 fi 26492 26493 26494 26495 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26496 26497 # Publish this variable in the help. 26498 26499 26500 if test "x$JARSIGNER" = x; then 26501 # The variable is not set by user, try to locate tool using the code snippet 26502 26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26504 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26505 JARSIGNER=$BOOT_JDK/bin/jarsigner 26506 if test ! -x $JARSIGNER; then 26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26508 $as_echo "not found" >&6; } 26509 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26510 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26511 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26512 fi 26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26514 $as_echo "ok" >&6; } 26515 26516 26517 else 26518 # The variable is set, but is it from the command line or the environment? 26519 26520 # Try to remove the string !JARSIGNER! from our list. 26521 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26522 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26523 # If it failed, the variable was not from the command line. Ignore it, 26524 # but warn the user (except for BASH, which is always set by the calling BASH). 26525 if test "xJARSIGNER" != xBASH; then 26526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26527 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26528 fi 26529 # Try to locate tool using the code snippet 26530 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26532 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26533 JARSIGNER=$BOOT_JDK/bin/jarsigner 26534 if test ! -x $JARSIGNER; then 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26536 $as_echo "not found" >&6; } 26537 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26538 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26539 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26540 fi 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26542 $as_echo "ok" >&6; } 26543 26544 26545 else 26546 # If it succeeded, then it was overridden by the user. We will use it 26547 # for the tool. 26548 26549 # First remove it from the list of overridden variables, so we can test 26550 # for unknown variables in the end. 26551 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26552 26553 # Check if the provided tool contains a complete path. 26554 tool_specified="$JARSIGNER" 26555 tool_basename="${tool_specified##*/}" 26556 if test "x$tool_basename" = "x$tool_specified"; then 26557 # A command without a complete path is provided, search $PATH. 26558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26559 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26560 # Extract the first word of "$tool_basename", so it can be a program name with args. 26561 set dummy $tool_basename; ac_word=$2 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26563 $as_echo_n "checking for $ac_word... " >&6; } 26564 if ${ac_cv_path_JARSIGNER+:} false; then : 26565 $as_echo_n "(cached) " >&6 26566 else 26567 case $JARSIGNER in 26568 [\\/]* | ?:[\\/]*) 26569 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26570 ;; 26571 *) 26572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26573 for as_dir in $PATH 26574 do 26575 IFS=$as_save_IFS 26576 test -z "$as_dir" && as_dir=. 26577 for ac_exec_ext in '' $ac_executable_extensions; do 26578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26579 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26581 break 2 26582 fi 26583 done 26584 done 26585 IFS=$as_save_IFS 26586 26587 ;; 26588 esac 26589 fi 26590 JARSIGNER=$ac_cv_path_JARSIGNER 26591 if test -n "$JARSIGNER"; then 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26593 $as_echo "$JARSIGNER" >&6; } 26594 else 26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26596 $as_echo "no" >&6; } 26597 fi 26598 26599 26600 if test "x$JARSIGNER" = x; then 26601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26602 fi 26603 else 26604 # Otherwise we believe it is a complete path. Use it as it is. 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26606 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26608 $as_echo_n "checking for JARSIGNER... " >&6; } 26609 if test ! -x "$tool_specified"; then 26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26611 $as_echo "not found" >&6; } 26612 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26613 fi 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26615 $as_echo "$tool_specified" >&6; } 26616 fi 26617 fi 26618 fi 26619 26620 26621 26622 # Finally, set some other options... 26623 26624 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26625 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26626 26627 26628 26629 26630 ############################################################################### 26631 # 26632 # Configure the sources to use. We can add or override individual directories. 26633 # 26634 ############################################################################### 26635 26636 26637 # Where are the sources. Any of these can be overridden 26638 # using --with-override-corba and the likes. 26639 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26640 CORBA_TOPDIR="$SRC_ROOT/corba" 26641 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26642 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26643 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26644 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26645 JDK_TOPDIR="$SRC_ROOT/jdk" 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 ############################################################################### 26657 # 26658 # Pickup additional source for a component from outside of the source root 26659 # or override source for a component. 26660 # 26661 26662 # Check whether --with-add-source-root was given. 26663 if test "${with_add_source_root+set}" = set; then : 26664 withval=$with_add_source_root; 26665 fi 26666 26667 26668 26669 # Check whether --with-override-source-root was given. 26670 if test "${with_override_source_root+set}" = set; then : 26671 withval=$with_override_source_root; 26672 fi 26673 26674 26675 26676 # Check whether --with-adds-and-overrides was given. 26677 if test "${with_adds_and_overrides+set}" = set; then : 26678 withval=$with_adds_and_overrides; 26679 fi 26680 26681 26682 if test "x$with_adds_and_overrides" != x; then 26683 with_add_source_root="$with_adds_and_overrides/adds" 26684 with_override_source_root="$with_adds_and_overrides/overrides" 26685 fi 26686 26687 if test "x$with_add_source_root" != x; then 26688 if ! test -d $with_add_source_root; then 26689 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26690 fi 26691 CURDIR="$PWD" 26692 cd "$with_add_source_root" 26693 ADD_SRC_ROOT="`pwd`" 26694 cd "$CURDIR" 26695 # Verify that the addon source root does not have any root makefiles. 26696 # If it does, then it is usually an error, prevent this. 26697 if test -f $with_add_source_root/langtools/make/Makefile; then 26698 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 26699 fi 26700 if test -f $with_add_source_root/corba/make/Makefile; then 26701 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 26702 fi 26703 if test -f $with_add_source_root/jaxp/make/Makefile; then 26704 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 26705 fi 26706 if test -f $with_add_source_root/jaxws/make/Makefile; then 26707 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 26708 fi 26709 if test -f $with_add_source_root/hotspot/make/Makefile; then 26710 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 26711 fi 26712 if test -f $with_add_source_root/nashorn/make/Makefile; then 26713 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 26714 fi 26715 if test -f $with_add_source_root/jdk/make/Makefile; then 26716 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 26717 fi 26718 fi 26719 26720 26721 if test "x$with_override_source_root" != x; then 26722 if ! test -d $with_override_source_root; then 26723 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26724 fi 26725 CURDIR="$PWD" 26726 cd "$with_override_source_root" 26727 OVERRIDE_SRC_ROOT="`pwd`" 26728 cd "$CURDIR" 26729 if test -f $with_override_source_root/langtools/make/Makefile; then 26730 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 26731 fi 26732 if test -f $with_override_source_root/corba/make/Makefile; then 26733 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 26734 fi 26735 if test -f $with_override_source_root/jaxp/make/Makefile; then 26736 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 26737 fi 26738 if test -f $with_override_source_root/jaxws/make/Makefile; then 26739 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 26740 fi 26741 if test -f $with_override_source_root/hotspot/make/Makefile; then 26742 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 26743 fi 26744 if test -f $with_override_source_root/nashorn/make/Makefile; then 26745 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 26746 fi 26747 if test -f $with_override_source_root/jdk/make/Makefile; then 26748 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 26749 fi 26750 fi 26751 26752 26753 ############################################################################### 26754 # 26755 # Override a repo completely, this is used for example when you have 3 small 26756 # development sandboxes of the langtools sources and want to avoid having 3 full 26757 # OpenJDK sources checked out on disk. 26758 # 26759 # Assuming that the 3 langtools sandboxes are located here: 26760 # /home/fredrik/sandbox1/langtools 26761 # /home/fredrik/sandbox2/langtools 26762 # /home/fredrik/sandbox3/langtools 26763 # 26764 # From the source root you create build subdirs manually: 26765 # mkdir -p build1 build2 build3 26766 # in each build directory run: 26767 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26768 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26769 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26770 # 26771 26772 26773 # Check whether --with-override-langtools was given. 26774 if test "${with_override_langtools+set}" = set; then : 26775 withval=$with_override_langtools; 26776 fi 26777 26778 26779 26780 # Check whether --with-override-corba was given. 26781 if test "${with_override_corba+set}" = set; then : 26782 withval=$with_override_corba; 26783 fi 26784 26785 26786 26787 # Check whether --with-override-jaxp was given. 26788 if test "${with_override_jaxp+set}" = set; then : 26789 withval=$with_override_jaxp; 26790 fi 26791 26792 26793 26794 # Check whether --with-override-jaxws was given. 26795 if test "${with_override_jaxws+set}" = set; then : 26796 withval=$with_override_jaxws; 26797 fi 26798 26799 26800 26801 # Check whether --with-override-hotspot was given. 26802 if test "${with_override_hotspot+set}" = set; then : 26803 withval=$with_override_hotspot; 26804 fi 26805 26806 26807 26808 # Check whether --with-override-nashorn was given. 26809 if test "${with_override_nashorn+set}" = set; then : 26810 withval=$with_override_nashorn; 26811 fi 26812 26813 26814 26815 # Check whether --with-override-jdk was given. 26816 if test "${with_override_jdk+set}" = set; then : 26817 withval=$with_override_jdk; 26818 fi 26819 26820 26821 if test "x$with_override_langtools" != x; then 26822 CURDIR="$PWD" 26823 cd "$with_override_langtools" 26824 LANGTOOLS_TOPDIR="`pwd`" 26825 cd "$CURDIR" 26826 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26827 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26828 fi 26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26830 $as_echo_n "checking if langtools should be overridden... " >&6; } 26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26832 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26833 fi 26834 if test "x$with_override_corba" != x; then 26835 CURDIR="$PWD" 26836 cd "$with_override_corba" 26837 CORBA_TOPDIR="`pwd`" 26838 cd "$CURDIR" 26839 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26840 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26841 fi 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26843 $as_echo_n "checking if corba should be overridden... " >&6; } 26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26845 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26846 fi 26847 if test "x$with_override_jaxp" != x; then 26848 CURDIR="$PWD" 26849 cd "$with_override_jaxp" 26850 JAXP_TOPDIR="`pwd`" 26851 cd "$CURDIR" 26852 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26853 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26854 fi 26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26856 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26858 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26859 fi 26860 if test "x$with_override_jaxws" != x; then 26861 CURDIR="$PWD" 26862 cd "$with_override_jaxws" 26863 JAXWS_TOPDIR="`pwd`" 26864 cd "$CURDIR" 26865 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26866 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26867 fi 26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26869 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26871 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26872 fi 26873 if test "x$with_override_hotspot" != x; then 26874 CURDIR="$PWD" 26875 cd "$with_override_hotspot" 26876 HOTSPOT_TOPDIR="`pwd`" 26877 cd "$CURDIR" 26878 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26879 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26880 fi 26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26882 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26884 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26885 fi 26886 if test "x$with_override_nashorn" != x; then 26887 CURDIR="$PWD" 26888 cd "$with_override_nashorn" 26889 NASHORN_TOPDIR="`pwd`" 26890 cd "$CURDIR" 26891 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26892 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26893 fi 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26895 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26897 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26898 fi 26899 if test "x$with_override_jdk" != x; then 26900 CURDIR="$PWD" 26901 cd "$with_override_jdk" 26902 JDK_TOPDIR="`pwd`" 26903 cd "$CURDIR" 26904 if ! test -f $JDK_TOPDIR/make/Makefile; then 26905 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26906 fi 26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26908 $as_echo_n "checking if JDK should be overridden... " >&6; } 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26910 $as_echo "yes with $JDK_TOPDIR" >&6; } 26911 fi 26912 26913 26914 BUILD_OUTPUT="$OUTPUT_ROOT" 26915 26916 26917 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26918 BUILD_HOTSPOT=true 26919 26920 26921 26922 # Check whether --with-import-hotspot was given. 26923 if test "${with_import_hotspot+set}" = set; then : 26924 withval=$with_import_hotspot; 26925 fi 26926 26927 if test "x$with_import_hotspot" != x; then 26928 CURDIR="$PWD" 26929 cd "$with_import_hotspot" 26930 HOTSPOT_DIST="`pwd`" 26931 cd "$CURDIR" 26932 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26933 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26934 fi 26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26936 $as_echo_n "checking if hotspot should be imported... " >&6; } 26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26938 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26939 BUILD_HOTSPOT=false 26940 fi 26941 26942 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26943 26944 26945 ############################################################################### 26946 # 26947 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26948 # native code. 26949 # 26950 ############################################################################### 26951 26952 # First determine the toolchain type (compiler family) 26953 26954 26955 # Check whether --with-toolchain-type was given. 26956 if test "${with_toolchain_type+set}" = set; then : 26957 withval=$with_toolchain_type; 26958 fi 26959 26960 26961 # Use indirect variable referencing 26962 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26963 VALID_TOOLCHAINS=${!toolchain_var_name} 26964 26965 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26966 if test -n "$XCODEBUILD"; then 26967 # On Mac OS X, default toolchain to clang after Xcode 5 26968 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26969 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26970 if test $? -ne 0; then 26971 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26972 fi 26973 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26974 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26975 $CUT -f 1 -d .` 26976 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26977 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26978 if test $XCODE_MAJOR_VERSION -ge 5; then 26979 DEFAULT_TOOLCHAIN="clang" 26980 else 26981 DEFAULT_TOOLCHAIN="gcc" 26982 fi 26983 else 26984 # If Xcode is not installed, but the command line tools are 26985 # then we can't run xcodebuild. On these systems we should 26986 # default to clang 26987 DEFAULT_TOOLCHAIN="clang" 26988 fi 26989 else 26990 # First toolchain type in the list is the default 26991 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26992 fi 26993 26994 if test "x$with_toolchain_type" = xlist; then 26995 # List all toolchains 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26997 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26998 for toolchain in $VALID_TOOLCHAINS; do 26999 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 27000 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 27001 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 27002 done 27003 27004 exit 0 27005 elif test "x$with_toolchain_type" != x; then 27006 # User override; check that it is valid 27007 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 27008 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 27009 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 27011 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 27012 as_fn_error $? "Cannot continue." "$LINENO" 5 27013 fi 27014 TOOLCHAIN_TYPE=$with_toolchain_type 27015 else 27016 # No flag given, use default 27017 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 27018 fi 27019 27020 27021 TOOLCHAIN_CC_BINARY_clang="clang" 27022 TOOLCHAIN_CC_BINARY_gcc="gcc" 27023 TOOLCHAIN_CC_BINARY_microsoft="cl" 27024 TOOLCHAIN_CC_BINARY_solstudio="cc" 27025 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 27026 27027 TOOLCHAIN_CXX_BINARY_clang="clang++" 27028 TOOLCHAIN_CXX_BINARY_gcc="g++" 27029 TOOLCHAIN_CXX_BINARY_microsoft="cl" 27030 TOOLCHAIN_CXX_BINARY_solstudio="CC" 27031 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 27032 27033 # Use indirect variable referencing 27034 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 27035 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 27036 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 27037 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 27038 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 27039 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 27040 27041 27042 # Define filename patterns 27043 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27044 LIBRARY_PREFIX= 27045 SHARED_LIBRARY_SUFFIX='.dll' 27046 STATIC_LIBRARY_SUFFIX='.lib' 27047 SHARED_LIBRARY='$1.dll' 27048 STATIC_LIBRARY='$1.lib' 27049 OBJ_SUFFIX='.obj' 27050 EXE_SUFFIX='.exe' 27051 else 27052 LIBRARY_PREFIX=lib 27053 SHARED_LIBRARY_SUFFIX='.so' 27054 STATIC_LIBRARY_SUFFIX='.a' 27055 SHARED_LIBRARY='lib$1.so' 27056 STATIC_LIBRARY='lib$1.a' 27057 OBJ_SUFFIX='.o' 27058 EXE_SUFFIX='' 27059 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 27060 SHARED_LIBRARY='lib$1.dylib' 27061 SHARED_LIBRARY_SUFFIX='.dylib' 27062 fi 27063 fi 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 27075 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 27076 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 27077 else 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 27079 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 27080 fi 27081 27082 27083 # Then detect the actual binaries needed 27084 27085 # FIXME: Is this needed? 27086 ac_ext=cpp 27087 ac_cpp='$CXXCPP $CPPFLAGS' 27088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27091 27092 27093 # Store the CFLAGS etc passed to the configure script. 27094 ORG_CFLAGS="$CFLAGS" 27095 ORG_CXXFLAGS="$CXXFLAGS" 27096 27097 # autoconf magic only relies on PATH, so update it if tools dir is specified 27098 OLD_PATH="$PATH" 27099 27100 # On Windows, we need to detect the visual studio installation first. 27101 # This will change the PATH, but we need to keep that new PATH even 27102 # after toolchain detection is done, since the compiler (on x86) uses 27103 # it for DLL resolution in runtime. 27104 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 27105 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 27106 27107 # Store path to cygwin link.exe to help excluding it when searching for 27108 # VS linker. This must be done before changing the PATH when looking for VS. 27109 # Extract the first word of "link", so it can be a program name with args. 27110 set dummy link; ac_word=$2 27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27112 $as_echo_n "checking for $ac_word... " >&6; } 27113 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 27114 $as_echo_n "(cached) " >&6 27115 else 27116 case $CYGWIN_LINK in 27117 [\\/]* | ?:[\\/]*) 27118 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 27119 ;; 27120 *) 27121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27122 for as_dir in $PATH 27123 do 27124 IFS=$as_save_IFS 27125 test -z "$as_dir" && as_dir=. 27126 for ac_exec_ext in '' $ac_executable_extensions; do 27127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27128 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 27129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27130 break 2 27131 fi 27132 done 27133 done 27134 IFS=$as_save_IFS 27135 27136 ;; 27137 esac 27138 fi 27139 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 27140 if test -n "$CYGWIN_LINK"; then 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 27142 $as_echo "$CYGWIN_LINK" >&6; } 27143 else 27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27145 $as_echo "no" >&6; } 27146 fi 27147 27148 27149 if test "x$CYGWIN_LINK" != x; then 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 27151 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 27152 "$CYGWIN_LINK" --version > /dev/null 27153 if test $? -eq 0 ; then 27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27155 $as_echo "yes" >&6; } 27156 else 27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27158 $as_echo "no" >&6; } 27159 # This might be the VS linker. Don't exclude it later on. 27160 CYGWIN_LINK="" 27161 fi 27162 fi 27163 27164 # First-hand choice is to locate and run the vsvars bat file. 27165 27166 27167 # Check whether --with-toolchain-version was given. 27168 if test "${with_toolchain_version+set}" = set; then : 27169 withval=$with_toolchain_version; 27170 fi 27171 27172 27173 if test "x$with_toolchain_version" = xlist; then 27174 # List all toolchains 27175 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 27176 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 27177 for version in $VALID_VS_VERSIONS; do 27178 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 27179 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 27180 done 27181 27182 exit 0 27183 elif test "x$DEVKIT_VS_VERSION" != x; then 27184 VS_VERSION=$DEVKIT_VS_VERSION 27185 TOOLCHAIN_VERSION=$VS_VERSION 27186 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27187 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27188 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27189 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27190 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27191 VS_PATH="$TOOLCHAIN_PATH:$PATH" 27192 27193 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 27194 # can still be exported as INCLUDE for compiler invocations without 27195 # SYSROOT_CFLAGS 27196 OLDIFS="$IFS" 27197 IFS=";" 27198 for i in $DEVKIT_VS_INCLUDE; do 27199 ipath=$i 27200 27201 unix_path="$ipath" 27202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27203 windows_path=`$CYGPATH -m "$unix_path"` 27204 ipath="$windows_path" 27205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27206 windows_path=`cmd //c echo $unix_path` 27207 ipath="$windows_path" 27208 fi 27209 27210 VS_INCLUDE="$VS_INCLUDE;$ipath" 27211 done 27212 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 27213 # as LIB for compiler invocations without SYSROOT_LDFLAGS 27214 for i in $DEVKIT_VS_LIB; do 27215 libpath=$i 27216 27217 unix_path="$libpath" 27218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27219 windows_path=`$CYGPATH -m "$unix_path"` 27220 libpath="$windows_path" 27221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27222 windows_path=`cmd //c echo $unix_path` 27223 libpath="$windows_path" 27224 fi 27225 27226 VS_LIB="$VS_LIB;$libpath" 27227 done 27228 IFS="$OLDIFS" 27229 27230 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 27231 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 27232 27233 elif test "x$with_toolchain_version" != x; then 27234 # User override; check that it is valid 27235 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 27237 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 27238 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 27239 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 27240 as_fn_error $? "Cannot continue." "$LINENO" 5 27241 fi 27242 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 27243 else 27244 # No flag given, use default 27245 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 27246 fi 27247 27248 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 27249 27250 VS_VERSION="$VS_VERSION" 27251 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 27252 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 27253 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 27254 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 27255 27256 # When using --with-tools-dir, assume it points to the correct and default 27257 # version of Visual Studio or that --with-toolchain-version was also set. 27258 if test "x$with_tools_dir" != x; then 27259 27260 if test "x$VS_ENV_CMD" = x; then 27261 VS_VERSION="${VS_VERSION}" 27262 VS_BASE="$with_tools_dir/../.." 27263 METHOD="--with-tools-dir" 27264 27265 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27266 VCVARSFILE="vc/bin/vcvars32.bat" 27267 else 27268 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27269 fi 27270 27271 27272 windows_path="$VS_BASE" 27273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27274 unix_path=`$CYGPATH -u "$windows_path"` 27275 VS_BASE="$unix_path" 27276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27278 VS_BASE="$unix_path" 27279 fi 27280 27281 if test -d "$VS_BASE"; then 27282 if test -f "$VS_BASE/$VCVARSFILE"; then 27283 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27284 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27285 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27286 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27287 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27288 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27289 else 27290 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27291 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27293 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27294 fi 27295 fi 27296 fi 27297 27298 27299 if test "x$VS_ENV_CMD" = x; then 27300 VS_VERSION="${VS_VERSION}" 27301 VS_BASE="$with_tools_dir/../../.." 27302 METHOD="--with-tools-dir" 27303 27304 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27305 VCVARSFILE="vc/bin/vcvars32.bat" 27306 else 27307 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27308 fi 27309 27310 27311 windows_path="$VS_BASE" 27312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27313 unix_path=`$CYGPATH -u "$windows_path"` 27314 VS_BASE="$unix_path" 27315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27317 VS_BASE="$unix_path" 27318 fi 27319 27320 if test -d "$VS_BASE"; then 27321 if test -f "$VS_BASE/$VCVARSFILE"; then 27322 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27323 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27324 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27325 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27326 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27327 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27328 else 27329 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27330 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27331 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27332 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27333 fi 27334 fi 27335 fi 27336 27337 if test "x$VS_ENV_CMD" = x; then 27338 # Having specified an argument which is incorrect will produce an instant failure; 27339 # we should not go on looking 27340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 27341 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 27342 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 27343 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 27344 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 27345 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 27346 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 27347 fi 27348 fi 27349 27350 VS_ENV_CMD="" 27351 VS_ENV_ARGS="" 27352 27353 if test "x$VS_COMNTOOLS" != x; then 27354 27355 if test "x$VS_ENV_CMD" = x; then 27356 VS_VERSION="${VS_VERSION}" 27357 VS_BASE="$VS_COMNTOOLS/../.." 27358 METHOD="$VS_COMNTOOLS_VAR variable" 27359 27360 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27361 VCVARSFILE="vc/bin/vcvars32.bat" 27362 else 27363 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27364 fi 27365 27366 27367 windows_path="$VS_BASE" 27368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27369 unix_path=`$CYGPATH -u "$windows_path"` 27370 VS_BASE="$unix_path" 27371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27372 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27373 VS_BASE="$unix_path" 27374 fi 27375 27376 if test -d "$VS_BASE"; then 27377 if test -f "$VS_BASE/$VCVARSFILE"; then 27378 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27379 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27380 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27381 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27382 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27383 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27384 else 27385 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27386 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27387 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27388 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27389 fi 27390 fi 27391 fi 27392 27393 fi 27394 if test "x$PROGRAMFILES" != x; then 27395 27396 if test "x$VS_ENV_CMD" = x; then 27397 VS_VERSION="${VS_VERSION}" 27398 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 27399 METHOD="well-known name" 27400 27401 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27402 VCVARSFILE="vc/bin/vcvars32.bat" 27403 else 27404 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27405 fi 27406 27407 27408 windows_path="$VS_BASE" 27409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27410 unix_path=`$CYGPATH -u "$windows_path"` 27411 VS_BASE="$unix_path" 27412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27414 VS_BASE="$unix_path" 27415 fi 27416 27417 if test -d "$VS_BASE"; then 27418 if test -f "$VS_BASE/$VCVARSFILE"; then 27419 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27420 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27421 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27422 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27423 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27424 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27425 else 27426 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27427 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27428 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27429 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27430 fi 27431 fi 27432 fi 27433 27434 fi 27435 # Work around the insanely named ProgramFiles(x86) env variable 27436 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 27437 if test "x$PROGRAMFILES_X86" != x; then 27438 27439 if test "x$VS_ENV_CMD" = x; then 27440 VS_VERSION="${VS_VERSION}" 27441 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 27442 METHOD="well-known name" 27443 27444 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27445 VCVARSFILE="vc/bin/vcvars32.bat" 27446 else 27447 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27448 fi 27449 27450 27451 windows_path="$VS_BASE" 27452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27453 unix_path=`$CYGPATH -u "$windows_path"` 27454 VS_BASE="$unix_path" 27455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27457 VS_BASE="$unix_path" 27458 fi 27459 27460 if test -d "$VS_BASE"; then 27461 if test -f "$VS_BASE/$VCVARSFILE"; then 27462 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27463 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27464 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27465 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27466 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27467 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27468 else 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27470 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27471 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27472 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27473 fi 27474 fi 27475 fi 27476 27477 fi 27478 27479 if test "x$VS_ENV_CMD" = x; then 27480 VS_VERSION="${VS_VERSION}" 27481 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 27482 METHOD="well-known name" 27483 27484 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27485 VCVARSFILE="vc/bin/vcvars32.bat" 27486 else 27487 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27488 fi 27489 27490 27491 windows_path="$VS_BASE" 27492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27493 unix_path=`$CYGPATH -u "$windows_path"` 27494 VS_BASE="$unix_path" 27495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27497 VS_BASE="$unix_path" 27498 fi 27499 27500 if test -d "$VS_BASE"; then 27501 if test -f "$VS_BASE/$VCVARSFILE"; then 27502 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27503 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27504 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27505 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27506 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27507 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27508 else 27509 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27510 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27511 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27512 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27513 fi 27514 fi 27515 fi 27516 27517 27518 if test "x$VS_ENV_CMD" = x; then 27519 VS_VERSION="${VS_VERSION}" 27520 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 27521 METHOD="well-known name" 27522 27523 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27524 VCVARSFILE="vc/bin/vcvars32.bat" 27525 else 27526 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27527 fi 27528 27529 27530 windows_path="$VS_BASE" 27531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27532 unix_path=`$CYGPATH -u "$windows_path"` 27533 VS_BASE="$unix_path" 27534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27536 VS_BASE="$unix_path" 27537 fi 27538 27539 if test -d "$VS_BASE"; then 27540 if test -f "$VS_BASE/$VCVARSFILE"; then 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27542 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27543 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27544 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27545 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27546 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27547 else 27548 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27549 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27551 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27552 fi 27553 fi 27554 fi 27555 27556 27557 if test "x$SDK_INSTALL_DIR" != x; then 27558 if test "x$ProgramW6432" != x; then 27559 27560 if test "x$VS_ENV_CMD" = x; then 27561 VS_VERSION="${VS_VERSION}" 27562 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27563 METHOD="well-known name" 27564 27565 windows_path="$WIN_SDK_BASE" 27566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27567 unix_path=`$CYGPATH -u "$windows_path"` 27568 WIN_SDK_BASE="$unix_path" 27569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27571 WIN_SDK_BASE="$unix_path" 27572 fi 27573 27574 if test -d "$WIN_SDK_BASE"; then 27575 # There have been cases of partial or broken SDK installations. A missing 27576 # lib dir is not going to work. 27577 if test ! -d "$WIN_SDK_BASE/lib"; then 27578 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27579 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27580 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27581 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27582 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27583 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27584 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27585 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27586 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27587 VS_ENV_ARGS="/x86" 27588 else 27589 VS_ENV_ARGS="/x64" 27590 fi 27591 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27592 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27593 # TODO: improve detection for other versions of SDK 27594 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27595 else 27596 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27597 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27598 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27599 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27600 fi 27601 fi 27602 fi 27603 27604 fi 27605 if test "x$PROGRAMW6432" != x; then 27606 27607 if test "x$VS_ENV_CMD" = x; then 27608 VS_VERSION="${VS_VERSION}" 27609 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 27610 METHOD="well-known name" 27611 27612 windows_path="$WIN_SDK_BASE" 27613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27614 unix_path=`$CYGPATH -u "$windows_path"` 27615 WIN_SDK_BASE="$unix_path" 27616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27617 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27618 WIN_SDK_BASE="$unix_path" 27619 fi 27620 27621 if test -d "$WIN_SDK_BASE"; then 27622 # There have been cases of partial or broken SDK installations. A missing 27623 # lib dir is not going to work. 27624 if test ! -d "$WIN_SDK_BASE/lib"; then 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27626 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27628 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27629 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27631 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27632 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27633 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27634 VS_ENV_ARGS="/x86" 27635 else 27636 VS_ENV_ARGS="/x64" 27637 fi 27638 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27639 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27640 # TODO: improve detection for other versions of SDK 27641 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27642 else 27643 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27644 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27645 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27646 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27647 fi 27648 fi 27649 fi 27650 27651 fi 27652 if test "x$PROGRAMFILES" != x; then 27653 27654 if test "x$VS_ENV_CMD" = x; then 27655 VS_VERSION="${VS_VERSION}" 27656 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 27657 METHOD="well-known name" 27658 27659 windows_path="$WIN_SDK_BASE" 27660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27661 unix_path=`$CYGPATH -u "$windows_path"` 27662 WIN_SDK_BASE="$unix_path" 27663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27665 WIN_SDK_BASE="$unix_path" 27666 fi 27667 27668 if test -d "$WIN_SDK_BASE"; then 27669 # There have been cases of partial or broken SDK installations. A missing 27670 # lib dir is not going to work. 27671 if test ! -d "$WIN_SDK_BASE/lib"; then 27672 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27673 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27674 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27675 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27676 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27677 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27678 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27679 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27680 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27681 VS_ENV_ARGS="/x86" 27682 else 27683 VS_ENV_ARGS="/x64" 27684 fi 27685 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27686 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27687 # TODO: improve detection for other versions of SDK 27688 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27689 else 27690 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27691 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27692 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27693 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27694 fi 27695 fi 27696 fi 27697 27698 fi 27699 27700 if test "x$VS_ENV_CMD" = x; then 27701 VS_VERSION="${VS_VERSION}" 27702 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 27703 METHOD="well-known name" 27704 27705 windows_path="$WIN_SDK_BASE" 27706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27707 unix_path=`$CYGPATH -u "$windows_path"` 27708 WIN_SDK_BASE="$unix_path" 27709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27711 WIN_SDK_BASE="$unix_path" 27712 fi 27713 27714 if test -d "$WIN_SDK_BASE"; then 27715 # There have been cases of partial or broken SDK installations. A missing 27716 # lib dir is not going to work. 27717 if test ! -d "$WIN_SDK_BASE/lib"; then 27718 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27719 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27720 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27721 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27722 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27724 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27725 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27726 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27727 VS_ENV_ARGS="/x86" 27728 else 27729 VS_ENV_ARGS="/x64" 27730 fi 27731 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27732 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27733 # TODO: improve detection for other versions of SDK 27734 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27735 else 27736 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27737 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27739 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27740 fi 27741 fi 27742 fi 27743 27744 27745 if test "x$VS_ENV_CMD" = x; then 27746 VS_VERSION="${VS_VERSION}" 27747 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 27748 METHOD="well-known name" 27749 27750 windows_path="$WIN_SDK_BASE" 27751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27752 unix_path=`$CYGPATH -u "$windows_path"` 27753 WIN_SDK_BASE="$unix_path" 27754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27756 WIN_SDK_BASE="$unix_path" 27757 fi 27758 27759 if test -d "$WIN_SDK_BASE"; then 27760 # There have been cases of partial or broken SDK installations. A missing 27761 # lib dir is not going to work. 27762 if test ! -d "$WIN_SDK_BASE/lib"; then 27763 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27764 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27766 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27767 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27768 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27769 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27770 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27771 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27772 VS_ENV_ARGS="/x86" 27773 else 27774 VS_ENV_ARGS="/x64" 27775 fi 27776 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27777 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27778 # TODO: improve detection for other versions of SDK 27779 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27780 else 27781 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27782 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27783 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27784 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27785 fi 27786 fi 27787 fi 27788 27789 fi 27790 27791 if test "x$VS_ENV_CMD" != x; then 27792 TOOLCHAIN_VERSION=$VS_VERSION 27793 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27794 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27795 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27796 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27797 # The rest of the variables are already evaled while probing 27798 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 27799 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 27800 break 27801 fi 27802 done 27803 27804 27805 # If we have a devkit, skip all of the below. 27806 if test "x$DEVKIT_VS_VERSION" = x; then 27807 if test "x$VS_ENV_CMD" != x; then 27808 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27809 27810 # Only process if variable expands to non-empty 27811 27812 if test "x$VS_ENV_CMD" != x; then 27813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27814 27815 # First separate the path from the arguments. This will split at the first 27816 # space. 27817 complete="$VS_ENV_CMD" 27818 path="${complete%% *}" 27819 tmp="$complete EOL" 27820 arguments="${tmp#* }" 27821 27822 # Input might be given as Windows format, start by converting to 27823 # unix format. 27824 new_path=`$CYGPATH -u "$path"` 27825 27826 # Now try to locate executable using which 27827 new_path=`$WHICH "$new_path" 2> /dev/null` 27828 # bat and cmd files are not always considered executable in cygwin causing which 27829 # to not find them 27830 if test "x$new_path" = x \ 27831 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27832 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27833 new_path=`$CYGPATH -u "$path"` 27834 fi 27835 if test "x$new_path" = x; then 27836 # Oops. Which didn't find the executable. 27837 # The splitting of arguments from the executable at a space might have been incorrect, 27838 # since paths with space are more likely in Windows. Give it another try with the whole 27839 # argument. 27840 path="$complete" 27841 arguments="EOL" 27842 new_path=`$CYGPATH -u "$path"` 27843 new_path=`$WHICH "$new_path" 2> /dev/null` 27844 # bat and cmd files are not always considered executable in cygwin causing which 27845 # to not find them 27846 if test "x$new_path" = x \ 27847 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27848 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27849 new_path=`$CYGPATH -u "$path"` 27850 fi 27851 if test "x$new_path" = x; then 27852 # It's still not found. Now this is an unrecoverable error. 27853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27854 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27855 has_space=`$ECHO "$complete" | $GREP " "` 27856 if test "x$has_space" != x; then 27857 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27859 fi 27860 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27861 fi 27862 fi 27863 27864 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27865 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27866 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27867 # "foo.exe" is OK but "foo" is an error. 27868 # 27869 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27870 # It is also a way to make sure we got the proper file name for the real test later on. 27871 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27872 if test "x$test_shortpath" = x; then 27873 # Short path failed, file does not exist as specified. 27874 # Try adding .exe or .cmd 27875 if test -f "${new_path}.exe"; then 27876 input_to_shortpath="${new_path}.exe" 27877 elif test -f "${new_path}.cmd"; then 27878 input_to_shortpath="${new_path}.cmd" 27879 else 27880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27881 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27883 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27884 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27885 fi 27886 else 27887 input_to_shortpath="$new_path" 27888 fi 27889 27890 # Call helper function which possibly converts this using DOS-style short mode. 27891 # If so, the updated path is stored in $new_path. 27892 new_path="$input_to_shortpath" 27893 27894 input_path="$input_to_shortpath" 27895 # Check if we need to convert this using DOS-style short mode. If the path 27896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27897 # take no chances and rewrite it. 27898 # Note: m4 eats our [], so we need to use [ and ] instead. 27899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27900 if test "x$has_forbidden_chars" != x; then 27901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27902 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27903 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27904 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27905 # Going to short mode and back again did indeed matter. Since short mode is 27906 # case insensitive, let's make it lowercase to improve readability. 27907 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27908 # Now convert it back to Unix-style (cygpath) 27909 input_path=`$CYGPATH -u "$shortmode_path"` 27910 new_path="$input_path" 27911 fi 27912 fi 27913 27914 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27915 if test "x$test_cygdrive_prefix" = x; then 27916 # As a simple fix, exclude /usr/bin since it's not a real path. 27917 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27918 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27919 # a path prefixed by /cygdrive for fixpath to work. 27920 new_path="$CYGWIN_ROOT_PATH$input_path" 27921 fi 27922 fi 27923 27924 # remove trailing .exe if any 27925 new_path="${new_path/%.exe/}" 27926 27927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27928 27929 # First separate the path from the arguments. This will split at the first 27930 # space. 27931 complete="$VS_ENV_CMD" 27932 path="${complete%% *}" 27933 tmp="$complete EOL" 27934 arguments="${tmp#* }" 27935 27936 # Input might be given as Windows format, start by converting to 27937 # unix format. 27938 new_path="$path" 27939 27940 windows_path="$new_path" 27941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27942 unix_path=`$CYGPATH -u "$windows_path"` 27943 new_path="$unix_path" 27944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27945 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27946 new_path="$unix_path" 27947 fi 27948 27949 27950 # Now try to locate executable using which 27951 new_path=`$WHICH "$new_path" 2> /dev/null` 27952 27953 if test "x$new_path" = x; then 27954 # Oops. Which didn't find the executable. 27955 # The splitting of arguments from the executable at a space might have been incorrect, 27956 # since paths with space are more likely in Windows. Give it another try with the whole 27957 # argument. 27958 path="$complete" 27959 arguments="EOL" 27960 new_path="$path" 27961 27962 windows_path="$new_path" 27963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27964 unix_path=`$CYGPATH -u "$windows_path"` 27965 new_path="$unix_path" 27966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27968 new_path="$unix_path" 27969 fi 27970 27971 27972 new_path=`$WHICH "$new_path" 2> /dev/null` 27973 # bat and cmd files are not always considered executable in MSYS causing which 27974 # to not find them 27975 if test "x$new_path" = x \ 27976 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27977 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27978 new_path="$path" 27979 27980 windows_path="$new_path" 27981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27982 unix_path=`$CYGPATH -u "$windows_path"` 27983 new_path="$unix_path" 27984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27986 new_path="$unix_path" 27987 fi 27988 27989 fi 27990 27991 if test "x$new_path" = x; then 27992 # It's still not found. Now this is an unrecoverable error. 27993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27994 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27995 has_space=`$ECHO "$complete" | $GREP " "` 27996 if test "x$has_space" != x; then 27997 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27999 fi 28000 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28001 fi 28002 fi 28003 28004 # Now new_path has a complete unix path to the binary 28005 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28006 # Keep paths in /bin as-is, but remove trailing .exe if any 28007 new_path="${new_path/%.exe/}" 28008 # Do not save /bin paths to all_fixpath_prefixes! 28009 else 28010 # Not in mixed or Windows style, start by that. 28011 new_path=`cmd //c echo $new_path` 28012 28013 input_path="$new_path" 28014 # Check if we need to convert this using DOS-style short mode. If the path 28015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28016 # take no chances and rewrite it. 28017 # Note: m4 eats our [], so we need to use [ and ] instead. 28018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28019 if test "x$has_forbidden_chars" != x; then 28020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28021 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28022 fi 28023 28024 # Output is in $new_path 28025 28026 windows_path="$new_path" 28027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28028 unix_path=`$CYGPATH -u "$windows_path"` 28029 new_path="$unix_path" 28030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28032 new_path="$unix_path" 28033 fi 28034 28035 # remove trailing .exe if any 28036 new_path="${new_path/%.exe/}" 28037 28038 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28039 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28040 fi 28041 28042 else 28043 # We're on a unix platform. Hooray! :) 28044 # First separate the path from the arguments. This will split at the first 28045 # space. 28046 complete="$VS_ENV_CMD" 28047 path="${complete%% *}" 28048 tmp="$complete EOL" 28049 arguments="${tmp#* }" 28050 28051 # Cannot rely on the command "which" here since it doesn't always work. 28052 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28053 if test -z "$is_absolute_path"; then 28054 # Path to executable is not absolute. Find it. 28055 IFS_save="$IFS" 28056 IFS=: 28057 for p in $PATH; do 28058 if test -f "$p/$path" && test -x "$p/$path"; then 28059 new_path="$p/$path" 28060 break 28061 fi 28062 done 28063 IFS="$IFS_save" 28064 else 28065 # This is an absolute path, we can use it without further modifications. 28066 new_path="$path" 28067 fi 28068 28069 if test "x$new_path" = x; then 28070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 28071 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 28072 has_space=`$ECHO "$complete" | $GREP " "` 28073 if test "x$has_space" != x; then 28074 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28075 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28076 fi 28077 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28078 fi 28079 fi 28080 28081 # Now join together the path and the arguments once again 28082 if test "x$arguments" != xEOL; then 28083 new_complete="$new_path ${arguments% *}" 28084 else 28085 new_complete="$new_path" 28086 fi 28087 28088 if test "x$complete" != "x$new_complete"; then 28089 VS_ENV_CMD="$new_complete" 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 28091 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 28092 fi 28093 fi 28094 28095 28096 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 28097 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 28098 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 28099 28100 # We need to create a couple of temporary files. 28101 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 28102 $MKDIR -p $VS_ENV_TMP_DIR 28103 28104 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 28105 # Instead create a shell script which will set the relevant variables when run. 28106 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 28107 28108 unix_path="$WINPATH_VS_ENV_CMD" 28109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28110 windows_path=`$CYGPATH -m "$unix_path"` 28111 WINPATH_VS_ENV_CMD="$windows_path" 28112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28113 windows_path=`cmd //c echo $unix_path` 28114 WINPATH_VS_ENV_CMD="$windows_path" 28115 fi 28116 28117 WINPATH_BASH="$BASH" 28118 28119 unix_path="$WINPATH_BASH" 28120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28121 windows_path=`$CYGPATH -m "$unix_path"` 28122 WINPATH_BASH="$windows_path" 28123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28124 windows_path=`cmd //c echo $unix_path` 28125 WINPATH_BASH="$windows_path" 28126 fi 28127 28128 28129 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 28130 # script (executable by bash) that will setup the important variables. 28131 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 28132 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 28133 # This will end up something like: 28134 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 28135 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 28136 # These will end up something like: 28137 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 28138 # The trailing space for everyone except PATH is no typo, but is needed due 28139 # to trailing \ in the Windows paths. These will be stripped later. 28140 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 28141 >> $EXTRACT_VC_ENV_BAT_FILE 28142 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 28143 >> $EXTRACT_VC_ENV_BAT_FILE 28144 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 28145 >> $EXTRACT_VC_ENV_BAT_FILE 28146 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 28147 >> $EXTRACT_VC_ENV_BAT_FILE 28148 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 28149 >> $EXTRACT_VC_ENV_BAT_FILE 28150 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 28151 >> $EXTRACT_VC_ENV_BAT_FILE 28152 28153 # Now execute the newly created bat file. 28154 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 28155 # Change directory so we don't need to mess with Windows paths in redirects. 28156 cd $VS_ENV_TMP_DIR 28157 cmd /c extract-vs-env.bat | $CAT 28158 cd $CURDIR 28159 28160 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 28161 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 28162 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 28163 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28164 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28165 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28166 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28167 as_fn_error $? "Cannot continue" "$LINENO" 5 28168 fi 28169 28170 # Now set all paths and other env variables. This will allow the rest of 28171 # the configure script to find and run the compiler in the proper way. 28172 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 28173 $as_echo "$as_me: Setting extracted environment variables" >&6;} 28174 . $VS_ENV_TMP_DIR/set-vs-env.sh 28175 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 28176 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 28177 else 28178 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 28179 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 28180 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 28181 fi 28182 fi 28183 28184 # At this point, we should have correct variables in the environment, or we can't continue. 28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 28186 $as_echo_n "checking for Visual Studio variables... " >&6; } 28187 28188 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 28189 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 28190 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 28192 $as_echo "present but broken" >&6; } 28193 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 28194 else 28195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28196 $as_echo "ok" >&6; } 28197 # Remove any trailing "\" ";" and " " from the variables. 28198 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 28199 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 28200 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 28201 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 28202 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 28203 # Remove any paths containing # (typically F#) as that messes up make. This 28204 # is needed if visual studio was installed with F# support. 28205 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 28206 28207 28208 28209 28210 28211 # Convert VS_INCLUDE into SYSROOT_CFLAGS 28212 OLDIFS="$IFS" 28213 IFS=";" 28214 for i in $VS_INCLUDE; do 28215 ipath=$i 28216 # Only process non-empty elements 28217 if test "x$ipath" != x; then 28218 IFS="$OLDIFS" 28219 # Check that directory exists before calling fixup_path 28220 testpath=$ipath 28221 28222 windows_path="$testpath" 28223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28224 unix_path=`$CYGPATH -u "$windows_path"` 28225 testpath="$unix_path" 28226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28228 testpath="$unix_path" 28229 fi 28230 28231 if test -d "$testpath"; then 28232 28233 # Only process if variable expands to non-empty 28234 28235 if test "x$ipath" != x; then 28236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28237 28238 # Input might be given as Windows format, start by converting to 28239 # unix format. 28240 path="$ipath" 28241 new_path=`$CYGPATH -u "$path"` 28242 28243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28246 # "foo.exe" is OK but "foo" is an error. 28247 # 28248 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28249 # It is also a way to make sure we got the proper file name for the real test later on. 28250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28251 if test "x$test_shortpath" = x; then 28252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 28253 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 28254 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 28255 fi 28256 28257 # Call helper function which possibly converts this using DOS-style short mode. 28258 # If so, the updated path is stored in $new_path. 28259 28260 input_path="$new_path" 28261 # Check if we need to convert this using DOS-style short mode. If the path 28262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28263 # take no chances and rewrite it. 28264 # Note: m4 eats our [], so we need to use [ and ] instead. 28265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28266 if test "x$has_forbidden_chars" != x; then 28267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28271 # Going to short mode and back again did indeed matter. Since short mode is 28272 # case insensitive, let's make it lowercase to improve readability. 28273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28274 # Now convert it back to Unix-style (cygpath) 28275 input_path=`$CYGPATH -u "$shortmode_path"` 28276 new_path="$input_path" 28277 fi 28278 fi 28279 28280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28281 if test "x$test_cygdrive_prefix" = x; then 28282 # As a simple fix, exclude /usr/bin since it's not a real path. 28283 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28285 # a path prefixed by /cygdrive for fixpath to work. 28286 new_path="$CYGWIN_ROOT_PATH$input_path" 28287 fi 28288 fi 28289 28290 28291 if test "x$path" != "x$new_path"; then 28292 ipath="$new_path" 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 28294 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 28295 fi 28296 28297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28298 28299 path="$ipath" 28300 has_colon=`$ECHO $path | $GREP ^.:` 28301 new_path="$path" 28302 if test "x$has_colon" = x; then 28303 # Not in mixed or Windows style, start by that. 28304 new_path=`cmd //c echo $path` 28305 fi 28306 28307 28308 input_path="$new_path" 28309 # Check if we need to convert this using DOS-style short mode. If the path 28310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28311 # take no chances and rewrite it. 28312 # Note: m4 eats our [], so we need to use [ and ] instead. 28313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28314 if test "x$has_forbidden_chars" != x; then 28315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28317 fi 28318 28319 28320 windows_path="$new_path" 28321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28322 unix_path=`$CYGPATH -u "$windows_path"` 28323 new_path="$unix_path" 28324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28326 new_path="$unix_path" 28327 fi 28328 28329 if test "x$path" != "x$new_path"; then 28330 ipath="$new_path" 28331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 28332 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 28333 fi 28334 28335 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28336 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28337 28338 else 28339 # We're on a unix platform. Hooray! :) 28340 path="$ipath" 28341 has_space=`$ECHO "$path" | $GREP " "` 28342 if test "x$has_space" != x; then 28343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 28344 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 28345 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28346 fi 28347 28348 # Use eval to expand a potential ~ 28349 eval path="$path" 28350 if test ! -f "$path" && test ! -d "$path"; then 28351 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 28352 fi 28353 28354 ipath="`cd "$path"; $THEPWDCMD -L`" 28355 fi 28356 fi 28357 28358 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 28359 fi 28360 IFS=";" 28361 fi 28362 done 28363 # Convert VS_LIB into SYSROOT_LDFLAGS 28364 for i in $VS_LIB; do 28365 libpath=$i 28366 # Only process non-empty elements 28367 if test "x$libpath" != x; then 28368 IFS="$OLDIFS" 28369 # Check that directory exists before calling fixup_path 28370 testpath=$libpath 28371 28372 windows_path="$testpath" 28373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28374 unix_path=`$CYGPATH -u "$windows_path"` 28375 testpath="$unix_path" 28376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28378 testpath="$unix_path" 28379 fi 28380 28381 if test -d "$testpath"; then 28382 28383 # Only process if variable expands to non-empty 28384 28385 if test "x$libpath" != x; then 28386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28387 28388 # Input might be given as Windows format, start by converting to 28389 # unix format. 28390 path="$libpath" 28391 new_path=`$CYGPATH -u "$path"` 28392 28393 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28394 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28395 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28396 # "foo.exe" is OK but "foo" is an error. 28397 # 28398 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28399 # It is also a way to make sure we got the proper file name for the real test later on. 28400 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28401 if test "x$test_shortpath" = x; then 28402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28403 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28404 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 28405 fi 28406 28407 # Call helper function which possibly converts this using DOS-style short mode. 28408 # If so, the updated path is stored in $new_path. 28409 28410 input_path="$new_path" 28411 # Check if we need to convert this using DOS-style short mode. If the path 28412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28413 # take no chances and rewrite it. 28414 # Note: m4 eats our [], so we need to use [ and ] instead. 28415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28416 if test "x$has_forbidden_chars" != x; then 28417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28418 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28419 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28420 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28421 # Going to short mode and back again did indeed matter. Since short mode is 28422 # case insensitive, let's make it lowercase to improve readability. 28423 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28424 # Now convert it back to Unix-style (cygpath) 28425 input_path=`$CYGPATH -u "$shortmode_path"` 28426 new_path="$input_path" 28427 fi 28428 fi 28429 28430 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28431 if test "x$test_cygdrive_prefix" = x; then 28432 # As a simple fix, exclude /usr/bin since it's not a real path. 28433 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28434 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28435 # a path prefixed by /cygdrive for fixpath to work. 28436 new_path="$CYGWIN_ROOT_PATH$input_path" 28437 fi 28438 fi 28439 28440 28441 if test "x$path" != "x$new_path"; then 28442 libpath="$new_path" 28443 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28444 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28445 fi 28446 28447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28448 28449 path="$libpath" 28450 has_colon=`$ECHO $path | $GREP ^.:` 28451 new_path="$path" 28452 if test "x$has_colon" = x; then 28453 # Not in mixed or Windows style, start by that. 28454 new_path=`cmd //c echo $path` 28455 fi 28456 28457 28458 input_path="$new_path" 28459 # Check if we need to convert this using DOS-style short mode. If the path 28460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28461 # take no chances and rewrite it. 28462 # Note: m4 eats our [], so we need to use [ and ] instead. 28463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28464 if test "x$has_forbidden_chars" != x; then 28465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28467 fi 28468 28469 28470 windows_path="$new_path" 28471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28472 unix_path=`$CYGPATH -u "$windows_path"` 28473 new_path="$unix_path" 28474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28476 new_path="$unix_path" 28477 fi 28478 28479 if test "x$path" != "x$new_path"; then 28480 libpath="$new_path" 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28482 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28483 fi 28484 28485 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28486 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28487 28488 else 28489 # We're on a unix platform. Hooray! :) 28490 path="$libpath" 28491 has_space=`$ECHO "$path" | $GREP " "` 28492 if test "x$has_space" != x; then 28493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28494 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28495 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28496 fi 28497 28498 # Use eval to expand a potential ~ 28499 eval path="$path" 28500 if test ! -f "$path" && test ! -d "$path"; then 28501 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 28502 fi 28503 28504 libpath="`cd "$path"; $THEPWDCMD -L`" 28505 fi 28506 fi 28507 28508 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 28509 fi 28510 IFS=";" 28511 fi 28512 done 28513 IFS="$OLDIFS" 28514 fi 28515 else 28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28517 $as_echo "not found" >&6; } 28518 28519 if test "x$VS_ENV_CMD" = x; then 28520 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 28521 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 28522 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 28523 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 28524 else 28525 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 28526 $as_echo "$as_me: Running the extraction script failed." >&6;} 28527 fi 28528 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28529 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28530 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28531 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28532 as_fn_error $? "Cannot continue" "$LINENO" 5 28533 fi 28534 28535 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 28536 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 28537 PATH="$VS_PATH" 28538 # The microsoft toolchain also requires INCLUDE and LIB to be set. 28539 export INCLUDE="$VS_INCLUDE" 28540 export LIB="$VS_LIB" 28541 fi 28542 28543 # For solaris we really need solaris tools, and not the GNU equivalent. 28544 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28545 # so add that to path before starting to probe. 28546 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 28547 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28548 PATH="/usr/ccs/bin:$PATH" 28549 fi 28550 28551 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28552 # override all other locations. 28553 if test "x$TOOLCHAIN_PATH" != x; then 28554 PATH=$TOOLCHAIN_PATH:$PATH 28555 fi 28556 28557 28558 # 28559 # Setup the compilers (CC and CXX) 28560 # 28561 28562 COMPILER_NAME=C 28563 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28564 28565 if test "x$CC" != x; then 28566 # User has supplied compiler name already, always let that override. 28567 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28568 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28569 if test "x`basename $CC`" = "x$CC"; then 28570 # A command without a complete path is provided, search $PATH. 28571 28572 for ac_prog in $CC 28573 do 28574 # Extract the first word of "$ac_prog", so it can be a program name with args. 28575 set dummy $ac_prog; ac_word=$2 28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28577 $as_echo_n "checking for $ac_word... " >&6; } 28578 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28579 $as_echo_n "(cached) " >&6 28580 else 28581 case $POTENTIAL_CC in 28582 [\\/]* | ?:[\\/]*) 28583 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28584 ;; 28585 *) 28586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28587 for as_dir in $PATH 28588 do 28589 IFS=$as_save_IFS 28590 test -z "$as_dir" && as_dir=. 28591 for ac_exec_ext in '' $ac_executable_extensions; do 28592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28593 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28595 break 2 28596 fi 28597 done 28598 done 28599 IFS=$as_save_IFS 28600 28601 ;; 28602 esac 28603 fi 28604 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28605 if test -n "$POTENTIAL_CC"; then 28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28607 $as_echo "$POTENTIAL_CC" >&6; } 28608 else 28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28610 $as_echo "no" >&6; } 28611 fi 28612 28613 28614 test -n "$POTENTIAL_CC" && break 28615 done 28616 28617 if test "x$POTENTIAL_CC" != x; then 28618 CC=$POTENTIAL_CC 28619 else 28620 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 28621 fi 28622 else 28623 # Otherwise it might already be a complete path 28624 if test ! -x "$CC"; then 28625 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 28626 fi 28627 fi 28628 else 28629 # No user supplied value. Locate compiler ourselves. 28630 28631 # If we are cross compiling, assume cross compilation tools follows the 28632 # cross compilation standard where they are prefixed with the autoconf 28633 # standard name for the target. For example the binary 28634 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28635 # If we are not cross compiling, then the default compiler name will be 28636 # used. 28637 28638 CC= 28639 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28640 # before checking the rest of the PATH. 28641 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28642 # step, this should not be necessary. 28643 if test -n "$TOOLCHAIN_PATH"; then 28644 PATH_save="$PATH" 28645 PATH="$TOOLCHAIN_PATH" 28646 for ac_prog in $SEARCH_LIST 28647 do 28648 # Extract the first word of "$ac_prog", so it can be a program name with args. 28649 set dummy $ac_prog; ac_word=$2 28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28651 $as_echo_n "checking for $ac_word... " >&6; } 28652 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 28653 $as_echo_n "(cached) " >&6 28654 else 28655 case $TOOLCHAIN_PATH_CC in 28656 [\\/]* | ?:[\\/]*) 28657 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 28658 ;; 28659 *) 28660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28661 for as_dir in $PATH 28662 do 28663 IFS=$as_save_IFS 28664 test -z "$as_dir" && as_dir=. 28665 for ac_exec_ext in '' $ac_executable_extensions; do 28666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28667 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 28668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28669 break 2 28670 fi 28671 done 28672 done 28673 IFS=$as_save_IFS 28674 28675 ;; 28676 esac 28677 fi 28678 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 28679 if test -n "$TOOLCHAIN_PATH_CC"; then 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 28681 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 28682 else 28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28684 $as_echo "no" >&6; } 28685 fi 28686 28687 28688 test -n "$TOOLCHAIN_PATH_CC" && break 28689 done 28690 28691 CC=$TOOLCHAIN_PATH_CC 28692 PATH="$PATH_save" 28693 fi 28694 28695 # AC_PATH_PROGS can't be run multiple times with the same variable, 28696 # so create a new name for this run. 28697 if test "x$CC" = x; then 28698 for ac_prog in $SEARCH_LIST 28699 do 28700 # Extract the first word of "$ac_prog", so it can be a program name with args. 28701 set dummy $ac_prog; ac_word=$2 28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28703 $as_echo_n "checking for $ac_word... " >&6; } 28704 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28705 $as_echo_n "(cached) " >&6 28706 else 28707 case $POTENTIAL_CC in 28708 [\\/]* | ?:[\\/]*) 28709 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28710 ;; 28711 *) 28712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28713 for as_dir in $PATH 28714 do 28715 IFS=$as_save_IFS 28716 test -z "$as_dir" && as_dir=. 28717 for ac_exec_ext in '' $ac_executable_extensions; do 28718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28719 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28721 break 2 28722 fi 28723 done 28724 done 28725 IFS=$as_save_IFS 28726 28727 ;; 28728 esac 28729 fi 28730 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28731 if test -n "$POTENTIAL_CC"; then 28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28733 $as_echo "$POTENTIAL_CC" >&6; } 28734 else 28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28736 $as_echo "no" >&6; } 28737 fi 28738 28739 28740 test -n "$POTENTIAL_CC" && break 28741 done 28742 28743 CC=$POTENTIAL_CC 28744 fi 28745 28746 if test "x$CC" = x; then 28747 28748 # Print a helpful message on how to acquire the necessary build dependency. 28749 # devkit is the help tag: freetype, cups, pulse, alsa etc 28750 MISSING_DEPENDENCY=devkit 28751 28752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28753 cygwin_help $MISSING_DEPENDENCY 28754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28755 msys_help $MISSING_DEPENDENCY 28756 else 28757 PKGHANDLER_COMMAND= 28758 28759 case $PKGHANDLER in 28760 apt-get) 28761 apt_help $MISSING_DEPENDENCY ;; 28762 yum) 28763 yum_help $MISSING_DEPENDENCY ;; 28764 port) 28765 port_help $MISSING_DEPENDENCY ;; 28766 pkgutil) 28767 pkgutil_help $MISSING_DEPENDENCY ;; 28768 pkgadd) 28769 pkgadd_help $MISSING_DEPENDENCY ;; 28770 esac 28771 28772 if test "x$PKGHANDLER_COMMAND" != x; then 28773 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28774 fi 28775 fi 28776 28777 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28778 fi 28779 fi 28780 28781 # Now we have a compiler binary in CC. Make sure it's okay. 28782 28783 # Only process if variable expands to non-empty 28784 28785 if test "x$CC" != x; then 28786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28787 28788 # First separate the path from the arguments. This will split at the first 28789 # space. 28790 complete="$CC" 28791 path="${complete%% *}" 28792 tmp="$complete EOL" 28793 arguments="${tmp#* }" 28794 28795 # Input might be given as Windows format, start by converting to 28796 # unix format. 28797 new_path=`$CYGPATH -u "$path"` 28798 28799 # Now try to locate executable using which 28800 new_path=`$WHICH "$new_path" 2> /dev/null` 28801 # bat and cmd files are not always considered executable in cygwin causing which 28802 # to not find them 28803 if test "x$new_path" = x \ 28804 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28805 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28806 new_path=`$CYGPATH -u "$path"` 28807 fi 28808 if test "x$new_path" = x; then 28809 # Oops. Which didn't find the executable. 28810 # The splitting of arguments from the executable at a space might have been incorrect, 28811 # since paths with space are more likely in Windows. Give it another try with the whole 28812 # argument. 28813 path="$complete" 28814 arguments="EOL" 28815 new_path=`$CYGPATH -u "$path"` 28816 new_path=`$WHICH "$new_path" 2> /dev/null` 28817 # bat and cmd files are not always considered executable in cygwin causing which 28818 # to not find them 28819 if test "x$new_path" = x \ 28820 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28821 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28822 new_path=`$CYGPATH -u "$path"` 28823 fi 28824 if test "x$new_path" = x; then 28825 # It's still not found. Now this is an unrecoverable error. 28826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28827 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28828 has_space=`$ECHO "$complete" | $GREP " "` 28829 if test "x$has_space" != x; then 28830 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28831 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28832 fi 28833 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28834 fi 28835 fi 28836 28837 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28838 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28839 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28840 # "foo.exe" is OK but "foo" is an error. 28841 # 28842 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28843 # It is also a way to make sure we got the proper file name for the real test later on. 28844 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28845 if test "x$test_shortpath" = x; then 28846 # Short path failed, file does not exist as specified. 28847 # Try adding .exe or .cmd 28848 if test -f "${new_path}.exe"; then 28849 input_to_shortpath="${new_path}.exe" 28850 elif test -f "${new_path}.cmd"; then 28851 input_to_shortpath="${new_path}.cmd" 28852 else 28853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28854 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28855 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28856 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28857 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28858 fi 28859 else 28860 input_to_shortpath="$new_path" 28861 fi 28862 28863 # Call helper function which possibly converts this using DOS-style short mode. 28864 # If so, the updated path is stored in $new_path. 28865 new_path="$input_to_shortpath" 28866 28867 input_path="$input_to_shortpath" 28868 # Check if we need to convert this using DOS-style short mode. If the path 28869 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28870 # take no chances and rewrite it. 28871 # Note: m4 eats our [], so we need to use [ and ] instead. 28872 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28873 if test "x$has_forbidden_chars" != x; then 28874 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28875 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28876 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28877 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28878 # Going to short mode and back again did indeed matter. Since short mode is 28879 # case insensitive, let's make it lowercase to improve readability. 28880 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28881 # Now convert it back to Unix-style (cygpath) 28882 input_path=`$CYGPATH -u "$shortmode_path"` 28883 new_path="$input_path" 28884 fi 28885 fi 28886 28887 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28888 if test "x$test_cygdrive_prefix" = x; then 28889 # As a simple fix, exclude /usr/bin since it's not a real path. 28890 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28891 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28892 # a path prefixed by /cygdrive for fixpath to work. 28893 new_path="$CYGWIN_ROOT_PATH$input_path" 28894 fi 28895 fi 28896 28897 # remove trailing .exe if any 28898 new_path="${new_path/%.exe/}" 28899 28900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28901 28902 # First separate the path from the arguments. This will split at the first 28903 # space. 28904 complete="$CC" 28905 path="${complete%% *}" 28906 tmp="$complete EOL" 28907 arguments="${tmp#* }" 28908 28909 # Input might be given as Windows format, start by converting to 28910 # unix format. 28911 new_path="$path" 28912 28913 windows_path="$new_path" 28914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28915 unix_path=`$CYGPATH -u "$windows_path"` 28916 new_path="$unix_path" 28917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28919 new_path="$unix_path" 28920 fi 28921 28922 28923 # Now try to locate executable using which 28924 new_path=`$WHICH "$new_path" 2> /dev/null` 28925 28926 if test "x$new_path" = x; then 28927 # Oops. Which didn't find the executable. 28928 # The splitting of arguments from the executable at a space might have been incorrect, 28929 # since paths with space are more likely in Windows. Give it another try with the whole 28930 # argument. 28931 path="$complete" 28932 arguments="EOL" 28933 new_path="$path" 28934 28935 windows_path="$new_path" 28936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28937 unix_path=`$CYGPATH -u "$windows_path"` 28938 new_path="$unix_path" 28939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28941 new_path="$unix_path" 28942 fi 28943 28944 28945 new_path=`$WHICH "$new_path" 2> /dev/null` 28946 # bat and cmd files are not always considered executable in MSYS causing which 28947 # to not find them 28948 if test "x$new_path" = x \ 28949 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28950 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28951 new_path="$path" 28952 28953 windows_path="$new_path" 28954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28955 unix_path=`$CYGPATH -u "$windows_path"` 28956 new_path="$unix_path" 28957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28959 new_path="$unix_path" 28960 fi 28961 28962 fi 28963 28964 if test "x$new_path" = x; then 28965 # It's still not found. Now this is an unrecoverable error. 28966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28967 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28968 has_space=`$ECHO "$complete" | $GREP " "` 28969 if test "x$has_space" != x; then 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28971 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28972 fi 28973 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28974 fi 28975 fi 28976 28977 # Now new_path has a complete unix path to the binary 28978 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28979 # Keep paths in /bin as-is, but remove trailing .exe if any 28980 new_path="${new_path/%.exe/}" 28981 # Do not save /bin paths to all_fixpath_prefixes! 28982 else 28983 # Not in mixed or Windows style, start by that. 28984 new_path=`cmd //c echo $new_path` 28985 28986 input_path="$new_path" 28987 # Check if we need to convert this using DOS-style short mode. If the path 28988 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28989 # take no chances and rewrite it. 28990 # Note: m4 eats our [], so we need to use [ and ] instead. 28991 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28992 if test "x$has_forbidden_chars" != x; then 28993 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28994 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28995 fi 28996 28997 # Output is in $new_path 28998 28999 windows_path="$new_path" 29000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29001 unix_path=`$CYGPATH -u "$windows_path"` 29002 new_path="$unix_path" 29003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29005 new_path="$unix_path" 29006 fi 29007 29008 # remove trailing .exe if any 29009 new_path="${new_path/%.exe/}" 29010 29011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29013 fi 29014 29015 else 29016 # We're on a unix platform. Hooray! :) 29017 # First separate the path from the arguments. This will split at the first 29018 # space. 29019 complete="$CC" 29020 path="${complete%% *}" 29021 tmp="$complete EOL" 29022 arguments="${tmp#* }" 29023 29024 # Cannot rely on the command "which" here since it doesn't always work. 29025 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29026 if test -z "$is_absolute_path"; then 29027 # Path to executable is not absolute. Find it. 29028 IFS_save="$IFS" 29029 IFS=: 29030 for p in $PATH; do 29031 if test -f "$p/$path" && test -x "$p/$path"; then 29032 new_path="$p/$path" 29033 break 29034 fi 29035 done 29036 IFS="$IFS_save" 29037 else 29038 # This is an absolute path, we can use it without further modifications. 29039 new_path="$path" 29040 fi 29041 29042 if test "x$new_path" = x; then 29043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29044 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29045 has_space=`$ECHO "$complete" | $GREP " "` 29046 if test "x$has_space" != x; then 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29048 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29049 fi 29050 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29051 fi 29052 fi 29053 29054 # Now join together the path and the arguments once again 29055 if test "x$arguments" != xEOL; then 29056 new_complete="$new_path ${arguments% *}" 29057 else 29058 new_complete="$new_path" 29059 fi 29060 29061 if test "x$complete" != "x$new_complete"; then 29062 CC="$new_complete" 29063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 29064 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 29065 fi 29066 fi 29067 29068 TEST_COMPILER="$CC" 29069 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29070 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29071 if test "x$OPENJDK_BUILD_OS" != xaix; then 29072 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 29074 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 29075 29076 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29077 # Follow a chain of symbolic links. Use readlink 29078 # where it exists, else fall back to horribly 29079 # complicated shell code. 29080 if test "x$READLINK_TESTED" != yes; then 29081 # On MacOSX there is a readlink tool with a different 29082 # purpose than the GNU readlink tool. Check the found readlink. 29083 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29084 if test "x$ISGNU" = x; then 29085 # A readlink that we do not know how to use. 29086 # Are there other non-GNU readlinks out there? 29087 READLINK_TESTED=yes 29088 READLINK= 29089 fi 29090 fi 29091 29092 if test "x$READLINK" != x; then 29093 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29094 else 29095 # Save the current directory for restoring afterwards 29096 STARTDIR=$PWD 29097 COUNTER=0 29098 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29099 sym_link_file=`$BASENAME $TEST_COMPILER` 29100 cd $sym_link_dir 29101 # Use -P flag to resolve symlinks in directories. 29102 cd `$THEPWDCMD -P` 29103 sym_link_dir=`$THEPWDCMD -P` 29104 # Resolve file symlinks 29105 while test $COUNTER -lt 20; do 29106 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29107 if test "x$ISLINK" == x; then 29108 # This is not a symbolic link! We are done! 29109 break 29110 fi 29111 # Again resolve directory symlinks since the target of the just found 29112 # link could be in a different directory 29113 cd `$DIRNAME $ISLINK` 29114 sym_link_dir=`$THEPWDCMD -P` 29115 sym_link_file=`$BASENAME $ISLINK` 29116 let COUNTER=COUNTER+1 29117 done 29118 cd $STARTDIR 29119 TEST_COMPILER=$sym_link_dir/$sym_link_file 29120 fi 29121 fi 29122 29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29124 $as_echo "$TEST_COMPILER" >&6; } 29125 fi 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 29127 $as_echo_n "checking if CC is disguised ccache... " >&6; } 29128 29129 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29130 if test "x$COMPILER_BASENAME" = "xccache"; then 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29132 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29133 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29134 # We want to control ccache invocation ourselves, so ignore this cc and try 29135 # searching again. 29136 29137 # Remove the path to the fake ccache cc from the PATH 29138 RETRY_COMPILER_SAVED_PATH="$PATH" 29139 COMPILER_DIRNAME=`$DIRNAME $CC` 29140 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29141 29142 # Try again looking for our compiler 29143 if test -n "$ac_tool_prefix"; then 29144 for ac_prog in $TOOLCHAIN_CC_BINARY 29145 do 29146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29149 $as_echo_n "checking for $ac_word... " >&6; } 29150 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 29151 $as_echo_n "(cached) " >&6 29152 else 29153 if test -n "$PROPER_COMPILER_CC"; then 29154 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 29155 else 29156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29157 for as_dir in $PATH 29158 do 29159 IFS=$as_save_IFS 29160 test -z "$as_dir" && as_dir=. 29161 for ac_exec_ext in '' $ac_executable_extensions; do 29162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29163 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 29164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29165 break 2 29166 fi 29167 done 29168 done 29169 IFS=$as_save_IFS 29170 29171 fi 29172 fi 29173 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 29174 if test -n "$PROPER_COMPILER_CC"; then 29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29176 $as_echo "$PROPER_COMPILER_CC" >&6; } 29177 else 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29179 $as_echo "no" >&6; } 29180 fi 29181 29182 29183 test -n "$PROPER_COMPILER_CC" && break 29184 done 29185 fi 29186 if test -z "$PROPER_COMPILER_CC"; then 29187 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 29188 for ac_prog in $TOOLCHAIN_CC_BINARY 29189 do 29190 # Extract the first word of "$ac_prog", so it can be a program name with args. 29191 set dummy $ac_prog; ac_word=$2 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29193 $as_echo_n "checking for $ac_word... " >&6; } 29194 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 29195 $as_echo_n "(cached) " >&6 29196 else 29197 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29198 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 29199 else 29200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29201 for as_dir in $PATH 29202 do 29203 IFS=$as_save_IFS 29204 test -z "$as_dir" && as_dir=. 29205 for ac_exec_ext in '' $ac_executable_extensions; do 29206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29207 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 29208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29209 break 2 29210 fi 29211 done 29212 done 29213 IFS=$as_save_IFS 29214 29215 fi 29216 fi 29217 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 29218 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 29220 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 29221 else 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29223 $as_echo "no" >&6; } 29224 fi 29225 29226 29227 test -n "$ac_ct_PROPER_COMPILER_CC" && break 29228 done 29229 29230 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 29231 PROPER_COMPILER_CC="" 29232 else 29233 case $cross_compiling:$ac_tool_warned in 29234 yes:) 29235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29237 ac_tool_warned=yes ;; 29238 esac 29239 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 29240 fi 29241 fi 29242 29243 29244 # Only process if variable expands to non-empty 29245 29246 if test "x$PROPER_COMPILER_CC" != x; then 29247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29248 29249 # First separate the path from the arguments. This will split at the first 29250 # space. 29251 complete="$PROPER_COMPILER_CC" 29252 path="${complete%% *}" 29253 tmp="$complete EOL" 29254 arguments="${tmp#* }" 29255 29256 # Input might be given as Windows format, start by converting to 29257 # unix format. 29258 new_path=`$CYGPATH -u "$path"` 29259 29260 # Now try to locate executable using which 29261 new_path=`$WHICH "$new_path" 2> /dev/null` 29262 # bat and cmd files are not always considered executable in cygwin causing which 29263 # to not find them 29264 if test "x$new_path" = x \ 29265 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29266 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29267 new_path=`$CYGPATH -u "$path"` 29268 fi 29269 if test "x$new_path" = x; then 29270 # Oops. Which didn't find the executable. 29271 # The splitting of arguments from the executable at a space might have been incorrect, 29272 # since paths with space are more likely in Windows. Give it another try with the whole 29273 # argument. 29274 path="$complete" 29275 arguments="EOL" 29276 new_path=`$CYGPATH -u "$path"` 29277 new_path=`$WHICH "$new_path" 2> /dev/null` 29278 # bat and cmd files are not always considered executable in cygwin causing which 29279 # to not find them 29280 if test "x$new_path" = x \ 29281 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29282 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29283 new_path=`$CYGPATH -u "$path"` 29284 fi 29285 if test "x$new_path" = x; then 29286 # It's still not found. Now this is an unrecoverable error. 29287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29288 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29289 has_space=`$ECHO "$complete" | $GREP " "` 29290 if test "x$has_space" != x; then 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29292 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29293 fi 29294 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29295 fi 29296 fi 29297 29298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29301 # "foo.exe" is OK but "foo" is an error. 29302 # 29303 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29304 # It is also a way to make sure we got the proper file name for the real test later on. 29305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29306 if test "x$test_shortpath" = x; then 29307 # Short path failed, file does not exist as specified. 29308 # Try adding .exe or .cmd 29309 if test -f "${new_path}.exe"; then 29310 input_to_shortpath="${new_path}.exe" 29311 elif test -f "${new_path}.cmd"; then 29312 input_to_shortpath="${new_path}.cmd" 29313 else 29314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 29315 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 29316 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29317 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29318 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29319 fi 29320 else 29321 input_to_shortpath="$new_path" 29322 fi 29323 29324 # Call helper function which possibly converts this using DOS-style short mode. 29325 # If so, the updated path is stored in $new_path. 29326 new_path="$input_to_shortpath" 29327 29328 input_path="$input_to_shortpath" 29329 # Check if we need to convert this using DOS-style short mode. If the path 29330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29331 # take no chances and rewrite it. 29332 # Note: m4 eats our [], so we need to use [ and ] instead. 29333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29334 if test "x$has_forbidden_chars" != x; then 29335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29336 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29337 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29338 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29339 # Going to short mode and back again did indeed matter. Since short mode is 29340 # case insensitive, let's make it lowercase to improve readability. 29341 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29342 # Now convert it back to Unix-style (cygpath) 29343 input_path=`$CYGPATH -u "$shortmode_path"` 29344 new_path="$input_path" 29345 fi 29346 fi 29347 29348 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29349 if test "x$test_cygdrive_prefix" = x; then 29350 # As a simple fix, exclude /usr/bin since it's not a real path. 29351 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29352 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29353 # a path prefixed by /cygdrive for fixpath to work. 29354 new_path="$CYGWIN_ROOT_PATH$input_path" 29355 fi 29356 fi 29357 29358 # remove trailing .exe if any 29359 new_path="${new_path/%.exe/}" 29360 29361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29362 29363 # First separate the path from the arguments. This will split at the first 29364 # space. 29365 complete="$PROPER_COMPILER_CC" 29366 path="${complete%% *}" 29367 tmp="$complete EOL" 29368 arguments="${tmp#* }" 29369 29370 # Input might be given as Windows format, start by converting to 29371 # unix format. 29372 new_path="$path" 29373 29374 windows_path="$new_path" 29375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29376 unix_path=`$CYGPATH -u "$windows_path"` 29377 new_path="$unix_path" 29378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29380 new_path="$unix_path" 29381 fi 29382 29383 29384 # Now try to locate executable using which 29385 new_path=`$WHICH "$new_path" 2> /dev/null` 29386 29387 if test "x$new_path" = x; then 29388 # Oops. Which didn't find the executable. 29389 # The splitting of arguments from the executable at a space might have been incorrect, 29390 # since paths with space are more likely in Windows. Give it another try with the whole 29391 # argument. 29392 path="$complete" 29393 arguments="EOL" 29394 new_path="$path" 29395 29396 windows_path="$new_path" 29397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29398 unix_path=`$CYGPATH -u "$windows_path"` 29399 new_path="$unix_path" 29400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29402 new_path="$unix_path" 29403 fi 29404 29405 29406 new_path=`$WHICH "$new_path" 2> /dev/null` 29407 # bat and cmd files are not always considered executable in MSYS causing which 29408 # to not find them 29409 if test "x$new_path" = x \ 29410 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29411 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29412 new_path="$path" 29413 29414 windows_path="$new_path" 29415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29416 unix_path=`$CYGPATH -u "$windows_path"` 29417 new_path="$unix_path" 29418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29420 new_path="$unix_path" 29421 fi 29422 29423 fi 29424 29425 if test "x$new_path" = x; then 29426 # It's still not found. Now this is an unrecoverable error. 29427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29428 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29429 has_space=`$ECHO "$complete" | $GREP " "` 29430 if test "x$has_space" != x; then 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29432 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29433 fi 29434 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29435 fi 29436 fi 29437 29438 # Now new_path has a complete unix path to the binary 29439 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29440 # Keep paths in /bin as-is, but remove trailing .exe if any 29441 new_path="${new_path/%.exe/}" 29442 # Do not save /bin paths to all_fixpath_prefixes! 29443 else 29444 # Not in mixed or Windows style, start by that. 29445 new_path=`cmd //c echo $new_path` 29446 29447 input_path="$new_path" 29448 # Check if we need to convert this using DOS-style short mode. If the path 29449 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29450 # take no chances and rewrite it. 29451 # Note: m4 eats our [], so we need to use [ and ] instead. 29452 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29453 if test "x$has_forbidden_chars" != x; then 29454 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29455 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29456 fi 29457 29458 # Output is in $new_path 29459 29460 windows_path="$new_path" 29461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29462 unix_path=`$CYGPATH -u "$windows_path"` 29463 new_path="$unix_path" 29464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29466 new_path="$unix_path" 29467 fi 29468 29469 # remove trailing .exe if any 29470 new_path="${new_path/%.exe/}" 29471 29472 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29473 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29474 fi 29475 29476 else 29477 # We're on a unix platform. Hooray! :) 29478 # First separate the path from the arguments. This will split at the first 29479 # space. 29480 complete="$PROPER_COMPILER_CC" 29481 path="${complete%% *}" 29482 tmp="$complete EOL" 29483 arguments="${tmp#* }" 29484 29485 # Cannot rely on the command "which" here since it doesn't always work. 29486 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29487 if test -z "$is_absolute_path"; then 29488 # Path to executable is not absolute. Find it. 29489 IFS_save="$IFS" 29490 IFS=: 29491 for p in $PATH; do 29492 if test -f "$p/$path" && test -x "$p/$path"; then 29493 new_path="$p/$path" 29494 break 29495 fi 29496 done 29497 IFS="$IFS_save" 29498 else 29499 # This is an absolute path, we can use it without further modifications. 29500 new_path="$path" 29501 fi 29502 29503 if test "x$new_path" = x; then 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29505 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29506 has_space=`$ECHO "$complete" | $GREP " "` 29507 if test "x$has_space" != x; then 29508 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29509 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29510 fi 29511 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29512 fi 29513 fi 29514 29515 # Now join together the path and the arguments once again 29516 if test "x$arguments" != xEOL; then 29517 new_complete="$new_path ${arguments% *}" 29518 else 29519 new_complete="$new_path" 29520 fi 29521 29522 if test "x$complete" != "x$new_complete"; then 29523 PROPER_COMPILER_CC="$new_complete" 29524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 29525 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 29526 fi 29527 fi 29528 29529 PATH="$RETRY_COMPILER_SAVED_PATH" 29530 29531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 29532 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 29533 29534 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29535 # Follow a chain of symbolic links. Use readlink 29536 # where it exists, else fall back to horribly 29537 # complicated shell code. 29538 if test "x$READLINK_TESTED" != yes; then 29539 # On MacOSX there is a readlink tool with a different 29540 # purpose than the GNU readlink tool. Check the found readlink. 29541 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29542 if test "x$ISGNU" = x; then 29543 # A readlink that we do not know how to use. 29544 # Are there other non-GNU readlinks out there? 29545 READLINK_TESTED=yes 29546 READLINK= 29547 fi 29548 fi 29549 29550 if test "x$READLINK" != x; then 29551 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29552 else 29553 # Save the current directory for restoring afterwards 29554 STARTDIR=$PWD 29555 COUNTER=0 29556 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29557 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29558 cd $sym_link_dir 29559 # Use -P flag to resolve symlinks in directories. 29560 cd `$THEPWDCMD -P` 29561 sym_link_dir=`$THEPWDCMD -P` 29562 # Resolve file symlinks 29563 while test $COUNTER -lt 20; do 29564 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29565 if test "x$ISLINK" == x; then 29566 # This is not a symbolic link! We are done! 29567 break 29568 fi 29569 # Again resolve directory symlinks since the target of the just found 29570 # link could be in a different directory 29571 cd `$DIRNAME $ISLINK` 29572 sym_link_dir=`$THEPWDCMD -P` 29573 sym_link_file=`$BASENAME $ISLINK` 29574 let COUNTER=COUNTER+1 29575 done 29576 cd $STARTDIR 29577 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29578 fi 29579 fi 29580 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29582 $as_echo "$PROPER_COMPILER_CC" >&6; } 29583 CC="$PROPER_COMPILER_CC" 29584 else 29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29586 $as_echo "no, keeping CC" >&6; } 29587 fi 29588 29589 29590 COMPILER=$CC 29591 COMPILER_NAME=$COMPILER_NAME 29592 29593 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29594 # cc -V output typically looks like 29595 # cc: Sun C 5.12 Linux_i386 2011/11/16 29596 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29597 # Check that this is likely to be the Solaris Studio cc. 29598 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29599 if test $? -ne 0; then 29600 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29601 { $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 29602 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29604 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29605 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29606 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29607 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29608 fi 29609 # Remove usage instructions (if present), and 29610 # collapse compiler output into a single line 29611 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29612 $SED -e 's/ *[Uu]sage:.*//'` 29613 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29614 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29615 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29616 # xlc -qversion output typically looks like 29617 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29618 # Version: 11.01.0000.0015 29619 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29620 # Check that this is likely to be the IBM XL C compiler. 29621 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29622 if test $? -ne 0; then 29623 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29624 { $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 29625 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29626 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29627 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29628 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29629 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29630 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29631 fi 29632 # Collapse compiler output into a single line 29633 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29634 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29635 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29636 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29637 # There is no specific version flag, but all output starts with a version string. 29638 # First line typically looks something like: 29639 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29640 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29641 # Check that this is likely to be Microsoft CL.EXE. 29642 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29643 if test $? -ne 0; then 29644 { $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 29645 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29646 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29647 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29648 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29649 fi 29650 # Collapse compiler output into a single line 29651 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29652 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29653 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29654 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29655 # gcc --version output typically looks like 29656 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29657 # Copyright (C) 2013 Free Software Foundation, Inc. 29658 # This is free software; see the source for copying conditions. There is NO 29659 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29660 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29661 # Check that this is likely to be GCC. 29662 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29663 if test $? -ne 0; then 29664 { $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 29665 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29667 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29668 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29669 fi 29670 # Remove Copyright and legalese from version string, and 29671 # collapse into a single line 29672 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29673 $SED -e 's/ *Copyright .*//'` 29674 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29675 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29676 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29677 # clang --version output typically looks like 29678 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29679 # clang version 3.3 (tags/RELEASE_33/final) 29680 # or 29681 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29682 # Target: x86_64-pc-linux-gnu 29683 # Thread model: posix 29684 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29685 # Check that this is likely to be clang 29686 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29687 if test $? -ne 0; then 29688 { $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 29689 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29690 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29691 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29692 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29693 fi 29694 # Collapse compiler output into a single line 29695 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29696 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29697 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29698 else 29699 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29700 fi 29701 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29702 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29703 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29704 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 29705 29706 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29707 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29708 29709 29710 # Now that we have resolved CC ourself, let autoconf have its go at it 29711 ac_ext=c 29712 ac_cpp='$CPP $CPPFLAGS' 29713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29715 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29716 if test -n "$ac_tool_prefix"; then 29717 for ac_prog in $CC 29718 do 29719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29722 $as_echo_n "checking for $ac_word... " >&6; } 29723 if ${ac_cv_prog_CC+:} false; then : 29724 $as_echo_n "(cached) " >&6 29725 else 29726 if test -n "$CC"; then 29727 ac_cv_prog_CC="$CC" # Let the user override the test. 29728 else 29729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29730 for as_dir in $PATH 29731 do 29732 IFS=$as_save_IFS 29733 test -z "$as_dir" && as_dir=. 29734 for ac_exec_ext in '' $ac_executable_extensions; do 29735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29738 break 2 29739 fi 29740 done 29741 done 29742 IFS=$as_save_IFS 29743 29744 fi 29745 fi 29746 CC=$ac_cv_prog_CC 29747 if test -n "$CC"; then 29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29749 $as_echo "$CC" >&6; } 29750 else 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29752 $as_echo "no" >&6; } 29753 fi 29754 29755 29756 test -n "$CC" && break 29757 done 29758 fi 29759 if test -z "$CC"; then 29760 ac_ct_CC=$CC 29761 for ac_prog in $CC 29762 do 29763 # Extract the first word of "$ac_prog", so it can be a program name with args. 29764 set dummy $ac_prog; ac_word=$2 29765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29766 $as_echo_n "checking for $ac_word... " >&6; } 29767 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29768 $as_echo_n "(cached) " >&6 29769 else 29770 if test -n "$ac_ct_CC"; then 29771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29772 else 29773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29774 for as_dir in $PATH 29775 do 29776 IFS=$as_save_IFS 29777 test -z "$as_dir" && as_dir=. 29778 for ac_exec_ext in '' $ac_executable_extensions; do 29779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29780 ac_cv_prog_ac_ct_CC="$ac_prog" 29781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29782 break 2 29783 fi 29784 done 29785 done 29786 IFS=$as_save_IFS 29787 29788 fi 29789 fi 29790 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29791 if test -n "$ac_ct_CC"; then 29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29793 $as_echo "$ac_ct_CC" >&6; } 29794 else 29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29796 $as_echo "no" >&6; } 29797 fi 29798 29799 29800 test -n "$ac_ct_CC" && break 29801 done 29802 29803 if test "x$ac_ct_CC" = x; then 29804 CC="" 29805 else 29806 case $cross_compiling:$ac_tool_warned in 29807 yes:) 29808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29810 ac_tool_warned=yes ;; 29811 esac 29812 CC=$ac_ct_CC 29813 fi 29814 fi 29815 29816 29817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29819 as_fn_error $? "no acceptable C compiler found in \$PATH 29820 See \`config.log' for more details" "$LINENO" 5; } 29821 29822 # Provide some information about the compiler. 29823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29824 set X $ac_compile 29825 ac_compiler=$2 29826 for ac_option in --version -v -V -qversion; do 29827 { { ac_try="$ac_compiler $ac_option >&5" 29828 case "(($ac_try" in 29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29830 *) ac_try_echo=$ac_try;; 29831 esac 29832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29833 $as_echo "$ac_try_echo"; } >&5 29834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29835 ac_status=$? 29836 if test -s conftest.err; then 29837 sed '10a\ 29838 ... rest of stderr output deleted ... 29839 10q' conftest.err >conftest.er1 29840 cat conftest.er1 >&5 29841 fi 29842 rm -f conftest.er1 conftest.err 29843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29844 test $ac_status = 0; } 29845 done 29846 29847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29848 /* end confdefs.h. */ 29849 29850 int 29851 main () 29852 { 29853 29854 ; 29855 return 0; 29856 } 29857 _ACEOF 29858 ac_clean_files_save=$ac_clean_files 29859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29860 # Try to create an executable without -o first, disregard a.out. 29861 # It will help us diagnose broken compilers, and finding out an intuition 29862 # of exeext. 29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29864 $as_echo_n "checking whether the C compiler works... " >&6; } 29865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29866 29867 # The possible output files: 29868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29869 29870 ac_rmfiles= 29871 for ac_file in $ac_files 29872 do 29873 case $ac_file in 29874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29875 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29876 esac 29877 done 29878 rm -f $ac_rmfiles 29879 29880 if { { ac_try="$ac_link_default" 29881 case "(($ac_try" in 29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29883 *) ac_try_echo=$ac_try;; 29884 esac 29885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29886 $as_echo "$ac_try_echo"; } >&5 29887 (eval "$ac_link_default") 2>&5 29888 ac_status=$? 29889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29890 test $ac_status = 0; }; then : 29891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29893 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29894 # so that the user can short-circuit this test for compilers unknown to 29895 # Autoconf. 29896 for ac_file in $ac_files '' 29897 do 29898 test -f "$ac_file" || continue 29899 case $ac_file in 29900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29901 ;; 29902 [ab].out ) 29903 # We found the default executable, but exeext='' is most 29904 # certainly right. 29905 break;; 29906 *.* ) 29907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29908 then :; else 29909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29910 fi 29911 # We set ac_cv_exeext here because the later test for it is not 29912 # safe: cross compilers may not add the suffix if given an `-o' 29913 # argument, so we may need to know it at that point already. 29914 # Even if this section looks crufty: it has the advantage of 29915 # actually working. 29916 break;; 29917 * ) 29918 break;; 29919 esac 29920 done 29921 test "$ac_cv_exeext" = no && ac_cv_exeext= 29922 29923 else 29924 ac_file='' 29925 fi 29926 if test -z "$ac_file"; then : 29927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29928 $as_echo "no" >&6; } 29929 $as_echo "$as_me: failed program was:" >&5 29930 sed 's/^/| /' conftest.$ac_ext >&5 29931 29932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29934 as_fn_error 77 "C compiler cannot create executables 29935 See \`config.log' for more details" "$LINENO" 5; } 29936 else 29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29938 $as_echo "yes" >&6; } 29939 fi 29940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29941 $as_echo_n "checking for C compiler default output file name... " >&6; } 29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29943 $as_echo "$ac_file" >&6; } 29944 ac_exeext=$ac_cv_exeext 29945 29946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29947 ac_clean_files=$ac_clean_files_save 29948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29949 $as_echo_n "checking for suffix of executables... " >&6; } 29950 if { { ac_try="$ac_link" 29951 case "(($ac_try" in 29952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29953 *) ac_try_echo=$ac_try;; 29954 esac 29955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29956 $as_echo "$ac_try_echo"; } >&5 29957 (eval "$ac_link") 2>&5 29958 ac_status=$? 29959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29960 test $ac_status = 0; }; then : 29961 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29963 # work properly (i.e., refer to `conftest.exe'), while it won't with 29964 # `rm'. 29965 for ac_file in conftest.exe conftest conftest.*; do 29966 test -f "$ac_file" || continue 29967 case $ac_file in 29968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29970 break;; 29971 * ) break;; 29972 esac 29973 done 29974 else 29975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29978 See \`config.log' for more details" "$LINENO" 5; } 29979 fi 29980 rm -f conftest conftest$ac_cv_exeext 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29982 $as_echo "$ac_cv_exeext" >&6; } 29983 29984 rm -f conftest.$ac_ext 29985 EXEEXT=$ac_cv_exeext 29986 ac_exeext=$EXEEXT 29987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29988 /* end confdefs.h. */ 29989 #include <stdio.h> 29990 int 29991 main () 29992 { 29993 FILE *f = fopen ("conftest.out", "w"); 29994 return ferror (f) || fclose (f) != 0; 29995 29996 ; 29997 return 0; 29998 } 29999 _ACEOF 30000 ac_clean_files="$ac_clean_files conftest.out" 30001 # Check that the compiler produces executables we can run. If not, either 30002 # the compiler is broken, or we cross compile. 30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 30004 $as_echo_n "checking whether we are cross compiling... " >&6; } 30005 if test "$cross_compiling" != yes; then 30006 { { ac_try="$ac_link" 30007 case "(($ac_try" in 30008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30009 *) ac_try_echo=$ac_try;; 30010 esac 30011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30012 $as_echo "$ac_try_echo"; } >&5 30013 (eval "$ac_link") 2>&5 30014 ac_status=$? 30015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30016 test $ac_status = 0; } 30017 if { ac_try='./conftest$ac_cv_exeext' 30018 { { case "(($ac_try" in 30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30020 *) ac_try_echo=$ac_try;; 30021 esac 30022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30023 $as_echo "$ac_try_echo"; } >&5 30024 (eval "$ac_try") 2>&5 30025 ac_status=$? 30026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30027 test $ac_status = 0; }; }; then 30028 cross_compiling=no 30029 else 30030 if test "$cross_compiling" = maybe; then 30031 cross_compiling=yes 30032 else 30033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30035 as_fn_error $? "cannot run C compiled programs. 30036 If you meant to cross compile, use \`--host'. 30037 See \`config.log' for more details" "$LINENO" 5; } 30038 fi 30039 fi 30040 fi 30041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 30042 $as_echo "$cross_compiling" >&6; } 30043 30044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 30045 ac_clean_files=$ac_clean_files_save 30046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 30047 $as_echo_n "checking for suffix of object files... " >&6; } 30048 if ${ac_cv_objext+:} false; then : 30049 $as_echo_n "(cached) " >&6 30050 else 30051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30052 /* end confdefs.h. */ 30053 30054 int 30055 main () 30056 { 30057 30058 ; 30059 return 0; 30060 } 30061 _ACEOF 30062 rm -f conftest.o conftest.obj 30063 if { { ac_try="$ac_compile" 30064 case "(($ac_try" in 30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30066 *) ac_try_echo=$ac_try;; 30067 esac 30068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30069 $as_echo "$ac_try_echo"; } >&5 30070 (eval "$ac_compile") 2>&5 30071 ac_status=$? 30072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30073 test $ac_status = 0; }; then : 30074 for ac_file in conftest.o conftest.obj conftest.*; do 30075 test -f "$ac_file" || continue; 30076 case $ac_file in 30077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 30078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 30079 break;; 30080 esac 30081 done 30082 else 30083 $as_echo "$as_me: failed program was:" >&5 30084 sed 's/^/| /' conftest.$ac_ext >&5 30085 30086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30088 as_fn_error $? "cannot compute suffix of object files: cannot compile 30089 See \`config.log' for more details" "$LINENO" 5; } 30090 fi 30091 rm -f conftest.$ac_cv_objext conftest.$ac_ext 30092 fi 30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 30094 $as_echo "$ac_cv_objext" >&6; } 30095 OBJEXT=$ac_cv_objext 30096 ac_objext=$OBJEXT 30097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 30098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 30099 if ${ac_cv_c_compiler_gnu+:} false; then : 30100 $as_echo_n "(cached) " >&6 30101 else 30102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30103 /* end confdefs.h. */ 30104 30105 int 30106 main () 30107 { 30108 #ifndef __GNUC__ 30109 choke me 30110 #endif 30111 30112 ; 30113 return 0; 30114 } 30115 _ACEOF 30116 if ac_fn_c_try_compile "$LINENO"; then : 30117 ac_compiler_gnu=yes 30118 else 30119 ac_compiler_gnu=no 30120 fi 30121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30122 ac_cv_c_compiler_gnu=$ac_compiler_gnu 30123 30124 fi 30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 30126 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 30127 if test $ac_compiler_gnu = yes; then 30128 GCC=yes 30129 else 30130 GCC= 30131 fi 30132 ac_test_CFLAGS=${CFLAGS+set} 30133 ac_save_CFLAGS=$CFLAGS 30134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 30135 $as_echo_n "checking whether $CC accepts -g... " >&6; } 30136 if ${ac_cv_prog_cc_g+:} false; then : 30137 $as_echo_n "(cached) " >&6 30138 else 30139 ac_save_c_werror_flag=$ac_c_werror_flag 30140 ac_c_werror_flag=yes 30141 ac_cv_prog_cc_g=no 30142 CFLAGS="-g" 30143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30144 /* end confdefs.h. */ 30145 30146 int 30147 main () 30148 { 30149 30150 ; 30151 return 0; 30152 } 30153 _ACEOF 30154 if ac_fn_c_try_compile "$LINENO"; then : 30155 ac_cv_prog_cc_g=yes 30156 else 30157 CFLAGS="" 30158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30159 /* end confdefs.h. */ 30160 30161 int 30162 main () 30163 { 30164 30165 ; 30166 return 0; 30167 } 30168 _ACEOF 30169 if ac_fn_c_try_compile "$LINENO"; then : 30170 30171 else 30172 ac_c_werror_flag=$ac_save_c_werror_flag 30173 CFLAGS="-g" 30174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30175 /* end confdefs.h. */ 30176 30177 int 30178 main () 30179 { 30180 30181 ; 30182 return 0; 30183 } 30184 _ACEOF 30185 if ac_fn_c_try_compile "$LINENO"; then : 30186 ac_cv_prog_cc_g=yes 30187 fi 30188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30189 fi 30190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30191 fi 30192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30193 ac_c_werror_flag=$ac_save_c_werror_flag 30194 fi 30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 30196 $as_echo "$ac_cv_prog_cc_g" >&6; } 30197 if test "$ac_test_CFLAGS" = set; then 30198 CFLAGS=$ac_save_CFLAGS 30199 elif test $ac_cv_prog_cc_g = yes; then 30200 if test "$GCC" = yes; then 30201 CFLAGS="-g -O2" 30202 else 30203 CFLAGS="-g" 30204 fi 30205 else 30206 if test "$GCC" = yes; then 30207 CFLAGS="-O2" 30208 else 30209 CFLAGS= 30210 fi 30211 fi 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 30213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 30214 if ${ac_cv_prog_cc_c89+:} false; then : 30215 $as_echo_n "(cached) " >&6 30216 else 30217 ac_cv_prog_cc_c89=no 30218 ac_save_CC=$CC 30219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30220 /* end confdefs.h. */ 30221 #include <stdarg.h> 30222 #include <stdio.h> 30223 struct stat; 30224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 30225 struct buf { int x; }; 30226 FILE * (*rcsopen) (struct buf *, struct stat *, int); 30227 static char *e (p, i) 30228 char **p; 30229 int i; 30230 { 30231 return p[i]; 30232 } 30233 static char *f (char * (*g) (char **, int), char **p, ...) 30234 { 30235 char *s; 30236 va_list v; 30237 va_start (v,p); 30238 s = g (p, va_arg (v,int)); 30239 va_end (v); 30240 return s; 30241 } 30242 30243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 30244 function prototypes and stuff, but not '\xHH' hex character constants. 30245 These don't provoke an error unfortunately, instead are silently treated 30246 as 'x'. The following induces an error, until -std is added to get 30247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 30248 array size at least. It's necessary to write '\x00'==0 to get something 30249 that's true only with -std. */ 30250 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 30251 30252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 30253 inside strings and character constants. */ 30254 #define FOO(x) 'x' 30255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 30256 30257 int test (int i, double x); 30258 struct s1 {int (*f) (int a);}; 30259 struct s2 {int (*f) (double a);}; 30260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 30261 int argc; 30262 char **argv; 30263 int 30264 main () 30265 { 30266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 30267 ; 30268 return 0; 30269 } 30270 _ACEOF 30271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 30272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 30273 do 30274 CC="$ac_save_CC $ac_arg" 30275 if ac_fn_c_try_compile "$LINENO"; then : 30276 ac_cv_prog_cc_c89=$ac_arg 30277 fi 30278 rm -f core conftest.err conftest.$ac_objext 30279 test "x$ac_cv_prog_cc_c89" != "xno" && break 30280 done 30281 rm -f conftest.$ac_ext 30282 CC=$ac_save_CC 30283 30284 fi 30285 # AC_CACHE_VAL 30286 case "x$ac_cv_prog_cc_c89" in 30287 x) 30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 30289 $as_echo "none needed" >&6; } ;; 30290 xno) 30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 30292 $as_echo "unsupported" >&6; } ;; 30293 *) 30294 CC="$CC $ac_cv_prog_cc_c89" 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 30296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 30297 esac 30298 if test "x$ac_cv_prog_cc_c89" != xno; then : 30299 30300 fi 30301 30302 ac_ext=cpp 30303 ac_cpp='$CXXCPP $CPPFLAGS' 30304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30307 30308 30309 30310 COMPILER_NAME=C++ 30311 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 30312 30313 if test "x$CXX" != x; then 30314 # User has supplied compiler name already, always let that override. 30315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 30316 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 30317 if test "x`basename $CXX`" = "x$CXX"; then 30318 # A command without a complete path is provided, search $PATH. 30319 30320 for ac_prog in $CXX 30321 do 30322 # Extract the first word of "$ac_prog", so it can be a program name with args. 30323 set dummy $ac_prog; ac_word=$2 30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30325 $as_echo_n "checking for $ac_word... " >&6; } 30326 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 30327 $as_echo_n "(cached) " >&6 30328 else 30329 case $POTENTIAL_CXX in 30330 [\\/]* | ?:[\\/]*) 30331 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 30332 ;; 30333 *) 30334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30335 for as_dir in $PATH 30336 do 30337 IFS=$as_save_IFS 30338 test -z "$as_dir" && as_dir=. 30339 for ac_exec_ext in '' $ac_executable_extensions; do 30340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30341 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 30342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30343 break 2 30344 fi 30345 done 30346 done 30347 IFS=$as_save_IFS 30348 30349 ;; 30350 esac 30351 fi 30352 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30353 if test -n "$POTENTIAL_CXX"; then 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30355 $as_echo "$POTENTIAL_CXX" >&6; } 30356 else 30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30358 $as_echo "no" >&6; } 30359 fi 30360 30361 30362 test -n "$POTENTIAL_CXX" && break 30363 done 30364 30365 if test "x$POTENTIAL_CXX" != x; then 30366 CXX=$POTENTIAL_CXX 30367 else 30368 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 30369 fi 30370 else 30371 # Otherwise it might already be a complete path 30372 if test ! -x "$CXX"; then 30373 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 30374 fi 30375 fi 30376 else 30377 # No user supplied value. Locate compiler ourselves. 30378 30379 # If we are cross compiling, assume cross compilation tools follows the 30380 # cross compilation standard where they are prefixed with the autoconf 30381 # standard name for the target. For example the binary 30382 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 30383 # If we are not cross compiling, then the default compiler name will be 30384 # used. 30385 30386 CXX= 30387 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 30388 # before checking the rest of the PATH. 30389 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 30390 # step, this should not be necessary. 30391 if test -n "$TOOLCHAIN_PATH"; then 30392 PATH_save="$PATH" 30393 PATH="$TOOLCHAIN_PATH" 30394 for ac_prog in $SEARCH_LIST 30395 do 30396 # Extract the first word of "$ac_prog", so it can be a program name with args. 30397 set dummy $ac_prog; ac_word=$2 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30399 $as_echo_n "checking for $ac_word... " >&6; } 30400 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 30401 $as_echo_n "(cached) " >&6 30402 else 30403 case $TOOLCHAIN_PATH_CXX in 30404 [\\/]* | ?:[\\/]*) 30405 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 30406 ;; 30407 *) 30408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30409 for as_dir in $PATH 30410 do 30411 IFS=$as_save_IFS 30412 test -z "$as_dir" && as_dir=. 30413 for ac_exec_ext in '' $ac_executable_extensions; do 30414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30415 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 30416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30417 break 2 30418 fi 30419 done 30420 done 30421 IFS=$as_save_IFS 30422 30423 ;; 30424 esac 30425 fi 30426 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 30427 if test -n "$TOOLCHAIN_PATH_CXX"; then 30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 30429 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 30430 else 30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30432 $as_echo "no" >&6; } 30433 fi 30434 30435 30436 test -n "$TOOLCHAIN_PATH_CXX" && break 30437 done 30438 30439 CXX=$TOOLCHAIN_PATH_CXX 30440 PATH="$PATH_save" 30441 fi 30442 30443 # AC_PATH_PROGS can't be run multiple times with the same variable, 30444 # so create a new name for this run. 30445 if test "x$CXX" = x; then 30446 for ac_prog in $SEARCH_LIST 30447 do 30448 # Extract the first word of "$ac_prog", so it can be a program name with args. 30449 set dummy $ac_prog; ac_word=$2 30450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30451 $as_echo_n "checking for $ac_word... " >&6; } 30452 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 30453 $as_echo_n "(cached) " >&6 30454 else 30455 case $POTENTIAL_CXX in 30456 [\\/]* | ?:[\\/]*) 30457 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 30458 ;; 30459 *) 30460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30461 for as_dir in $PATH 30462 do 30463 IFS=$as_save_IFS 30464 test -z "$as_dir" && as_dir=. 30465 for ac_exec_ext in '' $ac_executable_extensions; do 30466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30467 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 30468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30469 break 2 30470 fi 30471 done 30472 done 30473 IFS=$as_save_IFS 30474 30475 ;; 30476 esac 30477 fi 30478 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30479 if test -n "$POTENTIAL_CXX"; then 30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30481 $as_echo "$POTENTIAL_CXX" >&6; } 30482 else 30483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30484 $as_echo "no" >&6; } 30485 fi 30486 30487 30488 test -n "$POTENTIAL_CXX" && break 30489 done 30490 30491 CXX=$POTENTIAL_CXX 30492 fi 30493 30494 if test "x$CXX" = x; then 30495 30496 # Print a helpful message on how to acquire the necessary build dependency. 30497 # devkit is the help tag: freetype, cups, pulse, alsa etc 30498 MISSING_DEPENDENCY=devkit 30499 30500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30501 cygwin_help $MISSING_DEPENDENCY 30502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30503 msys_help $MISSING_DEPENDENCY 30504 else 30505 PKGHANDLER_COMMAND= 30506 30507 case $PKGHANDLER in 30508 apt-get) 30509 apt_help $MISSING_DEPENDENCY ;; 30510 yum) 30511 yum_help $MISSING_DEPENDENCY ;; 30512 port) 30513 port_help $MISSING_DEPENDENCY ;; 30514 pkgutil) 30515 pkgutil_help $MISSING_DEPENDENCY ;; 30516 pkgadd) 30517 pkgadd_help $MISSING_DEPENDENCY ;; 30518 esac 30519 30520 if test "x$PKGHANDLER_COMMAND" != x; then 30521 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30522 fi 30523 fi 30524 30525 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 30526 fi 30527 fi 30528 30529 # Now we have a compiler binary in CXX. Make sure it's okay. 30530 30531 # Only process if variable expands to non-empty 30532 30533 if test "x$CXX" != x; then 30534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30535 30536 # First separate the path from the arguments. This will split at the first 30537 # space. 30538 complete="$CXX" 30539 path="${complete%% *}" 30540 tmp="$complete EOL" 30541 arguments="${tmp#* }" 30542 30543 # Input might be given as Windows format, start by converting to 30544 # unix format. 30545 new_path=`$CYGPATH -u "$path"` 30546 30547 # Now try to locate executable using which 30548 new_path=`$WHICH "$new_path" 2> /dev/null` 30549 # bat and cmd files are not always considered executable in cygwin causing which 30550 # to not find them 30551 if test "x$new_path" = x \ 30552 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30553 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30554 new_path=`$CYGPATH -u "$path"` 30555 fi 30556 if test "x$new_path" = x; then 30557 # Oops. Which didn't find the executable. 30558 # The splitting of arguments from the executable at a space might have been incorrect, 30559 # since paths with space are more likely in Windows. Give it another try with the whole 30560 # argument. 30561 path="$complete" 30562 arguments="EOL" 30563 new_path=`$CYGPATH -u "$path"` 30564 new_path=`$WHICH "$new_path" 2> /dev/null` 30565 # bat and cmd files are not always considered executable in cygwin causing which 30566 # to not find them 30567 if test "x$new_path" = x \ 30568 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30569 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30570 new_path=`$CYGPATH -u "$path"` 30571 fi 30572 if test "x$new_path" = x; then 30573 # It's still not found. Now this is an unrecoverable error. 30574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30575 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30576 has_space=`$ECHO "$complete" | $GREP " "` 30577 if test "x$has_space" != x; then 30578 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30579 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30580 fi 30581 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30582 fi 30583 fi 30584 30585 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30586 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30587 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30588 # "foo.exe" is OK but "foo" is an error. 30589 # 30590 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30591 # It is also a way to make sure we got the proper file name for the real test later on. 30592 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30593 if test "x$test_shortpath" = x; then 30594 # Short path failed, file does not exist as specified. 30595 # Try adding .exe or .cmd 30596 if test -f "${new_path}.exe"; then 30597 input_to_shortpath="${new_path}.exe" 30598 elif test -f "${new_path}.cmd"; then 30599 input_to_shortpath="${new_path}.cmd" 30600 else 30601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30602 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 30603 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30604 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30605 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30606 fi 30607 else 30608 input_to_shortpath="$new_path" 30609 fi 30610 30611 # Call helper function which possibly converts this using DOS-style short mode. 30612 # If so, the updated path is stored in $new_path. 30613 new_path="$input_to_shortpath" 30614 30615 input_path="$input_to_shortpath" 30616 # Check if we need to convert this using DOS-style short mode. If the path 30617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30618 # take no chances and rewrite it. 30619 # Note: m4 eats our [], so we need to use [ and ] instead. 30620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30621 if test "x$has_forbidden_chars" != x; then 30622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30626 # Going to short mode and back again did indeed matter. Since short mode is 30627 # case insensitive, let's make it lowercase to improve readability. 30628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30629 # Now convert it back to Unix-style (cygpath) 30630 input_path=`$CYGPATH -u "$shortmode_path"` 30631 new_path="$input_path" 30632 fi 30633 fi 30634 30635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30636 if test "x$test_cygdrive_prefix" = x; then 30637 # As a simple fix, exclude /usr/bin since it's not a real path. 30638 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30640 # a path prefixed by /cygdrive for fixpath to work. 30641 new_path="$CYGWIN_ROOT_PATH$input_path" 30642 fi 30643 fi 30644 30645 # remove trailing .exe if any 30646 new_path="${new_path/%.exe/}" 30647 30648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30649 30650 # First separate the path from the arguments. This will split at the first 30651 # space. 30652 complete="$CXX" 30653 path="${complete%% *}" 30654 tmp="$complete EOL" 30655 arguments="${tmp#* }" 30656 30657 # Input might be given as Windows format, start by converting to 30658 # unix format. 30659 new_path="$path" 30660 30661 windows_path="$new_path" 30662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30663 unix_path=`$CYGPATH -u "$windows_path"` 30664 new_path="$unix_path" 30665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30667 new_path="$unix_path" 30668 fi 30669 30670 30671 # Now try to locate executable using which 30672 new_path=`$WHICH "$new_path" 2> /dev/null` 30673 30674 if test "x$new_path" = x; then 30675 # Oops. Which didn't find the executable. 30676 # The splitting of arguments from the executable at a space might have been incorrect, 30677 # since paths with space are more likely in Windows. Give it another try with the whole 30678 # argument. 30679 path="$complete" 30680 arguments="EOL" 30681 new_path="$path" 30682 30683 windows_path="$new_path" 30684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30685 unix_path=`$CYGPATH -u "$windows_path"` 30686 new_path="$unix_path" 30687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30689 new_path="$unix_path" 30690 fi 30691 30692 30693 new_path=`$WHICH "$new_path" 2> /dev/null` 30694 # bat and cmd files are not always considered executable in MSYS causing which 30695 # to not find them 30696 if test "x$new_path" = x \ 30697 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30698 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30699 new_path="$path" 30700 30701 windows_path="$new_path" 30702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30703 unix_path=`$CYGPATH -u "$windows_path"` 30704 new_path="$unix_path" 30705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30707 new_path="$unix_path" 30708 fi 30709 30710 fi 30711 30712 if test "x$new_path" = x; then 30713 # It's still not found. Now this is an unrecoverable error. 30714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30715 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30716 has_space=`$ECHO "$complete" | $GREP " "` 30717 if test "x$has_space" != x; then 30718 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30719 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30720 fi 30721 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30722 fi 30723 fi 30724 30725 # Now new_path has a complete unix path to the binary 30726 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30727 # Keep paths in /bin as-is, but remove trailing .exe if any 30728 new_path="${new_path/%.exe/}" 30729 # Do not save /bin paths to all_fixpath_prefixes! 30730 else 30731 # Not in mixed or Windows style, start by that. 30732 new_path=`cmd //c echo $new_path` 30733 30734 input_path="$new_path" 30735 # Check if we need to convert this using DOS-style short mode. If the path 30736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30737 # take no chances and rewrite it. 30738 # Note: m4 eats our [], so we need to use [ and ] instead. 30739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30740 if test "x$has_forbidden_chars" != x; then 30741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30742 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30743 fi 30744 30745 # Output is in $new_path 30746 30747 windows_path="$new_path" 30748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30749 unix_path=`$CYGPATH -u "$windows_path"` 30750 new_path="$unix_path" 30751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30753 new_path="$unix_path" 30754 fi 30755 30756 # remove trailing .exe if any 30757 new_path="${new_path/%.exe/}" 30758 30759 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30760 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30761 fi 30762 30763 else 30764 # We're on a unix platform. Hooray! :) 30765 # First separate the path from the arguments. This will split at the first 30766 # space. 30767 complete="$CXX" 30768 path="${complete%% *}" 30769 tmp="$complete EOL" 30770 arguments="${tmp#* }" 30771 30772 # Cannot rely on the command "which" here since it doesn't always work. 30773 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30774 if test -z "$is_absolute_path"; then 30775 # Path to executable is not absolute. Find it. 30776 IFS_save="$IFS" 30777 IFS=: 30778 for p in $PATH; do 30779 if test -f "$p/$path" && test -x "$p/$path"; then 30780 new_path="$p/$path" 30781 break 30782 fi 30783 done 30784 IFS="$IFS_save" 30785 else 30786 # This is an absolute path, we can use it without further modifications. 30787 new_path="$path" 30788 fi 30789 30790 if test "x$new_path" = x; then 30791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30792 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30793 has_space=`$ECHO "$complete" | $GREP " "` 30794 if test "x$has_space" != x; then 30795 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30796 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30797 fi 30798 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30799 fi 30800 fi 30801 30802 # Now join together the path and the arguments once again 30803 if test "x$arguments" != xEOL; then 30804 new_complete="$new_path ${arguments% *}" 30805 else 30806 new_complete="$new_path" 30807 fi 30808 30809 if test "x$complete" != "x$new_complete"; then 30810 CXX="$new_complete" 30811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30812 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30813 fi 30814 fi 30815 30816 TEST_COMPILER="$CXX" 30817 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30818 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30819 if test "x$OPENJDK_BUILD_OS" != xaix; then 30820 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30822 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30823 30824 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30825 # Follow a chain of symbolic links. Use readlink 30826 # where it exists, else fall back to horribly 30827 # complicated shell code. 30828 if test "x$READLINK_TESTED" != yes; then 30829 # On MacOSX there is a readlink tool with a different 30830 # purpose than the GNU readlink tool. Check the found readlink. 30831 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30832 if test "x$ISGNU" = x; then 30833 # A readlink that we do not know how to use. 30834 # Are there other non-GNU readlinks out there? 30835 READLINK_TESTED=yes 30836 READLINK= 30837 fi 30838 fi 30839 30840 if test "x$READLINK" != x; then 30841 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30842 else 30843 # Save the current directory for restoring afterwards 30844 STARTDIR=$PWD 30845 COUNTER=0 30846 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30847 sym_link_file=`$BASENAME $TEST_COMPILER` 30848 cd $sym_link_dir 30849 # Use -P flag to resolve symlinks in directories. 30850 cd `$THEPWDCMD -P` 30851 sym_link_dir=`$THEPWDCMD -P` 30852 # Resolve file symlinks 30853 while test $COUNTER -lt 20; do 30854 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30855 if test "x$ISLINK" == x; then 30856 # This is not a symbolic link! We are done! 30857 break 30858 fi 30859 # Again resolve directory symlinks since the target of the just found 30860 # link could be in a different directory 30861 cd `$DIRNAME $ISLINK` 30862 sym_link_dir=`$THEPWDCMD -P` 30863 sym_link_file=`$BASENAME $ISLINK` 30864 let COUNTER=COUNTER+1 30865 done 30866 cd $STARTDIR 30867 TEST_COMPILER=$sym_link_dir/$sym_link_file 30868 fi 30869 fi 30870 30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30872 $as_echo "$TEST_COMPILER" >&6; } 30873 fi 30874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30875 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30876 30877 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30878 if test "x$COMPILER_BASENAME" = "xccache"; then 30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30880 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30881 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30882 # We want to control ccache invocation ourselves, so ignore this cc and try 30883 # searching again. 30884 30885 # Remove the path to the fake ccache cc from the PATH 30886 RETRY_COMPILER_SAVED_PATH="$PATH" 30887 COMPILER_DIRNAME=`$DIRNAME $CXX` 30888 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30889 30890 # Try again looking for our compiler 30891 if test -n "$ac_tool_prefix"; then 30892 for ac_prog in $TOOLCHAIN_CXX_BINARY 30893 do 30894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30897 $as_echo_n "checking for $ac_word... " >&6; } 30898 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30899 $as_echo_n "(cached) " >&6 30900 else 30901 if test -n "$PROPER_COMPILER_CXX"; then 30902 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30903 else 30904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30905 for as_dir in $PATH 30906 do 30907 IFS=$as_save_IFS 30908 test -z "$as_dir" && as_dir=. 30909 for ac_exec_ext in '' $ac_executable_extensions; do 30910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30911 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30913 break 2 30914 fi 30915 done 30916 done 30917 IFS=$as_save_IFS 30918 30919 fi 30920 fi 30921 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30922 if test -n "$PROPER_COMPILER_CXX"; then 30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30924 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30925 else 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30927 $as_echo "no" >&6; } 30928 fi 30929 30930 30931 test -n "$PROPER_COMPILER_CXX" && break 30932 done 30933 fi 30934 if test -z "$PROPER_COMPILER_CXX"; then 30935 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30936 for ac_prog in $TOOLCHAIN_CXX_BINARY 30937 do 30938 # Extract the first word of "$ac_prog", so it can be a program name with args. 30939 set dummy $ac_prog; ac_word=$2 30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30941 $as_echo_n "checking for $ac_word... " >&6; } 30942 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30943 $as_echo_n "(cached) " >&6 30944 else 30945 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30946 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30947 else 30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30949 for as_dir in $PATH 30950 do 30951 IFS=$as_save_IFS 30952 test -z "$as_dir" && as_dir=. 30953 for ac_exec_ext in '' $ac_executable_extensions; do 30954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30955 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30957 break 2 30958 fi 30959 done 30960 done 30961 IFS=$as_save_IFS 30962 30963 fi 30964 fi 30965 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30966 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30968 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30969 else 30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30971 $as_echo "no" >&6; } 30972 fi 30973 30974 30975 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30976 done 30977 30978 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30979 PROPER_COMPILER_CXX="" 30980 else 30981 case $cross_compiling:$ac_tool_warned in 30982 yes:) 30983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30985 ac_tool_warned=yes ;; 30986 esac 30987 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30988 fi 30989 fi 30990 30991 30992 # Only process if variable expands to non-empty 30993 30994 if test "x$PROPER_COMPILER_CXX" != x; then 30995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30996 30997 # First separate the path from the arguments. This will split at the first 30998 # space. 30999 complete="$PROPER_COMPILER_CXX" 31000 path="${complete%% *}" 31001 tmp="$complete EOL" 31002 arguments="${tmp#* }" 31003 31004 # Input might be given as Windows format, start by converting to 31005 # unix format. 31006 new_path=`$CYGPATH -u "$path"` 31007 31008 # Now try to locate executable using which 31009 new_path=`$WHICH "$new_path" 2> /dev/null` 31010 # bat and cmd files are not always considered executable in cygwin causing which 31011 # to not find them 31012 if test "x$new_path" = x \ 31013 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31014 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31015 new_path=`$CYGPATH -u "$path"` 31016 fi 31017 if test "x$new_path" = x; then 31018 # Oops. Which didn't find the executable. 31019 # The splitting of arguments from the executable at a space might have been incorrect, 31020 # since paths with space are more likely in Windows. Give it another try with the whole 31021 # argument. 31022 path="$complete" 31023 arguments="EOL" 31024 new_path=`$CYGPATH -u "$path"` 31025 new_path=`$WHICH "$new_path" 2> /dev/null` 31026 # bat and cmd files are not always considered executable in cygwin causing which 31027 # to not find them 31028 if test "x$new_path" = x \ 31029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31031 new_path=`$CYGPATH -u "$path"` 31032 fi 31033 if test "x$new_path" = x; then 31034 # It's still not found. Now this is an unrecoverable error. 31035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31036 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31037 has_space=`$ECHO "$complete" | $GREP " "` 31038 if test "x$has_space" != x; then 31039 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31040 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31041 fi 31042 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31043 fi 31044 fi 31045 31046 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31047 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31048 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31049 # "foo.exe" is OK but "foo" is an error. 31050 # 31051 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31052 # It is also a way to make sure we got the proper file name for the real test later on. 31053 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31054 if test "x$test_shortpath" = x; then 31055 # Short path failed, file does not exist as specified. 31056 # Try adding .exe or .cmd 31057 if test -f "${new_path}.exe"; then 31058 input_to_shortpath="${new_path}.exe" 31059 elif test -f "${new_path}.cmd"; then 31060 input_to_shortpath="${new_path}.cmd" 31061 else 31062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 31063 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31065 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31066 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31067 fi 31068 else 31069 input_to_shortpath="$new_path" 31070 fi 31071 31072 # Call helper function which possibly converts this using DOS-style short mode. 31073 # If so, the updated path is stored in $new_path. 31074 new_path="$input_to_shortpath" 31075 31076 input_path="$input_to_shortpath" 31077 # Check if we need to convert this using DOS-style short mode. If the path 31078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31079 # take no chances and rewrite it. 31080 # Note: m4 eats our [], so we need to use [ and ] instead. 31081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31082 if test "x$has_forbidden_chars" != x; then 31083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31087 # Going to short mode and back again did indeed matter. Since short mode is 31088 # case insensitive, let's make it lowercase to improve readability. 31089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31090 # Now convert it back to Unix-style (cygpath) 31091 input_path=`$CYGPATH -u "$shortmode_path"` 31092 new_path="$input_path" 31093 fi 31094 fi 31095 31096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31097 if test "x$test_cygdrive_prefix" = x; then 31098 # As a simple fix, exclude /usr/bin since it's not a real path. 31099 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31101 # a path prefixed by /cygdrive for fixpath to work. 31102 new_path="$CYGWIN_ROOT_PATH$input_path" 31103 fi 31104 fi 31105 31106 # remove trailing .exe if any 31107 new_path="${new_path/%.exe/}" 31108 31109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31110 31111 # First separate the path from the arguments. This will split at the first 31112 # space. 31113 complete="$PROPER_COMPILER_CXX" 31114 path="${complete%% *}" 31115 tmp="$complete EOL" 31116 arguments="${tmp#* }" 31117 31118 # Input might be given as Windows format, start by converting to 31119 # unix format. 31120 new_path="$path" 31121 31122 windows_path="$new_path" 31123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31124 unix_path=`$CYGPATH -u "$windows_path"` 31125 new_path="$unix_path" 31126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31128 new_path="$unix_path" 31129 fi 31130 31131 31132 # Now try to locate executable using which 31133 new_path=`$WHICH "$new_path" 2> /dev/null` 31134 31135 if test "x$new_path" = x; then 31136 # Oops. Which didn't find the executable. 31137 # The splitting of arguments from the executable at a space might have been incorrect, 31138 # since paths with space are more likely in Windows. Give it another try with the whole 31139 # argument. 31140 path="$complete" 31141 arguments="EOL" 31142 new_path="$path" 31143 31144 windows_path="$new_path" 31145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31146 unix_path=`$CYGPATH -u "$windows_path"` 31147 new_path="$unix_path" 31148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31150 new_path="$unix_path" 31151 fi 31152 31153 31154 new_path=`$WHICH "$new_path" 2> /dev/null` 31155 # bat and cmd files are not always considered executable in MSYS causing which 31156 # to not find them 31157 if test "x$new_path" = x \ 31158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31160 new_path="$path" 31161 31162 windows_path="$new_path" 31163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31164 unix_path=`$CYGPATH -u "$windows_path"` 31165 new_path="$unix_path" 31166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31168 new_path="$unix_path" 31169 fi 31170 31171 fi 31172 31173 if test "x$new_path" = x; then 31174 # It's still not found. Now this is an unrecoverable error. 31175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31176 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31177 has_space=`$ECHO "$complete" | $GREP " "` 31178 if test "x$has_space" != x; then 31179 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31180 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31181 fi 31182 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31183 fi 31184 fi 31185 31186 # Now new_path has a complete unix path to the binary 31187 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31188 # Keep paths in /bin as-is, but remove trailing .exe if any 31189 new_path="${new_path/%.exe/}" 31190 # Do not save /bin paths to all_fixpath_prefixes! 31191 else 31192 # Not in mixed or Windows style, start by that. 31193 new_path=`cmd //c echo $new_path` 31194 31195 input_path="$new_path" 31196 # Check if we need to convert this using DOS-style short mode. If the path 31197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31198 # take no chances and rewrite it. 31199 # Note: m4 eats our [], so we need to use [ and ] instead. 31200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31201 if test "x$has_forbidden_chars" != x; then 31202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31203 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31204 fi 31205 31206 # Output is in $new_path 31207 31208 windows_path="$new_path" 31209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31210 unix_path=`$CYGPATH -u "$windows_path"` 31211 new_path="$unix_path" 31212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31214 new_path="$unix_path" 31215 fi 31216 31217 # remove trailing .exe if any 31218 new_path="${new_path/%.exe/}" 31219 31220 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31221 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31222 fi 31223 31224 else 31225 # We're on a unix platform. Hooray! :) 31226 # First separate the path from the arguments. This will split at the first 31227 # space. 31228 complete="$PROPER_COMPILER_CXX" 31229 path="${complete%% *}" 31230 tmp="$complete EOL" 31231 arguments="${tmp#* }" 31232 31233 # Cannot rely on the command "which" here since it doesn't always work. 31234 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31235 if test -z "$is_absolute_path"; then 31236 # Path to executable is not absolute. Find it. 31237 IFS_save="$IFS" 31238 IFS=: 31239 for p in $PATH; do 31240 if test -f "$p/$path" && test -x "$p/$path"; then 31241 new_path="$p/$path" 31242 break 31243 fi 31244 done 31245 IFS="$IFS_save" 31246 else 31247 # This is an absolute path, we can use it without further modifications. 31248 new_path="$path" 31249 fi 31250 31251 if test "x$new_path" = x; then 31252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31253 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31254 has_space=`$ECHO "$complete" | $GREP " "` 31255 if test "x$has_space" != x; then 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31257 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31258 fi 31259 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31260 fi 31261 fi 31262 31263 # Now join together the path and the arguments once again 31264 if test "x$arguments" != xEOL; then 31265 new_complete="$new_path ${arguments% *}" 31266 else 31267 new_complete="$new_path" 31268 fi 31269 31270 if test "x$complete" != "x$new_complete"; then 31271 PROPER_COMPILER_CXX="$new_complete" 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 31273 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 31274 fi 31275 fi 31276 31277 PATH="$RETRY_COMPILER_SAVED_PATH" 31278 31279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 31280 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 31281 31282 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31283 # Follow a chain of symbolic links. Use readlink 31284 # where it exists, else fall back to horribly 31285 # complicated shell code. 31286 if test "x$READLINK_TESTED" != yes; then 31287 # On MacOSX there is a readlink tool with a different 31288 # purpose than the GNU readlink tool. Check the found readlink. 31289 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31290 if test "x$ISGNU" = x; then 31291 # A readlink that we do not know how to use. 31292 # Are there other non-GNU readlinks out there? 31293 READLINK_TESTED=yes 31294 READLINK= 31295 fi 31296 fi 31297 31298 if test "x$READLINK" != x; then 31299 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 31300 else 31301 # Save the current directory for restoring afterwards 31302 STARTDIR=$PWD 31303 COUNTER=0 31304 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 31305 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 31306 cd $sym_link_dir 31307 # Use -P flag to resolve symlinks in directories. 31308 cd `$THEPWDCMD -P` 31309 sym_link_dir=`$THEPWDCMD -P` 31310 # Resolve file symlinks 31311 while test $COUNTER -lt 20; do 31312 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 31313 if test "x$ISLINK" == x; then 31314 # This is not a symbolic link! We are done! 31315 break 31316 fi 31317 # Again resolve directory symlinks since the target of the just found 31318 # link could be in a different directory 31319 cd `$DIRNAME $ISLINK` 31320 sym_link_dir=`$THEPWDCMD -P` 31321 sym_link_file=`$BASENAME $ISLINK` 31322 let COUNTER=COUNTER+1 31323 done 31324 cd $STARTDIR 31325 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 31326 fi 31327 fi 31328 31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 31330 $as_echo "$PROPER_COMPILER_CXX" >&6; } 31331 CXX="$PROPER_COMPILER_CXX" 31332 else 31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 31334 $as_echo "no, keeping CXX" >&6; } 31335 fi 31336 31337 31338 COMPILER=$CXX 31339 COMPILER_NAME=$COMPILER_NAME 31340 31341 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31342 # cc -V output typically looks like 31343 # cc: Sun C 5.12 Linux_i386 2011/11/16 31344 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 31345 # Check that this is likely to be the Solaris Studio cc. 31346 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 31347 if test $? -ne 0; then 31348 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31349 { $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 31350 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31351 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31352 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31353 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 31354 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 31355 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31356 fi 31357 # Remove usage instructions (if present), and 31358 # collapse compiler output into a single line 31359 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31360 $SED -e 's/ *[Uu]sage:.*//'` 31361 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31362 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 31363 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 31364 # xlc -qversion output typically looks like 31365 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 31366 # Version: 11.01.0000.0015 31367 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 31368 # Check that this is likely to be the IBM XL C compiler. 31369 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 31370 if test $? -ne 0; then 31371 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31372 { $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 31373 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31375 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31376 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 31377 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 31378 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31379 fi 31380 # Collapse compiler output into a single line 31381 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31382 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31383 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 31384 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31385 # There is no specific version flag, but all output starts with a version string. 31386 # First line typically looks something like: 31387 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 31388 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 31389 # Check that this is likely to be Microsoft CL.EXE. 31390 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 31391 if test $? -ne 0; then 31392 { $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 31393 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31394 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31395 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31396 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31397 fi 31398 # Collapse compiler output into a single line 31399 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31400 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31401 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 31402 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31403 # gcc --version output typically looks like 31404 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 31405 # Copyright (C) 2013 Free Software Foundation, Inc. 31406 # This is free software; see the source for copying conditions. There is NO 31407 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 31408 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31409 # Check that this is likely to be GCC. 31410 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 31411 if test $? -ne 0; then 31412 { $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 31413 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31414 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 31415 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 31416 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31417 fi 31418 # Remove Copyright and legalese from version string, and 31419 # collapse into a single line 31420 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31421 $SED -e 's/ *Copyright .*//'` 31422 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31423 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 31424 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31425 # clang --version output typically looks like 31426 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 31427 # clang version 3.3 (tags/RELEASE_33/final) 31428 # or 31429 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 31430 # Target: x86_64-pc-linux-gnu 31431 # Thread model: posix 31432 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31433 # Check that this is likely to be clang 31434 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 31435 if test $? -ne 0; then 31436 { $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 31437 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31438 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31439 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31440 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31441 fi 31442 # Collapse compiler output into a single line 31443 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31444 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31445 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 31446 else 31447 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 31448 fi 31449 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 31450 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 31451 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 31452 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 31453 31454 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 31455 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 31456 31457 31458 # Now that we have resolved CXX ourself, let autoconf have its go at it 31459 ac_ext=cpp 31460 ac_cpp='$CXXCPP $CPPFLAGS' 31461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31464 if test -z "$CXX"; then 31465 if test -n "$CCC"; then 31466 CXX=$CCC 31467 else 31468 if test -n "$ac_tool_prefix"; then 31469 for ac_prog in $CXX 31470 do 31471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31474 $as_echo_n "checking for $ac_word... " >&6; } 31475 if ${ac_cv_prog_CXX+:} false; then : 31476 $as_echo_n "(cached) " >&6 31477 else 31478 if test -n "$CXX"; then 31479 ac_cv_prog_CXX="$CXX" # Let the user override the test. 31480 else 31481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31482 for as_dir in $PATH 31483 do 31484 IFS=$as_save_IFS 31485 test -z "$as_dir" && as_dir=. 31486 for ac_exec_ext in '' $ac_executable_extensions; do 31487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 31489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31490 break 2 31491 fi 31492 done 31493 done 31494 IFS=$as_save_IFS 31495 31496 fi 31497 fi 31498 CXX=$ac_cv_prog_CXX 31499 if test -n "$CXX"; then 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 31501 $as_echo "$CXX" >&6; } 31502 else 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31504 $as_echo "no" >&6; } 31505 fi 31506 31507 31508 test -n "$CXX" && break 31509 done 31510 fi 31511 if test -z "$CXX"; then 31512 ac_ct_CXX=$CXX 31513 for ac_prog in $CXX 31514 do 31515 # Extract the first word of "$ac_prog", so it can be a program name with args. 31516 set dummy $ac_prog; ac_word=$2 31517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31518 $as_echo_n "checking for $ac_word... " >&6; } 31519 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 31520 $as_echo_n "(cached) " >&6 31521 else 31522 if test -n "$ac_ct_CXX"; then 31523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 31524 else 31525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31526 for as_dir in $PATH 31527 do 31528 IFS=$as_save_IFS 31529 test -z "$as_dir" && as_dir=. 31530 for ac_exec_ext in '' $ac_executable_extensions; do 31531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31532 ac_cv_prog_ac_ct_CXX="$ac_prog" 31533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31534 break 2 31535 fi 31536 done 31537 done 31538 IFS=$as_save_IFS 31539 31540 fi 31541 fi 31542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 31543 if test -n "$ac_ct_CXX"; then 31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31545 $as_echo "$ac_ct_CXX" >&6; } 31546 else 31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31548 $as_echo "no" >&6; } 31549 fi 31550 31551 31552 test -n "$ac_ct_CXX" && break 31553 done 31554 31555 if test "x$ac_ct_CXX" = x; then 31556 CXX="g++" 31557 else 31558 case $cross_compiling:$ac_tool_warned in 31559 yes:) 31560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31562 ac_tool_warned=yes ;; 31563 esac 31564 CXX=$ac_ct_CXX 31565 fi 31566 fi 31567 31568 fi 31569 fi 31570 # Provide some information about the compiler. 31571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31572 set X $ac_compile 31573 ac_compiler=$2 31574 for ac_option in --version -v -V -qversion; do 31575 { { ac_try="$ac_compiler $ac_option >&5" 31576 case "(($ac_try" in 31577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31578 *) ac_try_echo=$ac_try;; 31579 esac 31580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31581 $as_echo "$ac_try_echo"; } >&5 31582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31583 ac_status=$? 31584 if test -s conftest.err; then 31585 sed '10a\ 31586 ... rest of stderr output deleted ... 31587 10q' conftest.err >conftest.er1 31588 cat conftest.er1 >&5 31589 fi 31590 rm -f conftest.er1 conftest.err 31591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31592 test $ac_status = 0; } 31593 done 31594 31595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31597 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31598 $as_echo_n "(cached) " >&6 31599 else 31600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31601 /* end confdefs.h. */ 31602 31603 int 31604 main () 31605 { 31606 #ifndef __GNUC__ 31607 choke me 31608 #endif 31609 31610 ; 31611 return 0; 31612 } 31613 _ACEOF 31614 if ac_fn_cxx_try_compile "$LINENO"; then : 31615 ac_compiler_gnu=yes 31616 else 31617 ac_compiler_gnu=no 31618 fi 31619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 31621 31622 fi 31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 31624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 31625 if test $ac_compiler_gnu = yes; then 31626 GXX=yes 31627 else 31628 GXX= 31629 fi 31630 ac_test_CXXFLAGS=${CXXFLAGS+set} 31631 ac_save_CXXFLAGS=$CXXFLAGS 31632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 31633 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 31634 if ${ac_cv_prog_cxx_g+:} false; then : 31635 $as_echo_n "(cached) " >&6 31636 else 31637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 31638 ac_cxx_werror_flag=yes 31639 ac_cv_prog_cxx_g=no 31640 CXXFLAGS="-g" 31641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31642 /* end confdefs.h. */ 31643 31644 int 31645 main () 31646 { 31647 31648 ; 31649 return 0; 31650 } 31651 _ACEOF 31652 if ac_fn_cxx_try_compile "$LINENO"; then : 31653 ac_cv_prog_cxx_g=yes 31654 else 31655 CXXFLAGS="" 31656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31657 /* end confdefs.h. */ 31658 31659 int 31660 main () 31661 { 31662 31663 ; 31664 return 0; 31665 } 31666 _ACEOF 31667 if ac_fn_cxx_try_compile "$LINENO"; then : 31668 31669 else 31670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31671 CXXFLAGS="-g" 31672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31673 /* end confdefs.h. */ 31674 31675 int 31676 main () 31677 { 31678 31679 ; 31680 return 0; 31681 } 31682 _ACEOF 31683 if ac_fn_cxx_try_compile "$LINENO"; then : 31684 ac_cv_prog_cxx_g=yes 31685 fi 31686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31687 fi 31688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31689 fi 31690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31692 fi 31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 31694 $as_echo "$ac_cv_prog_cxx_g" >&6; } 31695 if test "$ac_test_CXXFLAGS" = set; then 31696 CXXFLAGS=$ac_save_CXXFLAGS 31697 elif test $ac_cv_prog_cxx_g = yes; then 31698 if test "$GXX" = yes; then 31699 CXXFLAGS="-g -O2" 31700 else 31701 CXXFLAGS="-g" 31702 fi 31703 else 31704 if test "$GXX" = yes; then 31705 CXXFLAGS="-O2" 31706 else 31707 CXXFLAGS= 31708 fi 31709 fi 31710 ac_ext=cpp 31711 ac_cpp='$CXXCPP $CPPFLAGS' 31712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31715 31716 31717 # 31718 # Setup the preprocessor (CPP and CXXCPP) 31719 # 31720 ac_ext=c 31721 ac_cpp='$CPP $CPPFLAGS' 31722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31724 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 31726 $as_echo_n "checking how to run the C preprocessor... " >&6; } 31727 # On Suns, sometimes $CPP names a directory. 31728 if test -n "$CPP" && test -d "$CPP"; then 31729 CPP= 31730 fi 31731 if test -z "$CPP"; then 31732 if ${ac_cv_prog_CPP+:} false; then : 31733 $as_echo_n "(cached) " >&6 31734 else 31735 # Double quotes because CPP needs to be expanded 31736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 31737 do 31738 ac_preproc_ok=false 31739 for ac_c_preproc_warn_flag in '' yes 31740 do 31741 # Use a header file that comes with gcc, so configuring glibc 31742 # with a fresh cross-compiler works. 31743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31744 # <limits.h> exists even on freestanding compilers. 31745 # On the NeXT, cc -E runs the code through the compiler's parser, 31746 # not just through cpp. "Syntax error" is here to catch this case. 31747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31748 /* end confdefs.h. */ 31749 #ifdef __STDC__ 31750 # include <limits.h> 31751 #else 31752 # include <assert.h> 31753 #endif 31754 Syntax error 31755 _ACEOF 31756 if ac_fn_c_try_cpp "$LINENO"; then : 31757 31758 else 31759 # Broken: fails on valid input. 31760 continue 31761 fi 31762 rm -f conftest.err conftest.i conftest.$ac_ext 31763 31764 # OK, works on sane cases. Now check whether nonexistent headers 31765 # can be detected and how. 31766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31767 /* end confdefs.h. */ 31768 #include <ac_nonexistent.h> 31769 _ACEOF 31770 if ac_fn_c_try_cpp "$LINENO"; then : 31771 # Broken: success on invalid input. 31772 continue 31773 else 31774 # Passes both tests. 31775 ac_preproc_ok=: 31776 break 31777 fi 31778 rm -f conftest.err conftest.i conftest.$ac_ext 31779 31780 done 31781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31782 rm -f conftest.i conftest.err conftest.$ac_ext 31783 if $ac_preproc_ok; then : 31784 break 31785 fi 31786 31787 done 31788 ac_cv_prog_CPP=$CPP 31789 31790 fi 31791 CPP=$ac_cv_prog_CPP 31792 else 31793 ac_cv_prog_CPP=$CPP 31794 fi 31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31796 $as_echo "$CPP" >&6; } 31797 ac_preproc_ok=false 31798 for ac_c_preproc_warn_flag in '' yes 31799 do 31800 # Use a header file that comes with gcc, so configuring glibc 31801 # with a fresh cross-compiler works. 31802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31803 # <limits.h> exists even on freestanding compilers. 31804 # On the NeXT, cc -E runs the code through the compiler's parser, 31805 # not just through cpp. "Syntax error" is here to catch this case. 31806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31807 /* end confdefs.h. */ 31808 #ifdef __STDC__ 31809 # include <limits.h> 31810 #else 31811 # include <assert.h> 31812 #endif 31813 Syntax error 31814 _ACEOF 31815 if ac_fn_c_try_cpp "$LINENO"; then : 31816 31817 else 31818 # Broken: fails on valid input. 31819 continue 31820 fi 31821 rm -f conftest.err conftest.i conftest.$ac_ext 31822 31823 # OK, works on sane cases. Now check whether nonexistent headers 31824 # can be detected and how. 31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31826 /* end confdefs.h. */ 31827 #include <ac_nonexistent.h> 31828 _ACEOF 31829 if ac_fn_c_try_cpp "$LINENO"; then : 31830 # Broken: success on invalid input. 31831 continue 31832 else 31833 # Passes both tests. 31834 ac_preproc_ok=: 31835 break 31836 fi 31837 rm -f conftest.err conftest.i conftest.$ac_ext 31838 31839 done 31840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31841 rm -f conftest.i conftest.err conftest.$ac_ext 31842 if $ac_preproc_ok; then : 31843 31844 else 31845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31848 See \`config.log' for more details" "$LINENO" 5; } 31849 fi 31850 31851 ac_ext=cpp 31852 ac_cpp='$CXXCPP $CPPFLAGS' 31853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31856 31857 31858 # Only process if variable expands to non-empty 31859 31860 if test "x$CPP" != x; then 31861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31862 31863 # First separate the path from the arguments. This will split at the first 31864 # space. 31865 complete="$CPP" 31866 path="${complete%% *}" 31867 tmp="$complete EOL" 31868 arguments="${tmp#* }" 31869 31870 # Input might be given as Windows format, start by converting to 31871 # unix format. 31872 new_path=`$CYGPATH -u "$path"` 31873 31874 # Now try to locate executable using which 31875 new_path=`$WHICH "$new_path" 2> /dev/null` 31876 # bat and cmd files are not always considered executable in cygwin causing which 31877 # to not find them 31878 if test "x$new_path" = x \ 31879 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31880 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31881 new_path=`$CYGPATH -u "$path"` 31882 fi 31883 if test "x$new_path" = x; then 31884 # Oops. Which didn't find the executable. 31885 # The splitting of arguments from the executable at a space might have been incorrect, 31886 # since paths with space are more likely in Windows. Give it another try with the whole 31887 # argument. 31888 path="$complete" 31889 arguments="EOL" 31890 new_path=`$CYGPATH -u "$path"` 31891 new_path=`$WHICH "$new_path" 2> /dev/null` 31892 # bat and cmd files are not always considered executable in cygwin causing which 31893 # to not find them 31894 if test "x$new_path" = x \ 31895 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31896 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31897 new_path=`$CYGPATH -u "$path"` 31898 fi 31899 if test "x$new_path" = x; then 31900 # It's still not found. Now this is an unrecoverable error. 31901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31902 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31903 has_space=`$ECHO "$complete" | $GREP " "` 31904 if test "x$has_space" != x; then 31905 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31906 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31907 fi 31908 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31909 fi 31910 fi 31911 31912 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31913 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31914 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31915 # "foo.exe" is OK but "foo" is an error. 31916 # 31917 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31918 # It is also a way to make sure we got the proper file name for the real test later on. 31919 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31920 if test "x$test_shortpath" = x; then 31921 # Short path failed, file does not exist as specified. 31922 # Try adding .exe or .cmd 31923 if test -f "${new_path}.exe"; then 31924 input_to_shortpath="${new_path}.exe" 31925 elif test -f "${new_path}.cmd"; then 31926 input_to_shortpath="${new_path}.cmd" 31927 else 31928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31929 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31930 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31931 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31932 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31933 fi 31934 else 31935 input_to_shortpath="$new_path" 31936 fi 31937 31938 # Call helper function which possibly converts this using DOS-style short mode. 31939 # If so, the updated path is stored in $new_path. 31940 new_path="$input_to_shortpath" 31941 31942 input_path="$input_to_shortpath" 31943 # Check if we need to convert this using DOS-style short mode. If the path 31944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31945 # take no chances and rewrite it. 31946 # Note: m4 eats our [], so we need to use [ and ] instead. 31947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31948 if test "x$has_forbidden_chars" != x; then 31949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31953 # Going to short mode and back again did indeed matter. Since short mode is 31954 # case insensitive, let's make it lowercase to improve readability. 31955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31956 # Now convert it back to Unix-style (cygpath) 31957 input_path=`$CYGPATH -u "$shortmode_path"` 31958 new_path="$input_path" 31959 fi 31960 fi 31961 31962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31963 if test "x$test_cygdrive_prefix" = x; then 31964 # As a simple fix, exclude /usr/bin since it's not a real path. 31965 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31967 # a path prefixed by /cygdrive for fixpath to work. 31968 new_path="$CYGWIN_ROOT_PATH$input_path" 31969 fi 31970 fi 31971 31972 # remove trailing .exe if any 31973 new_path="${new_path/%.exe/}" 31974 31975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31976 31977 # First separate the path from the arguments. This will split at the first 31978 # space. 31979 complete="$CPP" 31980 path="${complete%% *}" 31981 tmp="$complete EOL" 31982 arguments="${tmp#* }" 31983 31984 # Input might be given as Windows format, start by converting to 31985 # unix format. 31986 new_path="$path" 31987 31988 windows_path="$new_path" 31989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31990 unix_path=`$CYGPATH -u "$windows_path"` 31991 new_path="$unix_path" 31992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31994 new_path="$unix_path" 31995 fi 31996 31997 31998 # Now try to locate executable using which 31999 new_path=`$WHICH "$new_path" 2> /dev/null` 32000 32001 if test "x$new_path" = x; then 32002 # Oops. Which didn't find the executable. 32003 # The splitting of arguments from the executable at a space might have been incorrect, 32004 # since paths with space are more likely in Windows. Give it another try with the whole 32005 # argument. 32006 path="$complete" 32007 arguments="EOL" 32008 new_path="$path" 32009 32010 windows_path="$new_path" 32011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32012 unix_path=`$CYGPATH -u "$windows_path"` 32013 new_path="$unix_path" 32014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32016 new_path="$unix_path" 32017 fi 32018 32019 32020 new_path=`$WHICH "$new_path" 2> /dev/null` 32021 # bat and cmd files are not always considered executable in MSYS causing which 32022 # to not find them 32023 if test "x$new_path" = x \ 32024 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32025 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32026 new_path="$path" 32027 32028 windows_path="$new_path" 32029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32030 unix_path=`$CYGPATH -u "$windows_path"` 32031 new_path="$unix_path" 32032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32033 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32034 new_path="$unix_path" 32035 fi 32036 32037 fi 32038 32039 if test "x$new_path" = x; then 32040 # It's still not found. Now this is an unrecoverable error. 32041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 32042 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 32043 has_space=`$ECHO "$complete" | $GREP " "` 32044 if test "x$has_space" != x; then 32045 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32046 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32047 fi 32048 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32049 fi 32050 fi 32051 32052 # Now new_path has a complete unix path to the binary 32053 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32054 # Keep paths in /bin as-is, but remove trailing .exe if any 32055 new_path="${new_path/%.exe/}" 32056 # Do not save /bin paths to all_fixpath_prefixes! 32057 else 32058 # Not in mixed or Windows style, start by that. 32059 new_path=`cmd //c echo $new_path` 32060 32061 input_path="$new_path" 32062 # Check if we need to convert this using DOS-style short mode. If the path 32063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32064 # take no chances and rewrite it. 32065 # Note: m4 eats our [], so we need to use [ and ] instead. 32066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32067 if test "x$has_forbidden_chars" != x; then 32068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32069 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32070 fi 32071 32072 # Output is in $new_path 32073 32074 windows_path="$new_path" 32075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32076 unix_path=`$CYGPATH -u "$windows_path"` 32077 new_path="$unix_path" 32078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32079 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32080 new_path="$unix_path" 32081 fi 32082 32083 # remove trailing .exe if any 32084 new_path="${new_path/%.exe/}" 32085 32086 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32087 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32088 fi 32089 32090 else 32091 # We're on a unix platform. Hooray! :) 32092 # First separate the path from the arguments. This will split at the first 32093 # space. 32094 complete="$CPP" 32095 path="${complete%% *}" 32096 tmp="$complete EOL" 32097 arguments="${tmp#* }" 32098 32099 # Cannot rely on the command "which" here since it doesn't always work. 32100 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32101 if test -z "$is_absolute_path"; then 32102 # Path to executable is not absolute. Find it. 32103 IFS_save="$IFS" 32104 IFS=: 32105 for p in $PATH; do 32106 if test -f "$p/$path" && test -x "$p/$path"; then 32107 new_path="$p/$path" 32108 break 32109 fi 32110 done 32111 IFS="$IFS_save" 32112 else 32113 # This is an absolute path, we can use it without further modifications. 32114 new_path="$path" 32115 fi 32116 32117 if test "x$new_path" = x; then 32118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 32119 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 32120 has_space=`$ECHO "$complete" | $GREP " "` 32121 if test "x$has_space" != x; then 32122 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32123 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32124 fi 32125 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32126 fi 32127 fi 32128 32129 # Now join together the path and the arguments once again 32130 if test "x$arguments" != xEOL; then 32131 new_complete="$new_path ${arguments% *}" 32132 else 32133 new_complete="$new_path" 32134 fi 32135 32136 if test "x$complete" != "x$new_complete"; then 32137 CPP="$new_complete" 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 32139 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 32140 fi 32141 fi 32142 32143 ac_ext=cpp 32144 ac_cpp='$CXXCPP $CPPFLAGS' 32145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 32149 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 32150 if test -z "$CXXCPP"; then 32151 if ${ac_cv_prog_CXXCPP+:} false; then : 32152 $as_echo_n "(cached) " >&6 32153 else 32154 # Double quotes because CXXCPP needs to be expanded 32155 for CXXCPP in "$CXX -E" "/lib/cpp" 32156 do 32157 ac_preproc_ok=false 32158 for ac_cxx_preproc_warn_flag in '' yes 32159 do 32160 # Use a header file that comes with gcc, so configuring glibc 32161 # with a fresh cross-compiler works. 32162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32163 # <limits.h> exists even on freestanding compilers. 32164 # On the NeXT, cc -E runs the code through the compiler's parser, 32165 # not just through cpp. "Syntax error" is here to catch this case. 32166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32167 /* end confdefs.h. */ 32168 #ifdef __STDC__ 32169 # include <limits.h> 32170 #else 32171 # include <assert.h> 32172 #endif 32173 Syntax error 32174 _ACEOF 32175 if ac_fn_cxx_try_cpp "$LINENO"; then : 32176 32177 else 32178 # Broken: fails on valid input. 32179 continue 32180 fi 32181 rm -f conftest.err conftest.i conftest.$ac_ext 32182 32183 # OK, works on sane cases. Now check whether nonexistent headers 32184 # can be detected and how. 32185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32186 /* end confdefs.h. */ 32187 #include <ac_nonexistent.h> 32188 _ACEOF 32189 if ac_fn_cxx_try_cpp "$LINENO"; then : 32190 # Broken: success on invalid input. 32191 continue 32192 else 32193 # Passes both tests. 32194 ac_preproc_ok=: 32195 break 32196 fi 32197 rm -f conftest.err conftest.i conftest.$ac_ext 32198 32199 done 32200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32201 rm -f conftest.i conftest.err conftest.$ac_ext 32202 if $ac_preproc_ok; then : 32203 break 32204 fi 32205 32206 done 32207 ac_cv_prog_CXXCPP=$CXXCPP 32208 32209 fi 32210 CXXCPP=$ac_cv_prog_CXXCPP 32211 else 32212 ac_cv_prog_CXXCPP=$CXXCPP 32213 fi 32214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 32215 $as_echo "$CXXCPP" >&6; } 32216 ac_preproc_ok=false 32217 for ac_cxx_preproc_warn_flag in '' yes 32218 do 32219 # Use a header file that comes with gcc, so configuring glibc 32220 # with a fresh cross-compiler works. 32221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32222 # <limits.h> exists even on freestanding compilers. 32223 # On the NeXT, cc -E runs the code through the compiler's parser, 32224 # not just through cpp. "Syntax error" is here to catch this case. 32225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32226 /* end confdefs.h. */ 32227 #ifdef __STDC__ 32228 # include <limits.h> 32229 #else 32230 # include <assert.h> 32231 #endif 32232 Syntax error 32233 _ACEOF 32234 if ac_fn_cxx_try_cpp "$LINENO"; then : 32235 32236 else 32237 # Broken: fails on valid input. 32238 continue 32239 fi 32240 rm -f conftest.err conftest.i conftest.$ac_ext 32241 32242 # OK, works on sane cases. Now check whether nonexistent headers 32243 # can be detected and how. 32244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32245 /* end confdefs.h. */ 32246 #include <ac_nonexistent.h> 32247 _ACEOF 32248 if ac_fn_cxx_try_cpp "$LINENO"; then : 32249 # Broken: success on invalid input. 32250 continue 32251 else 32252 # Passes both tests. 32253 ac_preproc_ok=: 32254 break 32255 fi 32256 rm -f conftest.err conftest.i conftest.$ac_ext 32257 32258 done 32259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32260 rm -f conftest.i conftest.err conftest.$ac_ext 32261 if $ac_preproc_ok; then : 32262 32263 else 32264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32266 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 32267 See \`config.log' for more details" "$LINENO" 5; } 32268 fi 32269 32270 ac_ext=cpp 32271 ac_cpp='$CXXCPP $CPPFLAGS' 32272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32275 32276 32277 # Only process if variable expands to non-empty 32278 32279 if test "x$CXXCPP" != x; then 32280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32281 32282 # First separate the path from the arguments. This will split at the first 32283 # space. 32284 complete="$CXXCPP" 32285 path="${complete%% *}" 32286 tmp="$complete EOL" 32287 arguments="${tmp#* }" 32288 32289 # Input might be given as Windows format, start by converting to 32290 # unix format. 32291 new_path=`$CYGPATH -u "$path"` 32292 32293 # Now try to locate executable using which 32294 new_path=`$WHICH "$new_path" 2> /dev/null` 32295 # bat and cmd files are not always considered executable in cygwin causing which 32296 # to not find them 32297 if test "x$new_path" = x \ 32298 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32299 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32300 new_path=`$CYGPATH -u "$path"` 32301 fi 32302 if test "x$new_path" = x; then 32303 # Oops. Which didn't find the executable. 32304 # The splitting of arguments from the executable at a space might have been incorrect, 32305 # since paths with space are more likely in Windows. Give it another try with the whole 32306 # argument. 32307 path="$complete" 32308 arguments="EOL" 32309 new_path=`$CYGPATH -u "$path"` 32310 new_path=`$WHICH "$new_path" 2> /dev/null` 32311 # bat and cmd files are not always considered executable in cygwin causing which 32312 # to not find them 32313 if test "x$new_path" = x \ 32314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32316 new_path=`$CYGPATH -u "$path"` 32317 fi 32318 if test "x$new_path" = x; then 32319 # It's still not found. Now this is an unrecoverable error. 32320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32321 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32322 has_space=`$ECHO "$complete" | $GREP " "` 32323 if test "x$has_space" != x; then 32324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32326 fi 32327 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32328 fi 32329 fi 32330 32331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32334 # "foo.exe" is OK but "foo" is an error. 32335 # 32336 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32337 # It is also a way to make sure we got the proper file name for the real test later on. 32338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32339 if test "x$test_shortpath" = x; then 32340 # Short path failed, file does not exist as specified. 32341 # Try adding .exe or .cmd 32342 if test -f "${new_path}.exe"; then 32343 input_to_shortpath="${new_path}.exe" 32344 elif test -f "${new_path}.cmd"; then 32345 input_to_shortpath="${new_path}.cmd" 32346 else 32347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 32348 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 32349 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32351 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32352 fi 32353 else 32354 input_to_shortpath="$new_path" 32355 fi 32356 32357 # Call helper function which possibly converts this using DOS-style short mode. 32358 # If so, the updated path is stored in $new_path. 32359 new_path="$input_to_shortpath" 32360 32361 input_path="$input_to_shortpath" 32362 # Check if we need to convert this using DOS-style short mode. If the path 32363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32364 # take no chances and rewrite it. 32365 # Note: m4 eats our [], so we need to use [ and ] instead. 32366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32367 if test "x$has_forbidden_chars" != x; then 32368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32372 # Going to short mode and back again did indeed matter. Since short mode is 32373 # case insensitive, let's make it lowercase to improve readability. 32374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32375 # Now convert it back to Unix-style (cygpath) 32376 input_path=`$CYGPATH -u "$shortmode_path"` 32377 new_path="$input_path" 32378 fi 32379 fi 32380 32381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32382 if test "x$test_cygdrive_prefix" = x; then 32383 # As a simple fix, exclude /usr/bin since it's not a real path. 32384 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32386 # a path prefixed by /cygdrive for fixpath to work. 32387 new_path="$CYGWIN_ROOT_PATH$input_path" 32388 fi 32389 fi 32390 32391 # remove trailing .exe if any 32392 new_path="${new_path/%.exe/}" 32393 32394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32395 32396 # First separate the path from the arguments. This will split at the first 32397 # space. 32398 complete="$CXXCPP" 32399 path="${complete%% *}" 32400 tmp="$complete EOL" 32401 arguments="${tmp#* }" 32402 32403 # Input might be given as Windows format, start by converting to 32404 # unix format. 32405 new_path="$path" 32406 32407 windows_path="$new_path" 32408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32409 unix_path=`$CYGPATH -u "$windows_path"` 32410 new_path="$unix_path" 32411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32413 new_path="$unix_path" 32414 fi 32415 32416 32417 # Now try to locate executable using which 32418 new_path=`$WHICH "$new_path" 2> /dev/null` 32419 32420 if test "x$new_path" = x; then 32421 # Oops. Which didn't find the executable. 32422 # The splitting of arguments from the executable at a space might have been incorrect, 32423 # since paths with space are more likely in Windows. Give it another try with the whole 32424 # argument. 32425 path="$complete" 32426 arguments="EOL" 32427 new_path="$path" 32428 32429 windows_path="$new_path" 32430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32431 unix_path=`$CYGPATH -u "$windows_path"` 32432 new_path="$unix_path" 32433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32435 new_path="$unix_path" 32436 fi 32437 32438 32439 new_path=`$WHICH "$new_path" 2> /dev/null` 32440 # bat and cmd files are not always considered executable in MSYS causing which 32441 # to not find them 32442 if test "x$new_path" = x \ 32443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32445 new_path="$path" 32446 32447 windows_path="$new_path" 32448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32449 unix_path=`$CYGPATH -u "$windows_path"` 32450 new_path="$unix_path" 32451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32453 new_path="$unix_path" 32454 fi 32455 32456 fi 32457 32458 if test "x$new_path" = x; then 32459 # It's still not found. Now this is an unrecoverable error. 32460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32461 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32462 has_space=`$ECHO "$complete" | $GREP " "` 32463 if test "x$has_space" != x; then 32464 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32465 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32466 fi 32467 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32468 fi 32469 fi 32470 32471 # Now new_path has a complete unix path to the binary 32472 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32473 # Keep paths in /bin as-is, but remove trailing .exe if any 32474 new_path="${new_path/%.exe/}" 32475 # Do not save /bin paths to all_fixpath_prefixes! 32476 else 32477 # Not in mixed or Windows style, start by that. 32478 new_path=`cmd //c echo $new_path` 32479 32480 input_path="$new_path" 32481 # Check if we need to convert this using DOS-style short mode. If the path 32482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32483 # take no chances and rewrite it. 32484 # Note: m4 eats our [], so we need to use [ and ] instead. 32485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32486 if test "x$has_forbidden_chars" != x; then 32487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32489 fi 32490 32491 # Output is in $new_path 32492 32493 windows_path="$new_path" 32494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32495 unix_path=`$CYGPATH -u "$windows_path"` 32496 new_path="$unix_path" 32497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32499 new_path="$unix_path" 32500 fi 32501 32502 # remove trailing .exe if any 32503 new_path="${new_path/%.exe/}" 32504 32505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32507 fi 32508 32509 else 32510 # We're on a unix platform. Hooray! :) 32511 # First separate the path from the arguments. This will split at the first 32512 # space. 32513 complete="$CXXCPP" 32514 path="${complete%% *}" 32515 tmp="$complete EOL" 32516 arguments="${tmp#* }" 32517 32518 # Cannot rely on the command "which" here since it doesn't always work. 32519 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32520 if test -z "$is_absolute_path"; then 32521 # Path to executable is not absolute. Find it. 32522 IFS_save="$IFS" 32523 IFS=: 32524 for p in $PATH; do 32525 if test -f "$p/$path" && test -x "$p/$path"; then 32526 new_path="$p/$path" 32527 break 32528 fi 32529 done 32530 IFS="$IFS_save" 32531 else 32532 # This is an absolute path, we can use it without further modifications. 32533 new_path="$path" 32534 fi 32535 32536 if test "x$new_path" = x; then 32537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32538 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32539 has_space=`$ECHO "$complete" | $GREP " "` 32540 if test "x$has_space" != x; then 32541 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32542 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32543 fi 32544 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32545 fi 32546 fi 32547 32548 # Now join together the path and the arguments once again 32549 if test "x$arguments" != xEOL; then 32550 new_complete="$new_path ${arguments% *}" 32551 else 32552 new_complete="$new_path" 32553 fi 32554 32555 if test "x$complete" != "x$new_complete"; then 32556 CXXCPP="$new_complete" 32557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32558 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32559 fi 32560 fi 32561 32562 32563 # 32564 # Setup the linker (LD) 32565 # 32566 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32567 # In the Microsoft toolchain we have a separate LD command "link". 32568 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32569 # a cygwin program for something completely different. 32570 # Extract the first word of "link", so it can be a program name with args. 32571 set dummy link; ac_word=$2 32572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32573 $as_echo_n "checking for $ac_word... " >&6; } 32574 if ${ac_cv_prog_LD+:} false; then : 32575 $as_echo_n "(cached) " >&6 32576 else 32577 if test -n "$LD"; then 32578 ac_cv_prog_LD="$LD" # Let the user override the test. 32579 else 32580 ac_prog_rejected=no 32581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32582 for as_dir in $PATH 32583 do 32584 IFS=$as_save_IFS 32585 test -z "$as_dir" && as_dir=. 32586 for ac_exec_ext in '' $ac_executable_extensions; do 32587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32588 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32589 ac_prog_rejected=yes 32590 continue 32591 fi 32592 ac_cv_prog_LD="link" 32593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32594 break 2 32595 fi 32596 done 32597 done 32598 IFS=$as_save_IFS 32599 32600 if test $ac_prog_rejected = yes; then 32601 # We found a bogon in the path, so make sure we never use it. 32602 set dummy $ac_cv_prog_LD 32603 shift 32604 if test $# != 0; then 32605 # We chose a different compiler from the bogus one. 32606 # However, it has the same basename, so the bogon will be chosen 32607 # first if we set LD to just the basename; use the full file name. 32608 shift 32609 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 32610 fi 32611 fi 32612 fi 32613 fi 32614 LD=$ac_cv_prog_LD 32615 if test -n "$LD"; then 32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 32617 $as_echo "$LD" >&6; } 32618 else 32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32620 $as_echo "no" >&6; } 32621 fi 32622 32623 32624 32625 # Only process if variable expands to non-empty 32626 32627 if test "x$LD" != x; then 32628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32629 32630 # First separate the path from the arguments. This will split at the first 32631 # space. 32632 complete="$LD" 32633 path="${complete%% *}" 32634 tmp="$complete EOL" 32635 arguments="${tmp#* }" 32636 32637 # Input might be given as Windows format, start by converting to 32638 # unix format. 32639 new_path=`$CYGPATH -u "$path"` 32640 32641 # Now try to locate executable using which 32642 new_path=`$WHICH "$new_path" 2> /dev/null` 32643 # bat and cmd files are not always considered executable in cygwin causing which 32644 # to not find them 32645 if test "x$new_path" = x \ 32646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32648 new_path=`$CYGPATH -u "$path"` 32649 fi 32650 if test "x$new_path" = x; then 32651 # Oops. Which didn't find the executable. 32652 # The splitting of arguments from the executable at a space might have been incorrect, 32653 # since paths with space are more likely in Windows. Give it another try with the whole 32654 # argument. 32655 path="$complete" 32656 arguments="EOL" 32657 new_path=`$CYGPATH -u "$path"` 32658 new_path=`$WHICH "$new_path" 2> /dev/null` 32659 # bat and cmd files are not always considered executable in cygwin causing which 32660 # to not find them 32661 if test "x$new_path" = x \ 32662 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32663 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32664 new_path=`$CYGPATH -u "$path"` 32665 fi 32666 if test "x$new_path" = x; then 32667 # It's still not found. Now this is an unrecoverable error. 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32669 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32670 has_space=`$ECHO "$complete" | $GREP " "` 32671 if test "x$has_space" != x; then 32672 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32674 fi 32675 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32676 fi 32677 fi 32678 32679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32682 # "foo.exe" is OK but "foo" is an error. 32683 # 32684 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32685 # It is also a way to make sure we got the proper file name for the real test later on. 32686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32687 if test "x$test_shortpath" = x; then 32688 # Short path failed, file does not exist as specified. 32689 # Try adding .exe or .cmd 32690 if test -f "${new_path}.exe"; then 32691 input_to_shortpath="${new_path}.exe" 32692 elif test -f "${new_path}.cmd"; then 32693 input_to_shortpath="${new_path}.cmd" 32694 else 32695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 32696 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 32697 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32698 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32699 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32700 fi 32701 else 32702 input_to_shortpath="$new_path" 32703 fi 32704 32705 # Call helper function which possibly converts this using DOS-style short mode. 32706 # If so, the updated path is stored in $new_path. 32707 new_path="$input_to_shortpath" 32708 32709 input_path="$input_to_shortpath" 32710 # Check if we need to convert this using DOS-style short mode. If the path 32711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32712 # take no chances and rewrite it. 32713 # Note: m4 eats our [], so we need to use [ and ] instead. 32714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32715 if test "x$has_forbidden_chars" != x; then 32716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32717 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32718 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32719 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32720 # Going to short mode and back again did indeed matter. Since short mode is 32721 # case insensitive, let's make it lowercase to improve readability. 32722 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32723 # Now convert it back to Unix-style (cygpath) 32724 input_path=`$CYGPATH -u "$shortmode_path"` 32725 new_path="$input_path" 32726 fi 32727 fi 32728 32729 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32730 if test "x$test_cygdrive_prefix" = x; then 32731 # As a simple fix, exclude /usr/bin since it's not a real path. 32732 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32733 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32734 # a path prefixed by /cygdrive for fixpath to work. 32735 new_path="$CYGWIN_ROOT_PATH$input_path" 32736 fi 32737 fi 32738 32739 # remove trailing .exe if any 32740 new_path="${new_path/%.exe/}" 32741 32742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32743 32744 # First separate the path from the arguments. This will split at the first 32745 # space. 32746 complete="$LD" 32747 path="${complete%% *}" 32748 tmp="$complete EOL" 32749 arguments="${tmp#* }" 32750 32751 # Input might be given as Windows format, start by converting to 32752 # unix format. 32753 new_path="$path" 32754 32755 windows_path="$new_path" 32756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32757 unix_path=`$CYGPATH -u "$windows_path"` 32758 new_path="$unix_path" 32759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32761 new_path="$unix_path" 32762 fi 32763 32764 32765 # Now try to locate executable using which 32766 new_path=`$WHICH "$new_path" 2> /dev/null` 32767 32768 if test "x$new_path" = x; then 32769 # Oops. Which didn't find the executable. 32770 # The splitting of arguments from the executable at a space might have been incorrect, 32771 # since paths with space are more likely in Windows. Give it another try with the whole 32772 # argument. 32773 path="$complete" 32774 arguments="EOL" 32775 new_path="$path" 32776 32777 windows_path="$new_path" 32778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32779 unix_path=`$CYGPATH -u "$windows_path"` 32780 new_path="$unix_path" 32781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32783 new_path="$unix_path" 32784 fi 32785 32786 32787 new_path=`$WHICH "$new_path" 2> /dev/null` 32788 # bat and cmd files are not always considered executable in MSYS causing which 32789 # to not find them 32790 if test "x$new_path" = x \ 32791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32793 new_path="$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 fi 32805 32806 if test "x$new_path" = x; then 32807 # It's still not found. Now this is an unrecoverable error. 32808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32809 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32810 has_space=`$ECHO "$complete" | $GREP " "` 32811 if test "x$has_space" != x; then 32812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32814 fi 32815 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32816 fi 32817 fi 32818 32819 # Now new_path has a complete unix path to the binary 32820 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32821 # Keep paths in /bin as-is, but remove trailing .exe if any 32822 new_path="${new_path/%.exe/}" 32823 # Do not save /bin paths to all_fixpath_prefixes! 32824 else 32825 # Not in mixed or Windows style, start by that. 32826 new_path=`cmd //c echo $new_path` 32827 32828 input_path="$new_path" 32829 # Check if we need to convert this using DOS-style short mode. If the path 32830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32831 # take no chances and rewrite it. 32832 # Note: m4 eats our [], so we need to use [ and ] instead. 32833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32834 if test "x$has_forbidden_chars" != x; then 32835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32836 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32837 fi 32838 32839 # Output is in $new_path 32840 32841 windows_path="$new_path" 32842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32843 unix_path=`$CYGPATH -u "$windows_path"` 32844 new_path="$unix_path" 32845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32847 new_path="$unix_path" 32848 fi 32849 32850 # remove trailing .exe if any 32851 new_path="${new_path/%.exe/}" 32852 32853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32855 fi 32856 32857 else 32858 # We're on a unix platform. Hooray! :) 32859 # First separate the path from the arguments. This will split at the first 32860 # space. 32861 complete="$LD" 32862 path="${complete%% *}" 32863 tmp="$complete EOL" 32864 arguments="${tmp#* }" 32865 32866 # Cannot rely on the command "which" here since it doesn't always work. 32867 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32868 if test -z "$is_absolute_path"; then 32869 # Path to executable is not absolute. Find it. 32870 IFS_save="$IFS" 32871 IFS=: 32872 for p in $PATH; do 32873 if test -f "$p/$path" && test -x "$p/$path"; then 32874 new_path="$p/$path" 32875 break 32876 fi 32877 done 32878 IFS="$IFS_save" 32879 else 32880 # This is an absolute path, we can use it without further modifications. 32881 new_path="$path" 32882 fi 32883 32884 if test "x$new_path" = x; then 32885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32886 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32887 has_space=`$ECHO "$complete" | $GREP " "` 32888 if test "x$has_space" != x; then 32889 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32890 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32891 fi 32892 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32893 fi 32894 fi 32895 32896 # Now join together the path and the arguments once again 32897 if test "x$arguments" != xEOL; then 32898 new_complete="$new_path ${arguments% *}" 32899 else 32900 new_complete="$new_path" 32901 fi 32902 32903 if test "x$complete" != "x$new_complete"; then 32904 LD="$new_complete" 32905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32906 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32907 fi 32908 fi 32909 32910 # Verify that we indeed succeeded with this trick. 32911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32912 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32913 "$LD" --version > /dev/null 32914 if test $? -eq 0 ; then 32915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32916 $as_echo "no" >&6; } 32917 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32918 else 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32920 $as_echo "yes" >&6; } 32921 fi 32922 LDCXX="$LD" 32923 else 32924 # All other toolchains use the compiler to link. 32925 LD="$CC" 32926 LDCXX="$CXX" 32927 fi 32928 32929 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32930 32931 32932 # 32933 # Setup the assembler (AS) 32934 # 32935 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32936 # FIXME: should this really be solaris, or solstudio? 32937 32938 32939 # Publish this variable in the help. 32940 32941 32942 if test "x$AS" = x; then 32943 # The variable is not set by user, try to locate tool using the code snippet 32944 for ac_prog in as 32945 do 32946 # Extract the first word of "$ac_prog", so it can be a program name with args. 32947 set dummy $ac_prog; ac_word=$2 32948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32949 $as_echo_n "checking for $ac_word... " >&6; } 32950 if ${ac_cv_path_AS+:} false; then : 32951 $as_echo_n "(cached) " >&6 32952 else 32953 case $AS in 32954 [\\/]* | ?:[\\/]*) 32955 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32956 ;; 32957 *) 32958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32959 for as_dir in $PATH 32960 do 32961 IFS=$as_save_IFS 32962 test -z "$as_dir" && as_dir=. 32963 for ac_exec_ext in '' $ac_executable_extensions; do 32964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32965 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32967 break 2 32968 fi 32969 done 32970 done 32971 IFS=$as_save_IFS 32972 32973 ;; 32974 esac 32975 fi 32976 AS=$ac_cv_path_AS 32977 if test -n "$AS"; then 32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32979 $as_echo "$AS" >&6; } 32980 else 32981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32982 $as_echo "no" >&6; } 32983 fi 32984 32985 32986 test -n "$AS" && break 32987 done 32988 32989 else 32990 # The variable is set, but is it from the command line or the environment? 32991 32992 # Try to remove the string !AS! from our list. 32993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32995 # If it failed, the variable was not from the command line. Ignore it, 32996 # but warn the user (except for BASH, which is always set by the calling BASH). 32997 if test "xAS" != xBASH; then 32998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32999 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 33000 fi 33001 # Try to locate tool using the code snippet 33002 for ac_prog in as 33003 do 33004 # Extract the first word of "$ac_prog", so it can be a program name with args. 33005 set dummy $ac_prog; ac_word=$2 33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33007 $as_echo_n "checking for $ac_word... " >&6; } 33008 if ${ac_cv_path_AS+:} false; then : 33009 $as_echo_n "(cached) " >&6 33010 else 33011 case $AS in 33012 [\\/]* | ?:[\\/]*) 33013 ac_cv_path_AS="$AS" # Let the user override the test with a path. 33014 ;; 33015 *) 33016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33017 for as_dir in $PATH 33018 do 33019 IFS=$as_save_IFS 33020 test -z "$as_dir" && as_dir=. 33021 for ac_exec_ext in '' $ac_executable_extensions; do 33022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33023 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 33024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33025 break 2 33026 fi 33027 done 33028 done 33029 IFS=$as_save_IFS 33030 33031 ;; 33032 esac 33033 fi 33034 AS=$ac_cv_path_AS 33035 if test -n "$AS"; then 33036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 33037 $as_echo "$AS" >&6; } 33038 else 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33040 $as_echo "no" >&6; } 33041 fi 33042 33043 33044 test -n "$AS" && break 33045 done 33046 33047 else 33048 # If it succeeded, then it was overridden by the user. We will use it 33049 # for the tool. 33050 33051 # First remove it from the list of overridden variables, so we can test 33052 # for unknown variables in the end. 33053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33054 33055 # Check if the provided tool contains a complete path. 33056 tool_specified="$AS" 33057 tool_basename="${tool_specified##*/}" 33058 if test "x$tool_basename" = "x$tool_specified"; then 33059 # A command without a complete path is provided, search $PATH. 33060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 33061 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 33062 # Extract the first word of "$tool_basename", so it can be a program name with args. 33063 set dummy $tool_basename; ac_word=$2 33064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33065 $as_echo_n "checking for $ac_word... " >&6; } 33066 if ${ac_cv_path_AS+:} false; then : 33067 $as_echo_n "(cached) " >&6 33068 else 33069 case $AS in 33070 [\\/]* | ?:[\\/]*) 33071 ac_cv_path_AS="$AS" # Let the user override the test with a path. 33072 ;; 33073 *) 33074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33075 for as_dir in $PATH 33076 do 33077 IFS=$as_save_IFS 33078 test -z "$as_dir" && as_dir=. 33079 for ac_exec_ext in '' $ac_executable_extensions; do 33080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33081 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 33082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33083 break 2 33084 fi 33085 done 33086 done 33087 IFS=$as_save_IFS 33088 33089 ;; 33090 esac 33091 fi 33092 AS=$ac_cv_path_AS 33093 if test -n "$AS"; then 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 33095 $as_echo "$AS" >&6; } 33096 else 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33098 $as_echo "no" >&6; } 33099 fi 33100 33101 33102 if test "x$AS" = x; then 33103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33104 fi 33105 else 33106 # Otherwise we believe it is a complete path. Use it as it is. 33107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 33108 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 33110 $as_echo_n "checking for AS... " >&6; } 33111 if test ! -x "$tool_specified"; then 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33113 $as_echo "not found" >&6; } 33114 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 33115 fi 33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33117 $as_echo "$tool_specified" >&6; } 33118 fi 33119 fi 33120 fi 33121 33122 33123 33124 # Only process if variable expands to non-empty 33125 33126 if test "x$AS" != x; then 33127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33128 33129 # First separate the path from the arguments. This will split at the first 33130 # space. 33131 complete="$AS" 33132 path="${complete%% *}" 33133 tmp="$complete EOL" 33134 arguments="${tmp#* }" 33135 33136 # Input might be given as Windows format, start by converting to 33137 # unix format. 33138 new_path=`$CYGPATH -u "$path"` 33139 33140 # Now try to locate executable using which 33141 new_path=`$WHICH "$new_path" 2> /dev/null` 33142 # bat and cmd files are not always considered executable in cygwin causing which 33143 # to not find them 33144 if test "x$new_path" = x \ 33145 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33146 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33147 new_path=`$CYGPATH -u "$path"` 33148 fi 33149 if test "x$new_path" = x; then 33150 # Oops. Which didn't find the executable. 33151 # The splitting of arguments from the executable at a space might have been incorrect, 33152 # since paths with space are more likely in Windows. Give it another try with the whole 33153 # argument. 33154 path="$complete" 33155 arguments="EOL" 33156 new_path=`$CYGPATH -u "$path"` 33157 new_path=`$WHICH "$new_path" 2> /dev/null` 33158 # bat and cmd files are not always considered executable in cygwin causing which 33159 # to not find them 33160 if test "x$new_path" = x \ 33161 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33162 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33163 new_path=`$CYGPATH -u "$path"` 33164 fi 33165 if test "x$new_path" = x; then 33166 # It's still not found. Now this is an unrecoverable error. 33167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33168 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33169 has_space=`$ECHO "$complete" | $GREP " "` 33170 if test "x$has_space" != x; then 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33173 fi 33174 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33175 fi 33176 fi 33177 33178 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33179 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33180 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33181 # "foo.exe" is OK but "foo" is an error. 33182 # 33183 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33184 # It is also a way to make sure we got the proper file name for the real test later on. 33185 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33186 if test "x$test_shortpath" = x; then 33187 # Short path failed, file does not exist as specified. 33188 # Try adding .exe or .cmd 33189 if test -f "${new_path}.exe"; then 33190 input_to_shortpath="${new_path}.exe" 33191 elif test -f "${new_path}.cmd"; then 33192 input_to_shortpath="${new_path}.cmd" 33193 else 33194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 33195 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 33196 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33197 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33198 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33199 fi 33200 else 33201 input_to_shortpath="$new_path" 33202 fi 33203 33204 # Call helper function which possibly converts this using DOS-style short mode. 33205 # If so, the updated path is stored in $new_path. 33206 new_path="$input_to_shortpath" 33207 33208 input_path="$input_to_shortpath" 33209 # Check if we need to convert this using DOS-style short mode. If the path 33210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33211 # take no chances and rewrite it. 33212 # Note: m4 eats our [], so we need to use [ and ] instead. 33213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33214 if test "x$has_forbidden_chars" != x; then 33215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33216 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33217 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33218 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33219 # Going to short mode and back again did indeed matter. Since short mode is 33220 # case insensitive, let's make it lowercase to improve readability. 33221 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33222 # Now convert it back to Unix-style (cygpath) 33223 input_path=`$CYGPATH -u "$shortmode_path"` 33224 new_path="$input_path" 33225 fi 33226 fi 33227 33228 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33229 if test "x$test_cygdrive_prefix" = x; then 33230 # As a simple fix, exclude /usr/bin since it's not a real path. 33231 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33232 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33233 # a path prefixed by /cygdrive for fixpath to work. 33234 new_path="$CYGWIN_ROOT_PATH$input_path" 33235 fi 33236 fi 33237 33238 # remove trailing .exe if any 33239 new_path="${new_path/%.exe/}" 33240 33241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33242 33243 # First separate the path from the arguments. This will split at the first 33244 # space. 33245 complete="$AS" 33246 path="${complete%% *}" 33247 tmp="$complete EOL" 33248 arguments="${tmp#* }" 33249 33250 # Input might be given as Windows format, start by converting to 33251 # unix format. 33252 new_path="$path" 33253 33254 windows_path="$new_path" 33255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33256 unix_path=`$CYGPATH -u "$windows_path"` 33257 new_path="$unix_path" 33258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33260 new_path="$unix_path" 33261 fi 33262 33263 33264 # Now try to locate executable using which 33265 new_path=`$WHICH "$new_path" 2> /dev/null` 33266 33267 if test "x$new_path" = x; then 33268 # Oops. Which didn't find the executable. 33269 # The splitting of arguments from the executable at a space might have been incorrect, 33270 # since paths with space are more likely in Windows. Give it another try with the whole 33271 # argument. 33272 path="$complete" 33273 arguments="EOL" 33274 new_path="$path" 33275 33276 windows_path="$new_path" 33277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33278 unix_path=`$CYGPATH -u "$windows_path"` 33279 new_path="$unix_path" 33280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33282 new_path="$unix_path" 33283 fi 33284 33285 33286 new_path=`$WHICH "$new_path" 2> /dev/null` 33287 # bat and cmd files are not always considered executable in MSYS causing which 33288 # to not find them 33289 if test "x$new_path" = x \ 33290 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33291 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33292 new_path="$path" 33293 33294 windows_path="$new_path" 33295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33296 unix_path=`$CYGPATH -u "$windows_path"` 33297 new_path="$unix_path" 33298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33300 new_path="$unix_path" 33301 fi 33302 33303 fi 33304 33305 if test "x$new_path" = x; then 33306 # It's still not found. Now this is an unrecoverable error. 33307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33308 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33309 has_space=`$ECHO "$complete" | $GREP " "` 33310 if test "x$has_space" != x; then 33311 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33312 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33313 fi 33314 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33315 fi 33316 fi 33317 33318 # Now new_path has a complete unix path to the binary 33319 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33320 # Keep paths in /bin as-is, but remove trailing .exe if any 33321 new_path="${new_path/%.exe/}" 33322 # Do not save /bin paths to all_fixpath_prefixes! 33323 else 33324 # Not in mixed or Windows style, start by that. 33325 new_path=`cmd //c echo $new_path` 33326 33327 input_path="$new_path" 33328 # Check if we need to convert this using DOS-style short mode. If the path 33329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33330 # take no chances and rewrite it. 33331 # Note: m4 eats our [], so we need to use [ and ] instead. 33332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33333 if test "x$has_forbidden_chars" != x; then 33334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33335 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33336 fi 33337 33338 # Output is in $new_path 33339 33340 windows_path="$new_path" 33341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33342 unix_path=`$CYGPATH -u "$windows_path"` 33343 new_path="$unix_path" 33344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33346 new_path="$unix_path" 33347 fi 33348 33349 # remove trailing .exe if any 33350 new_path="${new_path/%.exe/}" 33351 33352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33354 fi 33355 33356 else 33357 # We're on a unix platform. Hooray! :) 33358 # First separate the path from the arguments. This will split at the first 33359 # space. 33360 complete="$AS" 33361 path="${complete%% *}" 33362 tmp="$complete EOL" 33363 arguments="${tmp#* }" 33364 33365 # Cannot rely on the command "which" here since it doesn't always work. 33366 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33367 if test -z "$is_absolute_path"; then 33368 # Path to executable is not absolute. Find it. 33369 IFS_save="$IFS" 33370 IFS=: 33371 for p in $PATH; do 33372 if test -f "$p/$path" && test -x "$p/$path"; then 33373 new_path="$p/$path" 33374 break 33375 fi 33376 done 33377 IFS="$IFS_save" 33378 else 33379 # This is an absolute path, we can use it without further modifications. 33380 new_path="$path" 33381 fi 33382 33383 if test "x$new_path" = x; then 33384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33385 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33386 has_space=`$ECHO "$complete" | $GREP " "` 33387 if test "x$has_space" != x; then 33388 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33389 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33390 fi 33391 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33392 fi 33393 fi 33394 33395 # Now join together the path and the arguments once again 33396 if test "x$arguments" != xEOL; then 33397 new_complete="$new_path ${arguments% *}" 33398 else 33399 new_complete="$new_path" 33400 fi 33401 33402 if test "x$complete" != "x$new_complete"; then 33403 AS="$new_complete" 33404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 33405 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 33406 fi 33407 fi 33408 33409 else 33410 # FIXME: is this correct for microsoft? 33411 AS="$CC -c" 33412 fi 33413 33414 33415 # 33416 # Setup the archiver (AR) 33417 # 33418 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33419 # The corresponding ar tool is lib.exe (used to create static libraries) 33420 # Extract the first word of "lib", so it can be a program name with args. 33421 set dummy lib; ac_word=$2 33422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33423 $as_echo_n "checking for $ac_word... " >&6; } 33424 if ${ac_cv_prog_AR+:} false; then : 33425 $as_echo_n "(cached) " >&6 33426 else 33427 if test -n "$AR"; then 33428 ac_cv_prog_AR="$AR" # Let the user override the test. 33429 else 33430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33431 for as_dir in $PATH 33432 do 33433 IFS=$as_save_IFS 33434 test -z "$as_dir" && as_dir=. 33435 for ac_exec_ext in '' $ac_executable_extensions; do 33436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33437 ac_cv_prog_AR="lib" 33438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33439 break 2 33440 fi 33441 done 33442 done 33443 IFS=$as_save_IFS 33444 33445 fi 33446 fi 33447 AR=$ac_cv_prog_AR 33448 if test -n "$AR"; then 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33450 $as_echo "$AR" >&6; } 33451 else 33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33453 $as_echo "no" >&6; } 33454 fi 33455 33456 33457 else 33458 33459 33460 # Publish this variable in the help. 33461 33462 33463 if test "x$AR" = x; then 33464 # The variable is not set by user, try to locate tool using the code snippet 33465 if test -n "$ac_tool_prefix"; then 33466 for ac_prog in ar 33467 do 33468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33471 $as_echo_n "checking for $ac_word... " >&6; } 33472 if ${ac_cv_prog_AR+:} false; then : 33473 $as_echo_n "(cached) " >&6 33474 else 33475 if test -n "$AR"; then 33476 ac_cv_prog_AR="$AR" # Let the user override the test. 33477 else 33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33479 for as_dir in $PATH 33480 do 33481 IFS=$as_save_IFS 33482 test -z "$as_dir" && as_dir=. 33483 for ac_exec_ext in '' $ac_executable_extensions; do 33484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33485 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33487 break 2 33488 fi 33489 done 33490 done 33491 IFS=$as_save_IFS 33492 33493 fi 33494 fi 33495 AR=$ac_cv_prog_AR 33496 if test -n "$AR"; then 33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33498 $as_echo "$AR" >&6; } 33499 else 33500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33501 $as_echo "no" >&6; } 33502 fi 33503 33504 33505 test -n "$AR" && break 33506 done 33507 fi 33508 if test -z "$AR"; then 33509 ac_ct_AR=$AR 33510 for ac_prog in ar 33511 do 33512 # Extract the first word of "$ac_prog", so it can be a program name with args. 33513 set dummy $ac_prog; ac_word=$2 33514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33515 $as_echo_n "checking for $ac_word... " >&6; } 33516 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33517 $as_echo_n "(cached) " >&6 33518 else 33519 if test -n "$ac_ct_AR"; then 33520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33521 else 33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33523 for as_dir in $PATH 33524 do 33525 IFS=$as_save_IFS 33526 test -z "$as_dir" && as_dir=. 33527 for ac_exec_ext in '' $ac_executable_extensions; do 33528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33529 ac_cv_prog_ac_ct_AR="$ac_prog" 33530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33531 break 2 33532 fi 33533 done 33534 done 33535 IFS=$as_save_IFS 33536 33537 fi 33538 fi 33539 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33540 if test -n "$ac_ct_AR"; then 33541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33542 $as_echo "$ac_ct_AR" >&6; } 33543 else 33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33545 $as_echo "no" >&6; } 33546 fi 33547 33548 33549 test -n "$ac_ct_AR" && break 33550 done 33551 33552 if test "x$ac_ct_AR" = x; then 33553 AR="" 33554 else 33555 case $cross_compiling:$ac_tool_warned in 33556 yes:) 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33559 ac_tool_warned=yes ;; 33560 esac 33561 AR=$ac_ct_AR 33562 fi 33563 fi 33564 33565 else 33566 # The variable is set, but is it from the command line or the environment? 33567 33568 # Try to remove the string !AR! from our list. 33569 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33570 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33571 # If it failed, the variable was not from the command line. Ignore it, 33572 # but warn the user (except for BASH, which is always set by the calling BASH). 33573 if test "xAR" != xBASH; then 33574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33575 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33576 fi 33577 # Try to locate tool using the code snippet 33578 if test -n "$ac_tool_prefix"; then 33579 for ac_prog in ar 33580 do 33581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33584 $as_echo_n "checking for $ac_word... " >&6; } 33585 if ${ac_cv_prog_AR+:} false; then : 33586 $as_echo_n "(cached) " >&6 33587 else 33588 if test -n "$AR"; then 33589 ac_cv_prog_AR="$AR" # Let the user override the test. 33590 else 33591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33592 for as_dir in $PATH 33593 do 33594 IFS=$as_save_IFS 33595 test -z "$as_dir" && as_dir=. 33596 for ac_exec_ext in '' $ac_executable_extensions; do 33597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33598 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33600 break 2 33601 fi 33602 done 33603 done 33604 IFS=$as_save_IFS 33605 33606 fi 33607 fi 33608 AR=$ac_cv_prog_AR 33609 if test -n "$AR"; then 33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33611 $as_echo "$AR" >&6; } 33612 else 33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33614 $as_echo "no" >&6; } 33615 fi 33616 33617 33618 test -n "$AR" && break 33619 done 33620 fi 33621 if test -z "$AR"; then 33622 ac_ct_AR=$AR 33623 for ac_prog in ar 33624 do 33625 # Extract the first word of "$ac_prog", so it can be a program name with args. 33626 set dummy $ac_prog; ac_word=$2 33627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33628 $as_echo_n "checking for $ac_word... " >&6; } 33629 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33630 $as_echo_n "(cached) " >&6 33631 else 33632 if test -n "$ac_ct_AR"; then 33633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33634 else 33635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33636 for as_dir in $PATH 33637 do 33638 IFS=$as_save_IFS 33639 test -z "$as_dir" && as_dir=. 33640 for ac_exec_ext in '' $ac_executable_extensions; do 33641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33642 ac_cv_prog_ac_ct_AR="$ac_prog" 33643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33644 break 2 33645 fi 33646 done 33647 done 33648 IFS=$as_save_IFS 33649 33650 fi 33651 fi 33652 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33653 if test -n "$ac_ct_AR"; then 33654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33655 $as_echo "$ac_ct_AR" >&6; } 33656 else 33657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33658 $as_echo "no" >&6; } 33659 fi 33660 33661 33662 test -n "$ac_ct_AR" && break 33663 done 33664 33665 if test "x$ac_ct_AR" = x; then 33666 AR="" 33667 else 33668 case $cross_compiling:$ac_tool_warned in 33669 yes:) 33670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33672 ac_tool_warned=yes ;; 33673 esac 33674 AR=$ac_ct_AR 33675 fi 33676 fi 33677 33678 else 33679 # If it succeeded, then it was overridden by the user. We will use it 33680 # for the tool. 33681 33682 # First remove it from the list of overridden variables, so we can test 33683 # for unknown variables in the end. 33684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33685 33686 # Check if the provided tool contains a complete path. 33687 tool_specified="$AR" 33688 tool_basename="${tool_specified##*/}" 33689 if test "x$tool_basename" = "x$tool_specified"; then 33690 # A command without a complete path is provided, search $PATH. 33691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33692 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33693 # Extract the first word of "$tool_basename", so it can be a program name with args. 33694 set dummy $tool_basename; ac_word=$2 33695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33696 $as_echo_n "checking for $ac_word... " >&6; } 33697 if ${ac_cv_path_AR+:} false; then : 33698 $as_echo_n "(cached) " >&6 33699 else 33700 case $AR in 33701 [\\/]* | ?:[\\/]*) 33702 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33703 ;; 33704 *) 33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33706 for as_dir in $PATH 33707 do 33708 IFS=$as_save_IFS 33709 test -z "$as_dir" && as_dir=. 33710 for ac_exec_ext in '' $ac_executable_extensions; do 33711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33712 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33714 break 2 33715 fi 33716 done 33717 done 33718 IFS=$as_save_IFS 33719 33720 ;; 33721 esac 33722 fi 33723 AR=$ac_cv_path_AR 33724 if test -n "$AR"; then 33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33726 $as_echo "$AR" >&6; } 33727 else 33728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33729 $as_echo "no" >&6; } 33730 fi 33731 33732 33733 if test "x$AR" = x; then 33734 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33735 fi 33736 else 33737 # Otherwise we believe it is a complete path. Use it as it is. 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33739 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33741 $as_echo_n "checking for AR... " >&6; } 33742 if test ! -x "$tool_specified"; then 33743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33744 $as_echo "not found" >&6; } 33745 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33746 fi 33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33748 $as_echo "$tool_specified" >&6; } 33749 fi 33750 fi 33751 fi 33752 33753 33754 fi 33755 33756 # Only process if variable expands to non-empty 33757 33758 if test "x$AR" != x; then 33759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33760 33761 # First separate the path from the arguments. This will split at the first 33762 # space. 33763 complete="$AR" 33764 path="${complete%% *}" 33765 tmp="$complete EOL" 33766 arguments="${tmp#* }" 33767 33768 # Input might be given as Windows format, start by converting to 33769 # unix format. 33770 new_path=`$CYGPATH -u "$path"` 33771 33772 # Now try to locate executable using which 33773 new_path=`$WHICH "$new_path" 2> /dev/null` 33774 # bat and cmd files are not always considered executable in cygwin causing which 33775 # to not find them 33776 if test "x$new_path" = x \ 33777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33779 new_path=`$CYGPATH -u "$path"` 33780 fi 33781 if test "x$new_path" = x; then 33782 # Oops. Which didn't find the executable. 33783 # The splitting of arguments from the executable at a space might have been incorrect, 33784 # since paths with space are more likely in Windows. Give it another try with the whole 33785 # argument. 33786 path="$complete" 33787 arguments="EOL" 33788 new_path=`$CYGPATH -u "$path"` 33789 new_path=`$WHICH "$new_path" 2> /dev/null` 33790 # bat and cmd files are not always considered executable in cygwin causing which 33791 # to not find them 33792 if test "x$new_path" = x \ 33793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33795 new_path=`$CYGPATH -u "$path"` 33796 fi 33797 if test "x$new_path" = x; then 33798 # It's still not found. Now this is an unrecoverable error. 33799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33800 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33801 has_space=`$ECHO "$complete" | $GREP " "` 33802 if test "x$has_space" != x; then 33803 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33804 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33805 fi 33806 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33807 fi 33808 fi 33809 33810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33813 # "foo.exe" is OK but "foo" is an error. 33814 # 33815 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33816 # It is also a way to make sure we got the proper file name for the real test later on. 33817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33818 if test "x$test_shortpath" = x; then 33819 # Short path failed, file does not exist as specified. 33820 # Try adding .exe or .cmd 33821 if test -f "${new_path}.exe"; then 33822 input_to_shortpath="${new_path}.exe" 33823 elif test -f "${new_path}.cmd"; then 33824 input_to_shortpath="${new_path}.cmd" 33825 else 33826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33827 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33828 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33829 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33830 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33831 fi 33832 else 33833 input_to_shortpath="$new_path" 33834 fi 33835 33836 # Call helper function which possibly converts this using DOS-style short mode. 33837 # If so, the updated path is stored in $new_path. 33838 new_path="$input_to_shortpath" 33839 33840 input_path="$input_to_shortpath" 33841 # Check if we need to convert this using DOS-style short mode. If the path 33842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33843 # take no chances and rewrite it. 33844 # Note: m4 eats our [], so we need to use [ and ] instead. 33845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33846 if test "x$has_forbidden_chars" != x; then 33847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33848 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33849 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33850 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33851 # Going to short mode and back again did indeed matter. Since short mode is 33852 # case insensitive, let's make it lowercase to improve readability. 33853 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33854 # Now convert it back to Unix-style (cygpath) 33855 input_path=`$CYGPATH -u "$shortmode_path"` 33856 new_path="$input_path" 33857 fi 33858 fi 33859 33860 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33861 if test "x$test_cygdrive_prefix" = x; then 33862 # As a simple fix, exclude /usr/bin since it's not a real path. 33863 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33864 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33865 # a path prefixed by /cygdrive for fixpath to work. 33866 new_path="$CYGWIN_ROOT_PATH$input_path" 33867 fi 33868 fi 33869 33870 # remove trailing .exe if any 33871 new_path="${new_path/%.exe/}" 33872 33873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33874 33875 # First separate the path from the arguments. This will split at the first 33876 # space. 33877 complete="$AR" 33878 path="${complete%% *}" 33879 tmp="$complete EOL" 33880 arguments="${tmp#* }" 33881 33882 # Input might be given as Windows format, start by converting to 33883 # unix format. 33884 new_path="$path" 33885 33886 windows_path="$new_path" 33887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33888 unix_path=`$CYGPATH -u "$windows_path"` 33889 new_path="$unix_path" 33890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33892 new_path="$unix_path" 33893 fi 33894 33895 33896 # Now try to locate executable using which 33897 new_path=`$WHICH "$new_path" 2> /dev/null` 33898 33899 if test "x$new_path" = x; then 33900 # Oops. Which didn't find the executable. 33901 # The splitting of arguments from the executable at a space might have been incorrect, 33902 # since paths with space are more likely in Windows. Give it another try with the whole 33903 # argument. 33904 path="$complete" 33905 arguments="EOL" 33906 new_path="$path" 33907 33908 windows_path="$new_path" 33909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33910 unix_path=`$CYGPATH -u "$windows_path"` 33911 new_path="$unix_path" 33912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33913 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33914 new_path="$unix_path" 33915 fi 33916 33917 33918 new_path=`$WHICH "$new_path" 2> /dev/null` 33919 # bat and cmd files are not always considered executable in MSYS causing which 33920 # to not find them 33921 if test "x$new_path" = x \ 33922 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33923 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33924 new_path="$path" 33925 33926 windows_path="$new_path" 33927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33928 unix_path=`$CYGPATH -u "$windows_path"` 33929 new_path="$unix_path" 33930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33932 new_path="$unix_path" 33933 fi 33934 33935 fi 33936 33937 if test "x$new_path" = x; then 33938 # It's still not found. Now this is an unrecoverable error. 33939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33940 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33941 has_space=`$ECHO "$complete" | $GREP " "` 33942 if test "x$has_space" != x; then 33943 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33945 fi 33946 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33947 fi 33948 fi 33949 33950 # Now new_path has a complete unix path to the binary 33951 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33952 # Keep paths in /bin as-is, but remove trailing .exe if any 33953 new_path="${new_path/%.exe/}" 33954 # Do not save /bin paths to all_fixpath_prefixes! 33955 else 33956 # Not in mixed or Windows style, start by that. 33957 new_path=`cmd //c echo $new_path` 33958 33959 input_path="$new_path" 33960 # Check if we need to convert this using DOS-style short mode. If the path 33961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33962 # take no chances and rewrite it. 33963 # Note: m4 eats our [], so we need to use [ and ] instead. 33964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33965 if test "x$has_forbidden_chars" != x; then 33966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33968 fi 33969 33970 # Output is in $new_path 33971 33972 windows_path="$new_path" 33973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33974 unix_path=`$CYGPATH -u "$windows_path"` 33975 new_path="$unix_path" 33976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33978 new_path="$unix_path" 33979 fi 33980 33981 # remove trailing .exe if any 33982 new_path="${new_path/%.exe/}" 33983 33984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33986 fi 33987 33988 else 33989 # We're on a unix platform. Hooray! :) 33990 # First separate the path from the arguments. This will split at the first 33991 # space. 33992 complete="$AR" 33993 path="${complete%% *}" 33994 tmp="$complete EOL" 33995 arguments="${tmp#* }" 33996 33997 # Cannot rely on the command "which" here since it doesn't always work. 33998 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33999 if test -z "$is_absolute_path"; then 34000 # Path to executable is not absolute. Find it. 34001 IFS_save="$IFS" 34002 IFS=: 34003 for p in $PATH; do 34004 if test -f "$p/$path" && test -x "$p/$path"; then 34005 new_path="$p/$path" 34006 break 34007 fi 34008 done 34009 IFS="$IFS_save" 34010 else 34011 # This is an absolute path, we can use it without further modifications. 34012 new_path="$path" 34013 fi 34014 34015 if test "x$new_path" = x; then 34016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 34017 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 34018 has_space=`$ECHO "$complete" | $GREP " "` 34019 if test "x$has_space" != x; then 34020 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34021 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34022 fi 34023 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 34024 fi 34025 fi 34026 34027 # Now join together the path and the arguments once again 34028 if test "x$arguments" != xEOL; then 34029 new_complete="$new_path ${arguments% *}" 34030 else 34031 new_complete="$new_path" 34032 fi 34033 34034 if test "x$complete" != "x$new_complete"; then 34035 AR="$new_complete" 34036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 34037 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 34038 fi 34039 fi 34040 34041 34042 34043 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 34044 34045 34046 # Publish this variable in the help. 34047 34048 34049 if test "x$LIPO" = x; then 34050 # The variable is not set by user, try to locate tool using the code snippet 34051 for ac_prog in lipo 34052 do 34053 # Extract the first word of "$ac_prog", so it can be a program name with args. 34054 set dummy $ac_prog; ac_word=$2 34055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34056 $as_echo_n "checking for $ac_word... " >&6; } 34057 if ${ac_cv_path_LIPO+:} false; then : 34058 $as_echo_n "(cached) " >&6 34059 else 34060 case $LIPO in 34061 [\\/]* | ?:[\\/]*) 34062 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34063 ;; 34064 *) 34065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34066 for as_dir in $PATH 34067 do 34068 IFS=$as_save_IFS 34069 test -z "$as_dir" && as_dir=. 34070 for ac_exec_ext in '' $ac_executable_extensions; do 34071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34072 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34074 break 2 34075 fi 34076 done 34077 done 34078 IFS=$as_save_IFS 34079 34080 ;; 34081 esac 34082 fi 34083 LIPO=$ac_cv_path_LIPO 34084 if test -n "$LIPO"; then 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34086 $as_echo "$LIPO" >&6; } 34087 else 34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34089 $as_echo "no" >&6; } 34090 fi 34091 34092 34093 test -n "$LIPO" && break 34094 done 34095 34096 else 34097 # The variable is set, but is it from the command line or the environment? 34098 34099 # Try to remove the string !LIPO! from our list. 34100 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 34101 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34102 # If it failed, the variable was not from the command line. Ignore it, 34103 # but warn the user (except for BASH, which is always set by the calling BASH). 34104 if test "xLIPO" != xBASH; then 34105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 34106 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 34107 fi 34108 # Try to locate tool using the code snippet 34109 for ac_prog in lipo 34110 do 34111 # Extract the first word of "$ac_prog", so it can be a program name with args. 34112 set dummy $ac_prog; ac_word=$2 34113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34114 $as_echo_n "checking for $ac_word... " >&6; } 34115 if ${ac_cv_path_LIPO+:} false; then : 34116 $as_echo_n "(cached) " >&6 34117 else 34118 case $LIPO in 34119 [\\/]* | ?:[\\/]*) 34120 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34121 ;; 34122 *) 34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34124 for as_dir in $PATH 34125 do 34126 IFS=$as_save_IFS 34127 test -z "$as_dir" && as_dir=. 34128 for ac_exec_ext in '' $ac_executable_extensions; do 34129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34130 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34132 break 2 34133 fi 34134 done 34135 done 34136 IFS=$as_save_IFS 34137 34138 ;; 34139 esac 34140 fi 34141 LIPO=$ac_cv_path_LIPO 34142 if test -n "$LIPO"; then 34143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34144 $as_echo "$LIPO" >&6; } 34145 else 34146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34147 $as_echo "no" >&6; } 34148 fi 34149 34150 34151 test -n "$LIPO" && break 34152 done 34153 34154 else 34155 # If it succeeded, then it was overridden by the user. We will use it 34156 # for the tool. 34157 34158 # First remove it from the list of overridden variables, so we can test 34159 # for unknown variables in the end. 34160 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34161 34162 # Check if the provided tool contains a complete path. 34163 tool_specified="$LIPO" 34164 tool_basename="${tool_specified##*/}" 34165 if test "x$tool_basename" = "x$tool_specified"; then 34166 # A command without a complete path is provided, search $PATH. 34167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 34168 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 34169 # Extract the first word of "$tool_basename", so it can be a program name with args. 34170 set dummy $tool_basename; ac_word=$2 34171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34172 $as_echo_n "checking for $ac_word... " >&6; } 34173 if ${ac_cv_path_LIPO+:} false; then : 34174 $as_echo_n "(cached) " >&6 34175 else 34176 case $LIPO in 34177 [\\/]* | ?:[\\/]*) 34178 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34179 ;; 34180 *) 34181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34182 for as_dir in $PATH 34183 do 34184 IFS=$as_save_IFS 34185 test -z "$as_dir" && as_dir=. 34186 for ac_exec_ext in '' $ac_executable_extensions; do 34187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34188 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34190 break 2 34191 fi 34192 done 34193 done 34194 IFS=$as_save_IFS 34195 34196 ;; 34197 esac 34198 fi 34199 LIPO=$ac_cv_path_LIPO 34200 if test -n "$LIPO"; then 34201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34202 $as_echo "$LIPO" >&6; } 34203 else 34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34205 $as_echo "no" >&6; } 34206 fi 34207 34208 34209 if test "x$LIPO" = x; then 34210 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34211 fi 34212 else 34213 # Otherwise we believe it is a complete path. Use it as it is. 34214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 34215 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 34217 $as_echo_n "checking for LIPO... " >&6; } 34218 if test ! -x "$tool_specified"; then 34219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34220 $as_echo "not found" >&6; } 34221 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 34222 fi 34223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34224 $as_echo "$tool_specified" >&6; } 34225 fi 34226 fi 34227 fi 34228 34229 34230 34231 # Only process if variable expands to non-empty 34232 34233 if test "x$LIPO" != x; then 34234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34235 34236 # First separate the path from the arguments. This will split at the first 34237 # space. 34238 complete="$LIPO" 34239 path="${complete%% *}" 34240 tmp="$complete EOL" 34241 arguments="${tmp#* }" 34242 34243 # Input might be given as Windows format, start by converting to 34244 # unix format. 34245 new_path=`$CYGPATH -u "$path"` 34246 34247 # Now try to locate executable using which 34248 new_path=`$WHICH "$new_path" 2> /dev/null` 34249 # bat and cmd files are not always considered executable in cygwin causing which 34250 # to not find them 34251 if test "x$new_path" = x \ 34252 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34253 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34254 new_path=`$CYGPATH -u "$path"` 34255 fi 34256 if test "x$new_path" = x; then 34257 # Oops. Which didn't find the executable. 34258 # The splitting of arguments from the executable at a space might have been incorrect, 34259 # since paths with space are more likely in Windows. Give it another try with the whole 34260 # argument. 34261 path="$complete" 34262 arguments="EOL" 34263 new_path=`$CYGPATH -u "$path"` 34264 new_path=`$WHICH "$new_path" 2> /dev/null` 34265 # bat and cmd files are not always considered executable in cygwin causing which 34266 # to not find them 34267 if test "x$new_path" = x \ 34268 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34269 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34270 new_path=`$CYGPATH -u "$path"` 34271 fi 34272 if test "x$new_path" = x; then 34273 # It's still not found. Now this is an unrecoverable error. 34274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34275 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34276 has_space=`$ECHO "$complete" | $GREP " "` 34277 if test "x$has_space" != x; then 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34279 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34280 fi 34281 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34282 fi 34283 fi 34284 34285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34288 # "foo.exe" is OK but "foo" is an error. 34289 # 34290 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34291 # It is also a way to make sure we got the proper file name for the real test later on. 34292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34293 if test "x$test_shortpath" = x; then 34294 # Short path failed, file does not exist as specified. 34295 # Try adding .exe or .cmd 34296 if test -f "${new_path}.exe"; then 34297 input_to_shortpath="${new_path}.exe" 34298 elif test -f "${new_path}.cmd"; then 34299 input_to_shortpath="${new_path}.cmd" 34300 else 34301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 34302 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 34303 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34304 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34305 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34306 fi 34307 else 34308 input_to_shortpath="$new_path" 34309 fi 34310 34311 # Call helper function which possibly converts this using DOS-style short mode. 34312 # If so, the updated path is stored in $new_path. 34313 new_path="$input_to_shortpath" 34314 34315 input_path="$input_to_shortpath" 34316 # Check if we need to convert this using DOS-style short mode. If the path 34317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34318 # take no chances and rewrite it. 34319 # Note: m4 eats our [], so we need to use [ and ] instead. 34320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34321 if test "x$has_forbidden_chars" != x; then 34322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34326 # Going to short mode and back again did indeed matter. Since short mode is 34327 # case insensitive, let's make it lowercase to improve readability. 34328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34329 # Now convert it back to Unix-style (cygpath) 34330 input_path=`$CYGPATH -u "$shortmode_path"` 34331 new_path="$input_path" 34332 fi 34333 fi 34334 34335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34336 if test "x$test_cygdrive_prefix" = x; then 34337 # As a simple fix, exclude /usr/bin since it's not a real path. 34338 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34340 # a path prefixed by /cygdrive for fixpath to work. 34341 new_path="$CYGWIN_ROOT_PATH$input_path" 34342 fi 34343 fi 34344 34345 # remove trailing .exe if any 34346 new_path="${new_path/%.exe/}" 34347 34348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34349 34350 # First separate the path from the arguments. This will split at the first 34351 # space. 34352 complete="$LIPO" 34353 path="${complete%% *}" 34354 tmp="$complete EOL" 34355 arguments="${tmp#* }" 34356 34357 # Input might be given as Windows format, start by converting to 34358 # unix format. 34359 new_path="$path" 34360 34361 windows_path="$new_path" 34362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34363 unix_path=`$CYGPATH -u "$windows_path"` 34364 new_path="$unix_path" 34365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34367 new_path="$unix_path" 34368 fi 34369 34370 34371 # Now try to locate executable using which 34372 new_path=`$WHICH "$new_path" 2> /dev/null` 34373 34374 if test "x$new_path" = x; then 34375 # Oops. Which didn't find the executable. 34376 # The splitting of arguments from the executable at a space might have been incorrect, 34377 # since paths with space are more likely in Windows. Give it another try with the whole 34378 # argument. 34379 path="$complete" 34380 arguments="EOL" 34381 new_path="$path" 34382 34383 windows_path="$new_path" 34384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34385 unix_path=`$CYGPATH -u "$windows_path"` 34386 new_path="$unix_path" 34387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34389 new_path="$unix_path" 34390 fi 34391 34392 34393 new_path=`$WHICH "$new_path" 2> /dev/null` 34394 # bat and cmd files are not always considered executable in MSYS causing which 34395 # to not find them 34396 if test "x$new_path" = x \ 34397 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34398 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34399 new_path="$path" 34400 34401 windows_path="$new_path" 34402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34403 unix_path=`$CYGPATH -u "$windows_path"` 34404 new_path="$unix_path" 34405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34407 new_path="$unix_path" 34408 fi 34409 34410 fi 34411 34412 if test "x$new_path" = x; then 34413 # It's still not found. Now this is an unrecoverable error. 34414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34415 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34416 has_space=`$ECHO "$complete" | $GREP " "` 34417 if test "x$has_space" != x; then 34418 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34419 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34420 fi 34421 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34422 fi 34423 fi 34424 34425 # Now new_path has a complete unix path to the binary 34426 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34427 # Keep paths in /bin as-is, but remove trailing .exe if any 34428 new_path="${new_path/%.exe/}" 34429 # Do not save /bin paths to all_fixpath_prefixes! 34430 else 34431 # Not in mixed or Windows style, start by that. 34432 new_path=`cmd //c echo $new_path` 34433 34434 input_path="$new_path" 34435 # Check if we need to convert this using DOS-style short mode. If the path 34436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34437 # take no chances and rewrite it. 34438 # Note: m4 eats our [], so we need to use [ and ] instead. 34439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34440 if test "x$has_forbidden_chars" != x; then 34441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34442 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34443 fi 34444 34445 # Output is in $new_path 34446 34447 windows_path="$new_path" 34448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34449 unix_path=`$CYGPATH -u "$windows_path"` 34450 new_path="$unix_path" 34451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34453 new_path="$unix_path" 34454 fi 34455 34456 # remove trailing .exe if any 34457 new_path="${new_path/%.exe/}" 34458 34459 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34460 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34461 fi 34462 34463 else 34464 # We're on a unix platform. Hooray! :) 34465 # First separate the path from the arguments. This will split at the first 34466 # space. 34467 complete="$LIPO" 34468 path="${complete%% *}" 34469 tmp="$complete EOL" 34470 arguments="${tmp#* }" 34471 34472 # Cannot rely on the command "which" here since it doesn't always work. 34473 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34474 if test -z "$is_absolute_path"; then 34475 # Path to executable is not absolute. Find it. 34476 IFS_save="$IFS" 34477 IFS=: 34478 for p in $PATH; do 34479 if test -f "$p/$path" && test -x "$p/$path"; then 34480 new_path="$p/$path" 34481 break 34482 fi 34483 done 34484 IFS="$IFS_save" 34485 else 34486 # This is an absolute path, we can use it without further modifications. 34487 new_path="$path" 34488 fi 34489 34490 if test "x$new_path" = x; then 34491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34492 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34493 has_space=`$ECHO "$complete" | $GREP " "` 34494 if test "x$has_space" != x; then 34495 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34496 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34497 fi 34498 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34499 fi 34500 fi 34501 34502 # Now join together the path and the arguments once again 34503 if test "x$arguments" != xEOL; then 34504 new_complete="$new_path ${arguments% *}" 34505 else 34506 new_complete="$new_path" 34507 fi 34508 34509 if test "x$complete" != "x$new_complete"; then 34510 LIPO="$new_complete" 34511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34512 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34513 fi 34514 fi 34515 34516 fi 34517 34518 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34519 # Extract the first word of "mt", so it can be a program name with args. 34520 set dummy mt; ac_word=$2 34521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34522 $as_echo_n "checking for $ac_word... " >&6; } 34523 if ${ac_cv_prog_MT+:} false; then : 34524 $as_echo_n "(cached) " >&6 34525 else 34526 if test -n "$MT"; then 34527 ac_cv_prog_MT="$MT" # Let the user override the test. 34528 else 34529 ac_prog_rejected=no 34530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34531 for as_dir in $PATH 34532 do 34533 IFS=$as_save_IFS 34534 test -z "$as_dir" && as_dir=. 34535 for ac_exec_ext in '' $ac_executable_extensions; do 34536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34538 ac_prog_rejected=yes 34539 continue 34540 fi 34541 ac_cv_prog_MT="mt" 34542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34543 break 2 34544 fi 34545 done 34546 done 34547 IFS=$as_save_IFS 34548 34549 if test $ac_prog_rejected = yes; then 34550 # We found a bogon in the path, so make sure we never use it. 34551 set dummy $ac_cv_prog_MT 34552 shift 34553 if test $# != 0; then 34554 # We chose a different compiler from the bogus one. 34555 # However, it has the same basename, so the bogon will be chosen 34556 # first if we set MT to just the basename; use the full file name. 34557 shift 34558 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34559 fi 34560 fi 34561 fi 34562 fi 34563 MT=$ac_cv_prog_MT 34564 if test -n "$MT"; then 34565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34566 $as_echo "$MT" >&6; } 34567 else 34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34569 $as_echo "no" >&6; } 34570 fi 34571 34572 34573 34574 # Only process if variable expands to non-empty 34575 34576 if test "x$MT" != x; then 34577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34578 34579 # First separate the path from the arguments. This will split at the first 34580 # space. 34581 complete="$MT" 34582 path="${complete%% *}" 34583 tmp="$complete EOL" 34584 arguments="${tmp#* }" 34585 34586 # Input might be given as Windows format, start by converting to 34587 # unix format. 34588 new_path=`$CYGPATH -u "$path"` 34589 34590 # Now try to locate executable using which 34591 new_path=`$WHICH "$new_path" 2> /dev/null` 34592 # bat and cmd files are not always considered executable in cygwin causing which 34593 # to not find them 34594 if test "x$new_path" = x \ 34595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34597 new_path=`$CYGPATH -u "$path"` 34598 fi 34599 if test "x$new_path" = x; then 34600 # Oops. Which didn't find the executable. 34601 # The splitting of arguments from the executable at a space might have been incorrect, 34602 # since paths with space are more likely in Windows. Give it another try with the whole 34603 # argument. 34604 path="$complete" 34605 arguments="EOL" 34606 new_path=`$CYGPATH -u "$path"` 34607 new_path=`$WHICH "$new_path" 2> /dev/null` 34608 # bat and cmd files are not always considered executable in cygwin causing which 34609 # to not find them 34610 if test "x$new_path" = x \ 34611 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34612 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34613 new_path=`$CYGPATH -u "$path"` 34614 fi 34615 if test "x$new_path" = x; then 34616 # It's still not found. Now this is an unrecoverable error. 34617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34618 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34619 has_space=`$ECHO "$complete" | $GREP " "` 34620 if test "x$has_space" != x; then 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34622 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34623 fi 34624 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34625 fi 34626 fi 34627 34628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34631 # "foo.exe" is OK but "foo" is an error. 34632 # 34633 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34634 # It is also a way to make sure we got the proper file name for the real test later on. 34635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34636 if test "x$test_shortpath" = x; then 34637 # Short path failed, file does not exist as specified. 34638 # Try adding .exe or .cmd 34639 if test -f "${new_path}.exe"; then 34640 input_to_shortpath="${new_path}.exe" 34641 elif test -f "${new_path}.cmd"; then 34642 input_to_shortpath="${new_path}.cmd" 34643 else 34644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34645 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34646 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34647 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34648 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34649 fi 34650 else 34651 input_to_shortpath="$new_path" 34652 fi 34653 34654 # Call helper function which possibly converts this using DOS-style short mode. 34655 # If so, the updated path is stored in $new_path. 34656 new_path="$input_to_shortpath" 34657 34658 input_path="$input_to_shortpath" 34659 # Check if we need to convert this using DOS-style short mode. If the path 34660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34661 # take no chances and rewrite it. 34662 # Note: m4 eats our [], so we need to use [ and ] instead. 34663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34664 if test "x$has_forbidden_chars" != x; then 34665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34666 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34667 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34668 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34669 # Going to short mode and back again did indeed matter. Since short mode is 34670 # case insensitive, let's make it lowercase to improve readability. 34671 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34672 # Now convert it back to Unix-style (cygpath) 34673 input_path=`$CYGPATH -u "$shortmode_path"` 34674 new_path="$input_path" 34675 fi 34676 fi 34677 34678 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34679 if test "x$test_cygdrive_prefix" = x; then 34680 # As a simple fix, exclude /usr/bin since it's not a real path. 34681 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34682 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34683 # a path prefixed by /cygdrive for fixpath to work. 34684 new_path="$CYGWIN_ROOT_PATH$input_path" 34685 fi 34686 fi 34687 34688 # remove trailing .exe if any 34689 new_path="${new_path/%.exe/}" 34690 34691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34692 34693 # First separate the path from the arguments. This will split at the first 34694 # space. 34695 complete="$MT" 34696 path="${complete%% *}" 34697 tmp="$complete EOL" 34698 arguments="${tmp#* }" 34699 34700 # Input might be given as Windows format, start by converting to 34701 # unix format. 34702 new_path="$path" 34703 34704 windows_path="$new_path" 34705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34706 unix_path=`$CYGPATH -u "$windows_path"` 34707 new_path="$unix_path" 34708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34710 new_path="$unix_path" 34711 fi 34712 34713 34714 # Now try to locate executable using which 34715 new_path=`$WHICH "$new_path" 2> /dev/null` 34716 34717 if test "x$new_path" = x; then 34718 # Oops. Which didn't find the executable. 34719 # The splitting of arguments from the executable at a space might have been incorrect, 34720 # since paths with space are more likely in Windows. Give it another try with the whole 34721 # argument. 34722 path="$complete" 34723 arguments="EOL" 34724 new_path="$path" 34725 34726 windows_path="$new_path" 34727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34728 unix_path=`$CYGPATH -u "$windows_path"` 34729 new_path="$unix_path" 34730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34732 new_path="$unix_path" 34733 fi 34734 34735 34736 new_path=`$WHICH "$new_path" 2> /dev/null` 34737 # bat and cmd files are not always considered executable in MSYS causing which 34738 # to not find them 34739 if test "x$new_path" = x \ 34740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34742 new_path="$path" 34743 34744 windows_path="$new_path" 34745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34746 unix_path=`$CYGPATH -u "$windows_path"` 34747 new_path="$unix_path" 34748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34750 new_path="$unix_path" 34751 fi 34752 34753 fi 34754 34755 if test "x$new_path" = x; then 34756 # It's still not found. Now this is an unrecoverable error. 34757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34758 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34759 has_space=`$ECHO "$complete" | $GREP " "` 34760 if test "x$has_space" != x; then 34761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34763 fi 34764 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34765 fi 34766 fi 34767 34768 # Now new_path has a complete unix path to the binary 34769 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34770 # Keep paths in /bin as-is, but remove trailing .exe if any 34771 new_path="${new_path/%.exe/}" 34772 # Do not save /bin paths to all_fixpath_prefixes! 34773 else 34774 # Not in mixed or Windows style, start by that. 34775 new_path=`cmd //c echo $new_path` 34776 34777 input_path="$new_path" 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34786 fi 34787 34788 # Output is in $new_path 34789 34790 windows_path="$new_path" 34791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34792 unix_path=`$CYGPATH -u "$windows_path"` 34793 new_path="$unix_path" 34794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34796 new_path="$unix_path" 34797 fi 34798 34799 # remove trailing .exe if any 34800 new_path="${new_path/%.exe/}" 34801 34802 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34803 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34804 fi 34805 34806 else 34807 # We're on a unix platform. Hooray! :) 34808 # First separate the path from the arguments. This will split at the first 34809 # space. 34810 complete="$MT" 34811 path="${complete%% *}" 34812 tmp="$complete EOL" 34813 arguments="${tmp#* }" 34814 34815 # Cannot rely on the command "which" here since it doesn't always work. 34816 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34817 if test -z "$is_absolute_path"; then 34818 # Path to executable is not absolute. Find it. 34819 IFS_save="$IFS" 34820 IFS=: 34821 for p in $PATH; do 34822 if test -f "$p/$path" && test -x "$p/$path"; then 34823 new_path="$p/$path" 34824 break 34825 fi 34826 done 34827 IFS="$IFS_save" 34828 else 34829 # This is an absolute path, we can use it without further modifications. 34830 new_path="$path" 34831 fi 34832 34833 if test "x$new_path" = x; then 34834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34835 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34836 has_space=`$ECHO "$complete" | $GREP " "` 34837 if test "x$has_space" != x; then 34838 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34839 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34840 fi 34841 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34842 fi 34843 fi 34844 34845 # Now join together the path and the arguments once again 34846 if test "x$arguments" != xEOL; then 34847 new_complete="$new_path ${arguments% *}" 34848 else 34849 new_complete="$new_path" 34850 fi 34851 34852 if test "x$complete" != "x$new_complete"; then 34853 MT="$new_complete" 34854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34855 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34856 fi 34857 fi 34858 34859 # Setup the resource compiler (RC) 34860 # Extract the first word of "rc", so it can be a program name with args. 34861 set dummy rc; ac_word=$2 34862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34863 $as_echo_n "checking for $ac_word... " >&6; } 34864 if ${ac_cv_prog_RC+:} false; then : 34865 $as_echo_n "(cached) " >&6 34866 else 34867 if test -n "$RC"; then 34868 ac_cv_prog_RC="$RC" # Let the user override the test. 34869 else 34870 ac_prog_rejected=no 34871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34872 for as_dir in $PATH 34873 do 34874 IFS=$as_save_IFS 34875 test -z "$as_dir" && as_dir=. 34876 for ac_exec_ext in '' $ac_executable_extensions; do 34877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34879 ac_prog_rejected=yes 34880 continue 34881 fi 34882 ac_cv_prog_RC="rc" 34883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34884 break 2 34885 fi 34886 done 34887 done 34888 IFS=$as_save_IFS 34889 34890 if test $ac_prog_rejected = yes; then 34891 # We found a bogon in the path, so make sure we never use it. 34892 set dummy $ac_cv_prog_RC 34893 shift 34894 if test $# != 0; then 34895 # We chose a different compiler from the bogus one. 34896 # However, it has the same basename, so the bogon will be chosen 34897 # first if we set RC to just the basename; use the full file name. 34898 shift 34899 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34900 fi 34901 fi 34902 fi 34903 fi 34904 RC=$ac_cv_prog_RC 34905 if test -n "$RC"; then 34906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34907 $as_echo "$RC" >&6; } 34908 else 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34910 $as_echo "no" >&6; } 34911 fi 34912 34913 34914 34915 # Only process if variable expands to non-empty 34916 34917 if test "x$RC" != x; then 34918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34919 34920 # First separate the path from the arguments. This will split at the first 34921 # space. 34922 complete="$RC" 34923 path="${complete%% *}" 34924 tmp="$complete EOL" 34925 arguments="${tmp#* }" 34926 34927 # Input might be given as Windows format, start by converting to 34928 # unix format. 34929 new_path=`$CYGPATH -u "$path"` 34930 34931 # Now try to locate executable using which 34932 new_path=`$WHICH "$new_path" 2> /dev/null` 34933 # bat and cmd files are not always considered executable in cygwin causing which 34934 # to not find them 34935 if test "x$new_path" = x \ 34936 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34937 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34938 new_path=`$CYGPATH -u "$path"` 34939 fi 34940 if test "x$new_path" = x; then 34941 # Oops. Which didn't find the executable. 34942 # The splitting of arguments from the executable at a space might have been incorrect, 34943 # since paths with space are more likely in Windows. Give it another try with the whole 34944 # argument. 34945 path="$complete" 34946 arguments="EOL" 34947 new_path=`$CYGPATH -u "$path"` 34948 new_path=`$WHICH "$new_path" 2> /dev/null` 34949 # bat and cmd files are not always considered executable in cygwin causing which 34950 # to not find them 34951 if test "x$new_path" = x \ 34952 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34953 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34954 new_path=`$CYGPATH -u "$path"` 34955 fi 34956 if test "x$new_path" = x; then 34957 # It's still not found. Now this is an unrecoverable error. 34958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34959 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34960 has_space=`$ECHO "$complete" | $GREP " "` 34961 if test "x$has_space" != x; then 34962 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34963 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34964 fi 34965 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34966 fi 34967 fi 34968 34969 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34970 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34971 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34972 # "foo.exe" is OK but "foo" is an error. 34973 # 34974 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34975 # It is also a way to make sure we got the proper file name for the real test later on. 34976 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34977 if test "x$test_shortpath" = x; then 34978 # Short path failed, file does not exist as specified. 34979 # Try adding .exe or .cmd 34980 if test -f "${new_path}.exe"; then 34981 input_to_shortpath="${new_path}.exe" 34982 elif test -f "${new_path}.cmd"; then 34983 input_to_shortpath="${new_path}.cmd" 34984 else 34985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34986 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34987 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34988 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34989 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34990 fi 34991 else 34992 input_to_shortpath="$new_path" 34993 fi 34994 34995 # Call helper function which possibly converts this using DOS-style short mode. 34996 # If so, the updated path is stored in $new_path. 34997 new_path="$input_to_shortpath" 34998 34999 input_path="$input_to_shortpath" 35000 # Check if we need to convert this using DOS-style short mode. If the path 35001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35002 # take no chances and rewrite it. 35003 # Note: m4 eats our [], so we need to use [ and ] instead. 35004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35005 if test "x$has_forbidden_chars" != x; then 35006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35007 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35008 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35009 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35010 # Going to short mode and back again did indeed matter. Since short mode is 35011 # case insensitive, let's make it lowercase to improve readability. 35012 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35013 # Now convert it back to Unix-style (cygpath) 35014 input_path=`$CYGPATH -u "$shortmode_path"` 35015 new_path="$input_path" 35016 fi 35017 fi 35018 35019 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35020 if test "x$test_cygdrive_prefix" = x; then 35021 # As a simple fix, exclude /usr/bin since it's not a real path. 35022 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35023 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35024 # a path prefixed by /cygdrive for fixpath to work. 35025 new_path="$CYGWIN_ROOT_PATH$input_path" 35026 fi 35027 fi 35028 35029 # remove trailing .exe if any 35030 new_path="${new_path/%.exe/}" 35031 35032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35033 35034 # First separate the path from the arguments. This will split at the first 35035 # space. 35036 complete="$RC" 35037 path="${complete%% *}" 35038 tmp="$complete EOL" 35039 arguments="${tmp#* }" 35040 35041 # Input might be given as Windows format, start by converting to 35042 # unix format. 35043 new_path="$path" 35044 35045 windows_path="$new_path" 35046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35047 unix_path=`$CYGPATH -u "$windows_path"` 35048 new_path="$unix_path" 35049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35051 new_path="$unix_path" 35052 fi 35053 35054 35055 # Now try to locate executable using which 35056 new_path=`$WHICH "$new_path" 2> /dev/null` 35057 35058 if test "x$new_path" = x; then 35059 # Oops. Which didn't find the executable. 35060 # The splitting of arguments from the executable at a space might have been incorrect, 35061 # since paths with space are more likely in Windows. Give it another try with the whole 35062 # argument. 35063 path="$complete" 35064 arguments="EOL" 35065 new_path="$path" 35066 35067 windows_path="$new_path" 35068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35069 unix_path=`$CYGPATH -u "$windows_path"` 35070 new_path="$unix_path" 35071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35073 new_path="$unix_path" 35074 fi 35075 35076 35077 new_path=`$WHICH "$new_path" 2> /dev/null` 35078 # bat and cmd files are not always considered executable in MSYS causing which 35079 # to not find them 35080 if test "x$new_path" = x \ 35081 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35082 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35083 new_path="$path" 35084 35085 windows_path="$new_path" 35086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35087 unix_path=`$CYGPATH -u "$windows_path"` 35088 new_path="$unix_path" 35089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35090 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35091 new_path="$unix_path" 35092 fi 35093 35094 fi 35095 35096 if test "x$new_path" = x; then 35097 # It's still not found. Now this is an unrecoverable error. 35098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 35099 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 35100 has_space=`$ECHO "$complete" | $GREP " "` 35101 if test "x$has_space" != x; then 35102 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35103 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35104 fi 35105 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35106 fi 35107 fi 35108 35109 # Now new_path has a complete unix path to the binary 35110 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35111 # Keep paths in /bin as-is, but remove trailing .exe if any 35112 new_path="${new_path/%.exe/}" 35113 # Do not save /bin paths to all_fixpath_prefixes! 35114 else 35115 # Not in mixed or Windows style, start by that. 35116 new_path=`cmd //c echo $new_path` 35117 35118 input_path="$new_path" 35119 # Check if we need to convert this using DOS-style short mode. If the path 35120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35121 # take no chances and rewrite it. 35122 # Note: m4 eats our [], so we need to use [ and ] instead. 35123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35124 if test "x$has_forbidden_chars" != x; then 35125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35127 fi 35128 35129 # Output is in $new_path 35130 35131 windows_path="$new_path" 35132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35133 unix_path=`$CYGPATH -u "$windows_path"` 35134 new_path="$unix_path" 35135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35137 new_path="$unix_path" 35138 fi 35139 35140 # remove trailing .exe if any 35141 new_path="${new_path/%.exe/}" 35142 35143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35145 fi 35146 35147 else 35148 # We're on a unix platform. Hooray! :) 35149 # First separate the path from the arguments. This will split at the first 35150 # space. 35151 complete="$RC" 35152 path="${complete%% *}" 35153 tmp="$complete EOL" 35154 arguments="${tmp#* }" 35155 35156 # Cannot rely on the command "which" here since it doesn't always work. 35157 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35158 if test -z "$is_absolute_path"; then 35159 # Path to executable is not absolute. Find it. 35160 IFS_save="$IFS" 35161 IFS=: 35162 for p in $PATH; do 35163 if test -f "$p/$path" && test -x "$p/$path"; then 35164 new_path="$p/$path" 35165 break 35166 fi 35167 done 35168 IFS="$IFS_save" 35169 else 35170 # This is an absolute path, we can use it without further modifications. 35171 new_path="$path" 35172 fi 35173 35174 if test "x$new_path" = x; then 35175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 35176 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 35177 has_space=`$ECHO "$complete" | $GREP " "` 35178 if test "x$has_space" != x; then 35179 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35181 fi 35182 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35183 fi 35184 fi 35185 35186 # Now join together the path and the arguments once again 35187 if test "x$arguments" != xEOL; then 35188 new_complete="$new_path ${arguments% *}" 35189 else 35190 new_complete="$new_path" 35191 fi 35192 35193 if test "x$complete" != "x$new_complete"; then 35194 RC="$new_complete" 35195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 35196 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 35197 fi 35198 fi 35199 35200 # Extract the first word of "dumpbin", so it can be a program name with args. 35201 set dummy dumpbin; ac_word=$2 35202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35203 $as_echo_n "checking for $ac_word... " >&6; } 35204 if ${ac_cv_prog_DUMPBIN+:} false; then : 35205 $as_echo_n "(cached) " >&6 35206 else 35207 if test -n "$DUMPBIN"; then 35208 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 35209 else 35210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35211 for as_dir in $PATH 35212 do 35213 IFS=$as_save_IFS 35214 test -z "$as_dir" && as_dir=. 35215 for ac_exec_ext in '' $ac_executable_extensions; do 35216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35217 ac_cv_prog_DUMPBIN="dumpbin" 35218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35219 break 2 35220 fi 35221 done 35222 done 35223 IFS=$as_save_IFS 35224 35225 fi 35226 fi 35227 DUMPBIN=$ac_cv_prog_DUMPBIN 35228 if test -n "$DUMPBIN"; then 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 35230 $as_echo "$DUMPBIN" >&6; } 35231 else 35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35233 $as_echo "no" >&6; } 35234 fi 35235 35236 35237 35238 # Only process if variable expands to non-empty 35239 35240 if test "x$DUMPBIN" != x; then 35241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35242 35243 # First separate the path from the arguments. This will split at the first 35244 # space. 35245 complete="$DUMPBIN" 35246 path="${complete%% *}" 35247 tmp="$complete EOL" 35248 arguments="${tmp#* }" 35249 35250 # Input might be given as Windows format, start by converting to 35251 # unix format. 35252 new_path=`$CYGPATH -u "$path"` 35253 35254 # Now try to locate executable using which 35255 new_path=`$WHICH "$new_path" 2> /dev/null` 35256 # bat and cmd files are not always considered executable in cygwin causing which 35257 # to not find them 35258 if test "x$new_path" = x \ 35259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35261 new_path=`$CYGPATH -u "$path"` 35262 fi 35263 if test "x$new_path" = x; then 35264 # Oops. Which didn't find the executable. 35265 # The splitting of arguments from the executable at a space might have been incorrect, 35266 # since paths with space are more likely in Windows. Give it another try with the whole 35267 # argument. 35268 path="$complete" 35269 arguments="EOL" 35270 new_path=`$CYGPATH -u "$path"` 35271 new_path=`$WHICH "$new_path" 2> /dev/null` 35272 # bat and cmd files are not always considered executable in cygwin causing which 35273 # to not find them 35274 if test "x$new_path" = x \ 35275 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35276 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35277 new_path=`$CYGPATH -u "$path"` 35278 fi 35279 if test "x$new_path" = x; then 35280 # It's still not found. Now this is an unrecoverable error. 35281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35282 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35283 has_space=`$ECHO "$complete" | $GREP " "` 35284 if test "x$has_space" != x; then 35285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35287 fi 35288 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35289 fi 35290 fi 35291 35292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35295 # "foo.exe" is OK but "foo" is an error. 35296 # 35297 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35298 # It is also a way to make sure we got the proper file name for the real test later on. 35299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35300 if test "x$test_shortpath" = x; then 35301 # Short path failed, file does not exist as specified. 35302 # Try adding .exe or .cmd 35303 if test -f "${new_path}.exe"; then 35304 input_to_shortpath="${new_path}.exe" 35305 elif test -f "${new_path}.cmd"; then 35306 input_to_shortpath="${new_path}.cmd" 35307 else 35308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 35309 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 35310 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35311 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35312 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35313 fi 35314 else 35315 input_to_shortpath="$new_path" 35316 fi 35317 35318 # Call helper function which possibly converts this using DOS-style short mode. 35319 # If so, the updated path is stored in $new_path. 35320 new_path="$input_to_shortpath" 35321 35322 input_path="$input_to_shortpath" 35323 # Check if we need to convert this using DOS-style short mode. If the path 35324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35325 # take no chances and rewrite it. 35326 # Note: m4 eats our [], so we need to use [ and ] instead. 35327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35328 if test "x$has_forbidden_chars" != x; then 35329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35333 # Going to short mode and back again did indeed matter. Since short mode is 35334 # case insensitive, let's make it lowercase to improve readability. 35335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35336 # Now convert it back to Unix-style (cygpath) 35337 input_path=`$CYGPATH -u "$shortmode_path"` 35338 new_path="$input_path" 35339 fi 35340 fi 35341 35342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35343 if test "x$test_cygdrive_prefix" = x; then 35344 # As a simple fix, exclude /usr/bin since it's not a real path. 35345 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35347 # a path prefixed by /cygdrive for fixpath to work. 35348 new_path="$CYGWIN_ROOT_PATH$input_path" 35349 fi 35350 fi 35351 35352 # remove trailing .exe if any 35353 new_path="${new_path/%.exe/}" 35354 35355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35356 35357 # First separate the path from the arguments. This will split at the first 35358 # space. 35359 complete="$DUMPBIN" 35360 path="${complete%% *}" 35361 tmp="$complete EOL" 35362 arguments="${tmp#* }" 35363 35364 # Input might be given as Windows format, start by converting to 35365 # unix format. 35366 new_path="$path" 35367 35368 windows_path="$new_path" 35369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35370 unix_path=`$CYGPATH -u "$windows_path"` 35371 new_path="$unix_path" 35372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35374 new_path="$unix_path" 35375 fi 35376 35377 35378 # Now try to locate executable using which 35379 new_path=`$WHICH "$new_path" 2> /dev/null` 35380 35381 if test "x$new_path" = x; then 35382 # Oops. Which didn't find the executable. 35383 # The splitting of arguments from the executable at a space might have been incorrect, 35384 # since paths with space are more likely in Windows. Give it another try with the whole 35385 # argument. 35386 path="$complete" 35387 arguments="EOL" 35388 new_path="$path" 35389 35390 windows_path="$new_path" 35391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35392 unix_path=`$CYGPATH -u "$windows_path"` 35393 new_path="$unix_path" 35394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35396 new_path="$unix_path" 35397 fi 35398 35399 35400 new_path=`$WHICH "$new_path" 2> /dev/null` 35401 # bat and cmd files are not always considered executable in MSYS causing which 35402 # to not find them 35403 if test "x$new_path" = x \ 35404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35406 new_path="$path" 35407 35408 windows_path="$new_path" 35409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35410 unix_path=`$CYGPATH -u "$windows_path"` 35411 new_path="$unix_path" 35412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35414 new_path="$unix_path" 35415 fi 35416 35417 fi 35418 35419 if test "x$new_path" = x; then 35420 # It's still not found. Now this is an unrecoverable error. 35421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35422 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35423 has_space=`$ECHO "$complete" | $GREP " "` 35424 if test "x$has_space" != x; then 35425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35427 fi 35428 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35429 fi 35430 fi 35431 35432 # Now new_path has a complete unix path to the binary 35433 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35434 # Keep paths in /bin as-is, but remove trailing .exe if any 35435 new_path="${new_path/%.exe/}" 35436 # Do not save /bin paths to all_fixpath_prefixes! 35437 else 35438 # Not in mixed or Windows style, start by that. 35439 new_path=`cmd //c echo $new_path` 35440 35441 input_path="$new_path" 35442 # Check if we need to convert this using DOS-style short mode. If the path 35443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35444 # take no chances and rewrite it. 35445 # Note: m4 eats our [], so we need to use [ and ] instead. 35446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35447 if test "x$has_forbidden_chars" != x; then 35448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35450 fi 35451 35452 # Output is in $new_path 35453 35454 windows_path="$new_path" 35455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35456 unix_path=`$CYGPATH -u "$windows_path"` 35457 new_path="$unix_path" 35458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35460 new_path="$unix_path" 35461 fi 35462 35463 # remove trailing .exe if any 35464 new_path="${new_path/%.exe/}" 35465 35466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35468 fi 35469 35470 else 35471 # We're on a unix platform. Hooray! :) 35472 # First separate the path from the arguments. This will split at the first 35473 # space. 35474 complete="$DUMPBIN" 35475 path="${complete%% *}" 35476 tmp="$complete EOL" 35477 arguments="${tmp#* }" 35478 35479 # Cannot rely on the command "which" here since it doesn't always work. 35480 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35481 if test -z "$is_absolute_path"; then 35482 # Path to executable is not absolute. Find it. 35483 IFS_save="$IFS" 35484 IFS=: 35485 for p in $PATH; do 35486 if test -f "$p/$path" && test -x "$p/$path"; then 35487 new_path="$p/$path" 35488 break 35489 fi 35490 done 35491 IFS="$IFS_save" 35492 else 35493 # This is an absolute path, we can use it without further modifications. 35494 new_path="$path" 35495 fi 35496 35497 if test "x$new_path" = x; then 35498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35499 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35500 has_space=`$ECHO "$complete" | $GREP " "` 35501 if test "x$has_space" != x; then 35502 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35503 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35504 fi 35505 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35506 fi 35507 fi 35508 35509 # Now join together the path and the arguments once again 35510 if test "x$arguments" != xEOL; then 35511 new_complete="$new_path ${arguments% *}" 35512 else 35513 new_complete="$new_path" 35514 fi 35515 35516 if test "x$complete" != "x$new_complete"; then 35517 DUMPBIN="$new_complete" 35518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35519 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35520 fi 35521 fi 35522 35523 # We need to check for 'msbuild.exe' because at the place where we expect to 35524 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35525 # won't find the 'msbuild.exe' executable in that case (and the 35526 # 'ac_executable_extensions' is unusable due to performance reasons). 35527 # Notice that we intentionally don't fix up the path to MSBUILD because we 35528 # will call it in a DOS shell during freetype detection on Windows (see 35529 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35530 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35531 set dummy msbuild.exe; ac_word=$2 35532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35533 $as_echo_n "checking for $ac_word... " >&6; } 35534 if ${ac_cv_prog_MSBUILD+:} false; then : 35535 $as_echo_n "(cached) " >&6 35536 else 35537 if test -n "$MSBUILD"; then 35538 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35539 else 35540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35541 for as_dir in $PATH 35542 do 35543 IFS=$as_save_IFS 35544 test -z "$as_dir" && as_dir=. 35545 for ac_exec_ext in '' $ac_executable_extensions; do 35546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35547 ac_cv_prog_MSBUILD="msbuild.exe" 35548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35549 break 2 35550 fi 35551 done 35552 done 35553 IFS=$as_save_IFS 35554 35555 fi 35556 fi 35557 MSBUILD=$ac_cv_prog_MSBUILD 35558 if test -n "$MSBUILD"; then 35559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35560 $as_echo "$MSBUILD" >&6; } 35561 else 35562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35563 $as_echo "no" >&6; } 35564 fi 35565 35566 35567 fi 35568 35569 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35570 35571 35572 # Publish this variable in the help. 35573 35574 35575 if test "x$STRIP" = x; then 35576 # The variable is not set by user, try to locate tool using the code snippet 35577 for ac_prog in strip 35578 do 35579 # Extract the first word of "$ac_prog", so it can be a program name with args. 35580 set dummy $ac_prog; ac_word=$2 35581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35582 $as_echo_n "checking for $ac_word... " >&6; } 35583 if ${ac_cv_path_STRIP+:} false; then : 35584 $as_echo_n "(cached) " >&6 35585 else 35586 case $STRIP in 35587 [\\/]* | ?:[\\/]*) 35588 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35589 ;; 35590 *) 35591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35592 for as_dir in $PATH 35593 do 35594 IFS=$as_save_IFS 35595 test -z "$as_dir" && as_dir=. 35596 for ac_exec_ext in '' $ac_executable_extensions; do 35597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35598 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35600 break 2 35601 fi 35602 done 35603 done 35604 IFS=$as_save_IFS 35605 35606 ;; 35607 esac 35608 fi 35609 STRIP=$ac_cv_path_STRIP 35610 if test -n "$STRIP"; then 35611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35612 $as_echo "$STRIP" >&6; } 35613 else 35614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35615 $as_echo "no" >&6; } 35616 fi 35617 35618 35619 test -n "$STRIP" && break 35620 done 35621 35622 else 35623 # The variable is set, but is it from the command line or the environment? 35624 35625 # Try to remove the string !STRIP! from our list. 35626 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35627 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35628 # If it failed, the variable was not from the command line. Ignore it, 35629 # but warn the user (except for BASH, which is always set by the calling BASH). 35630 if test "xSTRIP" != xBASH; then 35631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35632 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35633 fi 35634 # Try to locate tool using the code snippet 35635 for ac_prog in strip 35636 do 35637 # Extract the first word of "$ac_prog", so it can be a program name with args. 35638 set dummy $ac_prog; ac_word=$2 35639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35640 $as_echo_n "checking for $ac_word... " >&6; } 35641 if ${ac_cv_path_STRIP+:} false; then : 35642 $as_echo_n "(cached) " >&6 35643 else 35644 case $STRIP in 35645 [\\/]* | ?:[\\/]*) 35646 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35647 ;; 35648 *) 35649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35650 for as_dir in $PATH 35651 do 35652 IFS=$as_save_IFS 35653 test -z "$as_dir" && as_dir=. 35654 for ac_exec_ext in '' $ac_executable_extensions; do 35655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35656 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35658 break 2 35659 fi 35660 done 35661 done 35662 IFS=$as_save_IFS 35663 35664 ;; 35665 esac 35666 fi 35667 STRIP=$ac_cv_path_STRIP 35668 if test -n "$STRIP"; then 35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35670 $as_echo "$STRIP" >&6; } 35671 else 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35673 $as_echo "no" >&6; } 35674 fi 35675 35676 35677 test -n "$STRIP" && break 35678 done 35679 35680 else 35681 # If it succeeded, then it was overridden by the user. We will use it 35682 # for the tool. 35683 35684 # First remove it from the list of overridden variables, so we can test 35685 # for unknown variables in the end. 35686 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35687 35688 # Check if the provided tool contains a complete path. 35689 tool_specified="$STRIP" 35690 tool_basename="${tool_specified##*/}" 35691 if test "x$tool_basename" = "x$tool_specified"; then 35692 # A command without a complete path is provided, search $PATH. 35693 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35694 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35695 # Extract the first word of "$tool_basename", so it can be a program name with args. 35696 set dummy $tool_basename; ac_word=$2 35697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35698 $as_echo_n "checking for $ac_word... " >&6; } 35699 if ${ac_cv_path_STRIP+:} false; then : 35700 $as_echo_n "(cached) " >&6 35701 else 35702 case $STRIP in 35703 [\\/]* | ?:[\\/]*) 35704 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35705 ;; 35706 *) 35707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35708 for as_dir in $PATH 35709 do 35710 IFS=$as_save_IFS 35711 test -z "$as_dir" && as_dir=. 35712 for ac_exec_ext in '' $ac_executable_extensions; do 35713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35714 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35716 break 2 35717 fi 35718 done 35719 done 35720 IFS=$as_save_IFS 35721 35722 ;; 35723 esac 35724 fi 35725 STRIP=$ac_cv_path_STRIP 35726 if test -n "$STRIP"; then 35727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35728 $as_echo "$STRIP" >&6; } 35729 else 35730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35731 $as_echo "no" >&6; } 35732 fi 35733 35734 35735 if test "x$STRIP" = x; then 35736 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35737 fi 35738 else 35739 # Otherwise we believe it is a complete path. Use it as it is. 35740 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35741 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35743 $as_echo_n "checking for STRIP... " >&6; } 35744 if test ! -x "$tool_specified"; then 35745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35746 $as_echo "not found" >&6; } 35747 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35748 fi 35749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35750 $as_echo "$tool_specified" >&6; } 35751 fi 35752 fi 35753 fi 35754 35755 35756 35757 # Only process if variable expands to non-empty 35758 35759 if test "x$STRIP" != x; then 35760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35761 35762 # First separate the path from the arguments. This will split at the first 35763 # space. 35764 complete="$STRIP" 35765 path="${complete%% *}" 35766 tmp="$complete EOL" 35767 arguments="${tmp#* }" 35768 35769 # Input might be given as Windows format, start by converting to 35770 # unix format. 35771 new_path=`$CYGPATH -u "$path"` 35772 35773 # Now try to locate executable using which 35774 new_path=`$WHICH "$new_path" 2> /dev/null` 35775 # bat and cmd files are not always considered executable in cygwin causing which 35776 # to not find them 35777 if test "x$new_path" = x \ 35778 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35779 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35780 new_path=`$CYGPATH -u "$path"` 35781 fi 35782 if test "x$new_path" = x; then 35783 # Oops. Which didn't find the executable. 35784 # The splitting of arguments from the executable at a space might have been incorrect, 35785 # since paths with space are more likely in Windows. Give it another try with the whole 35786 # argument. 35787 path="$complete" 35788 arguments="EOL" 35789 new_path=`$CYGPATH -u "$path"` 35790 new_path=`$WHICH "$new_path" 2> /dev/null` 35791 # bat and cmd files are not always considered executable in cygwin causing which 35792 # to not find them 35793 if test "x$new_path" = x \ 35794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35796 new_path=`$CYGPATH -u "$path"` 35797 fi 35798 if test "x$new_path" = x; then 35799 # It's still not found. Now this is an unrecoverable error. 35800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35801 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35802 has_space=`$ECHO "$complete" | $GREP " "` 35803 if test "x$has_space" != x; then 35804 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35805 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35806 fi 35807 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35808 fi 35809 fi 35810 35811 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35812 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35813 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35814 # "foo.exe" is OK but "foo" is an error. 35815 # 35816 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35817 # It is also a way to make sure we got the proper file name for the real test later on. 35818 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35819 if test "x$test_shortpath" = x; then 35820 # Short path failed, file does not exist as specified. 35821 # Try adding .exe or .cmd 35822 if test -f "${new_path}.exe"; then 35823 input_to_shortpath="${new_path}.exe" 35824 elif test -f "${new_path}.cmd"; then 35825 input_to_shortpath="${new_path}.cmd" 35826 else 35827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35828 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35829 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35830 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35831 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35832 fi 35833 else 35834 input_to_shortpath="$new_path" 35835 fi 35836 35837 # Call helper function which possibly converts this using DOS-style short mode. 35838 # If so, the updated path is stored in $new_path. 35839 new_path="$input_to_shortpath" 35840 35841 input_path="$input_to_shortpath" 35842 # Check if we need to convert this using DOS-style short mode. If the path 35843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35844 # take no chances and rewrite it. 35845 # Note: m4 eats our [], so we need to use [ and ] instead. 35846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35847 if test "x$has_forbidden_chars" != x; then 35848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35849 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35850 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35851 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35852 # Going to short mode and back again did indeed matter. Since short mode is 35853 # case insensitive, let's make it lowercase to improve readability. 35854 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35855 # Now convert it back to Unix-style (cygpath) 35856 input_path=`$CYGPATH -u "$shortmode_path"` 35857 new_path="$input_path" 35858 fi 35859 fi 35860 35861 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35862 if test "x$test_cygdrive_prefix" = x; then 35863 # As a simple fix, exclude /usr/bin since it's not a real path. 35864 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35865 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35866 # a path prefixed by /cygdrive for fixpath to work. 35867 new_path="$CYGWIN_ROOT_PATH$input_path" 35868 fi 35869 fi 35870 35871 # remove trailing .exe if any 35872 new_path="${new_path/%.exe/}" 35873 35874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35875 35876 # First separate the path from the arguments. This will split at the first 35877 # space. 35878 complete="$STRIP" 35879 path="${complete%% *}" 35880 tmp="$complete EOL" 35881 arguments="${tmp#* }" 35882 35883 # Input might be given as Windows format, start by converting to 35884 # unix format. 35885 new_path="$path" 35886 35887 windows_path="$new_path" 35888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35889 unix_path=`$CYGPATH -u "$windows_path"` 35890 new_path="$unix_path" 35891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35893 new_path="$unix_path" 35894 fi 35895 35896 35897 # Now try to locate executable using which 35898 new_path=`$WHICH "$new_path" 2> /dev/null` 35899 35900 if test "x$new_path" = x; then 35901 # Oops. Which didn't find the executable. 35902 # The splitting of arguments from the executable at a space might have been incorrect, 35903 # since paths with space are more likely in Windows. Give it another try with the whole 35904 # argument. 35905 path="$complete" 35906 arguments="EOL" 35907 new_path="$path" 35908 35909 windows_path="$new_path" 35910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35911 unix_path=`$CYGPATH -u "$windows_path"` 35912 new_path="$unix_path" 35913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35915 new_path="$unix_path" 35916 fi 35917 35918 35919 new_path=`$WHICH "$new_path" 2> /dev/null` 35920 # bat and cmd files are not always considered executable in MSYS causing which 35921 # to not find them 35922 if test "x$new_path" = x \ 35923 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35924 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35925 new_path="$path" 35926 35927 windows_path="$new_path" 35928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35929 unix_path=`$CYGPATH -u "$windows_path"` 35930 new_path="$unix_path" 35931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35933 new_path="$unix_path" 35934 fi 35935 35936 fi 35937 35938 if test "x$new_path" = x; then 35939 # It's still not found. Now this is an unrecoverable error. 35940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35941 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35942 has_space=`$ECHO "$complete" | $GREP " "` 35943 if test "x$has_space" != x; then 35944 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35945 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35946 fi 35947 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35948 fi 35949 fi 35950 35951 # Now new_path has a complete unix path to the binary 35952 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35953 # Keep paths in /bin as-is, but remove trailing .exe if any 35954 new_path="${new_path/%.exe/}" 35955 # Do not save /bin paths to all_fixpath_prefixes! 35956 else 35957 # Not in mixed or Windows style, start by that. 35958 new_path=`cmd //c echo $new_path` 35959 35960 input_path="$new_path" 35961 # Check if we need to convert this using DOS-style short mode. If the path 35962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35963 # take no chances and rewrite it. 35964 # Note: m4 eats our [], so we need to use [ and ] instead. 35965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35966 if test "x$has_forbidden_chars" != x; then 35967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35968 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35969 fi 35970 35971 # Output is in $new_path 35972 35973 windows_path="$new_path" 35974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35975 unix_path=`$CYGPATH -u "$windows_path"` 35976 new_path="$unix_path" 35977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35979 new_path="$unix_path" 35980 fi 35981 35982 # remove trailing .exe if any 35983 new_path="${new_path/%.exe/}" 35984 35985 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35986 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35987 fi 35988 35989 else 35990 # We're on a unix platform. Hooray! :) 35991 # First separate the path from the arguments. This will split at the first 35992 # space. 35993 complete="$STRIP" 35994 path="${complete%% *}" 35995 tmp="$complete EOL" 35996 arguments="${tmp#* }" 35997 35998 # Cannot rely on the command "which" here since it doesn't always work. 35999 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36000 if test -z "$is_absolute_path"; then 36001 # Path to executable is not absolute. Find it. 36002 IFS_save="$IFS" 36003 IFS=: 36004 for p in $PATH; do 36005 if test -f "$p/$path" && test -x "$p/$path"; then 36006 new_path="$p/$path" 36007 break 36008 fi 36009 done 36010 IFS="$IFS_save" 36011 else 36012 # This is an absolute path, we can use it without further modifications. 36013 new_path="$path" 36014 fi 36015 36016 if test "x$new_path" = x; then 36017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36018 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36019 has_space=`$ECHO "$complete" | $GREP " "` 36020 if test "x$has_space" != x; then 36021 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36022 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36023 fi 36024 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36025 fi 36026 fi 36027 36028 # Now join together the path and the arguments once again 36029 if test "x$arguments" != xEOL; then 36030 new_complete="$new_path ${arguments% *}" 36031 else 36032 new_complete="$new_path" 36033 fi 36034 36035 if test "x$complete" != "x$new_complete"; then 36036 STRIP="$new_complete" 36037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36038 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36039 fi 36040 fi 36041 36042 36043 36044 # Publish this variable in the help. 36045 36046 36047 if test "x$NM" = x; then 36048 # The variable is not set by user, try to locate tool using the code snippet 36049 for ac_prog in nm 36050 do 36051 # Extract the first word of "$ac_prog", so it can be a program name with args. 36052 set dummy $ac_prog; ac_word=$2 36053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36054 $as_echo_n "checking for $ac_word... " >&6; } 36055 if ${ac_cv_path_NM+:} false; then : 36056 $as_echo_n "(cached) " >&6 36057 else 36058 case $NM in 36059 [\\/]* | ?:[\\/]*) 36060 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36061 ;; 36062 *) 36063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36064 for as_dir in $PATH 36065 do 36066 IFS=$as_save_IFS 36067 test -z "$as_dir" && as_dir=. 36068 for ac_exec_ext in '' $ac_executable_extensions; do 36069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36070 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36072 break 2 36073 fi 36074 done 36075 done 36076 IFS=$as_save_IFS 36077 36078 ;; 36079 esac 36080 fi 36081 NM=$ac_cv_path_NM 36082 if test -n "$NM"; then 36083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36084 $as_echo "$NM" >&6; } 36085 else 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36087 $as_echo "no" >&6; } 36088 fi 36089 36090 36091 test -n "$NM" && break 36092 done 36093 36094 else 36095 # The variable is set, but is it from the command line or the environment? 36096 36097 # Try to remove the string !NM! from our list. 36098 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 36099 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36100 # If it failed, the variable was not from the command line. Ignore it, 36101 # but warn the user (except for BASH, which is always set by the calling BASH). 36102 if test "xNM" != xBASH; then 36103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 36104 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 36105 fi 36106 # Try to locate tool using the code snippet 36107 for ac_prog in nm 36108 do 36109 # Extract the first word of "$ac_prog", so it can be a program name with args. 36110 set dummy $ac_prog; ac_word=$2 36111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36112 $as_echo_n "checking for $ac_word... " >&6; } 36113 if ${ac_cv_path_NM+:} false; then : 36114 $as_echo_n "(cached) " >&6 36115 else 36116 case $NM in 36117 [\\/]* | ?:[\\/]*) 36118 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36119 ;; 36120 *) 36121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36122 for as_dir in $PATH 36123 do 36124 IFS=$as_save_IFS 36125 test -z "$as_dir" && as_dir=. 36126 for ac_exec_ext in '' $ac_executable_extensions; do 36127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36128 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36130 break 2 36131 fi 36132 done 36133 done 36134 IFS=$as_save_IFS 36135 36136 ;; 36137 esac 36138 fi 36139 NM=$ac_cv_path_NM 36140 if test -n "$NM"; then 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36142 $as_echo "$NM" >&6; } 36143 else 36144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36145 $as_echo "no" >&6; } 36146 fi 36147 36148 36149 test -n "$NM" && break 36150 done 36151 36152 else 36153 # If it succeeded, then it was overridden by the user. We will use it 36154 # for the tool. 36155 36156 # First remove it from the list of overridden variables, so we can test 36157 # for unknown variables in the end. 36158 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36159 36160 # Check if the provided tool contains a complete path. 36161 tool_specified="$NM" 36162 tool_basename="${tool_specified##*/}" 36163 if test "x$tool_basename" = "x$tool_specified"; then 36164 # A command without a complete path is provided, search $PATH. 36165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 36166 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 36167 # Extract the first word of "$tool_basename", so it can be a program name with args. 36168 set dummy $tool_basename; ac_word=$2 36169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36170 $as_echo_n "checking for $ac_word... " >&6; } 36171 if ${ac_cv_path_NM+:} false; then : 36172 $as_echo_n "(cached) " >&6 36173 else 36174 case $NM in 36175 [\\/]* | ?:[\\/]*) 36176 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36177 ;; 36178 *) 36179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36180 for as_dir in $PATH 36181 do 36182 IFS=$as_save_IFS 36183 test -z "$as_dir" && as_dir=. 36184 for ac_exec_ext in '' $ac_executable_extensions; do 36185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36186 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36188 break 2 36189 fi 36190 done 36191 done 36192 IFS=$as_save_IFS 36193 36194 ;; 36195 esac 36196 fi 36197 NM=$ac_cv_path_NM 36198 if test -n "$NM"; then 36199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36200 $as_echo "$NM" >&6; } 36201 else 36202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36203 $as_echo "no" >&6; } 36204 fi 36205 36206 36207 if test "x$NM" = x; then 36208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36209 fi 36210 else 36211 # Otherwise we believe it is a complete path. Use it as it is. 36212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 36213 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 36215 $as_echo_n "checking for NM... " >&6; } 36216 if test ! -x "$tool_specified"; then 36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36218 $as_echo "not found" >&6; } 36219 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 36220 fi 36221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36222 $as_echo "$tool_specified" >&6; } 36223 fi 36224 fi 36225 fi 36226 36227 36228 36229 # Only process if variable expands to non-empty 36230 36231 if test "x$NM" != x; then 36232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36233 36234 # First separate the path from the arguments. This will split at the first 36235 # space. 36236 complete="$NM" 36237 path="${complete%% *}" 36238 tmp="$complete EOL" 36239 arguments="${tmp#* }" 36240 36241 # Input might be given as Windows format, start by converting to 36242 # unix format. 36243 new_path=`$CYGPATH -u "$path"` 36244 36245 # Now try to locate executable using which 36246 new_path=`$WHICH "$new_path" 2> /dev/null` 36247 # bat and cmd files are not always considered executable in cygwin causing which 36248 # to not find them 36249 if test "x$new_path" = x \ 36250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36252 new_path=`$CYGPATH -u "$path"` 36253 fi 36254 if test "x$new_path" = x; then 36255 # Oops. Which didn't find the executable. 36256 # The splitting of arguments from the executable at a space might have been incorrect, 36257 # since paths with space are more likely in Windows. Give it another try with the whole 36258 # argument. 36259 path="$complete" 36260 arguments="EOL" 36261 new_path=`$CYGPATH -u "$path"` 36262 new_path=`$WHICH "$new_path" 2> /dev/null` 36263 # bat and cmd files are not always considered executable in cygwin causing which 36264 # to not find them 36265 if test "x$new_path" = x \ 36266 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36267 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36268 new_path=`$CYGPATH -u "$path"` 36269 fi 36270 if test "x$new_path" = x; then 36271 # It's still not found. Now this is an unrecoverable error. 36272 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36273 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36274 has_space=`$ECHO "$complete" | $GREP " "` 36275 if test "x$has_space" != x; then 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36277 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36278 fi 36279 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36280 fi 36281 fi 36282 36283 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36284 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36285 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36286 # "foo.exe" is OK but "foo" is an error. 36287 # 36288 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36289 # It is also a way to make sure we got the proper file name for the real test later on. 36290 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36291 if test "x$test_shortpath" = x; then 36292 # Short path failed, file does not exist as specified. 36293 # Try adding .exe or .cmd 36294 if test -f "${new_path}.exe"; then 36295 input_to_shortpath="${new_path}.exe" 36296 elif test -f "${new_path}.cmd"; then 36297 input_to_shortpath="${new_path}.cmd" 36298 else 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36300 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36301 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36302 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36303 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36304 fi 36305 else 36306 input_to_shortpath="$new_path" 36307 fi 36308 36309 # Call helper function which possibly converts this using DOS-style short mode. 36310 # If so, the updated path is stored in $new_path. 36311 new_path="$input_to_shortpath" 36312 36313 input_path="$input_to_shortpath" 36314 # Check if we need to convert this using DOS-style short mode. If the path 36315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36316 # take no chances and rewrite it. 36317 # Note: m4 eats our [], so we need to use [ and ] instead. 36318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36319 if test "x$has_forbidden_chars" != x; then 36320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36321 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36322 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36323 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36324 # Going to short mode and back again did indeed matter. Since short mode is 36325 # case insensitive, let's make it lowercase to improve readability. 36326 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36327 # Now convert it back to Unix-style (cygpath) 36328 input_path=`$CYGPATH -u "$shortmode_path"` 36329 new_path="$input_path" 36330 fi 36331 fi 36332 36333 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36334 if test "x$test_cygdrive_prefix" = x; then 36335 # As a simple fix, exclude /usr/bin since it's not a real path. 36336 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36337 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36338 # a path prefixed by /cygdrive for fixpath to work. 36339 new_path="$CYGWIN_ROOT_PATH$input_path" 36340 fi 36341 fi 36342 36343 # remove trailing .exe if any 36344 new_path="${new_path/%.exe/}" 36345 36346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36347 36348 # First separate the path from the arguments. This will split at the first 36349 # space. 36350 complete="$NM" 36351 path="${complete%% *}" 36352 tmp="$complete EOL" 36353 arguments="${tmp#* }" 36354 36355 # Input might be given as Windows format, start by converting to 36356 # unix format. 36357 new_path="$path" 36358 36359 windows_path="$new_path" 36360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36361 unix_path=`$CYGPATH -u "$windows_path"` 36362 new_path="$unix_path" 36363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36365 new_path="$unix_path" 36366 fi 36367 36368 36369 # Now try to locate executable using which 36370 new_path=`$WHICH "$new_path" 2> /dev/null` 36371 36372 if test "x$new_path" = x; then 36373 # Oops. Which didn't find the executable. 36374 # The splitting of arguments from the executable at a space might have been incorrect, 36375 # since paths with space are more likely in Windows. Give it another try with the whole 36376 # argument. 36377 path="$complete" 36378 arguments="EOL" 36379 new_path="$path" 36380 36381 windows_path="$new_path" 36382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36383 unix_path=`$CYGPATH -u "$windows_path"` 36384 new_path="$unix_path" 36385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36387 new_path="$unix_path" 36388 fi 36389 36390 36391 new_path=`$WHICH "$new_path" 2> /dev/null` 36392 # bat and cmd files are not always considered executable in MSYS causing which 36393 # to not find them 36394 if test "x$new_path" = x \ 36395 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36396 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36397 new_path="$path" 36398 36399 windows_path="$new_path" 36400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36401 unix_path=`$CYGPATH -u "$windows_path"` 36402 new_path="$unix_path" 36403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36405 new_path="$unix_path" 36406 fi 36407 36408 fi 36409 36410 if test "x$new_path" = x; then 36411 # It's still not found. Now this is an unrecoverable error. 36412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36413 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36414 has_space=`$ECHO "$complete" | $GREP " "` 36415 if test "x$has_space" != x; then 36416 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36417 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36418 fi 36419 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36420 fi 36421 fi 36422 36423 # Now new_path has a complete unix path to the binary 36424 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36425 # Keep paths in /bin as-is, but remove trailing .exe if any 36426 new_path="${new_path/%.exe/}" 36427 # Do not save /bin paths to all_fixpath_prefixes! 36428 else 36429 # Not in mixed or Windows style, start by that. 36430 new_path=`cmd //c echo $new_path` 36431 36432 input_path="$new_path" 36433 # Check if we need to convert this using DOS-style short mode. If the path 36434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36435 # take no chances and rewrite it. 36436 # Note: m4 eats our [], so we need to use [ and ] instead. 36437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36438 if test "x$has_forbidden_chars" != x; then 36439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36440 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36441 fi 36442 36443 # Output is in $new_path 36444 36445 windows_path="$new_path" 36446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36447 unix_path=`$CYGPATH -u "$windows_path"` 36448 new_path="$unix_path" 36449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36450 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36451 new_path="$unix_path" 36452 fi 36453 36454 # remove trailing .exe if any 36455 new_path="${new_path/%.exe/}" 36456 36457 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36458 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36459 fi 36460 36461 else 36462 # We're on a unix platform. Hooray! :) 36463 # First separate the path from the arguments. This will split at the first 36464 # space. 36465 complete="$NM" 36466 path="${complete%% *}" 36467 tmp="$complete EOL" 36468 arguments="${tmp#* }" 36469 36470 # Cannot rely on the command "which" here since it doesn't always work. 36471 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36472 if test -z "$is_absolute_path"; then 36473 # Path to executable is not absolute. Find it. 36474 IFS_save="$IFS" 36475 IFS=: 36476 for p in $PATH; do 36477 if test -f "$p/$path" && test -x "$p/$path"; then 36478 new_path="$p/$path" 36479 break 36480 fi 36481 done 36482 IFS="$IFS_save" 36483 else 36484 # This is an absolute path, we can use it without further modifications. 36485 new_path="$path" 36486 fi 36487 36488 if test "x$new_path" = x; then 36489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36490 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36491 has_space=`$ECHO "$complete" | $GREP " "` 36492 if test "x$has_space" != x; then 36493 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36494 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36495 fi 36496 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36497 fi 36498 fi 36499 36500 # Now join together the path and the arguments once again 36501 if test "x$arguments" != xEOL; then 36502 new_complete="$new_path ${arguments% *}" 36503 else 36504 new_complete="$new_path" 36505 fi 36506 36507 if test "x$complete" != "x$new_complete"; then 36508 NM="$new_complete" 36509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36510 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36511 fi 36512 fi 36513 36514 36515 36516 # Publish this variable in the help. 36517 36518 36519 if test "x$GNM" = x; then 36520 # The variable is not set by user, try to locate tool using the code snippet 36521 for ac_prog in gnm 36522 do 36523 # Extract the first word of "$ac_prog", so it can be a program name with args. 36524 set dummy $ac_prog; ac_word=$2 36525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36526 $as_echo_n "checking for $ac_word... " >&6; } 36527 if ${ac_cv_path_GNM+:} false; then : 36528 $as_echo_n "(cached) " >&6 36529 else 36530 case $GNM in 36531 [\\/]* | ?:[\\/]*) 36532 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36533 ;; 36534 *) 36535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36536 for as_dir in $PATH 36537 do 36538 IFS=$as_save_IFS 36539 test -z "$as_dir" && as_dir=. 36540 for ac_exec_ext in '' $ac_executable_extensions; do 36541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36542 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36544 break 2 36545 fi 36546 done 36547 done 36548 IFS=$as_save_IFS 36549 36550 ;; 36551 esac 36552 fi 36553 GNM=$ac_cv_path_GNM 36554 if test -n "$GNM"; then 36555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36556 $as_echo "$GNM" >&6; } 36557 else 36558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36559 $as_echo "no" >&6; } 36560 fi 36561 36562 36563 test -n "$GNM" && break 36564 done 36565 36566 else 36567 # The variable is set, but is it from the command line or the environment? 36568 36569 # Try to remove the string !GNM! from our list. 36570 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36571 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36572 # If it failed, the variable was not from the command line. Ignore it, 36573 # but warn the user (except for BASH, which is always set by the calling BASH). 36574 if test "xGNM" != xBASH; then 36575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36576 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36577 fi 36578 # Try to locate tool using the code snippet 36579 for ac_prog in gnm 36580 do 36581 # Extract the first word of "$ac_prog", so it can be a program name with args. 36582 set dummy $ac_prog; ac_word=$2 36583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36584 $as_echo_n "checking for $ac_word... " >&6; } 36585 if ${ac_cv_path_GNM+:} false; then : 36586 $as_echo_n "(cached) " >&6 36587 else 36588 case $GNM in 36589 [\\/]* | ?:[\\/]*) 36590 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36591 ;; 36592 *) 36593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36594 for as_dir in $PATH 36595 do 36596 IFS=$as_save_IFS 36597 test -z "$as_dir" && as_dir=. 36598 for ac_exec_ext in '' $ac_executable_extensions; do 36599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36600 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36602 break 2 36603 fi 36604 done 36605 done 36606 IFS=$as_save_IFS 36607 36608 ;; 36609 esac 36610 fi 36611 GNM=$ac_cv_path_GNM 36612 if test -n "$GNM"; then 36613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36614 $as_echo "$GNM" >&6; } 36615 else 36616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36617 $as_echo "no" >&6; } 36618 fi 36619 36620 36621 test -n "$GNM" && break 36622 done 36623 36624 else 36625 # If it succeeded, then it was overridden by the user. We will use it 36626 # for the tool. 36627 36628 # First remove it from the list of overridden variables, so we can test 36629 # for unknown variables in the end. 36630 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36631 36632 # Check if the provided tool contains a complete path. 36633 tool_specified="$GNM" 36634 tool_basename="${tool_specified##*/}" 36635 if test "x$tool_basename" = "x$tool_specified"; then 36636 # A command without a complete path is provided, search $PATH. 36637 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36638 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36639 # Extract the first word of "$tool_basename", so it can be a program name with args. 36640 set dummy $tool_basename; ac_word=$2 36641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36642 $as_echo_n "checking for $ac_word... " >&6; } 36643 if ${ac_cv_path_GNM+:} false; then : 36644 $as_echo_n "(cached) " >&6 36645 else 36646 case $GNM in 36647 [\\/]* | ?:[\\/]*) 36648 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36649 ;; 36650 *) 36651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36652 for as_dir in $PATH 36653 do 36654 IFS=$as_save_IFS 36655 test -z "$as_dir" && as_dir=. 36656 for ac_exec_ext in '' $ac_executable_extensions; do 36657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36658 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36660 break 2 36661 fi 36662 done 36663 done 36664 IFS=$as_save_IFS 36665 36666 ;; 36667 esac 36668 fi 36669 GNM=$ac_cv_path_GNM 36670 if test -n "$GNM"; then 36671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36672 $as_echo "$GNM" >&6; } 36673 else 36674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36675 $as_echo "no" >&6; } 36676 fi 36677 36678 36679 if test "x$GNM" = x; then 36680 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36681 fi 36682 else 36683 # Otherwise we believe it is a complete path. Use it as it is. 36684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36685 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36687 $as_echo_n "checking for GNM... " >&6; } 36688 if test ! -x "$tool_specified"; then 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36690 $as_echo "not found" >&6; } 36691 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36692 fi 36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36694 $as_echo "$tool_specified" >&6; } 36695 fi 36696 fi 36697 fi 36698 36699 36700 36701 # Only process if variable expands to non-empty 36702 36703 if test "x$GNM" != x; then 36704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36705 36706 # First separate the path from the arguments. This will split at the first 36707 # space. 36708 complete="$GNM" 36709 path="${complete%% *}" 36710 tmp="$complete EOL" 36711 arguments="${tmp#* }" 36712 36713 # Input might be given as Windows format, start by converting to 36714 # unix format. 36715 new_path=`$CYGPATH -u "$path"` 36716 36717 # Now try to locate executable using which 36718 new_path=`$WHICH "$new_path" 2> /dev/null` 36719 # bat and cmd files are not always considered executable in cygwin causing which 36720 # to not find them 36721 if test "x$new_path" = x \ 36722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36724 new_path=`$CYGPATH -u "$path"` 36725 fi 36726 if test "x$new_path" = x; then 36727 # Oops. Which didn't find the executable. 36728 # The splitting of arguments from the executable at a space might have been incorrect, 36729 # since paths with space are more likely in Windows. Give it another try with the whole 36730 # argument. 36731 path="$complete" 36732 arguments="EOL" 36733 new_path=`$CYGPATH -u "$path"` 36734 new_path=`$WHICH "$new_path" 2> /dev/null` 36735 # bat and cmd files are not always considered executable in cygwin causing which 36736 # to not find them 36737 if test "x$new_path" = x \ 36738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36740 new_path=`$CYGPATH -u "$path"` 36741 fi 36742 if test "x$new_path" = x; then 36743 # It's still not found. Now this is an unrecoverable error. 36744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36745 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36746 has_space=`$ECHO "$complete" | $GREP " "` 36747 if test "x$has_space" != x; then 36748 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36749 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36750 fi 36751 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36752 fi 36753 fi 36754 36755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36758 # "foo.exe" is OK but "foo" is an error. 36759 # 36760 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36761 # It is also a way to make sure we got the proper file name for the real test later on. 36762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36763 if test "x$test_shortpath" = x; then 36764 # Short path failed, file does not exist as specified. 36765 # Try adding .exe or .cmd 36766 if test -f "${new_path}.exe"; then 36767 input_to_shortpath="${new_path}.exe" 36768 elif test -f "${new_path}.cmd"; then 36769 input_to_shortpath="${new_path}.cmd" 36770 else 36771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36772 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36773 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36774 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36775 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36776 fi 36777 else 36778 input_to_shortpath="$new_path" 36779 fi 36780 36781 # Call helper function which possibly converts this using DOS-style short mode. 36782 # If so, the updated path is stored in $new_path. 36783 new_path="$input_to_shortpath" 36784 36785 input_path="$input_to_shortpath" 36786 # Check if we need to convert this using DOS-style short mode. If the path 36787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36788 # take no chances and rewrite it. 36789 # Note: m4 eats our [], so we need to use [ and ] instead. 36790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36791 if test "x$has_forbidden_chars" != x; then 36792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36793 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36794 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36795 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36796 # Going to short mode and back again did indeed matter. Since short mode is 36797 # case insensitive, let's make it lowercase to improve readability. 36798 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36799 # Now convert it back to Unix-style (cygpath) 36800 input_path=`$CYGPATH -u "$shortmode_path"` 36801 new_path="$input_path" 36802 fi 36803 fi 36804 36805 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36806 if test "x$test_cygdrive_prefix" = x; then 36807 # As a simple fix, exclude /usr/bin since it's not a real path. 36808 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36809 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36810 # a path prefixed by /cygdrive for fixpath to work. 36811 new_path="$CYGWIN_ROOT_PATH$input_path" 36812 fi 36813 fi 36814 36815 # remove trailing .exe if any 36816 new_path="${new_path/%.exe/}" 36817 36818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36819 36820 # First separate the path from the arguments. This will split at the first 36821 # space. 36822 complete="$GNM" 36823 path="${complete%% *}" 36824 tmp="$complete EOL" 36825 arguments="${tmp#* }" 36826 36827 # Input might be given as Windows format, start by converting to 36828 # unix format. 36829 new_path="$path" 36830 36831 windows_path="$new_path" 36832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36833 unix_path=`$CYGPATH -u "$windows_path"` 36834 new_path="$unix_path" 36835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36837 new_path="$unix_path" 36838 fi 36839 36840 36841 # Now try to locate executable using which 36842 new_path=`$WHICH "$new_path" 2> /dev/null` 36843 36844 if test "x$new_path" = x; then 36845 # Oops. Which didn't find the executable. 36846 # The splitting of arguments from the executable at a space might have been incorrect, 36847 # since paths with space are more likely in Windows. Give it another try with the whole 36848 # argument. 36849 path="$complete" 36850 arguments="EOL" 36851 new_path="$path" 36852 36853 windows_path="$new_path" 36854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36855 unix_path=`$CYGPATH -u "$windows_path"` 36856 new_path="$unix_path" 36857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36859 new_path="$unix_path" 36860 fi 36861 36862 36863 new_path=`$WHICH "$new_path" 2> /dev/null` 36864 # bat and cmd files are not always considered executable in MSYS causing which 36865 # to not find them 36866 if test "x$new_path" = x \ 36867 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36868 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36869 new_path="$path" 36870 36871 windows_path="$new_path" 36872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36873 unix_path=`$CYGPATH -u "$windows_path"` 36874 new_path="$unix_path" 36875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36877 new_path="$unix_path" 36878 fi 36879 36880 fi 36881 36882 if test "x$new_path" = x; then 36883 # It's still not found. Now this is an unrecoverable error. 36884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36885 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36886 has_space=`$ECHO "$complete" | $GREP " "` 36887 if test "x$has_space" != x; then 36888 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36889 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36890 fi 36891 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36892 fi 36893 fi 36894 36895 # Now new_path has a complete unix path to the binary 36896 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36897 # Keep paths in /bin as-is, but remove trailing .exe if any 36898 new_path="${new_path/%.exe/}" 36899 # Do not save /bin paths to all_fixpath_prefixes! 36900 else 36901 # Not in mixed or Windows style, start by that. 36902 new_path=`cmd //c echo $new_path` 36903 36904 input_path="$new_path" 36905 # Check if we need to convert this using DOS-style short mode. If the path 36906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36907 # take no chances and rewrite it. 36908 # Note: m4 eats our [], so we need to use [ and ] instead. 36909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36910 if test "x$has_forbidden_chars" != x; then 36911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36913 fi 36914 36915 # Output is in $new_path 36916 36917 windows_path="$new_path" 36918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36919 unix_path=`$CYGPATH -u "$windows_path"` 36920 new_path="$unix_path" 36921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36923 new_path="$unix_path" 36924 fi 36925 36926 # remove trailing .exe if any 36927 new_path="${new_path/%.exe/}" 36928 36929 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36930 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36931 fi 36932 36933 else 36934 # We're on a unix platform. Hooray! :) 36935 # First separate the path from the arguments. This will split at the first 36936 # space. 36937 complete="$GNM" 36938 path="${complete%% *}" 36939 tmp="$complete EOL" 36940 arguments="${tmp#* }" 36941 36942 # Cannot rely on the command "which" here since it doesn't always work. 36943 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36944 if test -z "$is_absolute_path"; then 36945 # Path to executable is not absolute. Find it. 36946 IFS_save="$IFS" 36947 IFS=: 36948 for p in $PATH; do 36949 if test -f "$p/$path" && test -x "$p/$path"; then 36950 new_path="$p/$path" 36951 break 36952 fi 36953 done 36954 IFS="$IFS_save" 36955 else 36956 # This is an absolute path, we can use it without further modifications. 36957 new_path="$path" 36958 fi 36959 36960 if test "x$new_path" = x; then 36961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36962 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36963 has_space=`$ECHO "$complete" | $GREP " "` 36964 if test "x$has_space" != x; then 36965 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36966 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36967 fi 36968 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36969 fi 36970 fi 36971 36972 # Now join together the path and the arguments once again 36973 if test "x$arguments" != xEOL; then 36974 new_complete="$new_path ${arguments% *}" 36975 else 36976 new_complete="$new_path" 36977 fi 36978 36979 if test "x$complete" != "x$new_complete"; then 36980 GNM="$new_complete" 36981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36982 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36983 fi 36984 fi 36985 36986 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36987 # FIXME: we should unify this with the solaris case above. 36988 36989 36990 # Publish this variable in the help. 36991 36992 36993 if test "x$STRIP" = x; then 36994 # The variable is not set by user, try to locate tool using the code snippet 36995 if test -n "$ac_tool_prefix"; then 36996 for ac_prog in strip 36997 do 36998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37001 $as_echo_n "checking for $ac_word... " >&6; } 37002 if ${ac_cv_prog_STRIP+:} false; then : 37003 $as_echo_n "(cached) " >&6 37004 else 37005 if test -n "$STRIP"; then 37006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37007 else 37008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37009 for as_dir in $PATH 37010 do 37011 IFS=$as_save_IFS 37012 test -z "$as_dir" && as_dir=. 37013 for ac_exec_ext in '' $ac_executable_extensions; do 37014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37015 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37017 break 2 37018 fi 37019 done 37020 done 37021 IFS=$as_save_IFS 37022 37023 fi 37024 fi 37025 STRIP=$ac_cv_prog_STRIP 37026 if test -n "$STRIP"; then 37027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37028 $as_echo "$STRIP" >&6; } 37029 else 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37031 $as_echo "no" >&6; } 37032 fi 37033 37034 37035 test -n "$STRIP" && break 37036 done 37037 fi 37038 if test -z "$STRIP"; then 37039 ac_ct_STRIP=$STRIP 37040 for ac_prog in strip 37041 do 37042 # Extract the first word of "$ac_prog", so it can be a program name with args. 37043 set dummy $ac_prog; ac_word=$2 37044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37045 $as_echo_n "checking for $ac_word... " >&6; } 37046 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37047 $as_echo_n "(cached) " >&6 37048 else 37049 if test -n "$ac_ct_STRIP"; then 37050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37051 else 37052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37053 for as_dir in $PATH 37054 do 37055 IFS=$as_save_IFS 37056 test -z "$as_dir" && as_dir=. 37057 for ac_exec_ext in '' $ac_executable_extensions; do 37058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37059 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37061 break 2 37062 fi 37063 done 37064 done 37065 IFS=$as_save_IFS 37066 37067 fi 37068 fi 37069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37070 if test -n "$ac_ct_STRIP"; then 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37072 $as_echo "$ac_ct_STRIP" >&6; } 37073 else 37074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37075 $as_echo "no" >&6; } 37076 fi 37077 37078 37079 test -n "$ac_ct_STRIP" && break 37080 done 37081 37082 if test "x$ac_ct_STRIP" = x; then 37083 STRIP="" 37084 else 37085 case $cross_compiling:$ac_tool_warned in 37086 yes:) 37087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37089 ac_tool_warned=yes ;; 37090 esac 37091 STRIP=$ac_ct_STRIP 37092 fi 37093 fi 37094 37095 else 37096 # The variable is set, but is it from the command line or the environment? 37097 37098 # Try to remove the string !STRIP! from our list. 37099 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37100 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37101 # If it failed, the variable was not from the command line. Ignore it, 37102 # but warn the user (except for BASH, which is always set by the calling BASH). 37103 if test "xSTRIP" != xBASH; then 37104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37105 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37106 fi 37107 # Try to locate tool using the code snippet 37108 if test -n "$ac_tool_prefix"; then 37109 for ac_prog in strip 37110 do 37111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37114 $as_echo_n "checking for $ac_word... " >&6; } 37115 if ${ac_cv_prog_STRIP+:} false; then : 37116 $as_echo_n "(cached) " >&6 37117 else 37118 if test -n "$STRIP"; then 37119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37120 else 37121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37122 for as_dir in $PATH 37123 do 37124 IFS=$as_save_IFS 37125 test -z "$as_dir" && as_dir=. 37126 for ac_exec_ext in '' $ac_executable_extensions; do 37127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37128 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37130 break 2 37131 fi 37132 done 37133 done 37134 IFS=$as_save_IFS 37135 37136 fi 37137 fi 37138 STRIP=$ac_cv_prog_STRIP 37139 if test -n "$STRIP"; then 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37141 $as_echo "$STRIP" >&6; } 37142 else 37143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37144 $as_echo "no" >&6; } 37145 fi 37146 37147 37148 test -n "$STRIP" && break 37149 done 37150 fi 37151 if test -z "$STRIP"; then 37152 ac_ct_STRIP=$STRIP 37153 for ac_prog in strip 37154 do 37155 # Extract the first word of "$ac_prog", so it can be a program name with args. 37156 set dummy $ac_prog; ac_word=$2 37157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37158 $as_echo_n "checking for $ac_word... " >&6; } 37159 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37160 $as_echo_n "(cached) " >&6 37161 else 37162 if test -n "$ac_ct_STRIP"; then 37163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37164 else 37165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37166 for as_dir in $PATH 37167 do 37168 IFS=$as_save_IFS 37169 test -z "$as_dir" && as_dir=. 37170 for ac_exec_ext in '' $ac_executable_extensions; do 37171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37172 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37174 break 2 37175 fi 37176 done 37177 done 37178 IFS=$as_save_IFS 37179 37180 fi 37181 fi 37182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37183 if test -n "$ac_ct_STRIP"; then 37184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37185 $as_echo "$ac_ct_STRIP" >&6; } 37186 else 37187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37188 $as_echo "no" >&6; } 37189 fi 37190 37191 37192 test -n "$ac_ct_STRIP" && break 37193 done 37194 37195 if test "x$ac_ct_STRIP" = x; then 37196 STRIP="" 37197 else 37198 case $cross_compiling:$ac_tool_warned in 37199 yes:) 37200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37202 ac_tool_warned=yes ;; 37203 esac 37204 STRIP=$ac_ct_STRIP 37205 fi 37206 fi 37207 37208 else 37209 # If it succeeded, then it was overridden by the user. We will use it 37210 # for the tool. 37211 37212 # First remove it from the list of overridden variables, so we can test 37213 # for unknown variables in the end. 37214 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37215 37216 # Check if the provided tool contains a complete path. 37217 tool_specified="$STRIP" 37218 tool_basename="${tool_specified##*/}" 37219 if test "x$tool_basename" = "x$tool_specified"; then 37220 # A command without a complete path is provided, search $PATH. 37221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37222 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37223 # Extract the first word of "$tool_basename", so it can be a program name with args. 37224 set dummy $tool_basename; ac_word=$2 37225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37226 $as_echo_n "checking for $ac_word... " >&6; } 37227 if ${ac_cv_path_STRIP+:} false; then : 37228 $as_echo_n "(cached) " >&6 37229 else 37230 case $STRIP in 37231 [\\/]* | ?:[\\/]*) 37232 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37233 ;; 37234 *) 37235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37236 for as_dir in $PATH 37237 do 37238 IFS=$as_save_IFS 37239 test -z "$as_dir" && as_dir=. 37240 for ac_exec_ext in '' $ac_executable_extensions; do 37241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37242 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37244 break 2 37245 fi 37246 done 37247 done 37248 IFS=$as_save_IFS 37249 37250 ;; 37251 esac 37252 fi 37253 STRIP=$ac_cv_path_STRIP 37254 if test -n "$STRIP"; then 37255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37256 $as_echo "$STRIP" >&6; } 37257 else 37258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37259 $as_echo "no" >&6; } 37260 fi 37261 37262 37263 if test "x$STRIP" = x; then 37264 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37265 fi 37266 else 37267 # Otherwise we believe it is a complete path. Use it as it is. 37268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37269 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37271 $as_echo_n "checking for STRIP... " >&6; } 37272 if test ! -x "$tool_specified"; then 37273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37274 $as_echo "not found" >&6; } 37275 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37276 fi 37277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37278 $as_echo "$tool_specified" >&6; } 37279 fi 37280 fi 37281 fi 37282 37283 37284 37285 # Only process if variable expands to non-empty 37286 37287 if test "x$STRIP" != x; then 37288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37289 37290 # First separate the path from the arguments. This will split at the first 37291 # space. 37292 complete="$STRIP" 37293 path="${complete%% *}" 37294 tmp="$complete EOL" 37295 arguments="${tmp#* }" 37296 37297 # Input might be given as Windows format, start by converting to 37298 # unix format. 37299 new_path=`$CYGPATH -u "$path"` 37300 37301 # Now try to locate executable using which 37302 new_path=`$WHICH "$new_path" 2> /dev/null` 37303 # bat and cmd files are not always considered executable in cygwin causing which 37304 # to not find them 37305 if test "x$new_path" = x \ 37306 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37307 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37308 new_path=`$CYGPATH -u "$path"` 37309 fi 37310 if test "x$new_path" = x; then 37311 # Oops. Which didn't find the executable. 37312 # The splitting of arguments from the executable at a space might have been incorrect, 37313 # since paths with space are more likely in Windows. Give it another try with the whole 37314 # argument. 37315 path="$complete" 37316 arguments="EOL" 37317 new_path=`$CYGPATH -u "$path"` 37318 new_path=`$WHICH "$new_path" 2> /dev/null` 37319 # bat and cmd files are not always considered executable in cygwin causing which 37320 # to not find them 37321 if test "x$new_path" = x \ 37322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37324 new_path=`$CYGPATH -u "$path"` 37325 fi 37326 if test "x$new_path" = x; then 37327 # It's still not found. Now this is an unrecoverable error. 37328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37329 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37330 has_space=`$ECHO "$complete" | $GREP " "` 37331 if test "x$has_space" != x; then 37332 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37333 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37334 fi 37335 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37336 fi 37337 fi 37338 37339 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37340 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37341 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37342 # "foo.exe" is OK but "foo" is an error. 37343 # 37344 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37345 # It is also a way to make sure we got the proper file name for the real test later on. 37346 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37347 if test "x$test_shortpath" = x; then 37348 # Short path failed, file does not exist as specified. 37349 # Try adding .exe or .cmd 37350 if test -f "${new_path}.exe"; then 37351 input_to_shortpath="${new_path}.exe" 37352 elif test -f "${new_path}.cmd"; then 37353 input_to_shortpath="${new_path}.cmd" 37354 else 37355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37356 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37357 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37358 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37359 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37360 fi 37361 else 37362 input_to_shortpath="$new_path" 37363 fi 37364 37365 # Call helper function which possibly converts this using DOS-style short mode. 37366 # If so, the updated path is stored in $new_path. 37367 new_path="$input_to_shortpath" 37368 37369 input_path="$input_to_shortpath" 37370 # Check if we need to convert this using DOS-style short mode. If the path 37371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37372 # take no chances and rewrite it. 37373 # Note: m4 eats our [], so we need to use [ and ] instead. 37374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37375 if test "x$has_forbidden_chars" != x; then 37376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37377 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37378 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37379 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37380 # Going to short mode and back again did indeed matter. Since short mode is 37381 # case insensitive, let's make it lowercase to improve readability. 37382 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37383 # Now convert it back to Unix-style (cygpath) 37384 input_path=`$CYGPATH -u "$shortmode_path"` 37385 new_path="$input_path" 37386 fi 37387 fi 37388 37389 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37390 if test "x$test_cygdrive_prefix" = x; then 37391 # As a simple fix, exclude /usr/bin since it's not a real path. 37392 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37393 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37394 # a path prefixed by /cygdrive for fixpath to work. 37395 new_path="$CYGWIN_ROOT_PATH$input_path" 37396 fi 37397 fi 37398 37399 # remove trailing .exe if any 37400 new_path="${new_path/%.exe/}" 37401 37402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37403 37404 # First separate the path from the arguments. This will split at the first 37405 # space. 37406 complete="$STRIP" 37407 path="${complete%% *}" 37408 tmp="$complete EOL" 37409 arguments="${tmp#* }" 37410 37411 # Input might be given as Windows format, start by converting to 37412 # unix format. 37413 new_path="$path" 37414 37415 windows_path="$new_path" 37416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37417 unix_path=`$CYGPATH -u "$windows_path"` 37418 new_path="$unix_path" 37419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37421 new_path="$unix_path" 37422 fi 37423 37424 37425 # Now try to locate executable using which 37426 new_path=`$WHICH "$new_path" 2> /dev/null` 37427 37428 if test "x$new_path" = x; then 37429 # Oops. Which didn't find the executable. 37430 # The splitting of arguments from the executable at a space might have been incorrect, 37431 # since paths with space are more likely in Windows. Give it another try with the whole 37432 # argument. 37433 path="$complete" 37434 arguments="EOL" 37435 new_path="$path" 37436 37437 windows_path="$new_path" 37438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37439 unix_path=`$CYGPATH -u "$windows_path"` 37440 new_path="$unix_path" 37441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37443 new_path="$unix_path" 37444 fi 37445 37446 37447 new_path=`$WHICH "$new_path" 2> /dev/null` 37448 # bat and cmd files are not always considered executable in MSYS causing which 37449 # to not find them 37450 if test "x$new_path" = x \ 37451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37453 new_path="$path" 37454 37455 windows_path="$new_path" 37456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37457 unix_path=`$CYGPATH -u "$windows_path"` 37458 new_path="$unix_path" 37459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37461 new_path="$unix_path" 37462 fi 37463 37464 fi 37465 37466 if test "x$new_path" = x; then 37467 # It's still not found. Now this is an unrecoverable error. 37468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37469 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37470 has_space=`$ECHO "$complete" | $GREP " "` 37471 if test "x$has_space" != x; then 37472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37474 fi 37475 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37476 fi 37477 fi 37478 37479 # Now new_path has a complete unix path to the binary 37480 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37481 # Keep paths in /bin as-is, but remove trailing .exe if any 37482 new_path="${new_path/%.exe/}" 37483 # Do not save /bin paths to all_fixpath_prefixes! 37484 else 37485 # Not in mixed or Windows style, start by that. 37486 new_path=`cmd //c echo $new_path` 37487 37488 input_path="$new_path" 37489 # Check if we need to convert this using DOS-style short mode. If the path 37490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37491 # take no chances and rewrite it. 37492 # Note: m4 eats our [], so we need to use [ and ] instead. 37493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37494 if test "x$has_forbidden_chars" != x; then 37495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37497 fi 37498 37499 # Output is in $new_path 37500 37501 windows_path="$new_path" 37502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37503 unix_path=`$CYGPATH -u "$windows_path"` 37504 new_path="$unix_path" 37505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37507 new_path="$unix_path" 37508 fi 37509 37510 # remove trailing .exe if any 37511 new_path="${new_path/%.exe/}" 37512 37513 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37514 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37515 fi 37516 37517 else 37518 # We're on a unix platform. Hooray! :) 37519 # First separate the path from the arguments. This will split at the first 37520 # space. 37521 complete="$STRIP" 37522 path="${complete%% *}" 37523 tmp="$complete EOL" 37524 arguments="${tmp#* }" 37525 37526 # Cannot rely on the command "which" here since it doesn't always work. 37527 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37528 if test -z "$is_absolute_path"; then 37529 # Path to executable is not absolute. Find it. 37530 IFS_save="$IFS" 37531 IFS=: 37532 for p in $PATH; do 37533 if test -f "$p/$path" && test -x "$p/$path"; then 37534 new_path="$p/$path" 37535 break 37536 fi 37537 done 37538 IFS="$IFS_save" 37539 else 37540 # This is an absolute path, we can use it without further modifications. 37541 new_path="$path" 37542 fi 37543 37544 if test "x$new_path" = x; then 37545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37546 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37547 has_space=`$ECHO "$complete" | $GREP " "` 37548 if test "x$has_space" != x; then 37549 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37550 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37551 fi 37552 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37553 fi 37554 fi 37555 37556 # Now join together the path and the arguments once again 37557 if test "x$arguments" != xEOL; then 37558 new_complete="$new_path ${arguments% *}" 37559 else 37560 new_complete="$new_path" 37561 fi 37562 37563 if test "x$complete" != "x$new_complete"; then 37564 STRIP="$new_complete" 37565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37566 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37567 fi 37568 fi 37569 37570 37571 37572 # Publish this variable in the help. 37573 37574 37575 if test "x$NM" = x; then 37576 # The variable is not set by user, try to locate tool using the code snippet 37577 if test -n "$ac_tool_prefix"; then 37578 for ac_prog in nm 37579 do 37580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37583 $as_echo_n "checking for $ac_word... " >&6; } 37584 if ${ac_cv_prog_NM+:} false; then : 37585 $as_echo_n "(cached) " >&6 37586 else 37587 if test -n "$NM"; then 37588 ac_cv_prog_NM="$NM" # Let the user override the test. 37589 else 37590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37591 for as_dir in $PATH 37592 do 37593 IFS=$as_save_IFS 37594 test -z "$as_dir" && as_dir=. 37595 for ac_exec_ext in '' $ac_executable_extensions; do 37596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37597 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37599 break 2 37600 fi 37601 done 37602 done 37603 IFS=$as_save_IFS 37604 37605 fi 37606 fi 37607 NM=$ac_cv_prog_NM 37608 if test -n "$NM"; then 37609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37610 $as_echo "$NM" >&6; } 37611 else 37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37613 $as_echo "no" >&6; } 37614 fi 37615 37616 37617 test -n "$NM" && break 37618 done 37619 fi 37620 if test -z "$NM"; then 37621 ac_ct_NM=$NM 37622 for ac_prog in nm 37623 do 37624 # Extract the first word of "$ac_prog", so it can be a program name with args. 37625 set dummy $ac_prog; ac_word=$2 37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37627 $as_echo_n "checking for $ac_word... " >&6; } 37628 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37629 $as_echo_n "(cached) " >&6 37630 else 37631 if test -n "$ac_ct_NM"; then 37632 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37633 else 37634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37635 for as_dir in $PATH 37636 do 37637 IFS=$as_save_IFS 37638 test -z "$as_dir" && as_dir=. 37639 for ac_exec_ext in '' $ac_executable_extensions; do 37640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37641 ac_cv_prog_ac_ct_NM="$ac_prog" 37642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37643 break 2 37644 fi 37645 done 37646 done 37647 IFS=$as_save_IFS 37648 37649 fi 37650 fi 37651 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37652 if test -n "$ac_ct_NM"; then 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37654 $as_echo "$ac_ct_NM" >&6; } 37655 else 37656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37657 $as_echo "no" >&6; } 37658 fi 37659 37660 37661 test -n "$ac_ct_NM" && break 37662 done 37663 37664 if test "x$ac_ct_NM" = x; then 37665 NM="" 37666 else 37667 case $cross_compiling:$ac_tool_warned in 37668 yes:) 37669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37671 ac_tool_warned=yes ;; 37672 esac 37673 NM=$ac_ct_NM 37674 fi 37675 fi 37676 37677 else 37678 # The variable is set, but is it from the command line or the environment? 37679 37680 # Try to remove the string !NM! from our list. 37681 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37682 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37683 # If it failed, the variable was not from the command line. Ignore it, 37684 # but warn the user (except for BASH, which is always set by the calling BASH). 37685 if test "xNM" != xBASH; then 37686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37687 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37688 fi 37689 # Try to locate tool using the code snippet 37690 if test -n "$ac_tool_prefix"; then 37691 for ac_prog in nm 37692 do 37693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37696 $as_echo_n "checking for $ac_word... " >&6; } 37697 if ${ac_cv_prog_NM+:} false; then : 37698 $as_echo_n "(cached) " >&6 37699 else 37700 if test -n "$NM"; then 37701 ac_cv_prog_NM="$NM" # Let the user override the test. 37702 else 37703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37704 for as_dir in $PATH 37705 do 37706 IFS=$as_save_IFS 37707 test -z "$as_dir" && as_dir=. 37708 for ac_exec_ext in '' $ac_executable_extensions; do 37709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37710 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37712 break 2 37713 fi 37714 done 37715 done 37716 IFS=$as_save_IFS 37717 37718 fi 37719 fi 37720 NM=$ac_cv_prog_NM 37721 if test -n "$NM"; then 37722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37723 $as_echo "$NM" >&6; } 37724 else 37725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37726 $as_echo "no" >&6; } 37727 fi 37728 37729 37730 test -n "$NM" && break 37731 done 37732 fi 37733 if test -z "$NM"; then 37734 ac_ct_NM=$NM 37735 for ac_prog in nm 37736 do 37737 # Extract the first word of "$ac_prog", so it can be a program name with args. 37738 set dummy $ac_prog; ac_word=$2 37739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37740 $as_echo_n "checking for $ac_word... " >&6; } 37741 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37742 $as_echo_n "(cached) " >&6 37743 else 37744 if test -n "$ac_ct_NM"; then 37745 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37746 else 37747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37748 for as_dir in $PATH 37749 do 37750 IFS=$as_save_IFS 37751 test -z "$as_dir" && as_dir=. 37752 for ac_exec_ext in '' $ac_executable_extensions; do 37753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37754 ac_cv_prog_ac_ct_NM="$ac_prog" 37755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37756 break 2 37757 fi 37758 done 37759 done 37760 IFS=$as_save_IFS 37761 37762 fi 37763 fi 37764 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37765 if test -n "$ac_ct_NM"; then 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37767 $as_echo "$ac_ct_NM" >&6; } 37768 else 37769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37770 $as_echo "no" >&6; } 37771 fi 37772 37773 37774 test -n "$ac_ct_NM" && break 37775 done 37776 37777 if test "x$ac_ct_NM" = x; then 37778 NM="" 37779 else 37780 case $cross_compiling:$ac_tool_warned in 37781 yes:) 37782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37784 ac_tool_warned=yes ;; 37785 esac 37786 NM=$ac_ct_NM 37787 fi 37788 fi 37789 37790 else 37791 # If it succeeded, then it was overridden by the user. We will use it 37792 # for the tool. 37793 37794 # First remove it from the list of overridden variables, so we can test 37795 # for unknown variables in the end. 37796 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37797 37798 # Check if the provided tool contains a complete path. 37799 tool_specified="$NM" 37800 tool_basename="${tool_specified##*/}" 37801 if test "x$tool_basename" = "x$tool_specified"; then 37802 # A command without a complete path is provided, search $PATH. 37803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37804 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37805 # Extract the first word of "$tool_basename", so it can be a program name with args. 37806 set dummy $tool_basename; ac_word=$2 37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37808 $as_echo_n "checking for $ac_word... " >&6; } 37809 if ${ac_cv_path_NM+:} false; then : 37810 $as_echo_n "(cached) " >&6 37811 else 37812 case $NM in 37813 [\\/]* | ?:[\\/]*) 37814 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37815 ;; 37816 *) 37817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37818 for as_dir in $PATH 37819 do 37820 IFS=$as_save_IFS 37821 test -z "$as_dir" && as_dir=. 37822 for ac_exec_ext in '' $ac_executable_extensions; do 37823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37824 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37826 break 2 37827 fi 37828 done 37829 done 37830 IFS=$as_save_IFS 37831 37832 ;; 37833 esac 37834 fi 37835 NM=$ac_cv_path_NM 37836 if test -n "$NM"; then 37837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37838 $as_echo "$NM" >&6; } 37839 else 37840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37841 $as_echo "no" >&6; } 37842 fi 37843 37844 37845 if test "x$NM" = x; then 37846 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37847 fi 37848 else 37849 # Otherwise we believe it is a complete path. Use it as it is. 37850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37851 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37853 $as_echo_n "checking for NM... " >&6; } 37854 if test ! -x "$tool_specified"; then 37855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37856 $as_echo "not found" >&6; } 37857 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37858 fi 37859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37860 $as_echo "$tool_specified" >&6; } 37861 fi 37862 fi 37863 fi 37864 37865 37866 37867 # Only process if variable expands to non-empty 37868 37869 if test "x$NM" != x; then 37870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37871 37872 # First separate the path from the arguments. This will split at the first 37873 # space. 37874 complete="$NM" 37875 path="${complete%% *}" 37876 tmp="$complete EOL" 37877 arguments="${tmp#* }" 37878 37879 # Input might be given as Windows format, start by converting to 37880 # unix format. 37881 new_path=`$CYGPATH -u "$path"` 37882 37883 # Now try to locate executable using which 37884 new_path=`$WHICH "$new_path" 2> /dev/null` 37885 # bat and cmd files are not always considered executable in cygwin causing which 37886 # to not find them 37887 if test "x$new_path" = x \ 37888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37890 new_path=`$CYGPATH -u "$path"` 37891 fi 37892 if test "x$new_path" = x; then 37893 # Oops. Which didn't find the executable. 37894 # The splitting of arguments from the executable at a space might have been incorrect, 37895 # since paths with space are more likely in Windows. Give it another try with the whole 37896 # argument. 37897 path="$complete" 37898 arguments="EOL" 37899 new_path=`$CYGPATH -u "$path"` 37900 new_path=`$WHICH "$new_path" 2> /dev/null` 37901 # bat and cmd files are not always considered executable in cygwin causing which 37902 # to not find them 37903 if test "x$new_path" = x \ 37904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37906 new_path=`$CYGPATH -u "$path"` 37907 fi 37908 if test "x$new_path" = x; then 37909 # It's still not found. Now this is an unrecoverable error. 37910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37911 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37912 has_space=`$ECHO "$complete" | $GREP " "` 37913 if test "x$has_space" != x; then 37914 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37915 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37916 fi 37917 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37918 fi 37919 fi 37920 37921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37924 # "foo.exe" is OK but "foo" is an error. 37925 # 37926 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37927 # It is also a way to make sure we got the proper file name for the real test later on. 37928 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37929 if test "x$test_shortpath" = x; then 37930 # Short path failed, file does not exist as specified. 37931 # Try adding .exe or .cmd 37932 if test -f "${new_path}.exe"; then 37933 input_to_shortpath="${new_path}.exe" 37934 elif test -f "${new_path}.cmd"; then 37935 input_to_shortpath="${new_path}.cmd" 37936 else 37937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37938 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37939 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37940 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37941 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37942 fi 37943 else 37944 input_to_shortpath="$new_path" 37945 fi 37946 37947 # Call helper function which possibly converts this using DOS-style short mode. 37948 # If so, the updated path is stored in $new_path. 37949 new_path="$input_to_shortpath" 37950 37951 input_path="$input_to_shortpath" 37952 # Check if we need to convert this using DOS-style short mode. If the path 37953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37954 # take no chances and rewrite it. 37955 # Note: m4 eats our [], so we need to use [ and ] instead. 37956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37957 if test "x$has_forbidden_chars" != x; then 37958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37959 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37960 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37961 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37962 # Going to short mode and back again did indeed matter. Since short mode is 37963 # case insensitive, let's make it lowercase to improve readability. 37964 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37965 # Now convert it back to Unix-style (cygpath) 37966 input_path=`$CYGPATH -u "$shortmode_path"` 37967 new_path="$input_path" 37968 fi 37969 fi 37970 37971 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37972 if test "x$test_cygdrive_prefix" = x; then 37973 # As a simple fix, exclude /usr/bin since it's not a real path. 37974 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37975 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37976 # a path prefixed by /cygdrive for fixpath to work. 37977 new_path="$CYGWIN_ROOT_PATH$input_path" 37978 fi 37979 fi 37980 37981 # remove trailing .exe if any 37982 new_path="${new_path/%.exe/}" 37983 37984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37985 37986 # First separate the path from the arguments. This will split at the first 37987 # space. 37988 complete="$NM" 37989 path="${complete%% *}" 37990 tmp="$complete EOL" 37991 arguments="${tmp#* }" 37992 37993 # Input might be given as Windows format, start by converting to 37994 # unix format. 37995 new_path="$path" 37996 37997 windows_path="$new_path" 37998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37999 unix_path=`$CYGPATH -u "$windows_path"` 38000 new_path="$unix_path" 38001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38003 new_path="$unix_path" 38004 fi 38005 38006 38007 # Now try to locate executable using which 38008 new_path=`$WHICH "$new_path" 2> /dev/null` 38009 38010 if test "x$new_path" = x; then 38011 # Oops. Which didn't find the executable. 38012 # The splitting of arguments from the executable at a space might have been incorrect, 38013 # since paths with space are more likely in Windows. Give it another try with the whole 38014 # argument. 38015 path="$complete" 38016 arguments="EOL" 38017 new_path="$path" 38018 38019 windows_path="$new_path" 38020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38021 unix_path=`$CYGPATH -u "$windows_path"` 38022 new_path="$unix_path" 38023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38025 new_path="$unix_path" 38026 fi 38027 38028 38029 new_path=`$WHICH "$new_path" 2> /dev/null` 38030 # bat and cmd files are not always considered executable in MSYS causing which 38031 # to not find them 38032 if test "x$new_path" = x \ 38033 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38034 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38035 new_path="$path" 38036 38037 windows_path="$new_path" 38038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38039 unix_path=`$CYGPATH -u "$windows_path"` 38040 new_path="$unix_path" 38041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38043 new_path="$unix_path" 38044 fi 38045 38046 fi 38047 38048 if test "x$new_path" = x; then 38049 # It's still not found. Now this is an unrecoverable error. 38050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38051 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38052 has_space=`$ECHO "$complete" | $GREP " "` 38053 if test "x$has_space" != x; then 38054 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38055 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38056 fi 38057 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38058 fi 38059 fi 38060 38061 # Now new_path has a complete unix path to the binary 38062 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38063 # Keep paths in /bin as-is, but remove trailing .exe if any 38064 new_path="${new_path/%.exe/}" 38065 # Do not save /bin paths to all_fixpath_prefixes! 38066 else 38067 # Not in mixed or Windows style, start by that. 38068 new_path=`cmd //c echo $new_path` 38069 38070 input_path="$new_path" 38071 # Check if we need to convert this using DOS-style short mode. If the path 38072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38073 # take no chances and rewrite it. 38074 # Note: m4 eats our [], so we need to use [ and ] instead. 38075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38076 if test "x$has_forbidden_chars" != x; then 38077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38078 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38079 fi 38080 38081 # Output is in $new_path 38082 38083 windows_path="$new_path" 38084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38085 unix_path=`$CYGPATH -u "$windows_path"` 38086 new_path="$unix_path" 38087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38089 new_path="$unix_path" 38090 fi 38091 38092 # remove trailing .exe if any 38093 new_path="${new_path/%.exe/}" 38094 38095 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38096 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38097 fi 38098 38099 else 38100 # We're on a unix platform. Hooray! :) 38101 # First separate the path from the arguments. This will split at the first 38102 # space. 38103 complete="$NM" 38104 path="${complete%% *}" 38105 tmp="$complete EOL" 38106 arguments="${tmp#* }" 38107 38108 # Cannot rely on the command "which" here since it doesn't always work. 38109 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38110 if test -z "$is_absolute_path"; then 38111 # Path to executable is not absolute. Find it. 38112 IFS_save="$IFS" 38113 IFS=: 38114 for p in $PATH; do 38115 if test -f "$p/$path" && test -x "$p/$path"; then 38116 new_path="$p/$path" 38117 break 38118 fi 38119 done 38120 IFS="$IFS_save" 38121 else 38122 # This is an absolute path, we can use it without further modifications. 38123 new_path="$path" 38124 fi 38125 38126 if test "x$new_path" = x; then 38127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38128 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38129 has_space=`$ECHO "$complete" | $GREP " "` 38130 if test "x$has_space" != x; then 38131 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38132 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38133 fi 38134 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38135 fi 38136 fi 38137 38138 # Now join together the path and the arguments once again 38139 if test "x$arguments" != xEOL; then 38140 new_complete="$new_path ${arguments% *}" 38141 else 38142 new_complete="$new_path" 38143 fi 38144 38145 if test "x$complete" != "x$new_complete"; then 38146 NM="$new_complete" 38147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38148 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38149 fi 38150 fi 38151 38152 GNM="$NM" 38153 38154 fi 38155 38156 # objcopy is used for moving debug symbols to separate files when 38157 # full debug symbols are enabled. 38158 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38159 38160 38161 # Publish this variable in the help. 38162 38163 38164 if test "x$OBJCOPY" = x; then 38165 # The variable is not set by user, try to locate tool using the code snippet 38166 if test -n "$ac_tool_prefix"; then 38167 for ac_prog in gobjcopy objcopy 38168 do 38169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38172 $as_echo_n "checking for $ac_word... " >&6; } 38173 if ${ac_cv_prog_OBJCOPY+:} false; then : 38174 $as_echo_n "(cached) " >&6 38175 else 38176 if test -n "$OBJCOPY"; then 38177 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38178 else 38179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38180 for as_dir in $PATH 38181 do 38182 IFS=$as_save_IFS 38183 test -z "$as_dir" && as_dir=. 38184 for ac_exec_ext in '' $ac_executable_extensions; do 38185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38186 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38188 break 2 38189 fi 38190 done 38191 done 38192 IFS=$as_save_IFS 38193 38194 fi 38195 fi 38196 OBJCOPY=$ac_cv_prog_OBJCOPY 38197 if test -n "$OBJCOPY"; then 38198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38199 $as_echo "$OBJCOPY" >&6; } 38200 else 38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38202 $as_echo "no" >&6; } 38203 fi 38204 38205 38206 test -n "$OBJCOPY" && break 38207 done 38208 fi 38209 if test -z "$OBJCOPY"; then 38210 ac_ct_OBJCOPY=$OBJCOPY 38211 for ac_prog in gobjcopy objcopy 38212 do 38213 # Extract the first word of "$ac_prog", so it can be a program name with args. 38214 set dummy $ac_prog; ac_word=$2 38215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38216 $as_echo_n "checking for $ac_word... " >&6; } 38217 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38218 $as_echo_n "(cached) " >&6 38219 else 38220 if test -n "$ac_ct_OBJCOPY"; then 38221 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38222 else 38223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38224 for as_dir in $PATH 38225 do 38226 IFS=$as_save_IFS 38227 test -z "$as_dir" && as_dir=. 38228 for ac_exec_ext in '' $ac_executable_extensions; do 38229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38230 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38232 break 2 38233 fi 38234 done 38235 done 38236 IFS=$as_save_IFS 38237 38238 fi 38239 fi 38240 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38241 if test -n "$ac_ct_OBJCOPY"; then 38242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38243 $as_echo "$ac_ct_OBJCOPY" >&6; } 38244 else 38245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38246 $as_echo "no" >&6; } 38247 fi 38248 38249 38250 test -n "$ac_ct_OBJCOPY" && break 38251 done 38252 38253 if test "x$ac_ct_OBJCOPY" = x; then 38254 OBJCOPY="" 38255 else 38256 case $cross_compiling:$ac_tool_warned in 38257 yes:) 38258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38260 ac_tool_warned=yes ;; 38261 esac 38262 OBJCOPY=$ac_ct_OBJCOPY 38263 fi 38264 fi 38265 38266 else 38267 # The variable is set, but is it from the command line or the environment? 38268 38269 # Try to remove the string !OBJCOPY! from our list. 38270 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38271 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38272 # If it failed, the variable was not from the command line. Ignore it, 38273 # but warn the user (except for BASH, which is always set by the calling BASH). 38274 if test "xOBJCOPY" != xBASH; then 38275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38276 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38277 fi 38278 # Try to locate tool using the code snippet 38279 if test -n "$ac_tool_prefix"; then 38280 for ac_prog in gobjcopy objcopy 38281 do 38282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38285 $as_echo_n "checking for $ac_word... " >&6; } 38286 if ${ac_cv_prog_OBJCOPY+:} false; then : 38287 $as_echo_n "(cached) " >&6 38288 else 38289 if test -n "$OBJCOPY"; then 38290 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38291 else 38292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38293 for as_dir in $PATH 38294 do 38295 IFS=$as_save_IFS 38296 test -z "$as_dir" && as_dir=. 38297 for ac_exec_ext in '' $ac_executable_extensions; do 38298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38299 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38301 break 2 38302 fi 38303 done 38304 done 38305 IFS=$as_save_IFS 38306 38307 fi 38308 fi 38309 OBJCOPY=$ac_cv_prog_OBJCOPY 38310 if test -n "$OBJCOPY"; then 38311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38312 $as_echo "$OBJCOPY" >&6; } 38313 else 38314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38315 $as_echo "no" >&6; } 38316 fi 38317 38318 38319 test -n "$OBJCOPY" && break 38320 done 38321 fi 38322 if test -z "$OBJCOPY"; then 38323 ac_ct_OBJCOPY=$OBJCOPY 38324 for ac_prog in gobjcopy objcopy 38325 do 38326 # Extract the first word of "$ac_prog", so it can be a program name with args. 38327 set dummy $ac_prog; ac_word=$2 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38329 $as_echo_n "checking for $ac_word... " >&6; } 38330 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38331 $as_echo_n "(cached) " >&6 38332 else 38333 if test -n "$ac_ct_OBJCOPY"; then 38334 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38335 else 38336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38337 for as_dir in $PATH 38338 do 38339 IFS=$as_save_IFS 38340 test -z "$as_dir" && as_dir=. 38341 for ac_exec_ext in '' $ac_executable_extensions; do 38342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38343 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38345 break 2 38346 fi 38347 done 38348 done 38349 IFS=$as_save_IFS 38350 38351 fi 38352 fi 38353 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38354 if test -n "$ac_ct_OBJCOPY"; then 38355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38356 $as_echo "$ac_ct_OBJCOPY" >&6; } 38357 else 38358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38359 $as_echo "no" >&6; } 38360 fi 38361 38362 38363 test -n "$ac_ct_OBJCOPY" && break 38364 done 38365 38366 if test "x$ac_ct_OBJCOPY" = x; then 38367 OBJCOPY="" 38368 else 38369 case $cross_compiling:$ac_tool_warned in 38370 yes:) 38371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38373 ac_tool_warned=yes ;; 38374 esac 38375 OBJCOPY=$ac_ct_OBJCOPY 38376 fi 38377 fi 38378 38379 else 38380 # If it succeeded, then it was overridden by the user. We will use it 38381 # for the tool. 38382 38383 # First remove it from the list of overridden variables, so we can test 38384 # for unknown variables in the end. 38385 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38386 38387 # Check if the provided tool contains a complete path. 38388 tool_specified="$OBJCOPY" 38389 tool_basename="${tool_specified##*/}" 38390 if test "x$tool_basename" = "x$tool_specified"; then 38391 # A command without a complete path is provided, search $PATH. 38392 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38393 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38394 # Extract the first word of "$tool_basename", so it can be a program name with args. 38395 set dummy $tool_basename; ac_word=$2 38396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38397 $as_echo_n "checking for $ac_word... " >&6; } 38398 if ${ac_cv_path_OBJCOPY+:} false; then : 38399 $as_echo_n "(cached) " >&6 38400 else 38401 case $OBJCOPY in 38402 [\\/]* | ?:[\\/]*) 38403 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38404 ;; 38405 *) 38406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38407 for as_dir in $PATH 38408 do 38409 IFS=$as_save_IFS 38410 test -z "$as_dir" && as_dir=. 38411 for ac_exec_ext in '' $ac_executable_extensions; do 38412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38413 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38415 break 2 38416 fi 38417 done 38418 done 38419 IFS=$as_save_IFS 38420 38421 ;; 38422 esac 38423 fi 38424 OBJCOPY=$ac_cv_path_OBJCOPY 38425 if test -n "$OBJCOPY"; then 38426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38427 $as_echo "$OBJCOPY" >&6; } 38428 else 38429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38430 $as_echo "no" >&6; } 38431 fi 38432 38433 38434 if test "x$OBJCOPY" = x; then 38435 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38436 fi 38437 else 38438 # Otherwise we believe it is a complete path. Use it as it is. 38439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38440 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38442 $as_echo_n "checking for OBJCOPY... " >&6; } 38443 if test ! -x "$tool_specified"; then 38444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38445 $as_echo "not found" >&6; } 38446 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38447 fi 38448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38449 $as_echo "$tool_specified" >&6; } 38450 fi 38451 fi 38452 fi 38453 38454 38455 # Only call fixup if objcopy was found. 38456 if test -n "$OBJCOPY"; then 38457 38458 # Only process if variable expands to non-empty 38459 38460 if test "x$OBJCOPY" != x; then 38461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38462 38463 # First separate the path from the arguments. This will split at the first 38464 # space. 38465 complete="$OBJCOPY" 38466 path="${complete%% *}" 38467 tmp="$complete EOL" 38468 arguments="${tmp#* }" 38469 38470 # Input might be given as Windows format, start by converting to 38471 # unix format. 38472 new_path=`$CYGPATH -u "$path"` 38473 38474 # Now try to locate executable using which 38475 new_path=`$WHICH "$new_path" 2> /dev/null` 38476 # bat and cmd files are not always considered executable in cygwin causing which 38477 # to not find them 38478 if test "x$new_path" = x \ 38479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38481 new_path=`$CYGPATH -u "$path"` 38482 fi 38483 if test "x$new_path" = x; then 38484 # Oops. Which didn't find the executable. 38485 # The splitting of arguments from the executable at a space might have been incorrect, 38486 # since paths with space are more likely in Windows. Give it another try with the whole 38487 # argument. 38488 path="$complete" 38489 arguments="EOL" 38490 new_path=`$CYGPATH -u "$path"` 38491 new_path=`$WHICH "$new_path" 2> /dev/null` 38492 # bat and cmd files are not always considered executable in cygwin causing which 38493 # to not find them 38494 if test "x$new_path" = x \ 38495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38497 new_path=`$CYGPATH -u "$path"` 38498 fi 38499 if test "x$new_path" = x; then 38500 # It's still not found. Now this is an unrecoverable error. 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38502 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38503 has_space=`$ECHO "$complete" | $GREP " "` 38504 if test "x$has_space" != x; then 38505 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38507 fi 38508 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38509 fi 38510 fi 38511 38512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38515 # "foo.exe" is OK but "foo" is an error. 38516 # 38517 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38518 # It is also a way to make sure we got the proper file name for the real test later on. 38519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38520 if test "x$test_shortpath" = x; then 38521 # Short path failed, file does not exist as specified. 38522 # Try adding .exe or .cmd 38523 if test -f "${new_path}.exe"; then 38524 input_to_shortpath="${new_path}.exe" 38525 elif test -f "${new_path}.cmd"; then 38526 input_to_shortpath="${new_path}.cmd" 38527 else 38528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38529 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38532 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38533 fi 38534 else 38535 input_to_shortpath="$new_path" 38536 fi 38537 38538 # Call helper function which possibly converts this using DOS-style short mode. 38539 # If so, the updated path is stored in $new_path. 38540 new_path="$input_to_shortpath" 38541 38542 input_path="$input_to_shortpath" 38543 # Check if we need to convert this using DOS-style short mode. If the path 38544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38545 # take no chances and rewrite it. 38546 # Note: m4 eats our [], so we need to use [ and ] instead. 38547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38548 if test "x$has_forbidden_chars" != x; then 38549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38550 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38551 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38552 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38553 # Going to short mode and back again did indeed matter. Since short mode is 38554 # case insensitive, let's make it lowercase to improve readability. 38555 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38556 # Now convert it back to Unix-style (cygpath) 38557 input_path=`$CYGPATH -u "$shortmode_path"` 38558 new_path="$input_path" 38559 fi 38560 fi 38561 38562 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38563 if test "x$test_cygdrive_prefix" = x; then 38564 # As a simple fix, exclude /usr/bin since it's not a real path. 38565 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38566 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38567 # a path prefixed by /cygdrive for fixpath to work. 38568 new_path="$CYGWIN_ROOT_PATH$input_path" 38569 fi 38570 fi 38571 38572 # remove trailing .exe if any 38573 new_path="${new_path/%.exe/}" 38574 38575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38576 38577 # First separate the path from the arguments. This will split at the first 38578 # space. 38579 complete="$OBJCOPY" 38580 path="${complete%% *}" 38581 tmp="$complete EOL" 38582 arguments="${tmp#* }" 38583 38584 # Input might be given as Windows format, start by converting to 38585 # unix format. 38586 new_path="$path" 38587 38588 windows_path="$new_path" 38589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38590 unix_path=`$CYGPATH -u "$windows_path"` 38591 new_path="$unix_path" 38592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38594 new_path="$unix_path" 38595 fi 38596 38597 38598 # Now try to locate executable using which 38599 new_path=`$WHICH "$new_path" 2> /dev/null` 38600 38601 if test "x$new_path" = x; then 38602 # Oops. Which didn't find the executable. 38603 # The splitting of arguments from the executable at a space might have been incorrect, 38604 # since paths with space are more likely in Windows. Give it another try with the whole 38605 # argument. 38606 path="$complete" 38607 arguments="EOL" 38608 new_path="$path" 38609 38610 windows_path="$new_path" 38611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38612 unix_path=`$CYGPATH -u "$windows_path"` 38613 new_path="$unix_path" 38614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38616 new_path="$unix_path" 38617 fi 38618 38619 38620 new_path=`$WHICH "$new_path" 2> /dev/null` 38621 # bat and cmd files are not always considered executable in MSYS causing which 38622 # to not find them 38623 if test "x$new_path" = x \ 38624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38626 new_path="$path" 38627 38628 windows_path="$new_path" 38629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38630 unix_path=`$CYGPATH -u "$windows_path"` 38631 new_path="$unix_path" 38632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38634 new_path="$unix_path" 38635 fi 38636 38637 fi 38638 38639 if test "x$new_path" = x; then 38640 # It's still not found. Now this is an unrecoverable error. 38641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38642 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38643 has_space=`$ECHO "$complete" | $GREP " "` 38644 if test "x$has_space" != x; then 38645 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38647 fi 38648 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38649 fi 38650 fi 38651 38652 # Now new_path has a complete unix path to the binary 38653 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38654 # Keep paths in /bin as-is, but remove trailing .exe if any 38655 new_path="${new_path/%.exe/}" 38656 # Do not save /bin paths to all_fixpath_prefixes! 38657 else 38658 # Not in mixed or Windows style, start by that. 38659 new_path=`cmd //c echo $new_path` 38660 38661 input_path="$new_path" 38662 # Check if we need to convert this using DOS-style short mode. If the path 38663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38664 # take no chances and rewrite it. 38665 # Note: m4 eats our [], so we need to use [ and ] instead. 38666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38667 if test "x$has_forbidden_chars" != x; then 38668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38670 fi 38671 38672 # Output is in $new_path 38673 38674 windows_path="$new_path" 38675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38676 unix_path=`$CYGPATH -u "$windows_path"` 38677 new_path="$unix_path" 38678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38680 new_path="$unix_path" 38681 fi 38682 38683 # remove trailing .exe if any 38684 new_path="${new_path/%.exe/}" 38685 38686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38688 fi 38689 38690 else 38691 # We're on a unix platform. Hooray! :) 38692 # First separate the path from the arguments. This will split at the first 38693 # space. 38694 complete="$OBJCOPY" 38695 path="${complete%% *}" 38696 tmp="$complete EOL" 38697 arguments="${tmp#* }" 38698 38699 # Cannot rely on the command "which" here since it doesn't always work. 38700 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38701 if test -z "$is_absolute_path"; then 38702 # Path to executable is not absolute. Find it. 38703 IFS_save="$IFS" 38704 IFS=: 38705 for p in $PATH; do 38706 if test -f "$p/$path" && test -x "$p/$path"; then 38707 new_path="$p/$path" 38708 break 38709 fi 38710 done 38711 IFS="$IFS_save" 38712 else 38713 # This is an absolute path, we can use it without further modifications. 38714 new_path="$path" 38715 fi 38716 38717 if test "x$new_path" = x; then 38718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38719 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38720 has_space=`$ECHO "$complete" | $GREP " "` 38721 if test "x$has_space" != x; then 38722 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38723 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38724 fi 38725 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38726 fi 38727 fi 38728 38729 # Now join together the path and the arguments once again 38730 if test "x$arguments" != xEOL; then 38731 new_complete="$new_path ${arguments% *}" 38732 else 38733 new_complete="$new_path" 38734 fi 38735 38736 if test "x$complete" != "x$new_complete"; then 38737 OBJCOPY="$new_complete" 38738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38739 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38740 fi 38741 fi 38742 38743 fi 38744 fi 38745 38746 38747 38748 # Publish this variable in the help. 38749 38750 38751 if test "x$OBJDUMP" = x; then 38752 # The variable is not set by user, try to locate tool using the code snippet 38753 if test -n "$ac_tool_prefix"; then 38754 for ac_prog in gobjdump objdump 38755 do 38756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38759 $as_echo_n "checking for $ac_word... " >&6; } 38760 if ${ac_cv_prog_OBJDUMP+:} false; then : 38761 $as_echo_n "(cached) " >&6 38762 else 38763 if test -n "$OBJDUMP"; then 38764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38765 else 38766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38767 for as_dir in $PATH 38768 do 38769 IFS=$as_save_IFS 38770 test -z "$as_dir" && as_dir=. 38771 for ac_exec_ext in '' $ac_executable_extensions; do 38772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38773 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38775 break 2 38776 fi 38777 done 38778 done 38779 IFS=$as_save_IFS 38780 38781 fi 38782 fi 38783 OBJDUMP=$ac_cv_prog_OBJDUMP 38784 if test -n "$OBJDUMP"; then 38785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38786 $as_echo "$OBJDUMP" >&6; } 38787 else 38788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38789 $as_echo "no" >&6; } 38790 fi 38791 38792 38793 test -n "$OBJDUMP" && break 38794 done 38795 fi 38796 if test -z "$OBJDUMP"; then 38797 ac_ct_OBJDUMP=$OBJDUMP 38798 for ac_prog in gobjdump objdump 38799 do 38800 # Extract the first word of "$ac_prog", so it can be a program name with args. 38801 set dummy $ac_prog; ac_word=$2 38802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38803 $as_echo_n "checking for $ac_word... " >&6; } 38804 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38805 $as_echo_n "(cached) " >&6 38806 else 38807 if test -n "$ac_ct_OBJDUMP"; then 38808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38809 else 38810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38811 for as_dir in $PATH 38812 do 38813 IFS=$as_save_IFS 38814 test -z "$as_dir" && as_dir=. 38815 for ac_exec_ext in '' $ac_executable_extensions; do 38816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38817 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38819 break 2 38820 fi 38821 done 38822 done 38823 IFS=$as_save_IFS 38824 38825 fi 38826 fi 38827 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38828 if test -n "$ac_ct_OBJDUMP"; then 38829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38830 $as_echo "$ac_ct_OBJDUMP" >&6; } 38831 else 38832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38833 $as_echo "no" >&6; } 38834 fi 38835 38836 38837 test -n "$ac_ct_OBJDUMP" && break 38838 done 38839 38840 if test "x$ac_ct_OBJDUMP" = x; then 38841 OBJDUMP="" 38842 else 38843 case $cross_compiling:$ac_tool_warned in 38844 yes:) 38845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38847 ac_tool_warned=yes ;; 38848 esac 38849 OBJDUMP=$ac_ct_OBJDUMP 38850 fi 38851 fi 38852 38853 else 38854 # The variable is set, but is it from the command line or the environment? 38855 38856 # Try to remove the string !OBJDUMP! from our list. 38857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38859 # If it failed, the variable was not from the command line. Ignore it, 38860 # but warn the user (except for BASH, which is always set by the calling BASH). 38861 if test "xOBJDUMP" != xBASH; then 38862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38863 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38864 fi 38865 # Try to locate tool using the code snippet 38866 if test -n "$ac_tool_prefix"; then 38867 for ac_prog in gobjdump objdump 38868 do 38869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38872 $as_echo_n "checking for $ac_word... " >&6; } 38873 if ${ac_cv_prog_OBJDUMP+:} false; then : 38874 $as_echo_n "(cached) " >&6 38875 else 38876 if test -n "$OBJDUMP"; then 38877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38878 else 38879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38880 for as_dir in $PATH 38881 do 38882 IFS=$as_save_IFS 38883 test -z "$as_dir" && as_dir=. 38884 for ac_exec_ext in '' $ac_executable_extensions; do 38885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38886 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38888 break 2 38889 fi 38890 done 38891 done 38892 IFS=$as_save_IFS 38893 38894 fi 38895 fi 38896 OBJDUMP=$ac_cv_prog_OBJDUMP 38897 if test -n "$OBJDUMP"; then 38898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38899 $as_echo "$OBJDUMP" >&6; } 38900 else 38901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38902 $as_echo "no" >&6; } 38903 fi 38904 38905 38906 test -n "$OBJDUMP" && break 38907 done 38908 fi 38909 if test -z "$OBJDUMP"; then 38910 ac_ct_OBJDUMP=$OBJDUMP 38911 for ac_prog in gobjdump objdump 38912 do 38913 # Extract the first word of "$ac_prog", so it can be a program name with args. 38914 set dummy $ac_prog; ac_word=$2 38915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38916 $as_echo_n "checking for $ac_word... " >&6; } 38917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38918 $as_echo_n "(cached) " >&6 38919 else 38920 if test -n "$ac_ct_OBJDUMP"; then 38921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38922 else 38923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38924 for as_dir in $PATH 38925 do 38926 IFS=$as_save_IFS 38927 test -z "$as_dir" && as_dir=. 38928 for ac_exec_ext in '' $ac_executable_extensions; do 38929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38930 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38932 break 2 38933 fi 38934 done 38935 done 38936 IFS=$as_save_IFS 38937 38938 fi 38939 fi 38940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38941 if test -n "$ac_ct_OBJDUMP"; then 38942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38943 $as_echo "$ac_ct_OBJDUMP" >&6; } 38944 else 38945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38946 $as_echo "no" >&6; } 38947 fi 38948 38949 38950 test -n "$ac_ct_OBJDUMP" && break 38951 done 38952 38953 if test "x$ac_ct_OBJDUMP" = x; then 38954 OBJDUMP="" 38955 else 38956 case $cross_compiling:$ac_tool_warned in 38957 yes:) 38958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38960 ac_tool_warned=yes ;; 38961 esac 38962 OBJDUMP=$ac_ct_OBJDUMP 38963 fi 38964 fi 38965 38966 else 38967 # If it succeeded, then it was overridden by the user. We will use it 38968 # for the tool. 38969 38970 # First remove it from the list of overridden variables, so we can test 38971 # for unknown variables in the end. 38972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38973 38974 # Check if the provided tool contains a complete path. 38975 tool_specified="$OBJDUMP" 38976 tool_basename="${tool_specified##*/}" 38977 if test "x$tool_basename" = "x$tool_specified"; then 38978 # A command without a complete path is provided, search $PATH. 38979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38980 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38981 # Extract the first word of "$tool_basename", so it can be a program name with args. 38982 set dummy $tool_basename; ac_word=$2 38983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38984 $as_echo_n "checking for $ac_word... " >&6; } 38985 if ${ac_cv_path_OBJDUMP+:} false; then : 38986 $as_echo_n "(cached) " >&6 38987 else 38988 case $OBJDUMP in 38989 [\\/]* | ?:[\\/]*) 38990 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38991 ;; 38992 *) 38993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38994 for as_dir in $PATH 38995 do 38996 IFS=$as_save_IFS 38997 test -z "$as_dir" && as_dir=. 38998 for ac_exec_ext in '' $ac_executable_extensions; do 38999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39000 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39002 break 2 39003 fi 39004 done 39005 done 39006 IFS=$as_save_IFS 39007 39008 ;; 39009 esac 39010 fi 39011 OBJDUMP=$ac_cv_path_OBJDUMP 39012 if test -n "$OBJDUMP"; then 39013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39014 $as_echo "$OBJDUMP" >&6; } 39015 else 39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39017 $as_echo "no" >&6; } 39018 fi 39019 39020 39021 if test "x$OBJDUMP" = x; then 39022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39023 fi 39024 else 39025 # Otherwise we believe it is a complete path. Use it as it is. 39026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39027 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39029 $as_echo_n "checking for OBJDUMP... " >&6; } 39030 if test ! -x "$tool_specified"; then 39031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39032 $as_echo "not found" >&6; } 39033 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39034 fi 39035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39036 $as_echo "$tool_specified" >&6; } 39037 fi 39038 fi 39039 fi 39040 39041 39042 if test "x$OBJDUMP" != x; then 39043 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39044 # bails if argument is missing. 39045 39046 # Only process if variable expands to non-empty 39047 39048 if test "x$OBJDUMP" != x; then 39049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39050 39051 # First separate the path from the arguments. This will split at the first 39052 # space. 39053 complete="$OBJDUMP" 39054 path="${complete%% *}" 39055 tmp="$complete EOL" 39056 arguments="${tmp#* }" 39057 39058 # Input might be given as Windows format, start by converting to 39059 # unix format. 39060 new_path=`$CYGPATH -u "$path"` 39061 39062 # Now try to locate executable using which 39063 new_path=`$WHICH "$new_path" 2> /dev/null` 39064 # bat and cmd files are not always considered executable in cygwin causing which 39065 # to not find them 39066 if test "x$new_path" = x \ 39067 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39068 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39069 new_path=`$CYGPATH -u "$path"` 39070 fi 39071 if test "x$new_path" = x; then 39072 # Oops. Which didn't find the executable. 39073 # The splitting of arguments from the executable at a space might have been incorrect, 39074 # since paths with space are more likely in Windows. Give it another try with the whole 39075 # argument. 39076 path="$complete" 39077 arguments="EOL" 39078 new_path=`$CYGPATH -u "$path"` 39079 new_path=`$WHICH "$new_path" 2> /dev/null` 39080 # bat and cmd files are not always considered executable in cygwin causing which 39081 # to not find them 39082 if test "x$new_path" = x \ 39083 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39084 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39085 new_path=`$CYGPATH -u "$path"` 39086 fi 39087 if test "x$new_path" = x; then 39088 # It's still not found. Now this is an unrecoverable error. 39089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39090 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39091 has_space=`$ECHO "$complete" | $GREP " "` 39092 if test "x$has_space" != x; then 39093 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39094 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39095 fi 39096 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39097 fi 39098 fi 39099 39100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39103 # "foo.exe" is OK but "foo" is an error. 39104 # 39105 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39106 # It is also a way to make sure we got the proper file name for the real test later on. 39107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39108 if test "x$test_shortpath" = x; then 39109 # Short path failed, file does not exist as specified. 39110 # Try adding .exe or .cmd 39111 if test -f "${new_path}.exe"; then 39112 input_to_shortpath="${new_path}.exe" 39113 elif test -f "${new_path}.cmd"; then 39114 input_to_shortpath="${new_path}.cmd" 39115 else 39116 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39117 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39118 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39119 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39120 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39121 fi 39122 else 39123 input_to_shortpath="$new_path" 39124 fi 39125 39126 # Call helper function which possibly converts this using DOS-style short mode. 39127 # If so, the updated path is stored in $new_path. 39128 new_path="$input_to_shortpath" 39129 39130 input_path="$input_to_shortpath" 39131 # Check if we need to convert this using DOS-style short mode. If the path 39132 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39133 # take no chances and rewrite it. 39134 # Note: m4 eats our [], so we need to use [ and ] instead. 39135 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39136 if test "x$has_forbidden_chars" != x; then 39137 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39138 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39139 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39140 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39141 # Going to short mode and back again did indeed matter. Since short mode is 39142 # case insensitive, let's make it lowercase to improve readability. 39143 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39144 # Now convert it back to Unix-style (cygpath) 39145 input_path=`$CYGPATH -u "$shortmode_path"` 39146 new_path="$input_path" 39147 fi 39148 fi 39149 39150 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39151 if test "x$test_cygdrive_prefix" = x; then 39152 # As a simple fix, exclude /usr/bin since it's not a real path. 39153 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39154 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39155 # a path prefixed by /cygdrive for fixpath to work. 39156 new_path="$CYGWIN_ROOT_PATH$input_path" 39157 fi 39158 fi 39159 39160 # remove trailing .exe if any 39161 new_path="${new_path/%.exe/}" 39162 39163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39164 39165 # First separate the path from the arguments. This will split at the first 39166 # space. 39167 complete="$OBJDUMP" 39168 path="${complete%% *}" 39169 tmp="$complete EOL" 39170 arguments="${tmp#* }" 39171 39172 # Input might be given as Windows format, start by converting to 39173 # unix format. 39174 new_path="$path" 39175 39176 windows_path="$new_path" 39177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39178 unix_path=`$CYGPATH -u "$windows_path"` 39179 new_path="$unix_path" 39180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39181 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39182 new_path="$unix_path" 39183 fi 39184 39185 39186 # Now try to locate executable using which 39187 new_path=`$WHICH "$new_path" 2> /dev/null` 39188 39189 if test "x$new_path" = x; then 39190 # Oops. Which didn't find the executable. 39191 # The splitting of arguments from the executable at a space might have been incorrect, 39192 # since paths with space are more likely in Windows. Give it another try with the whole 39193 # argument. 39194 path="$complete" 39195 arguments="EOL" 39196 new_path="$path" 39197 39198 windows_path="$new_path" 39199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39200 unix_path=`$CYGPATH -u "$windows_path"` 39201 new_path="$unix_path" 39202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39204 new_path="$unix_path" 39205 fi 39206 39207 39208 new_path=`$WHICH "$new_path" 2> /dev/null` 39209 # bat and cmd files are not always considered executable in MSYS causing which 39210 # to not find them 39211 if test "x$new_path" = x \ 39212 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39213 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39214 new_path="$path" 39215 39216 windows_path="$new_path" 39217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39218 unix_path=`$CYGPATH -u "$windows_path"` 39219 new_path="$unix_path" 39220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39222 new_path="$unix_path" 39223 fi 39224 39225 fi 39226 39227 if test "x$new_path" = x; then 39228 # It's still not found. Now this is an unrecoverable error. 39229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39230 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39231 has_space=`$ECHO "$complete" | $GREP " "` 39232 if test "x$has_space" != x; then 39233 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39234 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39235 fi 39236 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39237 fi 39238 fi 39239 39240 # Now new_path has a complete unix path to the binary 39241 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39242 # Keep paths in /bin as-is, but remove trailing .exe if any 39243 new_path="${new_path/%.exe/}" 39244 # Do not save /bin paths to all_fixpath_prefixes! 39245 else 39246 # Not in mixed or Windows style, start by that. 39247 new_path=`cmd //c echo $new_path` 39248 39249 input_path="$new_path" 39250 # Check if we need to convert this using DOS-style short mode. If the path 39251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39252 # take no chances and rewrite it. 39253 # Note: m4 eats our [], so we need to use [ and ] instead. 39254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39255 if test "x$has_forbidden_chars" != x; then 39256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39257 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39258 fi 39259 39260 # Output is in $new_path 39261 39262 windows_path="$new_path" 39263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39264 unix_path=`$CYGPATH -u "$windows_path"` 39265 new_path="$unix_path" 39266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39268 new_path="$unix_path" 39269 fi 39270 39271 # remove trailing .exe if any 39272 new_path="${new_path/%.exe/}" 39273 39274 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39275 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39276 fi 39277 39278 else 39279 # We're on a unix platform. Hooray! :) 39280 # First separate the path from the arguments. This will split at the first 39281 # space. 39282 complete="$OBJDUMP" 39283 path="${complete%% *}" 39284 tmp="$complete EOL" 39285 arguments="${tmp#* }" 39286 39287 # Cannot rely on the command "which" here since it doesn't always work. 39288 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39289 if test -z "$is_absolute_path"; then 39290 # Path to executable is not absolute. Find it. 39291 IFS_save="$IFS" 39292 IFS=: 39293 for p in $PATH; do 39294 if test -f "$p/$path" && test -x "$p/$path"; then 39295 new_path="$p/$path" 39296 break 39297 fi 39298 done 39299 IFS="$IFS_save" 39300 else 39301 # This is an absolute path, we can use it without further modifications. 39302 new_path="$path" 39303 fi 39304 39305 if test "x$new_path" = x; then 39306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39307 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39308 has_space=`$ECHO "$complete" | $GREP " "` 39309 if test "x$has_space" != x; then 39310 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39311 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39312 fi 39313 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39314 fi 39315 fi 39316 39317 # Now join together the path and the arguments once again 39318 if test "x$arguments" != xEOL; then 39319 new_complete="$new_path ${arguments% *}" 39320 else 39321 new_complete="$new_path" 39322 fi 39323 39324 if test "x$complete" != "x$new_complete"; then 39325 OBJDUMP="$new_complete" 39326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39327 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39328 fi 39329 fi 39330 39331 fi 39332 39333 39334 # Restore old path. 39335 PATH="$OLD_PATH" 39336 39337 # Restore the flags to the user specified values. 39338 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39339 CFLAGS="$ORG_CFLAGS" 39340 CXXFLAGS="$ORG_CXXFLAGS" 39341 39342 39343 # Finally do some processing after the detection phase 39344 39345 if test "x$COMPILE_TYPE" = "xcross"; then 39346 # Now we need to find a C/C++ compiler that can build executables for the 39347 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39348 # used once. Also, we need to do this without adding a tools dir to the 39349 # path, otherwise we might pick up cross-compilers which don't use standard 39350 # naming. 39351 39352 # FIXME: we should list the discovered compilers as an exclude pattern! 39353 # If we do that, we can do this detection before POST_DETECTION, and still 39354 # find the build compilers in the tools dir, if needed. 39355 39356 39357 # Publish this variable in the help. 39358 39359 39360 if test "x$BUILD_CC" = x; then 39361 # The variable is not set by user, try to locate tool using the code snippet 39362 for ac_prog in cl cc gcc 39363 do 39364 # Extract the first word of "$ac_prog", so it can be a program name with args. 39365 set dummy $ac_prog; ac_word=$2 39366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39367 $as_echo_n "checking for $ac_word... " >&6; } 39368 if ${ac_cv_path_BUILD_CC+:} false; then : 39369 $as_echo_n "(cached) " >&6 39370 else 39371 case $BUILD_CC in 39372 [\\/]* | ?:[\\/]*) 39373 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39374 ;; 39375 *) 39376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39377 for as_dir in $PATH 39378 do 39379 IFS=$as_save_IFS 39380 test -z "$as_dir" && as_dir=. 39381 for ac_exec_ext in '' $ac_executable_extensions; do 39382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39383 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39385 break 2 39386 fi 39387 done 39388 done 39389 IFS=$as_save_IFS 39390 39391 ;; 39392 esac 39393 fi 39394 BUILD_CC=$ac_cv_path_BUILD_CC 39395 if test -n "$BUILD_CC"; then 39396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39397 $as_echo "$BUILD_CC" >&6; } 39398 else 39399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39400 $as_echo "no" >&6; } 39401 fi 39402 39403 39404 test -n "$BUILD_CC" && break 39405 done 39406 39407 else 39408 # The variable is set, but is it from the command line or the environment? 39409 39410 # Try to remove the string !BUILD_CC! from our list. 39411 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39412 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39413 # If it failed, the variable was not from the command line. Ignore it, 39414 # but warn the user (except for BASH, which is always set by the calling BASH). 39415 if test "xBUILD_CC" != xBASH; then 39416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39417 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39418 fi 39419 # Try to locate tool using the code snippet 39420 for ac_prog in cl cc gcc 39421 do 39422 # Extract the first word of "$ac_prog", so it can be a program name with args. 39423 set dummy $ac_prog; ac_word=$2 39424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39425 $as_echo_n "checking for $ac_word... " >&6; } 39426 if ${ac_cv_path_BUILD_CC+:} false; then : 39427 $as_echo_n "(cached) " >&6 39428 else 39429 case $BUILD_CC in 39430 [\\/]* | ?:[\\/]*) 39431 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39432 ;; 39433 *) 39434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39435 for as_dir in $PATH 39436 do 39437 IFS=$as_save_IFS 39438 test -z "$as_dir" && as_dir=. 39439 for ac_exec_ext in '' $ac_executable_extensions; do 39440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39441 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39443 break 2 39444 fi 39445 done 39446 done 39447 IFS=$as_save_IFS 39448 39449 ;; 39450 esac 39451 fi 39452 BUILD_CC=$ac_cv_path_BUILD_CC 39453 if test -n "$BUILD_CC"; then 39454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39455 $as_echo "$BUILD_CC" >&6; } 39456 else 39457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39458 $as_echo "no" >&6; } 39459 fi 39460 39461 39462 test -n "$BUILD_CC" && break 39463 done 39464 39465 else 39466 # If it succeeded, then it was overridden by the user. We will use it 39467 # for the tool. 39468 39469 # First remove it from the list of overridden variables, so we can test 39470 # for unknown variables in the end. 39471 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39472 39473 # Check if the provided tool contains a complete path. 39474 tool_specified="$BUILD_CC" 39475 tool_basename="${tool_specified##*/}" 39476 if test "x$tool_basename" = "x$tool_specified"; then 39477 # A command without a complete path is provided, search $PATH. 39478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39479 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39480 # Extract the first word of "$tool_basename", so it can be a program name with args. 39481 set dummy $tool_basename; ac_word=$2 39482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39483 $as_echo_n "checking for $ac_word... " >&6; } 39484 if ${ac_cv_path_BUILD_CC+:} false; then : 39485 $as_echo_n "(cached) " >&6 39486 else 39487 case $BUILD_CC in 39488 [\\/]* | ?:[\\/]*) 39489 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39490 ;; 39491 *) 39492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39493 for as_dir in $PATH 39494 do 39495 IFS=$as_save_IFS 39496 test -z "$as_dir" && as_dir=. 39497 for ac_exec_ext in '' $ac_executable_extensions; do 39498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39499 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39501 break 2 39502 fi 39503 done 39504 done 39505 IFS=$as_save_IFS 39506 39507 ;; 39508 esac 39509 fi 39510 BUILD_CC=$ac_cv_path_BUILD_CC 39511 if test -n "$BUILD_CC"; then 39512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39513 $as_echo "$BUILD_CC" >&6; } 39514 else 39515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39516 $as_echo "no" >&6; } 39517 fi 39518 39519 39520 if test "x$BUILD_CC" = x; then 39521 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39522 fi 39523 else 39524 # Otherwise we believe it is a complete path. Use it as it is. 39525 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39526 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39528 $as_echo_n "checking for BUILD_CC... " >&6; } 39529 if test ! -x "$tool_specified"; then 39530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39531 $as_echo "not found" >&6; } 39532 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39533 fi 39534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39535 $as_echo "$tool_specified" >&6; } 39536 fi 39537 fi 39538 fi 39539 39540 39541 39542 # Only process if variable expands to non-empty 39543 39544 if test "x$BUILD_CC" != x; then 39545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39546 39547 # First separate the path from the arguments. This will split at the first 39548 # space. 39549 complete="$BUILD_CC" 39550 path="${complete%% *}" 39551 tmp="$complete EOL" 39552 arguments="${tmp#* }" 39553 39554 # Input might be given as Windows format, start by converting to 39555 # unix format. 39556 new_path=`$CYGPATH -u "$path"` 39557 39558 # Now try to locate executable using which 39559 new_path=`$WHICH "$new_path" 2> /dev/null` 39560 # bat and cmd files are not always considered executable in cygwin causing which 39561 # to not find them 39562 if test "x$new_path" = x \ 39563 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39564 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39565 new_path=`$CYGPATH -u "$path"` 39566 fi 39567 if test "x$new_path" = x; then 39568 # Oops. Which didn't find the executable. 39569 # The splitting of arguments from the executable at a space might have been incorrect, 39570 # since paths with space are more likely in Windows. Give it another try with the whole 39571 # argument. 39572 path="$complete" 39573 arguments="EOL" 39574 new_path=`$CYGPATH -u "$path"` 39575 new_path=`$WHICH "$new_path" 2> /dev/null` 39576 # bat and cmd files are not always considered executable in cygwin causing which 39577 # to not find them 39578 if test "x$new_path" = x \ 39579 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39580 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39581 new_path=`$CYGPATH -u "$path"` 39582 fi 39583 if test "x$new_path" = x; then 39584 # It's still not found. Now this is an unrecoverable error. 39585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39586 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39587 has_space=`$ECHO "$complete" | $GREP " "` 39588 if test "x$has_space" != x; then 39589 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39590 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39591 fi 39592 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39593 fi 39594 fi 39595 39596 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39597 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39598 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39599 # "foo.exe" is OK but "foo" is an error. 39600 # 39601 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39602 # It is also a way to make sure we got the proper file name for the real test later on. 39603 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39604 if test "x$test_shortpath" = x; then 39605 # Short path failed, file does not exist as specified. 39606 # Try adding .exe or .cmd 39607 if test -f "${new_path}.exe"; then 39608 input_to_shortpath="${new_path}.exe" 39609 elif test -f "${new_path}.cmd"; then 39610 input_to_shortpath="${new_path}.cmd" 39611 else 39612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39613 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39614 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39615 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39616 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39617 fi 39618 else 39619 input_to_shortpath="$new_path" 39620 fi 39621 39622 # Call helper function which possibly converts this using DOS-style short mode. 39623 # If so, the updated path is stored in $new_path. 39624 new_path="$input_to_shortpath" 39625 39626 input_path="$input_to_shortpath" 39627 # Check if we need to convert this using DOS-style short mode. If the path 39628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39629 # take no chances and rewrite it. 39630 # Note: m4 eats our [], so we need to use [ and ] instead. 39631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39632 if test "x$has_forbidden_chars" != x; then 39633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39637 # Going to short mode and back again did indeed matter. Since short mode is 39638 # case insensitive, let's make it lowercase to improve readability. 39639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39640 # Now convert it back to Unix-style (cygpath) 39641 input_path=`$CYGPATH -u "$shortmode_path"` 39642 new_path="$input_path" 39643 fi 39644 fi 39645 39646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39647 if test "x$test_cygdrive_prefix" = x; then 39648 # As a simple fix, exclude /usr/bin since it's not a real path. 39649 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39651 # a path prefixed by /cygdrive for fixpath to work. 39652 new_path="$CYGWIN_ROOT_PATH$input_path" 39653 fi 39654 fi 39655 39656 # remove trailing .exe if any 39657 new_path="${new_path/%.exe/}" 39658 39659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39660 39661 # First separate the path from the arguments. This will split at the first 39662 # space. 39663 complete="$BUILD_CC" 39664 path="${complete%% *}" 39665 tmp="$complete EOL" 39666 arguments="${tmp#* }" 39667 39668 # Input might be given as Windows format, start by converting to 39669 # unix format. 39670 new_path="$path" 39671 39672 windows_path="$new_path" 39673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39674 unix_path=`$CYGPATH -u "$windows_path"` 39675 new_path="$unix_path" 39676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39678 new_path="$unix_path" 39679 fi 39680 39681 39682 # Now try to locate executable using which 39683 new_path=`$WHICH "$new_path" 2> /dev/null` 39684 39685 if test "x$new_path" = x; then 39686 # Oops. Which didn't find the executable. 39687 # The splitting of arguments from the executable at a space might have been incorrect, 39688 # since paths with space are more likely in Windows. Give it another try with the whole 39689 # argument. 39690 path="$complete" 39691 arguments="EOL" 39692 new_path="$path" 39693 39694 windows_path="$new_path" 39695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39696 unix_path=`$CYGPATH -u "$windows_path"` 39697 new_path="$unix_path" 39698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39700 new_path="$unix_path" 39701 fi 39702 39703 39704 new_path=`$WHICH "$new_path" 2> /dev/null` 39705 # bat and cmd files are not always considered executable in MSYS causing which 39706 # to not find them 39707 if test "x$new_path" = x \ 39708 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39709 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39710 new_path="$path" 39711 39712 windows_path="$new_path" 39713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39714 unix_path=`$CYGPATH -u "$windows_path"` 39715 new_path="$unix_path" 39716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39718 new_path="$unix_path" 39719 fi 39720 39721 fi 39722 39723 if test "x$new_path" = x; then 39724 # It's still not found. Now this is an unrecoverable error. 39725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39726 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39727 has_space=`$ECHO "$complete" | $GREP " "` 39728 if test "x$has_space" != x; then 39729 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39730 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39731 fi 39732 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39733 fi 39734 fi 39735 39736 # Now new_path has a complete unix path to the binary 39737 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39738 # Keep paths in /bin as-is, but remove trailing .exe if any 39739 new_path="${new_path/%.exe/}" 39740 # Do not save /bin paths to all_fixpath_prefixes! 39741 else 39742 # Not in mixed or Windows style, start by that. 39743 new_path=`cmd //c echo $new_path` 39744 39745 input_path="$new_path" 39746 # Check if we need to convert this using DOS-style short mode. If the path 39747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39748 # take no chances and rewrite it. 39749 # Note: m4 eats our [], so we need to use [ and ] instead. 39750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39751 if test "x$has_forbidden_chars" != x; then 39752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39753 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39754 fi 39755 39756 # Output is in $new_path 39757 39758 windows_path="$new_path" 39759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39760 unix_path=`$CYGPATH -u "$windows_path"` 39761 new_path="$unix_path" 39762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39764 new_path="$unix_path" 39765 fi 39766 39767 # remove trailing .exe if any 39768 new_path="${new_path/%.exe/}" 39769 39770 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39771 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39772 fi 39773 39774 else 39775 # We're on a unix platform. Hooray! :) 39776 # First separate the path from the arguments. This will split at the first 39777 # space. 39778 complete="$BUILD_CC" 39779 path="${complete%% *}" 39780 tmp="$complete EOL" 39781 arguments="${tmp#* }" 39782 39783 # Cannot rely on the command "which" here since it doesn't always work. 39784 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39785 if test -z "$is_absolute_path"; then 39786 # Path to executable is not absolute. Find it. 39787 IFS_save="$IFS" 39788 IFS=: 39789 for p in $PATH; do 39790 if test -f "$p/$path" && test -x "$p/$path"; then 39791 new_path="$p/$path" 39792 break 39793 fi 39794 done 39795 IFS="$IFS_save" 39796 else 39797 # This is an absolute path, we can use it without further modifications. 39798 new_path="$path" 39799 fi 39800 39801 if test "x$new_path" = x; then 39802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39803 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39804 has_space=`$ECHO "$complete" | $GREP " "` 39805 if test "x$has_space" != x; then 39806 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39807 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39808 fi 39809 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39810 fi 39811 fi 39812 39813 # Now join together the path and the arguments once again 39814 if test "x$arguments" != xEOL; then 39815 new_complete="$new_path ${arguments% *}" 39816 else 39817 new_complete="$new_path" 39818 fi 39819 39820 if test "x$complete" != "x$new_complete"; then 39821 BUILD_CC="$new_complete" 39822 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39823 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39824 fi 39825 fi 39826 39827 39828 39829 # Publish this variable in the help. 39830 39831 39832 if test "x$BUILD_CXX" = x; then 39833 # The variable is not set by user, try to locate tool using the code snippet 39834 for ac_prog in cl CC g++ 39835 do 39836 # Extract the first word of "$ac_prog", so it can be a program name with args. 39837 set dummy $ac_prog; ac_word=$2 39838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39839 $as_echo_n "checking for $ac_word... " >&6; } 39840 if ${ac_cv_path_BUILD_CXX+:} false; then : 39841 $as_echo_n "(cached) " >&6 39842 else 39843 case $BUILD_CXX in 39844 [\\/]* | ?:[\\/]*) 39845 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39846 ;; 39847 *) 39848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39849 for as_dir in $PATH 39850 do 39851 IFS=$as_save_IFS 39852 test -z "$as_dir" && as_dir=. 39853 for ac_exec_ext in '' $ac_executable_extensions; do 39854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39855 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39857 break 2 39858 fi 39859 done 39860 done 39861 IFS=$as_save_IFS 39862 39863 ;; 39864 esac 39865 fi 39866 BUILD_CXX=$ac_cv_path_BUILD_CXX 39867 if test -n "$BUILD_CXX"; then 39868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39869 $as_echo "$BUILD_CXX" >&6; } 39870 else 39871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39872 $as_echo "no" >&6; } 39873 fi 39874 39875 39876 test -n "$BUILD_CXX" && break 39877 done 39878 39879 else 39880 # The variable is set, but is it from the command line or the environment? 39881 39882 # Try to remove the string !BUILD_CXX! from our list. 39883 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39884 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39885 # If it failed, the variable was not from the command line. Ignore it, 39886 # but warn the user (except for BASH, which is always set by the calling BASH). 39887 if test "xBUILD_CXX" != xBASH; then 39888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39889 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39890 fi 39891 # Try to locate tool using the code snippet 39892 for ac_prog in cl CC g++ 39893 do 39894 # Extract the first word of "$ac_prog", so it can be a program name with args. 39895 set dummy $ac_prog; ac_word=$2 39896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39897 $as_echo_n "checking for $ac_word... " >&6; } 39898 if ${ac_cv_path_BUILD_CXX+:} false; then : 39899 $as_echo_n "(cached) " >&6 39900 else 39901 case $BUILD_CXX in 39902 [\\/]* | ?:[\\/]*) 39903 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39904 ;; 39905 *) 39906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39907 for as_dir in $PATH 39908 do 39909 IFS=$as_save_IFS 39910 test -z "$as_dir" && as_dir=. 39911 for ac_exec_ext in '' $ac_executable_extensions; do 39912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39913 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39915 break 2 39916 fi 39917 done 39918 done 39919 IFS=$as_save_IFS 39920 39921 ;; 39922 esac 39923 fi 39924 BUILD_CXX=$ac_cv_path_BUILD_CXX 39925 if test -n "$BUILD_CXX"; then 39926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39927 $as_echo "$BUILD_CXX" >&6; } 39928 else 39929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39930 $as_echo "no" >&6; } 39931 fi 39932 39933 39934 test -n "$BUILD_CXX" && break 39935 done 39936 39937 else 39938 # If it succeeded, then it was overridden by the user. We will use it 39939 # for the tool. 39940 39941 # First remove it from the list of overridden variables, so we can test 39942 # for unknown variables in the end. 39943 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39944 39945 # Check if the provided tool contains a complete path. 39946 tool_specified="$BUILD_CXX" 39947 tool_basename="${tool_specified##*/}" 39948 if test "x$tool_basename" = "x$tool_specified"; then 39949 # A command without a complete path is provided, search $PATH. 39950 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39951 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39952 # Extract the first word of "$tool_basename", so it can be a program name with args. 39953 set dummy $tool_basename; ac_word=$2 39954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39955 $as_echo_n "checking for $ac_word... " >&6; } 39956 if ${ac_cv_path_BUILD_CXX+:} false; then : 39957 $as_echo_n "(cached) " >&6 39958 else 39959 case $BUILD_CXX in 39960 [\\/]* | ?:[\\/]*) 39961 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39962 ;; 39963 *) 39964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39965 for as_dir in $PATH 39966 do 39967 IFS=$as_save_IFS 39968 test -z "$as_dir" && as_dir=. 39969 for ac_exec_ext in '' $ac_executable_extensions; do 39970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39971 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39973 break 2 39974 fi 39975 done 39976 done 39977 IFS=$as_save_IFS 39978 39979 ;; 39980 esac 39981 fi 39982 BUILD_CXX=$ac_cv_path_BUILD_CXX 39983 if test -n "$BUILD_CXX"; then 39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39985 $as_echo "$BUILD_CXX" >&6; } 39986 else 39987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39988 $as_echo "no" >&6; } 39989 fi 39990 39991 39992 if test "x$BUILD_CXX" = x; then 39993 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39994 fi 39995 else 39996 # Otherwise we believe it is a complete path. Use it as it is. 39997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39998 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40000 $as_echo_n "checking for BUILD_CXX... " >&6; } 40001 if test ! -x "$tool_specified"; then 40002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40003 $as_echo "not found" >&6; } 40004 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40005 fi 40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40007 $as_echo "$tool_specified" >&6; } 40008 fi 40009 fi 40010 fi 40011 40012 40013 40014 # Only process if variable expands to non-empty 40015 40016 if test "x$BUILD_CXX" != x; then 40017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40018 40019 # First separate the path from the arguments. This will split at the first 40020 # space. 40021 complete="$BUILD_CXX" 40022 path="${complete%% *}" 40023 tmp="$complete EOL" 40024 arguments="${tmp#* }" 40025 40026 # Input might be given as Windows format, start by converting to 40027 # unix format. 40028 new_path=`$CYGPATH -u "$path"` 40029 40030 # Now try to locate executable using which 40031 new_path=`$WHICH "$new_path" 2> /dev/null` 40032 # bat and cmd files are not always considered executable in cygwin causing which 40033 # to not find them 40034 if test "x$new_path" = x \ 40035 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40036 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40037 new_path=`$CYGPATH -u "$path"` 40038 fi 40039 if test "x$new_path" = x; then 40040 # Oops. Which didn't find the executable. 40041 # The splitting of arguments from the executable at a space might have been incorrect, 40042 # since paths with space are more likely in Windows. Give it another try with the whole 40043 # argument. 40044 path="$complete" 40045 arguments="EOL" 40046 new_path=`$CYGPATH -u "$path"` 40047 new_path=`$WHICH "$new_path" 2> /dev/null` 40048 # bat and cmd files are not always considered executable in cygwin causing which 40049 # to not find them 40050 if test "x$new_path" = x \ 40051 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40052 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40053 new_path=`$CYGPATH -u "$path"` 40054 fi 40055 if test "x$new_path" = x; then 40056 # It's still not found. Now this is an unrecoverable error. 40057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40058 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40059 has_space=`$ECHO "$complete" | $GREP " "` 40060 if test "x$has_space" != x; then 40061 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40062 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40063 fi 40064 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40065 fi 40066 fi 40067 40068 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40069 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40070 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40071 # "foo.exe" is OK but "foo" is an error. 40072 # 40073 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40074 # It is also a way to make sure we got the proper file name for the real test later on. 40075 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40076 if test "x$test_shortpath" = x; then 40077 # Short path failed, file does not exist as specified. 40078 # Try adding .exe or .cmd 40079 if test -f "${new_path}.exe"; then 40080 input_to_shortpath="${new_path}.exe" 40081 elif test -f "${new_path}.cmd"; then 40082 input_to_shortpath="${new_path}.cmd" 40083 else 40084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40085 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40086 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40087 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40088 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40089 fi 40090 else 40091 input_to_shortpath="$new_path" 40092 fi 40093 40094 # Call helper function which possibly converts this using DOS-style short mode. 40095 # If so, the updated path is stored in $new_path. 40096 new_path="$input_to_shortpath" 40097 40098 input_path="$input_to_shortpath" 40099 # Check if we need to convert this using DOS-style short mode. If the path 40100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40101 # take no chances and rewrite it. 40102 # Note: m4 eats our [], so we need to use [ and ] instead. 40103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40104 if test "x$has_forbidden_chars" != x; then 40105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40106 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40107 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40108 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40109 # Going to short mode and back again did indeed matter. Since short mode is 40110 # case insensitive, let's make it lowercase to improve readability. 40111 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40112 # Now convert it back to Unix-style (cygpath) 40113 input_path=`$CYGPATH -u "$shortmode_path"` 40114 new_path="$input_path" 40115 fi 40116 fi 40117 40118 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40119 if test "x$test_cygdrive_prefix" = x; then 40120 # As a simple fix, exclude /usr/bin since it's not a real path. 40121 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40122 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40123 # a path prefixed by /cygdrive for fixpath to work. 40124 new_path="$CYGWIN_ROOT_PATH$input_path" 40125 fi 40126 fi 40127 40128 # remove trailing .exe if any 40129 new_path="${new_path/%.exe/}" 40130 40131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40132 40133 # First separate the path from the arguments. This will split at the first 40134 # space. 40135 complete="$BUILD_CXX" 40136 path="${complete%% *}" 40137 tmp="$complete EOL" 40138 arguments="${tmp#* }" 40139 40140 # Input might be given as Windows format, start by converting to 40141 # unix format. 40142 new_path="$path" 40143 40144 windows_path="$new_path" 40145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40146 unix_path=`$CYGPATH -u "$windows_path"` 40147 new_path="$unix_path" 40148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40150 new_path="$unix_path" 40151 fi 40152 40153 40154 # Now try to locate executable using which 40155 new_path=`$WHICH "$new_path" 2> /dev/null` 40156 40157 if test "x$new_path" = x; then 40158 # Oops. Which didn't find the executable. 40159 # The splitting of arguments from the executable at a space might have been incorrect, 40160 # since paths with space are more likely in Windows. Give it another try with the whole 40161 # argument. 40162 path="$complete" 40163 arguments="EOL" 40164 new_path="$path" 40165 40166 windows_path="$new_path" 40167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40168 unix_path=`$CYGPATH -u "$windows_path"` 40169 new_path="$unix_path" 40170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40172 new_path="$unix_path" 40173 fi 40174 40175 40176 new_path=`$WHICH "$new_path" 2> /dev/null` 40177 # bat and cmd files are not always considered executable in MSYS causing which 40178 # to not find them 40179 if test "x$new_path" = x \ 40180 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40181 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40182 new_path="$path" 40183 40184 windows_path="$new_path" 40185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40186 unix_path=`$CYGPATH -u "$windows_path"` 40187 new_path="$unix_path" 40188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40190 new_path="$unix_path" 40191 fi 40192 40193 fi 40194 40195 if test "x$new_path" = x; then 40196 # It's still not found. Now this is an unrecoverable error. 40197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40198 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40199 has_space=`$ECHO "$complete" | $GREP " "` 40200 if test "x$has_space" != x; then 40201 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40202 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40203 fi 40204 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40205 fi 40206 fi 40207 40208 # Now new_path has a complete unix path to the binary 40209 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40210 # Keep paths in /bin as-is, but remove trailing .exe if any 40211 new_path="${new_path/%.exe/}" 40212 # Do not save /bin paths to all_fixpath_prefixes! 40213 else 40214 # Not in mixed or Windows style, start by that. 40215 new_path=`cmd //c echo $new_path` 40216 40217 input_path="$new_path" 40218 # Check if we need to convert this using DOS-style short mode. If the path 40219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40220 # take no chances and rewrite it. 40221 # Note: m4 eats our [], so we need to use [ and ] instead. 40222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40223 if test "x$has_forbidden_chars" != x; then 40224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40225 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40226 fi 40227 40228 # Output is in $new_path 40229 40230 windows_path="$new_path" 40231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40232 unix_path=`$CYGPATH -u "$windows_path"` 40233 new_path="$unix_path" 40234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40236 new_path="$unix_path" 40237 fi 40238 40239 # remove trailing .exe if any 40240 new_path="${new_path/%.exe/}" 40241 40242 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40243 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40244 fi 40245 40246 else 40247 # We're on a unix platform. Hooray! :) 40248 # First separate the path from the arguments. This will split at the first 40249 # space. 40250 complete="$BUILD_CXX" 40251 path="${complete%% *}" 40252 tmp="$complete EOL" 40253 arguments="${tmp#* }" 40254 40255 # Cannot rely on the command "which" here since it doesn't always work. 40256 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40257 if test -z "$is_absolute_path"; then 40258 # Path to executable is not absolute. Find it. 40259 IFS_save="$IFS" 40260 IFS=: 40261 for p in $PATH; do 40262 if test -f "$p/$path" && test -x "$p/$path"; then 40263 new_path="$p/$path" 40264 break 40265 fi 40266 done 40267 IFS="$IFS_save" 40268 else 40269 # This is an absolute path, we can use it without further modifications. 40270 new_path="$path" 40271 fi 40272 40273 if test "x$new_path" = x; then 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40275 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40276 has_space=`$ECHO "$complete" | $GREP " "` 40277 if test "x$has_space" != x; then 40278 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40279 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40280 fi 40281 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40282 fi 40283 fi 40284 40285 # Now join together the path and the arguments once again 40286 if test "x$arguments" != xEOL; then 40287 new_complete="$new_path ${arguments% *}" 40288 else 40289 new_complete="$new_path" 40290 fi 40291 40292 if test "x$complete" != "x$new_complete"; then 40293 BUILD_CXX="$new_complete" 40294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40295 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40296 fi 40297 fi 40298 40299 40300 40301 # Publish this variable in the help. 40302 40303 40304 if test "x$BUILD_LD" = x; then 40305 # The variable is not set by user, try to locate tool using the code snippet 40306 for ac_prog in ld 40307 do 40308 # Extract the first word of "$ac_prog", so it can be a program name with args. 40309 set dummy $ac_prog; ac_word=$2 40310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40311 $as_echo_n "checking for $ac_word... " >&6; } 40312 if ${ac_cv_path_BUILD_LD+:} false; then : 40313 $as_echo_n "(cached) " >&6 40314 else 40315 case $BUILD_LD in 40316 [\\/]* | ?:[\\/]*) 40317 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40318 ;; 40319 *) 40320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40321 for as_dir in $PATH 40322 do 40323 IFS=$as_save_IFS 40324 test -z "$as_dir" && as_dir=. 40325 for ac_exec_ext in '' $ac_executable_extensions; do 40326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40327 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40329 break 2 40330 fi 40331 done 40332 done 40333 IFS=$as_save_IFS 40334 40335 ;; 40336 esac 40337 fi 40338 BUILD_LD=$ac_cv_path_BUILD_LD 40339 if test -n "$BUILD_LD"; then 40340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40341 $as_echo "$BUILD_LD" >&6; } 40342 else 40343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40344 $as_echo "no" >&6; } 40345 fi 40346 40347 40348 test -n "$BUILD_LD" && break 40349 done 40350 40351 else 40352 # The variable is set, but is it from the command line or the environment? 40353 40354 # Try to remove the string !BUILD_LD! from our list. 40355 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40356 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40357 # If it failed, the variable was not from the command line. Ignore it, 40358 # but warn the user (except for BASH, which is always set by the calling BASH). 40359 if test "xBUILD_LD" != xBASH; then 40360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40361 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40362 fi 40363 # Try to locate tool using the code snippet 40364 for ac_prog in ld 40365 do 40366 # Extract the first word of "$ac_prog", so it can be a program name with args. 40367 set dummy $ac_prog; ac_word=$2 40368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40369 $as_echo_n "checking for $ac_word... " >&6; } 40370 if ${ac_cv_path_BUILD_LD+:} false; then : 40371 $as_echo_n "(cached) " >&6 40372 else 40373 case $BUILD_LD in 40374 [\\/]* | ?:[\\/]*) 40375 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40376 ;; 40377 *) 40378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40379 for as_dir in $PATH 40380 do 40381 IFS=$as_save_IFS 40382 test -z "$as_dir" && as_dir=. 40383 for ac_exec_ext in '' $ac_executable_extensions; do 40384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40385 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40387 break 2 40388 fi 40389 done 40390 done 40391 IFS=$as_save_IFS 40392 40393 ;; 40394 esac 40395 fi 40396 BUILD_LD=$ac_cv_path_BUILD_LD 40397 if test -n "$BUILD_LD"; then 40398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40399 $as_echo "$BUILD_LD" >&6; } 40400 else 40401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40402 $as_echo "no" >&6; } 40403 fi 40404 40405 40406 test -n "$BUILD_LD" && break 40407 done 40408 40409 else 40410 # If it succeeded, then it was overridden by the user. We will use it 40411 # for the tool. 40412 40413 # First remove it from the list of overridden variables, so we can test 40414 # for unknown variables in the end. 40415 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40416 40417 # Check if the provided tool contains a complete path. 40418 tool_specified="$BUILD_LD" 40419 tool_basename="${tool_specified##*/}" 40420 if test "x$tool_basename" = "x$tool_specified"; then 40421 # A command without a complete path is provided, search $PATH. 40422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40423 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40424 # Extract the first word of "$tool_basename", so it can be a program name with args. 40425 set dummy $tool_basename; ac_word=$2 40426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40427 $as_echo_n "checking for $ac_word... " >&6; } 40428 if ${ac_cv_path_BUILD_LD+:} false; then : 40429 $as_echo_n "(cached) " >&6 40430 else 40431 case $BUILD_LD in 40432 [\\/]* | ?:[\\/]*) 40433 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40434 ;; 40435 *) 40436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40437 for as_dir in $PATH 40438 do 40439 IFS=$as_save_IFS 40440 test -z "$as_dir" && as_dir=. 40441 for ac_exec_ext in '' $ac_executable_extensions; do 40442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40443 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40445 break 2 40446 fi 40447 done 40448 done 40449 IFS=$as_save_IFS 40450 40451 ;; 40452 esac 40453 fi 40454 BUILD_LD=$ac_cv_path_BUILD_LD 40455 if test -n "$BUILD_LD"; then 40456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40457 $as_echo "$BUILD_LD" >&6; } 40458 else 40459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40460 $as_echo "no" >&6; } 40461 fi 40462 40463 40464 if test "x$BUILD_LD" = x; then 40465 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40466 fi 40467 else 40468 # Otherwise we believe it is a complete path. Use it as it is. 40469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40470 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40472 $as_echo_n "checking for BUILD_LD... " >&6; } 40473 if test ! -x "$tool_specified"; then 40474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40475 $as_echo "not found" >&6; } 40476 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40477 fi 40478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40479 $as_echo "$tool_specified" >&6; } 40480 fi 40481 fi 40482 fi 40483 40484 40485 40486 # Only process if variable expands to non-empty 40487 40488 if test "x$BUILD_LD" != x; then 40489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40490 40491 # First separate the path from the arguments. This will split at the first 40492 # space. 40493 complete="$BUILD_LD" 40494 path="${complete%% *}" 40495 tmp="$complete EOL" 40496 arguments="${tmp#* }" 40497 40498 # Input might be given as Windows format, start by converting to 40499 # unix format. 40500 new_path=`$CYGPATH -u "$path"` 40501 40502 # Now try to locate executable using which 40503 new_path=`$WHICH "$new_path" 2> /dev/null` 40504 # bat and cmd files are not always considered executable in cygwin causing which 40505 # to not find them 40506 if test "x$new_path" = x \ 40507 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40508 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40509 new_path=`$CYGPATH -u "$path"` 40510 fi 40511 if test "x$new_path" = x; then 40512 # Oops. Which didn't find the executable. 40513 # The splitting of arguments from the executable at a space might have been incorrect, 40514 # since paths with space are more likely in Windows. Give it another try with the whole 40515 # argument. 40516 path="$complete" 40517 arguments="EOL" 40518 new_path=`$CYGPATH -u "$path"` 40519 new_path=`$WHICH "$new_path" 2> /dev/null` 40520 # bat and cmd files are not always considered executable in cygwin causing which 40521 # to not find them 40522 if test "x$new_path" = x \ 40523 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40524 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40525 new_path=`$CYGPATH -u "$path"` 40526 fi 40527 if test "x$new_path" = x; then 40528 # It's still not found. Now this is an unrecoverable error. 40529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40530 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40531 has_space=`$ECHO "$complete" | $GREP " "` 40532 if test "x$has_space" != x; then 40533 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40534 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40535 fi 40536 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40537 fi 40538 fi 40539 40540 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40541 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40542 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40543 # "foo.exe" is OK but "foo" is an error. 40544 # 40545 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40546 # It is also a way to make sure we got the proper file name for the real test later on. 40547 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40548 if test "x$test_shortpath" = x; then 40549 # Short path failed, file does not exist as specified. 40550 # Try adding .exe or .cmd 40551 if test -f "${new_path}.exe"; then 40552 input_to_shortpath="${new_path}.exe" 40553 elif test -f "${new_path}.cmd"; then 40554 input_to_shortpath="${new_path}.cmd" 40555 else 40556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40557 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40558 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40559 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40560 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40561 fi 40562 else 40563 input_to_shortpath="$new_path" 40564 fi 40565 40566 # Call helper function which possibly converts this using DOS-style short mode. 40567 # If so, the updated path is stored in $new_path. 40568 new_path="$input_to_shortpath" 40569 40570 input_path="$input_to_shortpath" 40571 # Check if we need to convert this using DOS-style short mode. If the path 40572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40573 # take no chances and rewrite it. 40574 # Note: m4 eats our [], so we need to use [ and ] instead. 40575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40576 if test "x$has_forbidden_chars" != x; then 40577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40578 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40579 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40580 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40581 # Going to short mode and back again did indeed matter. Since short mode is 40582 # case insensitive, let's make it lowercase to improve readability. 40583 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40584 # Now convert it back to Unix-style (cygpath) 40585 input_path=`$CYGPATH -u "$shortmode_path"` 40586 new_path="$input_path" 40587 fi 40588 fi 40589 40590 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40591 if test "x$test_cygdrive_prefix" = x; then 40592 # As a simple fix, exclude /usr/bin since it's not a real path. 40593 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40594 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40595 # a path prefixed by /cygdrive for fixpath to work. 40596 new_path="$CYGWIN_ROOT_PATH$input_path" 40597 fi 40598 fi 40599 40600 # remove trailing .exe if any 40601 new_path="${new_path/%.exe/}" 40602 40603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40604 40605 # First separate the path from the arguments. This will split at the first 40606 # space. 40607 complete="$BUILD_LD" 40608 path="${complete%% *}" 40609 tmp="$complete EOL" 40610 arguments="${tmp#* }" 40611 40612 # Input might be given as Windows format, start by converting to 40613 # unix format. 40614 new_path="$path" 40615 40616 windows_path="$new_path" 40617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40618 unix_path=`$CYGPATH -u "$windows_path"` 40619 new_path="$unix_path" 40620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40622 new_path="$unix_path" 40623 fi 40624 40625 40626 # Now try to locate executable using which 40627 new_path=`$WHICH "$new_path" 2> /dev/null` 40628 40629 if test "x$new_path" = x; then 40630 # Oops. Which didn't find the executable. 40631 # The splitting of arguments from the executable at a space might have been incorrect, 40632 # since paths with space are more likely in Windows. Give it another try with the whole 40633 # argument. 40634 path="$complete" 40635 arguments="EOL" 40636 new_path="$path" 40637 40638 windows_path="$new_path" 40639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40640 unix_path=`$CYGPATH -u "$windows_path"` 40641 new_path="$unix_path" 40642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40644 new_path="$unix_path" 40645 fi 40646 40647 40648 new_path=`$WHICH "$new_path" 2> /dev/null` 40649 # bat and cmd files are not always considered executable in MSYS causing which 40650 # to not find them 40651 if test "x$new_path" = x \ 40652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40654 new_path="$path" 40655 40656 windows_path="$new_path" 40657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40658 unix_path=`$CYGPATH -u "$windows_path"` 40659 new_path="$unix_path" 40660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40662 new_path="$unix_path" 40663 fi 40664 40665 fi 40666 40667 if test "x$new_path" = x; then 40668 # It's still not found. Now this is an unrecoverable error. 40669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40670 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40671 has_space=`$ECHO "$complete" | $GREP " "` 40672 if test "x$has_space" != x; then 40673 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40674 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40675 fi 40676 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40677 fi 40678 fi 40679 40680 # Now new_path has a complete unix path to the binary 40681 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40682 # Keep paths in /bin as-is, but remove trailing .exe if any 40683 new_path="${new_path/%.exe/}" 40684 # Do not save /bin paths to all_fixpath_prefixes! 40685 else 40686 # Not in mixed or Windows style, start by that. 40687 new_path=`cmd //c echo $new_path` 40688 40689 input_path="$new_path" 40690 # Check if we need to convert this using DOS-style short mode. If the path 40691 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40692 # take no chances and rewrite it. 40693 # Note: m4 eats our [], so we need to use [ and ] instead. 40694 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40695 if test "x$has_forbidden_chars" != x; then 40696 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40697 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40698 fi 40699 40700 # Output is in $new_path 40701 40702 windows_path="$new_path" 40703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40704 unix_path=`$CYGPATH -u "$windows_path"` 40705 new_path="$unix_path" 40706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40708 new_path="$unix_path" 40709 fi 40710 40711 # remove trailing .exe if any 40712 new_path="${new_path/%.exe/}" 40713 40714 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40715 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40716 fi 40717 40718 else 40719 # We're on a unix platform. Hooray! :) 40720 # First separate the path from the arguments. This will split at the first 40721 # space. 40722 complete="$BUILD_LD" 40723 path="${complete%% *}" 40724 tmp="$complete EOL" 40725 arguments="${tmp#* }" 40726 40727 # Cannot rely on the command "which" here since it doesn't always work. 40728 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40729 if test -z "$is_absolute_path"; then 40730 # Path to executable is not absolute. Find it. 40731 IFS_save="$IFS" 40732 IFS=: 40733 for p in $PATH; do 40734 if test -f "$p/$path" && test -x "$p/$path"; then 40735 new_path="$p/$path" 40736 break 40737 fi 40738 done 40739 IFS="$IFS_save" 40740 else 40741 # This is an absolute path, we can use it without further modifications. 40742 new_path="$path" 40743 fi 40744 40745 if test "x$new_path" = x; then 40746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40747 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40748 has_space=`$ECHO "$complete" | $GREP " "` 40749 if test "x$has_space" != x; then 40750 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40751 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40752 fi 40753 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40754 fi 40755 fi 40756 40757 # Now join together the path and the arguments once again 40758 if test "x$arguments" != xEOL; then 40759 new_complete="$new_path ${arguments% *}" 40760 else 40761 new_complete="$new_path" 40762 fi 40763 40764 if test "x$complete" != "x$new_complete"; then 40765 BUILD_LD="$new_complete" 40766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40767 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40768 fi 40769 fi 40770 40771 else 40772 # If we are not cross compiling, use the normal target compilers for 40773 # building the build platform executables. 40774 BUILD_CC="$CC" 40775 BUILD_CXX="$CXX" 40776 BUILD_LD="$LD" 40777 fi 40778 40779 40780 40781 40782 40783 40784 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40785 # For hotspot, we need these in Windows mixed path, 40786 # so rewrite them all. Need added .exe suffix. 40787 HOTSPOT_CXX="$CXX.exe" 40788 HOTSPOT_LD="$LD.exe" 40789 HOTSPOT_MT="$MT.exe" 40790 HOTSPOT_RC="$RC.exe" 40791 40792 unix_path="$HOTSPOT_CXX" 40793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40794 windows_path=`$CYGPATH -m "$unix_path"` 40795 HOTSPOT_CXX="$windows_path" 40796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40797 windows_path=`cmd //c echo $unix_path` 40798 HOTSPOT_CXX="$windows_path" 40799 fi 40800 40801 40802 unix_path="$HOTSPOT_LD" 40803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40804 windows_path=`$CYGPATH -m "$unix_path"` 40805 HOTSPOT_LD="$windows_path" 40806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40807 windows_path=`cmd //c echo $unix_path` 40808 HOTSPOT_LD="$windows_path" 40809 fi 40810 40811 40812 unix_path="$HOTSPOT_MT" 40813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40814 windows_path=`$CYGPATH -m "$unix_path"` 40815 HOTSPOT_MT="$windows_path" 40816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40817 windows_path=`cmd //c echo $unix_path` 40818 HOTSPOT_MT="$windows_path" 40819 fi 40820 40821 40822 unix_path="$HOTSPOT_RC" 40823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40824 windows_path=`$CYGPATH -m "$unix_path"` 40825 HOTSPOT_RC="$windows_path" 40826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40827 windows_path=`cmd //c echo $unix_path` 40828 HOTSPOT_RC="$windows_path" 40829 fi 40830 40831 40832 40833 else 40834 HOTSPOT_CXX="$CXX" 40835 HOTSPOT_LD="$LD" 40836 fi 40837 40838 40839 40840 if test "x$TOOLCHAIN_TYPE" = xclang; then 40841 USE_CLANG=true 40842 fi 40843 40844 40845 40846 40847 40848 # The package path is used only on macosx? 40849 # FIXME: clean this up, and/or move it elsewhere. 40850 PACKAGE_PATH=/opt/local 40851 40852 40853 # Check for extra potential brokenness. 40854 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40855 # On Windows, double-check that we got the right compiler. 40856 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40857 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40858 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40859 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40860 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 40861 fi 40862 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40863 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40864 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40865 fi 40866 fi 40867 fi 40868 40869 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40870 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40871 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40872 # This is later checked when setting flags. 40873 40874 # "-Og" suppported for GCC 4.8 and later 40875 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40876 40877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40878 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40879 supports=yes 40880 40881 saved_cflags="$CFLAGS" 40882 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40883 ac_ext=c 40884 ac_cpp='$CPP $CPPFLAGS' 40885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40887 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40888 40889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40890 /* end confdefs.h. */ 40891 int i; 40892 _ACEOF 40893 if ac_fn_c_try_compile "$LINENO"; then : 40894 40895 else 40896 supports=no 40897 fi 40898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40899 ac_ext=cpp 40900 ac_cpp='$CXXCPP $CPPFLAGS' 40901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40904 40905 CFLAGS="$saved_cflags" 40906 40907 saved_cxxflags="$CXXFLAGS" 40908 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40909 ac_ext=cpp 40910 ac_cpp='$CXXCPP $CPPFLAGS' 40911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40914 40915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40916 /* end confdefs.h. */ 40917 int i; 40918 _ACEOF 40919 if ac_fn_cxx_try_compile "$LINENO"; then : 40920 40921 else 40922 supports=no 40923 fi 40924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40925 ac_ext=cpp 40926 ac_cpp='$CXXCPP $CPPFLAGS' 40927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40930 40931 CXXFLAGS="$saved_cxxflags" 40932 40933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40934 $as_echo "$supports" >&6; } 40935 if test "x$supports" = "xyes" ; then 40936 HAS_CFLAG_OPTIMIZE_DEBUG=true 40937 else 40938 HAS_CFLAG_OPTIMIZE_DEBUG=false 40939 fi 40940 40941 40942 # "-z relro" supported in GNU binutils 2.17 and later 40943 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 40944 40945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 40946 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 40947 supports=yes 40948 40949 saved_ldflags="$LDFLAGS" 40950 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 40951 ac_ext=c 40952 ac_cpp='$CPP $CPPFLAGS' 40953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40955 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40956 40957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40958 /* end confdefs.h. */ 40959 40960 int 40961 main () 40962 { 40963 40964 ; 40965 return 0; 40966 } 40967 _ACEOF 40968 if ac_fn_c_try_link "$LINENO"; then : 40969 40970 else 40971 supports=no 40972 fi 40973 rm -f core conftest.err conftest.$ac_objext \ 40974 conftest$ac_exeext conftest.$ac_ext 40975 ac_ext=cpp 40976 ac_cpp='$CXXCPP $CPPFLAGS' 40977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40980 40981 LDFLAGS="$saved_ldflags" 40982 40983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40984 $as_echo "$supports" >&6; } 40985 if test "x$supports" = "xyes" ; then 40986 HAS_LINKER_RELRO=true 40987 else 40988 HAS_LINKER_RELRO=false 40989 fi 40990 40991 40992 # "-z now" supported in GNU binutils 2.11 and later 40993 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 40994 40995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 40996 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 40997 supports=yes 40998 40999 saved_ldflags="$LDFLAGS" 41000 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41001 ac_ext=c 41002 ac_cpp='$CPP $CPPFLAGS' 41003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41005 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41006 41007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41008 /* end confdefs.h. */ 41009 41010 int 41011 main () 41012 { 41013 41014 ; 41015 return 0; 41016 } 41017 _ACEOF 41018 if ac_fn_c_try_link "$LINENO"; then : 41019 41020 else 41021 supports=no 41022 fi 41023 rm -f core conftest.err conftest.$ac_objext \ 41024 conftest$ac_exeext conftest.$ac_ext 41025 ac_ext=cpp 41026 ac_cpp='$CXXCPP $CPPFLAGS' 41027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41030 41031 LDFLAGS="$saved_ldflags" 41032 41033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41034 $as_echo "$supports" >&6; } 41035 if test "x$supports" = "xyes" ; then 41036 HAS_LINKER_NOW=true 41037 else 41038 HAS_LINKER_NOW=false 41039 fi 41040 41041 fi 41042 41043 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41044 # in executable.' 41045 USING_BROKEN_SUSE_LD=no 41046 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41048 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41049 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41050 $ECHO "int main() { }" > main.c 41051 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41053 $as_echo "no" >&6; } 41054 USING_BROKEN_SUSE_LD=no 41055 else 41056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41057 $as_echo "yes" >&6; } 41058 USING_BROKEN_SUSE_LD=yes 41059 fi 41060 rm -rf version-script.map main.c a.out 41061 fi 41062 41063 41064 41065 # Setup the JTReg Regression Test Harness. 41066 41067 41068 # Check whether --with-jtreg was given. 41069 if test "${with_jtreg+set}" = set; then : 41070 withval=$with_jtreg; 41071 else 41072 with_jtreg=no 41073 fi 41074 41075 41076 if test "x$with_jtreg" = xno; then 41077 # jtreg disabled 41078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41079 $as_echo_n "checking for jtreg... " >&6; } 41080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41081 $as_echo "no" >&6; } 41082 else 41083 if test "x$with_jtreg" != xyes; then 41084 # with path specified. 41085 JT_HOME="$with_jtreg" 41086 fi 41087 41088 if test "x$JT_HOME" != x; then 41089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41090 $as_echo_n "checking for jtreg... " >&6; } 41091 41092 # use JT_HOME enviroment var. 41093 41094 # Only process if variable expands to non-empty 41095 41096 if test "x$JT_HOME" != x; then 41097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41098 41099 # Input might be given as Windows format, start by converting to 41100 # unix format. 41101 path="$JT_HOME" 41102 new_path=`$CYGPATH -u "$path"` 41103 41104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41107 # "foo.exe" is OK but "foo" is an error. 41108 # 41109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41110 # It is also a way to make sure we got the proper file name for the real test later on. 41111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41112 if test "x$test_shortpath" = x; then 41113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41114 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41115 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41116 fi 41117 41118 # Call helper function which possibly converts this using DOS-style short mode. 41119 # If so, the updated path is stored in $new_path. 41120 41121 input_path="$new_path" 41122 # Check if we need to convert this using DOS-style short mode. If the path 41123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41124 # take no chances and rewrite it. 41125 # Note: m4 eats our [], so we need to use [ and ] instead. 41126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41127 if test "x$has_forbidden_chars" != x; then 41128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41132 # Going to short mode and back again did indeed matter. Since short mode is 41133 # case insensitive, let's make it lowercase to improve readability. 41134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41135 # Now convert it back to Unix-style (cygpath) 41136 input_path=`$CYGPATH -u "$shortmode_path"` 41137 new_path="$input_path" 41138 fi 41139 fi 41140 41141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41142 if test "x$test_cygdrive_prefix" = x; then 41143 # As a simple fix, exclude /usr/bin since it's not a real path. 41144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41146 # a path prefixed by /cygdrive for fixpath to work. 41147 new_path="$CYGWIN_ROOT_PATH$input_path" 41148 fi 41149 fi 41150 41151 41152 if test "x$path" != "x$new_path"; then 41153 JT_HOME="$new_path" 41154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41155 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41156 fi 41157 41158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41159 41160 path="$JT_HOME" 41161 has_colon=`$ECHO $path | $GREP ^.:` 41162 new_path="$path" 41163 if test "x$has_colon" = x; then 41164 # Not in mixed or Windows style, start by that. 41165 new_path=`cmd //c echo $path` 41166 fi 41167 41168 41169 input_path="$new_path" 41170 # Check if we need to convert this using DOS-style short mode. If the path 41171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41172 # take no chances and rewrite it. 41173 # Note: m4 eats our [], so we need to use [ and ] instead. 41174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41175 if test "x$has_forbidden_chars" != x; then 41176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41178 fi 41179 41180 41181 windows_path="$new_path" 41182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41183 unix_path=`$CYGPATH -u "$windows_path"` 41184 new_path="$unix_path" 41185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41187 new_path="$unix_path" 41188 fi 41189 41190 if test "x$path" != "x$new_path"; then 41191 JT_HOME="$new_path" 41192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41193 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41194 fi 41195 41196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41198 41199 else 41200 # We're on a unix platform. Hooray! :) 41201 path="$JT_HOME" 41202 has_space=`$ECHO "$path" | $GREP " "` 41203 if test "x$has_space" != x; then 41204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41205 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41207 fi 41208 41209 # Use eval to expand a potential ~ 41210 eval path="$path" 41211 if test ! -f "$path" && test ! -d "$path"; then 41212 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41213 fi 41214 41215 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41216 fi 41217 fi 41218 41219 41220 # jtreg win32 script works for everybody 41221 JTREGEXE="$JT_HOME/bin/jtreg" 41222 41223 if test ! -f "$JTREGEXE"; then 41224 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41225 fi 41226 41227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41228 $as_echo "$JTREGEXE" >&6; } 41229 else 41230 # try to find jtreg on path 41231 41232 41233 41234 # Publish this variable in the help. 41235 41236 41237 if test "x$JTREGEXE" = x; then 41238 # The variable is not set by user, try to locate tool using the code snippet 41239 for ac_prog in jtreg 41240 do 41241 # Extract the first word of "$ac_prog", so it can be a program name with args. 41242 set dummy $ac_prog; ac_word=$2 41243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41244 $as_echo_n "checking for $ac_word... " >&6; } 41245 if ${ac_cv_path_JTREGEXE+:} false; then : 41246 $as_echo_n "(cached) " >&6 41247 else 41248 case $JTREGEXE in 41249 [\\/]* | ?:[\\/]*) 41250 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41251 ;; 41252 *) 41253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41254 for as_dir in $PATH 41255 do 41256 IFS=$as_save_IFS 41257 test -z "$as_dir" && as_dir=. 41258 for ac_exec_ext in '' $ac_executable_extensions; do 41259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41260 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41262 break 2 41263 fi 41264 done 41265 done 41266 IFS=$as_save_IFS 41267 41268 ;; 41269 esac 41270 fi 41271 JTREGEXE=$ac_cv_path_JTREGEXE 41272 if test -n "$JTREGEXE"; then 41273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41274 $as_echo "$JTREGEXE" >&6; } 41275 else 41276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41277 $as_echo "no" >&6; } 41278 fi 41279 41280 41281 test -n "$JTREGEXE" && break 41282 done 41283 41284 else 41285 # The variable is set, but is it from the command line or the environment? 41286 41287 # Try to remove the string !JTREGEXE! from our list. 41288 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41289 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41290 # If it failed, the variable was not from the command line. Ignore it, 41291 # but warn the user (except for BASH, which is always set by the calling BASH). 41292 if test "xJTREGEXE" != xBASH; then 41293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41294 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41295 fi 41296 # Try to locate tool using the code snippet 41297 for ac_prog in jtreg 41298 do 41299 # Extract the first word of "$ac_prog", so it can be a program name with args. 41300 set dummy $ac_prog; ac_word=$2 41301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41302 $as_echo_n "checking for $ac_word... " >&6; } 41303 if ${ac_cv_path_JTREGEXE+:} false; then : 41304 $as_echo_n "(cached) " >&6 41305 else 41306 case $JTREGEXE in 41307 [\\/]* | ?:[\\/]*) 41308 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41309 ;; 41310 *) 41311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41312 for as_dir in $PATH 41313 do 41314 IFS=$as_save_IFS 41315 test -z "$as_dir" && as_dir=. 41316 for ac_exec_ext in '' $ac_executable_extensions; do 41317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41318 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41320 break 2 41321 fi 41322 done 41323 done 41324 IFS=$as_save_IFS 41325 41326 ;; 41327 esac 41328 fi 41329 JTREGEXE=$ac_cv_path_JTREGEXE 41330 if test -n "$JTREGEXE"; then 41331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41332 $as_echo "$JTREGEXE" >&6; } 41333 else 41334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41335 $as_echo "no" >&6; } 41336 fi 41337 41338 41339 test -n "$JTREGEXE" && break 41340 done 41341 41342 else 41343 # If it succeeded, then it was overridden by the user. We will use it 41344 # for the tool. 41345 41346 # First remove it from the list of overridden variables, so we can test 41347 # for unknown variables in the end. 41348 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41349 41350 # Check if the provided tool contains a complete path. 41351 tool_specified="$JTREGEXE" 41352 tool_basename="${tool_specified##*/}" 41353 if test "x$tool_basename" = "x$tool_specified"; then 41354 # A command without a complete path is provided, search $PATH. 41355 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41356 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41357 # Extract the first word of "$tool_basename", so it can be a program name with args. 41358 set dummy $tool_basename; ac_word=$2 41359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41360 $as_echo_n "checking for $ac_word... " >&6; } 41361 if ${ac_cv_path_JTREGEXE+:} false; then : 41362 $as_echo_n "(cached) " >&6 41363 else 41364 case $JTREGEXE in 41365 [\\/]* | ?:[\\/]*) 41366 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41367 ;; 41368 *) 41369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41370 for as_dir in $PATH 41371 do 41372 IFS=$as_save_IFS 41373 test -z "$as_dir" && as_dir=. 41374 for ac_exec_ext in '' $ac_executable_extensions; do 41375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41376 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41378 break 2 41379 fi 41380 done 41381 done 41382 IFS=$as_save_IFS 41383 41384 ;; 41385 esac 41386 fi 41387 JTREGEXE=$ac_cv_path_JTREGEXE 41388 if test -n "$JTREGEXE"; then 41389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41390 $as_echo "$JTREGEXE" >&6; } 41391 else 41392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41393 $as_echo "no" >&6; } 41394 fi 41395 41396 41397 if test "x$JTREGEXE" = x; then 41398 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41399 fi 41400 else 41401 # Otherwise we believe it is a complete path. Use it as it is. 41402 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41403 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41405 $as_echo_n "checking for JTREGEXE... " >&6; } 41406 if test ! -x "$tool_specified"; then 41407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41408 $as_echo "not found" >&6; } 41409 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41410 fi 41411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41412 $as_echo "$tool_specified" >&6; } 41413 fi 41414 fi 41415 fi 41416 41417 41418 41419 if test "x$JTREGEXE" = x; then 41420 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41421 fi 41422 41423 41424 JT_HOME="`$DIRNAME $JTREGEXE`" 41425 fi 41426 fi 41427 41428 41429 41430 41431 41432 41433 # Option used to tell the compiler whether to create 32- or 64-bit executables 41434 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41435 COMPILER_TARGET_BITS_FLAG="-q" 41436 else 41437 COMPILER_TARGET_BITS_FLAG="-m" 41438 fi 41439 41440 41441 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41442 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41443 ARFLAGS="-r" 41444 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41445 ARFLAGS="-X64" 41446 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41447 # lib.exe is used as AR to create static libraries. 41448 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41449 else 41450 ARFLAGS="" 41451 fi 41452 41453 41454 ## Setup strip. 41455 # FIXME: should this really be per platform, or should it be per toolchain type? 41456 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41457 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41458 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41459 STRIPFLAGS="-g" 41460 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41461 STRIPFLAGS="-x" 41462 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41463 STRIPFLAGS="-S" 41464 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41465 STRIPFLAGS="-X32_64" 41466 fi 41467 41468 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41469 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41470 fi 41471 41472 41473 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41474 CC_OUT_OPTION=-Fo 41475 EXE_OUT_OPTION=-out: 41476 LD_OUT_OPTION=-out: 41477 AR_OUT_OPTION=-out: 41478 else 41479 # The option used to specify the target .o,.a or .so file. 41480 # When compiling, how to specify the to be created object file. 41481 CC_OUT_OPTION='-o$(SPACE)' 41482 # When linking, how to specify the to be created executable. 41483 EXE_OUT_OPTION='-o$(SPACE)' 41484 # When linking, how to specify the to be created dynamically linkable library. 41485 LD_OUT_OPTION='-o$(SPACE)' 41486 # When archiving, how to specify the to be create static archive for object files. 41487 AR_OUT_OPTION='rcs$(SPACE)' 41488 fi 41489 41490 41491 41492 41493 41494 # On Windows, we need to set RC flags. 41495 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41496 RC_FLAGS="-nologo -l0x409" 41497 if test "x$VARIANT" = xOPT; then 41498 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41499 fi 41500 41501 # The version variables used to create RC_FLAGS may be overridden 41502 # in a custom configure script, or possibly the command line. 41503 # Let those variables be expanded at make time in spec.gmk. 41504 # The \$ are escaped to the shell, and the $(...) variables 41505 # are evaluated by make. 41506 RC_FLAGS="$RC_FLAGS \ 41507 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 41508 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41509 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41510 -D\"JDK_VER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 41511 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41512 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 41513 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 41514 fi 41515 41516 41517 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41518 # silence copyright notice and other headers. 41519 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41520 fi 41521 41522 if test "x$SYSROOT" != "x"; then 41523 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41524 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41525 # Solaris Studio does not have a concept of sysroot. Instead we must 41526 # make sure the default include and lib dirs are appended to each 41527 # compile and link command line. 41528 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41529 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41530 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41531 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41532 fi 41533 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41534 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41535 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41536 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41537 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41538 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41539 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41540 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41541 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41542 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41543 fi 41544 # Propagate the sysroot args to hotspot 41545 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41546 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41547 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41548 fi 41549 41550 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41551 # set this here so it doesn't have to be peppered throughout the forest 41552 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41553 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41554 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41555 fi 41556 41557 41558 41559 41560 41561 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41562 41563 # Now we can test some aspects on the target using configure macros. 41564 41565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41566 $as_echo_n "checking for ANSI C header files... " >&6; } 41567 if ${ac_cv_header_stdc+:} false; then : 41568 $as_echo_n "(cached) " >&6 41569 else 41570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41571 /* end confdefs.h. */ 41572 #include <stdlib.h> 41573 #include <stdarg.h> 41574 #include <string.h> 41575 #include <float.h> 41576 41577 int 41578 main () 41579 { 41580 41581 ; 41582 return 0; 41583 } 41584 _ACEOF 41585 if ac_fn_cxx_try_compile "$LINENO"; then : 41586 ac_cv_header_stdc=yes 41587 else 41588 ac_cv_header_stdc=no 41589 fi 41590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41591 41592 if test $ac_cv_header_stdc = yes; then 41593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41595 /* end confdefs.h. */ 41596 #include <string.h> 41597 41598 _ACEOF 41599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41600 $EGREP "memchr" >/dev/null 2>&1; then : 41601 41602 else 41603 ac_cv_header_stdc=no 41604 fi 41605 rm -f conftest* 41606 41607 fi 41608 41609 if test $ac_cv_header_stdc = yes; then 41610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41612 /* end confdefs.h. */ 41613 #include <stdlib.h> 41614 41615 _ACEOF 41616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41617 $EGREP "free" >/dev/null 2>&1; then : 41618 41619 else 41620 ac_cv_header_stdc=no 41621 fi 41622 rm -f conftest* 41623 41624 fi 41625 41626 if test $ac_cv_header_stdc = yes; then 41627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41628 if test "$cross_compiling" = yes; then : 41629 : 41630 else 41631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41632 /* end confdefs.h. */ 41633 #include <ctype.h> 41634 #include <stdlib.h> 41635 #if ((' ' & 0x0FF) == 0x020) 41636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41638 #else 41639 # define ISLOWER(c) \ 41640 (('a' <= (c) && (c) <= 'i') \ 41641 || ('j' <= (c) && (c) <= 'r') \ 41642 || ('s' <= (c) && (c) <= 'z')) 41643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41644 #endif 41645 41646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41647 int 41648 main () 41649 { 41650 int i; 41651 for (i = 0; i < 256; i++) 41652 if (XOR (islower (i), ISLOWER (i)) 41653 || toupper (i) != TOUPPER (i)) 41654 return 2; 41655 return 0; 41656 } 41657 _ACEOF 41658 if ac_fn_cxx_try_run "$LINENO"; then : 41659 41660 else 41661 ac_cv_header_stdc=no 41662 fi 41663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41664 conftest.$ac_objext conftest.beam conftest.$ac_ext 41665 fi 41666 41667 fi 41668 fi 41669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41670 $as_echo "$ac_cv_header_stdc" >&6; } 41671 if test $ac_cv_header_stdc = yes; then 41672 41673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41674 41675 fi 41676 41677 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41679 inttypes.h stdint.h unistd.h 41680 do : 41681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41682 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41683 " 41684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41685 cat >>confdefs.h <<_ACEOF 41686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41687 _ACEOF 41688 41689 fi 41690 41691 done 41692 41693 41694 41695 ############################################################################### 41696 # 41697 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41698 # (The JVM can use 32 or 64 bit Java pointers but that decision 41699 # is made at runtime.) 41700 # 41701 41702 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41703 # Always specify -m flag on Solaris 41704 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41705 41706 # When we add flags to the "official" CFLAGS etc, we need to 41707 # keep track of these additions in ADDED_CFLAGS etc. These 41708 # will later be checked to make sure only controlled additions 41709 # have been made to CFLAGS etc. 41710 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41711 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41712 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41713 41714 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41715 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41716 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41717 41718 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41719 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41720 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41721 41722 elif test "x$COMPILE_TYPE" = xreduced; then 41723 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41724 # Specify -m if running reduced on unix platforms 41725 41726 # When we add flags to the "official" CFLAGS etc, we need to 41727 # keep track of these additions in ADDED_CFLAGS etc. These 41728 # will later be checked to make sure only controlled additions 41729 # have been made to CFLAGS etc. 41730 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41731 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41732 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41733 41734 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41735 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41736 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41737 41738 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41739 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41740 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41741 41742 fi 41743 fi 41744 41745 # Make compilation sanity check 41746 for ac_header in stdio.h 41747 do : 41748 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41749 if test "x$ac_cv_header_stdio_h" = xyes; then : 41750 cat >>confdefs.h <<_ACEOF 41751 #define HAVE_STDIO_H 1 41752 _ACEOF 41753 41754 else 41755 41756 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41757 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41758 if test "x$COMPILE_TYPE" = xreduced; then 41759 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41760 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41761 elif test "x$COMPILE_TYPE" = xcross; then 41762 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41763 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41764 fi 41765 as_fn_error $? "Cannot continue." "$LINENO" 5 41766 41767 fi 41768 41769 done 41770 41771 41772 # The cast to long int works around a bug in the HP C Compiler 41773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41775 # This bug is HP SR number 8606223364. 41776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41777 $as_echo_n "checking size of int *... " >&6; } 41778 if ${ac_cv_sizeof_int_p+:} false; then : 41779 $as_echo_n "(cached) " >&6 41780 else 41781 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41782 41783 else 41784 if test "$ac_cv_type_int_p" = yes; then 41785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41787 as_fn_error 77 "cannot compute sizeof (int *) 41788 See \`config.log' for more details" "$LINENO" 5; } 41789 else 41790 ac_cv_sizeof_int_p=0 41791 fi 41792 fi 41793 41794 fi 41795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41796 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41797 41798 41799 41800 cat >>confdefs.h <<_ACEOF 41801 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41802 _ACEOF 41803 41804 41805 41806 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41807 if test "x$ac_cv_sizeof_int_p" = x; then 41808 # The test failed, lets stick to the assumed value. 41809 { $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 41810 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41811 else 41812 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41813 41814 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41815 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41816 # Let's try to implicitely set the compilers target architecture and retry the test 41817 { $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 41818 $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;} 41819 { $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 41820 $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;} 41821 41822 # When we add flags to the "official" CFLAGS etc, we need to 41823 # keep track of these additions in ADDED_CFLAGS etc. These 41824 # will later be checked to make sure only controlled additions 41825 # have been made to CFLAGS etc. 41826 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41827 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41828 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41829 41830 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41831 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41832 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41833 41834 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41835 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41836 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41837 41838 41839 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41840 unset ac_cv_sizeof_int_p 41841 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41842 cat >>confdefs.h <<_ACEOF 41843 #undef SIZEOF_INT_P 41844 _ACEOF 41845 41846 # The cast to long int works around a bug in the HP C Compiler 41847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41849 # This bug is HP SR number 8606223364. 41850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41851 $as_echo_n "checking size of int *... " >&6; } 41852 if ${ac_cv_sizeof_int_p+:} false; then : 41853 $as_echo_n "(cached) " >&6 41854 else 41855 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41856 41857 else 41858 if test "$ac_cv_type_int_p" = yes; then 41859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41861 as_fn_error 77 "cannot compute sizeof (int *) 41862 See \`config.log' for more details" "$LINENO" 5; } 41863 else 41864 ac_cv_sizeof_int_p=0 41865 fi 41866 fi 41867 41868 fi 41869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41870 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41871 41872 41873 41874 cat >>confdefs.h <<_ACEOF 41875 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41876 _ACEOF 41877 41878 41879 41880 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41881 41882 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41883 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 41884 fi 41885 fi 41886 fi 41887 41888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41889 $as_echo_n "checking for target address size... " >&6; } 41890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41891 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41892 41893 41894 ############################################################################### 41895 # 41896 # Is the target little of big endian? 41897 # 41898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41900 if ${ac_cv_c_bigendian+:} false; then : 41901 $as_echo_n "(cached) " >&6 41902 else 41903 ac_cv_c_bigendian=unknown 41904 # See if we're dealing with a universal compiler. 41905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41906 /* end confdefs.h. */ 41907 #ifndef __APPLE_CC__ 41908 not a universal capable compiler 41909 #endif 41910 typedef int dummy; 41911 41912 _ACEOF 41913 if ac_fn_cxx_try_compile "$LINENO"; then : 41914 41915 # Check for potential -arch flags. It is not universal unless 41916 # there are at least two -arch flags with different values. 41917 ac_arch= 41918 ac_prev= 41919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41920 if test -n "$ac_prev"; then 41921 case $ac_word in 41922 i?86 | x86_64 | ppc | ppc64) 41923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41924 ac_arch=$ac_word 41925 else 41926 ac_cv_c_bigendian=universal 41927 break 41928 fi 41929 ;; 41930 esac 41931 ac_prev= 41932 elif test "x$ac_word" = "x-arch"; then 41933 ac_prev=arch 41934 fi 41935 done 41936 fi 41937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41938 if test $ac_cv_c_bigendian = unknown; then 41939 # See if sys/param.h defines the BYTE_ORDER macro. 41940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41941 /* end confdefs.h. */ 41942 #include <sys/types.h> 41943 #include <sys/param.h> 41944 41945 int 41946 main () 41947 { 41948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41950 && LITTLE_ENDIAN) 41951 bogus endian macros 41952 #endif 41953 41954 ; 41955 return 0; 41956 } 41957 _ACEOF 41958 if ac_fn_cxx_try_compile "$LINENO"; then : 41959 # It does; now see whether it defined to BIG_ENDIAN or not. 41960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41961 /* end confdefs.h. */ 41962 #include <sys/types.h> 41963 #include <sys/param.h> 41964 41965 int 41966 main () 41967 { 41968 #if BYTE_ORDER != BIG_ENDIAN 41969 not big endian 41970 #endif 41971 41972 ; 41973 return 0; 41974 } 41975 _ACEOF 41976 if ac_fn_cxx_try_compile "$LINENO"; then : 41977 ac_cv_c_bigendian=yes 41978 else 41979 ac_cv_c_bigendian=no 41980 fi 41981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41982 fi 41983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41984 fi 41985 if test $ac_cv_c_bigendian = unknown; then 41986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41988 /* end confdefs.h. */ 41989 #include <limits.h> 41990 41991 int 41992 main () 41993 { 41994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41995 bogus endian macros 41996 #endif 41997 41998 ; 41999 return 0; 42000 } 42001 _ACEOF 42002 if ac_fn_cxx_try_compile "$LINENO"; then : 42003 # It does; now see whether it defined to _BIG_ENDIAN or not. 42004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42005 /* end confdefs.h. */ 42006 #include <limits.h> 42007 42008 int 42009 main () 42010 { 42011 #ifndef _BIG_ENDIAN 42012 not big endian 42013 #endif 42014 42015 ; 42016 return 0; 42017 } 42018 _ACEOF 42019 if ac_fn_cxx_try_compile "$LINENO"; then : 42020 ac_cv_c_bigendian=yes 42021 else 42022 ac_cv_c_bigendian=no 42023 fi 42024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42025 fi 42026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42027 fi 42028 if test $ac_cv_c_bigendian = unknown; then 42029 # Compile a test program. 42030 if test "$cross_compiling" = yes; then : 42031 # Try to guess by grepping values from an object file. 42032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42033 /* end confdefs.h. */ 42034 short int ascii_mm[] = 42035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42036 short int ascii_ii[] = 42037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42038 int use_ascii (int i) { 42039 return ascii_mm[i] + ascii_ii[i]; 42040 } 42041 short int ebcdic_ii[] = 42042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42043 short int ebcdic_mm[] = 42044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42045 int use_ebcdic (int i) { 42046 return ebcdic_mm[i] + ebcdic_ii[i]; 42047 } 42048 extern int foo; 42049 42050 int 42051 main () 42052 { 42053 return use_ascii (foo) == use_ebcdic (foo); 42054 ; 42055 return 0; 42056 } 42057 _ACEOF 42058 if ac_fn_cxx_try_compile "$LINENO"; then : 42059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42060 ac_cv_c_bigendian=yes 42061 fi 42062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42063 if test "$ac_cv_c_bigendian" = unknown; then 42064 ac_cv_c_bigendian=no 42065 else 42066 # finding both strings is unlikely to happen, but who knows? 42067 ac_cv_c_bigendian=unknown 42068 fi 42069 fi 42070 fi 42071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42072 else 42073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42074 /* end confdefs.h. */ 42075 $ac_includes_default 42076 int 42077 main () 42078 { 42079 42080 /* Are we little or big endian? From Harbison&Steele. */ 42081 union 42082 { 42083 long int l; 42084 char c[sizeof (long int)]; 42085 } u; 42086 u.l = 1; 42087 return u.c[sizeof (long int) - 1] == 1; 42088 42089 ; 42090 return 0; 42091 } 42092 _ACEOF 42093 if ac_fn_cxx_try_run "$LINENO"; then : 42094 ac_cv_c_bigendian=no 42095 else 42096 ac_cv_c_bigendian=yes 42097 fi 42098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42099 conftest.$ac_objext conftest.beam conftest.$ac_ext 42100 fi 42101 42102 fi 42103 fi 42104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42105 $as_echo "$ac_cv_c_bigendian" >&6; } 42106 case $ac_cv_c_bigendian in #( 42107 yes) 42108 ENDIAN="big";; #( 42109 no) 42110 ENDIAN="little" ;; #( 42111 universal) 42112 ENDIAN="universal_endianness" 42113 ;; #( 42114 *) 42115 ENDIAN="unknown" ;; 42116 esac 42117 42118 42119 if test "x$ENDIAN" = xuniversal_endianness; then 42120 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42121 fi 42122 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42123 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 42124 fi 42125 42126 42127 # Configure flags for the tools 42128 42129 ############################################################################### 42130 # 42131 # How to compile shared libraries. 42132 # 42133 42134 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42135 PICFLAG="-fPIC" 42136 C_FLAG_REORDER='' 42137 CXX_FLAG_REORDER='' 42138 42139 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42140 # Linking is different on MacOSX 42141 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42142 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42143 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42144 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42145 SET_SHARED_LIBRARY_MAPFILE='' 42146 else 42147 # Default works for linux, might work on other platforms as well. 42148 SHARED_LIBRARY_FLAGS='-shared' 42149 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42150 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42151 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42152 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42153 fi 42154 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42155 PICFLAG='' 42156 C_FLAG_REORDER='' 42157 CXX_FLAG_REORDER='' 42158 42159 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42160 # Linking is different on MacOSX 42161 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42162 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42163 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42164 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42165 SET_SHARED_LIBRARY_MAPFILE='' 42166 else 42167 # Default works for linux, might work on other platforms as well. 42168 SHARED_LIBRARY_FLAGS='-shared' 42169 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42170 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42171 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42172 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42173 fi 42174 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42175 PICFLAG="-KPIC" 42176 C_FLAG_REORDER='-xF' 42177 CXX_FLAG_REORDER='-xF' 42178 SHARED_LIBRARY_FLAGS="-G" 42179 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42180 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42181 SET_SHARED_LIBRARY_NAME='' 42182 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42183 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42184 PICFLAG="-qpic=large" 42185 C_FLAG_REORDER='' 42186 CXX_FLAG_REORDER='' 42187 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42188 SET_EXECUTABLE_ORIGIN="" 42189 SET_SHARED_LIBRARY_ORIGIN='' 42190 SET_SHARED_LIBRARY_NAME='' 42191 SET_SHARED_LIBRARY_MAPFILE='' 42192 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42193 PICFLAG="" 42194 C_FLAG_REORDER='' 42195 CXX_FLAG_REORDER='' 42196 SHARED_LIBRARY_FLAGS="-LD" 42197 SET_EXECUTABLE_ORIGIN='' 42198 SET_SHARED_LIBRARY_ORIGIN='' 42199 SET_SHARED_LIBRARY_NAME='' 42200 SET_SHARED_LIBRARY_MAPFILE='' 42201 fi 42202 42203 42204 42205 42206 42207 42208 42209 42210 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42211 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42212 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42213 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42214 fi 42215 # The (cross) compiler is now configured, we can now test capabilities 42216 # of the target platform. 42217 42218 42219 42220 ############################################################################### 42221 # 42222 # Setup the opt flags for different compilers 42223 # and different operating systems. 42224 # 42225 42226 # FIXME: this was indirectly the old default, but just inherited. 42227 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42228 # C_FLAG_DEPS="-MMD -MF" 42229 # fi 42230 42231 # Generate make dependency files 42232 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42233 C_FLAG_DEPS="-MMD -MF" 42234 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42235 C_FLAG_DEPS="-MMD -MF" 42236 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42237 C_FLAG_DEPS="-xMMD -xMF" 42238 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42239 C_FLAG_DEPS="-qmakedep=gcc -MF" 42240 fi 42241 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42242 42243 42244 42245 # Debug symbols 42246 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42247 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42248 # reduce from default "-g2" option to save space 42249 CFLAGS_DEBUG_SYMBOLS="-g1" 42250 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42251 else 42252 CFLAGS_DEBUG_SYMBOLS="-g" 42253 CXXFLAGS_DEBUG_SYMBOLS="-g" 42254 fi 42255 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42256 CFLAGS_DEBUG_SYMBOLS="-g" 42257 CXXFLAGS_DEBUG_SYMBOLS="-g" 42258 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42259 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42260 # FIXME: likely a bug, this disables debug symbols rather than enables them 42261 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42262 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42263 CFLAGS_DEBUG_SYMBOLS="-g" 42264 CXXFLAGS_DEBUG_SYMBOLS="-g" 42265 fi 42266 42267 42268 42269 # bounds, memory and behavior checking options 42270 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42271 case $DEBUG_LEVEL in 42272 release ) 42273 # no adjustment 42274 ;; 42275 fastdebug ) 42276 # no adjustment 42277 ;; 42278 slowdebug ) 42279 # Add runtime stack smashing and undefined behavior checks 42280 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42281 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42282 ;; 42283 esac 42284 fi 42285 42286 42287 42288 # Optimization levels 42289 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42290 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42291 42292 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42293 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42294 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42295 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42296 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42297 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42298 C_O_FLAG_NONE="-xregs=no%frameptr" 42299 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42300 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42301 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42302 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42303 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42304 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42305 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42306 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42307 fi 42308 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42309 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42310 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42311 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42312 C_O_FLAG_DEBUG="" 42313 C_O_FLAG_NONE="" 42314 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42315 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42316 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42317 C_O_FLAG_DEBUG="" 42318 CXX_O_FLAG_NONE="" 42319 fi 42320 else 42321 # The remaining toolchains share opt flags between CC and CXX; 42322 # setup for C and duplicate afterwards. 42323 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42324 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42325 # On MacOSX we optimize for size, something 42326 # we should do for all platforms? 42327 C_O_FLAG_HIGHEST="-Os" 42328 C_O_FLAG_HI="-Os" 42329 C_O_FLAG_NORM="-Os" 42330 else 42331 C_O_FLAG_HIGHEST="-O3" 42332 C_O_FLAG_HI="-O3" 42333 C_O_FLAG_NORM="-O2" 42334 fi 42335 C_O_FLAG_DEBUG="-O0" 42336 C_O_FLAG_NONE="-O0" 42337 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42338 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42339 # On MacOSX we optimize for size, something 42340 # we should do for all platforms? 42341 C_O_FLAG_HIGHEST="-Os" 42342 C_O_FLAG_HI="-Os" 42343 C_O_FLAG_NORM="-Os" 42344 else 42345 C_O_FLAG_HIGHEST="-O3" 42346 C_O_FLAG_HI="-O3" 42347 C_O_FLAG_NORM="-O2" 42348 fi 42349 C_O_FLAG_DEBUG="-O0" 42350 C_O_FLAG_NONE="-O0" 42351 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42352 C_O_FLAG_HIGHEST="-O3" 42353 C_O_FLAG_HI="-O3 -qstrict" 42354 C_O_FLAG_NORM="-O2" 42355 C_O_FLAG_DEBUG="-qnoopt" 42356 C_O_FLAG_NONE="-qnoop" 42357 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42358 C_O_FLAG_HIGHEST="-O2" 42359 C_O_FLAG_HI="-O1" 42360 C_O_FLAG_NORM="-O1" 42361 C_O_FLAG_DEBUG="-Od" 42362 C_O_FLAG_NONE="-Od" 42363 fi 42364 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42365 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42366 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42367 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42368 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42369 fi 42370 42371 # Adjust optimization flags according to debug level. 42372 case $DEBUG_LEVEL in 42373 release ) 42374 # no adjustment 42375 ;; 42376 fastdebug ) 42377 # Not quite so much optimization 42378 C_O_FLAG_HI="$C_O_FLAG_NORM" 42379 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42380 ;; 42381 slowdebug ) 42382 # Disable optimization 42383 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42384 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42385 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42386 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42387 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42388 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42389 ;; 42390 esac 42391 42392 42393 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 42404 # Special extras... 42405 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42406 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42407 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42408 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42409 fi 42410 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42411 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42412 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42413 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42414 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42415 fi 42416 42417 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42419 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42420 fi 42421 42422 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42424 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42425 fi 42426 42427 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42429 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42430 fi 42431 42432 42433 # Check whether --with-extra-cflags was given. 42434 if test "${with_extra_cflags+set}" = set; then : 42435 withval=$with_extra_cflags; 42436 fi 42437 42438 42439 42440 # Check whether --with-extra-cxxflags was given. 42441 if test "${with_extra_cxxflags+set}" = set; then : 42442 withval=$with_extra_cxxflags; 42443 fi 42444 42445 42446 42447 # Check whether --with-extra-ldflags was given. 42448 if test "${with_extra_ldflags+set}" = set; then : 42449 withval=$with_extra_ldflags; 42450 fi 42451 42452 42453 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42454 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42455 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42456 42457 # Hotspot needs these set in their legacy form 42458 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42459 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42460 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42461 42462 42463 42464 42465 42466 ############################################################################### 42467 # 42468 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42469 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42470 # 42471 42472 # Setup compiler/platform specific flags into 42473 # CFLAGS_JDK - C Compiler flags 42474 # CXXFLAGS_JDK - C++ Compiler flags 42475 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42476 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42477 if test "x$OPENJDK_TARGET_CPU" = xx86; then 42478 # Force compatibility with i586 on 32 bit intel platforms. 42479 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 42480 fi 42481 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42482 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42483 case $OPENJDK_TARGET_CPU_ARCH in 42484 arm ) 42485 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42486 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42487 ;; 42488 ppc ) 42489 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42490 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42491 ;; 42492 * ) 42493 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42494 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42495 ;; 42496 esac 42497 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42498 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42499 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42500 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42501 fi 42502 42503 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42504 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42505 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42506 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42507 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42508 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42509 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 42510 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42511 -DWIN32_LEAN_AND_MEAN \ 42512 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42513 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 42514 -DWIN32 -DIAL" 42515 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42516 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42517 else 42518 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42519 fi 42520 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42521 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42522 # studio. 42523 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42524 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42525 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42526 fi 42527 fi 42528 42529 ############################################################################### 42530 42531 # Adjust flags according to debug level. 42532 case $DEBUG_LEVEL in 42533 fastdebug | slowdebug ) 42534 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42535 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42536 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42537 ;; 42538 release ) 42539 ;; 42540 * ) 42541 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42542 ;; 42543 esac 42544 42545 # Setup LP64 42546 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42547 42548 # Set some common defines. These works for all compilers, but assume 42549 # -D is universally accepted. 42550 42551 # Setup endianness 42552 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42553 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42554 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42555 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42556 # Note: -Dmacro is the same as #define macro 1 42557 # -Dmacro= is the same as #define macro 42558 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42559 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42560 else 42561 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42562 fi 42563 else 42564 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42565 # are defined in the system? 42566 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42567 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42568 else 42569 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42570 fi 42571 fi 42572 42573 # Setup target OS define. Use OS target name but in upper case. 42574 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42575 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42576 42577 # Setup target CPU 42578 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42579 42580 # Setup debug/release defines 42581 if test "x$DEBUG_LEVEL" = xrelease; then 42582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42583 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42584 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42585 fi 42586 else 42587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42588 fi 42589 42590 # Set some additional per-OS defines. 42591 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42592 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42593 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42594 # FIXME: PPC64 should not be here. 42595 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42596 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42598 fi 42599 42600 # Additional macosx handling 42601 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42602 # Setting these parameters makes it an error to link to macosx APIs that are 42603 # newer than the given OS version and makes the linked binaries compatible 42604 # even if built on a newer version of the OS. 42605 # The expected format is X.Y.Z 42606 MACOSX_VERSION_MIN=10.7.0 42607 42608 42609 # The macro takes the version with no dots, ex: 1070 42610 # Let the flags variables get resolved in make for easier override on make 42611 # command line. 42612 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42613 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42614 fi 42615 42616 # Setup some hard coded includes 42617 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42618 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42619 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42620 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42621 42622 # The shared libraries are compiled using the picflag. 42623 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42624 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42625 42626 # Executable flags 42627 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42628 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42629 42630 42631 42632 42633 42634 42635 # Flags for compiling test libraries 42636 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42637 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42638 42639 # Flags for compiling test executables 42640 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42641 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42642 42643 42644 42645 42646 42647 42648 # Setup LDFLAGS et al. 42649 # 42650 42651 # Now this is odd. The JDK native libraries have to link against libjvm.so 42652 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42653 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42654 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42655 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42656 # libraries will link to whatever is in memory. Yuck. 42657 # 42658 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42659 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42660 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42661 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42662 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42663 fi 42664 # TODO: make -debug optional "--disable-full-debug-symbols" 42665 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42666 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42667 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42668 # We have previously set HAS_GNU_HASH if this is the case 42669 if test -n "$HAS_GNU_HASH"; then 42670 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42671 fi 42672 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42673 # And since we now know that the linker is gnu, then add -z defs, to forbid 42674 # undefined symbols in object files. 42675 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42676 case $DEBUG_LEVEL in 42677 release ) 42678 # tell linker to optimize libraries. 42679 # Should this be supplied to the OSS linker as well? 42680 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42681 ;; 42682 slowdebug ) 42683 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42684 # do relocations at load 42685 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42686 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42687 fi 42688 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42689 # mark relocations read only 42690 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42691 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42692 fi 42693 ;; 42694 fastdebug ) 42695 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42696 # mark relocations read only 42697 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42698 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42699 fi 42700 ;; 42701 * ) 42702 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42703 ;; 42704 esac 42705 fi 42706 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42707 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42708 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42709 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42710 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -liconv -bexpall -bernotok" 42711 fi 42712 42713 # Customize LDFLAGS for executables 42714 42715 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42716 42717 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42718 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42719 LDFLAGS_STACK_SIZE=1048576 42720 else 42721 LDFLAGS_STACK_SIZE=327680 42722 fi 42723 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42724 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42725 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42726 fi 42727 42728 # Customize LDFLAGS for libs 42729 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42730 42731 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42732 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42733 LDFLAGS_JDKLIB_SUFFIX="" 42734 else 42735 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42736 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42737 42738 # On some platforms (mac) the linker warns about non existing -L dirs. 42739 # Add server first if available. Linking aginst client does not always produce the same results. 42740 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42741 # Default to server for other variants. 42742 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42743 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42744 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42745 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42746 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42747 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42748 else 42749 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42750 fi 42751 42752 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42753 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42754 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42755 fi 42756 fi 42757 42758 42759 42760 42761 42762 42763 42764 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 42765 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 42766 LDFLAGS_TESTLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX" 42767 LDFLAGS_TESTEXE_SUFFIX="$LDFLAGS_JDKEXE_SUFFIX" 42768 42769 42770 42771 42772 42773 42774 42775 # Some Zero and Shark settings. 42776 # ZERO_ARCHFLAG tells the compiler which mode to build for 42777 case "${OPENJDK_TARGET_CPU}" in 42778 s390) 42779 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42780 ;; 42781 *) 42782 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42783 esac 42784 42785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42786 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42787 supports=yes 42788 42789 saved_cflags="$CFLAGS" 42790 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42791 ac_ext=c 42792 ac_cpp='$CPP $CPPFLAGS' 42793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42796 42797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42798 /* end confdefs.h. */ 42799 int i; 42800 _ACEOF 42801 if ac_fn_c_try_compile "$LINENO"; then : 42802 42803 else 42804 supports=no 42805 fi 42806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42807 ac_ext=cpp 42808 ac_cpp='$CXXCPP $CPPFLAGS' 42809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42812 42813 CFLAGS="$saved_cflags" 42814 42815 saved_cxxflags="$CXXFLAGS" 42816 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42817 ac_ext=cpp 42818 ac_cpp='$CXXCPP $CPPFLAGS' 42819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42822 42823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42824 /* end confdefs.h. */ 42825 int i; 42826 _ACEOF 42827 if ac_fn_cxx_try_compile "$LINENO"; then : 42828 42829 else 42830 supports=no 42831 fi 42832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42833 ac_ext=cpp 42834 ac_cpp='$CXXCPP $CPPFLAGS' 42835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42838 42839 CXXFLAGS="$saved_cxxflags" 42840 42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42842 $as_echo "$supports" >&6; } 42843 if test "x$supports" = "xyes" ; then 42844 : 42845 else 42846 ZERO_ARCHFLAG="" 42847 fi 42848 42849 42850 42851 # Check that the compiler supports -mX (or -qX on AIX) flags 42852 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42853 42854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42855 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42856 supports=yes 42857 42858 saved_cflags="$CFLAGS" 42859 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42860 ac_ext=c 42861 ac_cpp='$CPP $CPPFLAGS' 42862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42864 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42865 42866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42867 /* end confdefs.h. */ 42868 int i; 42869 _ACEOF 42870 if ac_fn_c_try_compile "$LINENO"; then : 42871 42872 else 42873 supports=no 42874 fi 42875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42876 ac_ext=cpp 42877 ac_cpp='$CXXCPP $CPPFLAGS' 42878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42881 42882 CFLAGS="$saved_cflags" 42883 42884 saved_cxxflags="$CXXFLAGS" 42885 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42886 ac_ext=cpp 42887 ac_cpp='$CXXCPP $CPPFLAGS' 42888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42891 42892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42893 /* end confdefs.h. */ 42894 int i; 42895 _ACEOF 42896 if ac_fn_cxx_try_compile "$LINENO"; then : 42897 42898 else 42899 supports=no 42900 fi 42901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42902 ac_ext=cpp 42903 ac_cpp='$CXXCPP $CPPFLAGS' 42904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42907 42908 CXXFLAGS="$saved_cxxflags" 42909 42910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42911 $as_echo "$supports" >&6; } 42912 if test "x$supports" = "xyes" ; then 42913 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42914 else 42915 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42916 fi 42917 42918 42919 42920 # Check whether --enable-warnings-as-errors was given. 42921 if test "${enable_warnings_as_errors+set}" = set; then : 42922 enableval=$enable_warnings_as_errors; 42923 fi 42924 42925 42926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 42927 $as_echo_n "checking if native warnings are errors... " >&6; } 42928 if test "x$enable_warnings_as_errors" = "xyes"; then 42929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 42930 $as_echo "yes (explicitely set)" >&6; } 42931 WARNINGS_AS_ERRORS=true 42932 elif test "x$enable_warnings_as_errors" = "xno"; then 42933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42934 $as_echo "no" >&6; } 42935 WARNINGS_AS_ERRORS=false 42936 elif test "x$enable_warnings_as_errors" = "x"; then 42937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 42938 $as_echo "yes (default)" >&6; } 42939 WARNINGS_AS_ERRORS=true 42940 else 42941 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 42942 fi 42943 42944 42945 case "${TOOLCHAIN_TYPE}" in 42946 microsoft) 42947 DISABLE_WARNING_PREFIX="-wd" 42948 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 42949 ;; 42950 solstudio) 42951 DISABLE_WARNING_PREFIX="-erroff=" 42952 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42953 ;; 42954 gcc) 42955 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 42956 42957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 42958 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 42959 supports=yes 42960 42961 saved_cflags="$CFLAGS" 42962 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 42963 ac_ext=c 42964 ac_cpp='$CPP $CPPFLAGS' 42965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42967 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42968 42969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42970 /* end confdefs.h. */ 42971 int i; 42972 _ACEOF 42973 if ac_fn_c_try_compile "$LINENO"; then : 42974 42975 else 42976 supports=no 42977 fi 42978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42979 ac_ext=cpp 42980 ac_cpp='$CXXCPP $CPPFLAGS' 42981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42984 42985 CFLAGS="$saved_cflags" 42986 42987 saved_cxxflags="$CXXFLAGS" 42988 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 42989 ac_ext=cpp 42990 ac_cpp='$CXXCPP $CPPFLAGS' 42991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42994 42995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42996 /* end confdefs.h. */ 42997 int i; 42998 _ACEOF 42999 if ac_fn_cxx_try_compile "$LINENO"; then : 43000 43001 else 43002 supports=no 43003 fi 43004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43005 ac_ext=cpp 43006 ac_cpp='$CXXCPP $CPPFLAGS' 43007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43010 43011 CXXFLAGS="$saved_cxxflags" 43012 43013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43014 $as_echo "$supports" >&6; } 43015 if test "x$supports" = "xyes" ; then 43016 GCC_CAN_DISABLE_WARNINGS=true 43017 else 43018 GCC_CAN_DISABLE_WARNINGS=false 43019 43020 fi 43021 43022 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 43023 DISABLE_WARNING_PREFIX="-Wno-" 43024 else 43025 DISABLE_WARNING_PREFIX= 43026 fi 43027 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43028 ;; 43029 clang) 43030 DISABLE_WARNING_PREFIX="-Wno-" 43031 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43032 ;; 43033 esac 43034 43035 43036 43037 43038 # Setup debug symbols (need objcopy from the toolchain for that) 43039 43040 # 43041 # ENABLE_DEBUG_SYMBOLS 43042 # This must be done after the toolchain is setup, since we're looking at objcopy. 43043 # 43044 # Check whether --enable-debug-symbols was given. 43045 if test "${enable_debug_symbols+set}" = set; then : 43046 enableval=$enable_debug_symbols; 43047 fi 43048 43049 43050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43051 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43052 43053 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43054 # explicit enabling of enable-debug-symbols and can't find objcopy 43055 # this is an error 43056 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43057 fi 43058 43059 if test "x$enable_debug_symbols" = "xyes"; then 43060 ENABLE_DEBUG_SYMBOLS=true 43061 elif test "x$enable_debug_symbols" = "xno"; then 43062 ENABLE_DEBUG_SYMBOLS=false 43063 else 43064 # Default is on if objcopy is found 43065 if test "x$OBJCOPY" != x; then 43066 ENABLE_DEBUG_SYMBOLS=true 43067 # MacOS X and Windows don't use objcopy but default is on for those OSes 43068 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43069 ENABLE_DEBUG_SYMBOLS=true 43070 else 43071 ENABLE_DEBUG_SYMBOLS=false 43072 fi 43073 fi 43074 43075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43076 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43077 43078 # 43079 # ZIP_DEBUGINFO_FILES 43080 # 43081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43082 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43083 # Check whether --enable-zip-debug-info was given. 43084 if test "${enable_zip_debug_info+set}" = set; then : 43085 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43086 else 43087 enable_zip_debug_info="yes" 43088 fi 43089 43090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43091 $as_echo "${enable_zip_debug_info}" >&6; } 43092 43093 if test "x${enable_zip_debug_info}" = "xno"; then 43094 ZIP_DEBUGINFO_FILES=false 43095 else 43096 ZIP_DEBUGINFO_FILES=true 43097 fi 43098 43099 43100 43101 43102 43103 # Check whether --enable-native-coverage was given. 43104 if test "${enable_native_coverage+set}" = set; then : 43105 enableval=$enable_native_coverage; 43106 fi 43107 43108 GCOV_ENABLED="false" 43109 if test "x$enable_native_coverage" = "xyes"; then 43110 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43112 $as_echo_n "checking if native coverage is enabled... " >&6; } 43113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43114 $as_echo "yes" >&6; } 43115 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 43116 GCOV_LDFLAGS="-fprofile-arcs" 43117 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 43118 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 43119 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 43120 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 43121 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 43122 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 43123 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 43124 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 43125 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 43126 GCOV_ENABLED="true" 43127 else 43128 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 43129 fi 43130 elif test "x$enable_native_coverage" = "xno"; then 43131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43132 $as_echo_n "checking if native coverage is enabled... " >&6; } 43133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43134 $as_echo "no" >&6; } 43135 elif test "x$enable_native_coverage" != "x"; then 43136 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 43137 fi 43138 43139 43140 43141 43142 ############################################################################### 43143 # 43144 # Check dependencies for external and internal libraries. 43145 # 43146 ############################################################################### 43147 43148 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43149 43150 # When using cygwin or msys, we need a wrapper binary that renames 43151 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43152 # @files and rewrites these too! This wrapper binary is 43153 # called fixpath. 43154 FIXPATH= 43155 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43157 $as_echo_n "checking if fixpath can be created... " >&6; } 43158 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43159 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 43160 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 43161 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43162 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43163 FIXPATH="$FIXPATH_BIN -c" 43164 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43165 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43166 # @ was chosen as separator to minimize risk of other tools messing around with it 43167 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 43168 | tr ' ' '\n' | grep '^/./' | sort | uniq` 43169 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43170 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 43171 fi 43172 FIXPATH_SRC_W="$FIXPATH_SRC" 43173 FIXPATH_BIN_W="$FIXPATH_BIN" 43174 43175 unix_path="$FIXPATH_SRC_W" 43176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43177 windows_path=`$CYGPATH -m "$unix_path"` 43178 FIXPATH_SRC_W="$windows_path" 43179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43180 windows_path=`cmd //c echo $unix_path` 43181 FIXPATH_SRC_W="$windows_path" 43182 fi 43183 43184 43185 unix_path="$FIXPATH_BIN_W" 43186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43187 windows_path=`$CYGPATH -m "$unix_path"` 43188 FIXPATH_BIN_W="$windows_path" 43189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43190 windows_path=`cmd //c echo $unix_path` 43191 FIXPATH_BIN_W="$windows_path" 43192 fi 43193 43194 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 43195 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 43196 cd $FIXPATH_DIR 43197 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 43198 cd $CURDIR 43199 43200 if test ! -x $FIXPATH_BIN; then 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43202 $as_echo "no" >&6; } 43203 cat $FIXPATH_DIR/fixpath1.log 43204 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 43205 fi 43206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43207 $as_echo "yes" >&6; } 43208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43209 $as_echo_n "checking if fixpath.exe works... " >&6; } 43210 cd $FIXPATH_DIR 43211 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 43212 > $FIXPATH_DIR/fixpath2.log 2>&1 43213 cd $CURDIR 43214 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 43215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43216 $as_echo "no" >&6; } 43217 cat $FIXPATH_DIR/fixpath2.log 43218 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43219 fi 43220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43221 $as_echo "yes" >&6; } 43222 fi 43223 43224 43225 43226 43227 43228 43229 ############################################################################### 43230 # 43231 # OS specific settings that we never will need to probe. 43232 # 43233 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43235 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43236 PULSE_NOT_NEEDED=yes 43237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43238 $as_echo "pulse" >&6; } 43239 fi 43240 43241 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43243 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43244 ALSA_NOT_NEEDED=yes 43245 PULSE_NOT_NEEDED=yes 43246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43247 $as_echo "alsa pulse" >&6; } 43248 fi 43249 43250 if test "x$OPENJDK_TARGET_OS" = xaix; then 43251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43252 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43253 ALSA_NOT_NEEDED=yes 43254 PULSE_NOT_NEEDED=yes 43255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43256 $as_echo "alsa pulse" >&6; } 43257 fi 43258 43259 43260 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43262 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43263 CUPS_NOT_NEEDED=yes 43264 ALSA_NOT_NEEDED=yes 43265 PULSE_NOT_NEEDED=yes 43266 X11_NOT_NEEDED=yes 43267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43268 $as_echo "alsa cups pulse x11" >&6; } 43269 fi 43270 43271 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43273 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43274 ALSA_NOT_NEEDED=yes 43275 PULSE_NOT_NEEDED=yes 43276 X11_NOT_NEEDED=yes 43277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43278 $as_echo "alsa pulse x11" >&6; } 43279 fi 43280 43281 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43283 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43284 ALSA_NOT_NEEDED=yes 43285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43286 $as_echo "alsa" >&6; } 43287 fi 43288 43289 if test "x$OPENJDK" = "xfalse"; then 43290 FREETYPE_NOT_NEEDED=yes 43291 fi 43292 43293 if test "x$SUPPORT_HEADFUL" = xno; then 43294 X11_NOT_NEEDED=yes 43295 fi 43296 43297 43298 43299 ############################################################################### 43300 # 43301 # Check for X Windows 43302 # 43303 43304 if test "x$X11_NOT_NEEDED" = xyes; then 43305 if test "x${with_x}" != x; then 43306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43307 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43308 fi 43309 X_CFLAGS= 43310 X_LIBS= 43311 else 43312 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43313 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43314 # --x-libraries for the sysroot, if that seems to be correct. 43315 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43316 if test "x$SYSROOT" != "x"; then 43317 if test "x$x_includes" = xNONE; then 43318 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43319 x_includes="$SYSROOT/usr/X11R6/include" 43320 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43321 x_includes="$SYSROOT/usr/include" 43322 fi 43323 fi 43324 if test "x$x_libraries" = xNONE; then 43325 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43326 x_libraries="$SYSROOT/usr/X11R6/lib" 43327 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43328 x_libraries="$SYSROOT/usr/lib64" 43329 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43330 x_libraries="$SYSROOT/usr/lib" 43331 fi 43332 fi 43333 fi 43334 fi 43335 43336 # Now let autoconf do it's magic 43337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43338 $as_echo_n "checking for X... " >&6; } 43339 43340 43341 # Check whether --with-x was given. 43342 if test "${with_x+set}" = set; then : 43343 withval=$with_x; 43344 fi 43345 43346 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43347 if test "x$with_x" = xno; then 43348 # The user explicitly disabled X. 43349 have_x=disabled 43350 else 43351 case $x_includes,$x_libraries in #( 43352 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43353 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43354 $as_echo_n "(cached) " >&6 43355 else 43356 # One or both of the vars are not set, and there is no cached value. 43357 ac_x_includes=no ac_x_libraries=no 43358 rm -f -r conftest.dir 43359 if mkdir conftest.dir; then 43360 cd conftest.dir 43361 cat >Imakefile <<'_ACEOF' 43362 incroot: 43363 @echo incroot='${INCROOT}' 43364 usrlibdir: 43365 @echo usrlibdir='${USRLIBDIR}' 43366 libdir: 43367 @echo libdir='${LIBDIR}' 43368 _ACEOF 43369 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43370 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43371 for ac_var in incroot usrlibdir libdir; do 43372 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43373 done 43374 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43375 for ac_extension in a so sl dylib la dll; do 43376 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43377 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43378 ac_im_usrlibdir=$ac_im_libdir; break 43379 fi 43380 done 43381 # Screen out bogus values from the imake configuration. They are 43382 # bogus both because they are the default anyway, and because 43383 # using them would break gcc on systems where it needs fixed includes. 43384 case $ac_im_incroot in 43385 /usr/include) ac_x_includes= ;; 43386 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43387 esac 43388 case $ac_im_usrlibdir in 43389 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43390 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43391 esac 43392 fi 43393 cd .. 43394 rm -f -r conftest.dir 43395 fi 43396 43397 # Standard set of common directories for X headers. 43398 # Check X11 before X11Rn because it is often a symlink to the current release. 43399 ac_x_header_dirs=' 43400 /usr/X11/include 43401 /usr/X11R7/include 43402 /usr/X11R6/include 43403 /usr/X11R5/include 43404 /usr/X11R4/include 43405 43406 /usr/include/X11 43407 /usr/include/X11R7 43408 /usr/include/X11R6 43409 /usr/include/X11R5 43410 /usr/include/X11R4 43411 43412 /usr/local/X11/include 43413 /usr/local/X11R7/include 43414 /usr/local/X11R6/include 43415 /usr/local/X11R5/include 43416 /usr/local/X11R4/include 43417 43418 /usr/local/include/X11 43419 /usr/local/include/X11R7 43420 /usr/local/include/X11R6 43421 /usr/local/include/X11R5 43422 /usr/local/include/X11R4 43423 43424 /usr/X386/include 43425 /usr/x386/include 43426 /usr/XFree86/include/X11 43427 43428 /usr/include 43429 /usr/local/include 43430 /usr/unsupported/include 43431 /usr/athena/include 43432 /usr/local/x11r5/include 43433 /usr/lpp/Xamples/include 43434 43435 /usr/openwin/include 43436 /usr/openwin/share/include' 43437 43438 if test "$ac_x_includes" = no; then 43439 # Guess where to find include files, by looking for Xlib.h. 43440 # First, try using that file with no special directory specified. 43441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43442 /* end confdefs.h. */ 43443 #include <X11/Xlib.h> 43444 _ACEOF 43445 if ac_fn_cxx_try_cpp "$LINENO"; then : 43446 # We can compile using X headers with no special include directory. 43447 ac_x_includes= 43448 else 43449 for ac_dir in $ac_x_header_dirs; do 43450 if test -r "$ac_dir/X11/Xlib.h"; then 43451 ac_x_includes=$ac_dir 43452 break 43453 fi 43454 done 43455 fi 43456 rm -f conftest.err conftest.i conftest.$ac_ext 43457 fi # $ac_x_includes = no 43458 43459 if test "$ac_x_libraries" = no; then 43460 # Check for the libraries. 43461 # See if we find them without any special options. 43462 # Don't add to $LIBS permanently. 43463 ac_save_LIBS=$LIBS 43464 LIBS="-lX11 $LIBS" 43465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43466 /* end confdefs.h. */ 43467 #include <X11/Xlib.h> 43468 int 43469 main () 43470 { 43471 XrmInitialize () 43472 ; 43473 return 0; 43474 } 43475 _ACEOF 43476 if ac_fn_cxx_try_link "$LINENO"; then : 43477 LIBS=$ac_save_LIBS 43478 # We can link X programs with no special library path. 43479 ac_x_libraries= 43480 else 43481 LIBS=$ac_save_LIBS 43482 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43483 do 43484 # Don't even attempt the hair of trying to link an X program! 43485 for ac_extension in a so sl dylib la dll; do 43486 if test -r "$ac_dir/libX11.$ac_extension"; then 43487 ac_x_libraries=$ac_dir 43488 break 2 43489 fi 43490 done 43491 done 43492 fi 43493 rm -f core conftest.err conftest.$ac_objext \ 43494 conftest$ac_exeext conftest.$ac_ext 43495 fi # $ac_x_libraries = no 43496 43497 case $ac_x_includes,$ac_x_libraries in #( 43498 no,* | *,no | *\'*) 43499 # Didn't find X, or a directory has "'" in its name. 43500 ac_cv_have_x="have_x=no";; #( 43501 *) 43502 # Record where we found X for the cache. 43503 ac_cv_have_x="have_x=yes\ 43504 ac_x_includes='$ac_x_includes'\ 43505 ac_x_libraries='$ac_x_libraries'" 43506 esac 43507 fi 43508 ;; #( 43509 *) have_x=yes;; 43510 esac 43511 eval "$ac_cv_have_x" 43512 fi # $with_x != no 43513 43514 if test "$have_x" != yes; then 43515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43516 $as_echo "$have_x" >&6; } 43517 no_x=yes 43518 else 43519 # If each of the values was on the command line, it overrides each guess. 43520 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43521 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43522 # Update the cache value to reflect the command line values. 43523 ac_cv_have_x="have_x=yes\ 43524 ac_x_includes='$x_includes'\ 43525 ac_x_libraries='$x_libraries'" 43526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43527 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43528 fi 43529 43530 if test "$no_x" = yes; then 43531 # Not all programs may use this symbol, but it does not hurt to define it. 43532 43533 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43534 43535 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43536 else 43537 if test -n "$x_includes"; then 43538 X_CFLAGS="$X_CFLAGS -I$x_includes" 43539 fi 43540 43541 # It would also be nice to do this for all -L options, not just this one. 43542 if test -n "$x_libraries"; then 43543 X_LIBS="$X_LIBS -L$x_libraries" 43544 # For Solaris; some versions of Sun CC require a space after -R and 43545 # others require no space. Words are not sufficient . . . . 43546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43547 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43548 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43549 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43550 ac_cxx_werror_flag=yes 43551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43552 /* end confdefs.h. */ 43553 43554 int 43555 main () 43556 { 43557 43558 ; 43559 return 0; 43560 } 43561 _ACEOF 43562 if ac_fn_cxx_try_link "$LINENO"; then : 43563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43564 $as_echo "no" >&6; } 43565 X_LIBS="$X_LIBS -R$x_libraries" 43566 else 43567 LIBS="$ac_xsave_LIBS -R $x_libraries" 43568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43569 /* end confdefs.h. */ 43570 43571 int 43572 main () 43573 { 43574 43575 ; 43576 return 0; 43577 } 43578 _ACEOF 43579 if ac_fn_cxx_try_link "$LINENO"; then : 43580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43581 $as_echo "yes" >&6; } 43582 X_LIBS="$X_LIBS -R $x_libraries" 43583 else 43584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43585 $as_echo "neither works" >&6; } 43586 fi 43587 rm -f core conftest.err conftest.$ac_objext \ 43588 conftest$ac_exeext conftest.$ac_ext 43589 fi 43590 rm -f core conftest.err conftest.$ac_objext \ 43591 conftest$ac_exeext conftest.$ac_ext 43592 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43593 LIBS=$ac_xsave_LIBS 43594 fi 43595 43596 # Check for system-dependent libraries X programs must link with. 43597 # Do this before checking for the system-independent R6 libraries 43598 # (-lICE), since we may need -lsocket or whatever for X linking. 43599 43600 if test "$ISC" = yes; then 43601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43602 else 43603 # Martyn Johnson says this is needed for Ultrix, if the X 43604 # libraries were built with DECnet support. And Karl Berry says 43605 # the Alpha needs dnet_stub (dnet does not exist). 43606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43608 /* end confdefs.h. */ 43609 43610 /* Override any GCC internal prototype to avoid an error. 43611 Use char because int might match the return type of a GCC 43612 builtin and then its argument prototype would still apply. */ 43613 #ifdef __cplusplus 43614 extern "C" 43615 #endif 43616 char XOpenDisplay (); 43617 int 43618 main () 43619 { 43620 return XOpenDisplay (); 43621 ; 43622 return 0; 43623 } 43624 _ACEOF 43625 if ac_fn_cxx_try_link "$LINENO"; then : 43626 43627 else 43628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43629 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43630 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43631 $as_echo_n "(cached) " >&6 43632 else 43633 ac_check_lib_save_LIBS=$LIBS 43634 LIBS="-ldnet $LIBS" 43635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43636 /* end confdefs.h. */ 43637 43638 /* Override any GCC internal prototype to avoid an error. 43639 Use char because int might match the return type of a GCC 43640 builtin and then its argument prototype would still apply. */ 43641 #ifdef __cplusplus 43642 extern "C" 43643 #endif 43644 char dnet_ntoa (); 43645 int 43646 main () 43647 { 43648 return dnet_ntoa (); 43649 ; 43650 return 0; 43651 } 43652 _ACEOF 43653 if ac_fn_cxx_try_link "$LINENO"; then : 43654 ac_cv_lib_dnet_dnet_ntoa=yes 43655 else 43656 ac_cv_lib_dnet_dnet_ntoa=no 43657 fi 43658 rm -f core conftest.err conftest.$ac_objext \ 43659 conftest$ac_exeext conftest.$ac_ext 43660 LIBS=$ac_check_lib_save_LIBS 43661 fi 43662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43663 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43664 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43665 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43666 fi 43667 43668 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43670 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43671 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43672 $as_echo_n "(cached) " >&6 43673 else 43674 ac_check_lib_save_LIBS=$LIBS 43675 LIBS="-ldnet_stub $LIBS" 43676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43677 /* end confdefs.h. */ 43678 43679 /* Override any GCC internal prototype to avoid an error. 43680 Use char because int might match the return type of a GCC 43681 builtin and then its argument prototype would still apply. */ 43682 #ifdef __cplusplus 43683 extern "C" 43684 #endif 43685 char dnet_ntoa (); 43686 int 43687 main () 43688 { 43689 return dnet_ntoa (); 43690 ; 43691 return 0; 43692 } 43693 _ACEOF 43694 if ac_fn_cxx_try_link "$LINENO"; then : 43695 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43696 else 43697 ac_cv_lib_dnet_stub_dnet_ntoa=no 43698 fi 43699 rm -f core conftest.err conftest.$ac_objext \ 43700 conftest$ac_exeext conftest.$ac_ext 43701 LIBS=$ac_check_lib_save_LIBS 43702 fi 43703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43704 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43705 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43706 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43707 fi 43708 43709 fi 43710 fi 43711 rm -f core conftest.err conftest.$ac_objext \ 43712 conftest$ac_exeext conftest.$ac_ext 43713 LIBS="$ac_xsave_LIBS" 43714 43715 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43716 # to get the SysV transport functions. 43717 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43718 # needs -lnsl. 43719 # The nsl library prevents programs from opening the X display 43720 # on Irix 5.2, according to T.E. Dickey. 43721 # The functions gethostbyname, getservbyname, and inet_addr are 43722 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43723 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43724 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43725 43726 fi 43727 43728 if test $ac_cv_func_gethostbyname = no; then 43729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43730 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43731 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43732 $as_echo_n "(cached) " >&6 43733 else 43734 ac_check_lib_save_LIBS=$LIBS 43735 LIBS="-lnsl $LIBS" 43736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43737 /* end confdefs.h. */ 43738 43739 /* Override any GCC internal prototype to avoid an error. 43740 Use char because int might match the return type of a GCC 43741 builtin and then its argument prototype would still apply. */ 43742 #ifdef __cplusplus 43743 extern "C" 43744 #endif 43745 char gethostbyname (); 43746 int 43747 main () 43748 { 43749 return gethostbyname (); 43750 ; 43751 return 0; 43752 } 43753 _ACEOF 43754 if ac_fn_cxx_try_link "$LINENO"; then : 43755 ac_cv_lib_nsl_gethostbyname=yes 43756 else 43757 ac_cv_lib_nsl_gethostbyname=no 43758 fi 43759 rm -f core conftest.err conftest.$ac_objext \ 43760 conftest$ac_exeext conftest.$ac_ext 43761 LIBS=$ac_check_lib_save_LIBS 43762 fi 43763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43764 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43765 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43766 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43767 fi 43768 43769 if test $ac_cv_lib_nsl_gethostbyname = no; then 43770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43771 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43772 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43773 $as_echo_n "(cached) " >&6 43774 else 43775 ac_check_lib_save_LIBS=$LIBS 43776 LIBS="-lbsd $LIBS" 43777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43778 /* end confdefs.h. */ 43779 43780 /* Override any GCC internal prototype to avoid an error. 43781 Use char because int might match the return type of a GCC 43782 builtin and then its argument prototype would still apply. */ 43783 #ifdef __cplusplus 43784 extern "C" 43785 #endif 43786 char gethostbyname (); 43787 int 43788 main () 43789 { 43790 return gethostbyname (); 43791 ; 43792 return 0; 43793 } 43794 _ACEOF 43795 if ac_fn_cxx_try_link "$LINENO"; then : 43796 ac_cv_lib_bsd_gethostbyname=yes 43797 else 43798 ac_cv_lib_bsd_gethostbyname=no 43799 fi 43800 rm -f core conftest.err conftest.$ac_objext \ 43801 conftest$ac_exeext conftest.$ac_ext 43802 LIBS=$ac_check_lib_save_LIBS 43803 fi 43804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43805 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43806 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43808 fi 43809 43810 fi 43811 fi 43812 43813 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43814 # socket/setsockopt and other routines are undefined under SCO ODT 43815 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43816 # on later versions), says Simon Leinen: it contains gethostby* 43817 # variants that don't use the name server (or something). -lsocket 43818 # must be given before -lnsl if both are needed. We assume that 43819 # if connect needs -lnsl, so does gethostbyname. 43820 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43821 if test "x$ac_cv_func_connect" = xyes; then : 43822 43823 fi 43824 43825 if test $ac_cv_func_connect = no; then 43826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43827 $as_echo_n "checking for connect in -lsocket... " >&6; } 43828 if ${ac_cv_lib_socket_connect+:} false; then : 43829 $as_echo_n "(cached) " >&6 43830 else 43831 ac_check_lib_save_LIBS=$LIBS 43832 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43834 /* end confdefs.h. */ 43835 43836 /* Override any GCC internal prototype to avoid an error. 43837 Use char because int might match the return type of a GCC 43838 builtin and then its argument prototype would still apply. */ 43839 #ifdef __cplusplus 43840 extern "C" 43841 #endif 43842 char connect (); 43843 int 43844 main () 43845 { 43846 return connect (); 43847 ; 43848 return 0; 43849 } 43850 _ACEOF 43851 if ac_fn_cxx_try_link "$LINENO"; then : 43852 ac_cv_lib_socket_connect=yes 43853 else 43854 ac_cv_lib_socket_connect=no 43855 fi 43856 rm -f core conftest.err conftest.$ac_objext \ 43857 conftest$ac_exeext conftest.$ac_ext 43858 LIBS=$ac_check_lib_save_LIBS 43859 fi 43860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43861 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43862 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43863 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43864 fi 43865 43866 fi 43867 43868 # Guillermo Gomez says -lposix is necessary on A/UX. 43869 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43870 if test "x$ac_cv_func_remove" = xyes; then : 43871 43872 fi 43873 43874 if test $ac_cv_func_remove = no; then 43875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43876 $as_echo_n "checking for remove in -lposix... " >&6; } 43877 if ${ac_cv_lib_posix_remove+:} false; then : 43878 $as_echo_n "(cached) " >&6 43879 else 43880 ac_check_lib_save_LIBS=$LIBS 43881 LIBS="-lposix $LIBS" 43882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43883 /* end confdefs.h. */ 43884 43885 /* Override any GCC internal prototype to avoid an error. 43886 Use char because int might match the return type of a GCC 43887 builtin and then its argument prototype would still apply. */ 43888 #ifdef __cplusplus 43889 extern "C" 43890 #endif 43891 char remove (); 43892 int 43893 main () 43894 { 43895 return remove (); 43896 ; 43897 return 0; 43898 } 43899 _ACEOF 43900 if ac_fn_cxx_try_link "$LINENO"; then : 43901 ac_cv_lib_posix_remove=yes 43902 else 43903 ac_cv_lib_posix_remove=no 43904 fi 43905 rm -f core conftest.err conftest.$ac_objext \ 43906 conftest$ac_exeext conftest.$ac_ext 43907 LIBS=$ac_check_lib_save_LIBS 43908 fi 43909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43910 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43911 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43913 fi 43914 43915 fi 43916 43917 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43918 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43919 if test "x$ac_cv_func_shmat" = xyes; then : 43920 43921 fi 43922 43923 if test $ac_cv_func_shmat = no; then 43924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43925 $as_echo_n "checking for shmat in -lipc... " >&6; } 43926 if ${ac_cv_lib_ipc_shmat+:} false; then : 43927 $as_echo_n "(cached) " >&6 43928 else 43929 ac_check_lib_save_LIBS=$LIBS 43930 LIBS="-lipc $LIBS" 43931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43932 /* end confdefs.h. */ 43933 43934 /* Override any GCC internal prototype to avoid an error. 43935 Use char because int might match the return type of a GCC 43936 builtin and then its argument prototype would still apply. */ 43937 #ifdef __cplusplus 43938 extern "C" 43939 #endif 43940 char shmat (); 43941 int 43942 main () 43943 { 43944 return shmat (); 43945 ; 43946 return 0; 43947 } 43948 _ACEOF 43949 if ac_fn_cxx_try_link "$LINENO"; then : 43950 ac_cv_lib_ipc_shmat=yes 43951 else 43952 ac_cv_lib_ipc_shmat=no 43953 fi 43954 rm -f core conftest.err conftest.$ac_objext \ 43955 conftest$ac_exeext conftest.$ac_ext 43956 LIBS=$ac_check_lib_save_LIBS 43957 fi 43958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43959 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43960 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43962 fi 43963 43964 fi 43965 fi 43966 43967 # Check for libraries that X11R6 Xt/Xaw programs need. 43968 ac_save_LDFLAGS=$LDFLAGS 43969 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43970 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43971 # check for ICE first), but we must link in the order -lSM -lICE or 43972 # we get undefined symbols. So assume we have SM if we have ICE. 43973 # These have to be linked with before -lX11, unlike the other 43974 # libraries we check for below, so use a different variable. 43975 # John Interrante, Karl Berry 43976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43977 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43978 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43979 $as_echo_n "(cached) " >&6 43980 else 43981 ac_check_lib_save_LIBS=$LIBS 43982 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43984 /* end confdefs.h. */ 43985 43986 /* Override any GCC internal prototype to avoid an error. 43987 Use char because int might match the return type of a GCC 43988 builtin and then its argument prototype would still apply. */ 43989 #ifdef __cplusplus 43990 extern "C" 43991 #endif 43992 char IceConnectionNumber (); 43993 int 43994 main () 43995 { 43996 return IceConnectionNumber (); 43997 ; 43998 return 0; 43999 } 44000 _ACEOF 44001 if ac_fn_cxx_try_link "$LINENO"; then : 44002 ac_cv_lib_ICE_IceConnectionNumber=yes 44003 else 44004 ac_cv_lib_ICE_IceConnectionNumber=no 44005 fi 44006 rm -f core conftest.err conftest.$ac_objext \ 44007 conftest$ac_exeext conftest.$ac_ext 44008 LIBS=$ac_check_lib_save_LIBS 44009 fi 44010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 44011 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 44012 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 44013 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 44014 fi 44015 44016 LDFLAGS=$ac_save_LDFLAGS 44017 44018 fi 44019 44020 44021 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 44022 # this doesn't make sense so we remove it. 44023 if test "x$COMPILE_TYPE" = xcross; then 44024 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44025 fi 44026 44027 if test "x$no_x" = xyes; then 44028 44029 # Print a helpful message on how to acquire the necessary build dependency. 44030 # x11 is the help tag: freetype, cups, pulse, alsa etc 44031 MISSING_DEPENDENCY=x11 44032 44033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44034 cygwin_help $MISSING_DEPENDENCY 44035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44036 msys_help $MISSING_DEPENDENCY 44037 else 44038 PKGHANDLER_COMMAND= 44039 44040 case $PKGHANDLER in 44041 apt-get) 44042 apt_help $MISSING_DEPENDENCY ;; 44043 yum) 44044 yum_help $MISSING_DEPENDENCY ;; 44045 port) 44046 port_help $MISSING_DEPENDENCY ;; 44047 pkgutil) 44048 pkgutil_help $MISSING_DEPENDENCY ;; 44049 pkgadd) 44050 pkgadd_help $MISSING_DEPENDENCY ;; 44051 esac 44052 44053 if test "x$PKGHANDLER_COMMAND" != x; then 44054 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44055 fi 44056 fi 44057 44058 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44059 fi 44060 44061 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44062 OPENWIN_HOME="/usr/openwin" 44063 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44064 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44065 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44066 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44067 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44068 fi 44069 44070 ac_ext=c 44071 ac_cpp='$CPP $CPPFLAGS' 44072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44074 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44075 44076 OLD_CFLAGS="$CFLAGS" 44077 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44078 44079 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44080 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44081 do : 44082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44083 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44084 # include <X11/Xlib.h> 44085 # include <X11/Xutil.h> 44086 44087 44088 " 44089 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44090 cat >>confdefs.h <<_ACEOF 44091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44092 _ACEOF 44093 X11_HEADERS_OK=yes 44094 else 44095 X11_HEADERS_OK=no; break 44096 fi 44097 44098 done 44099 44100 44101 if test "x$X11_HEADERS_OK" = xno; then 44102 44103 # Print a helpful message on how to acquire the necessary build dependency. 44104 # x11 is the help tag: freetype, cups, pulse, alsa etc 44105 MISSING_DEPENDENCY=x11 44106 44107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44108 cygwin_help $MISSING_DEPENDENCY 44109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44110 msys_help $MISSING_DEPENDENCY 44111 else 44112 PKGHANDLER_COMMAND= 44113 44114 case $PKGHANDLER in 44115 apt-get) 44116 apt_help $MISSING_DEPENDENCY ;; 44117 yum) 44118 yum_help $MISSING_DEPENDENCY ;; 44119 port) 44120 port_help $MISSING_DEPENDENCY ;; 44121 pkgutil) 44122 pkgutil_help $MISSING_DEPENDENCY ;; 44123 pkgadd) 44124 pkgadd_help $MISSING_DEPENDENCY ;; 44125 esac 44126 44127 if test "x$PKGHANDLER_COMMAND" != x; then 44128 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44129 fi 44130 fi 44131 44132 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44133 fi 44134 44135 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44136 # defined in libawt_xawt. 44137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44138 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44140 /* end confdefs.h. */ 44141 #include <X11/extensions/Xrender.h> 44142 int 44143 main () 44144 { 44145 XLinearGradient x; 44146 ; 44147 return 0; 44148 } 44149 _ACEOF 44150 if ac_fn_c_try_compile "$LINENO"; then : 44151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44152 $as_echo "yes" >&6; } 44153 else 44154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44155 $as_echo "no" >&6; } 44156 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44157 fi 44158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44159 44160 CFLAGS="$OLD_CFLAGS" 44161 ac_ext=cpp 44162 ac_cpp='$CXXCPP $CPPFLAGS' 44163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44166 44167 fi # X11_NOT_NEEDED 44168 44169 44170 44171 44172 44173 44174 ############################################################################### 44175 # 44176 # The common unix printing system cups is used to print from java. 44177 # 44178 44179 # Check whether --with-cups was given. 44180 if test "${with_cups+set}" = set; then : 44181 withval=$with_cups; 44182 fi 44183 44184 44185 # Check whether --with-cups-include was given. 44186 if test "${with_cups_include+set}" = set; then : 44187 withval=$with_cups_include; 44188 fi 44189 44190 44191 if test "x$CUPS_NOT_NEEDED" = xyes; then 44192 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44194 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44195 fi 44196 CUPS_CFLAGS= 44197 else 44198 CUPS_FOUND=no 44199 44200 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44201 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44202 fi 44203 44204 if test "x${with_cups}" != x; then 44205 CUPS_CFLAGS="-I${with_cups}/include" 44206 CUPS_FOUND=yes 44207 fi 44208 if test "x${with_cups_include}" != x; then 44209 CUPS_CFLAGS="-I${with_cups_include}" 44210 CUPS_FOUND=yes 44211 fi 44212 if test "x$CUPS_FOUND" = xno; then 44213 44214 44215 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44216 # Source the builddeps file again, to make sure it uses the latest variables! 44217 . $builddepsfile 44218 # Look for a target and build machine specific resource! 44219 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44220 if test "x$resource" = x; then 44221 # Ok, lets instead look for a target specific resource 44222 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44223 fi 44224 if test "x$resource" = x; then 44225 # Ok, lets instead look for a build specific resource 44226 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44227 fi 44228 if test "x$resource" = x; then 44229 # Ok, lets instead look for a generic resource 44230 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44231 resource=${builddep_cups} 44232 fi 44233 if test "x$resource" != x; then 44234 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44235 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44236 # If the resource in the builddeps.conf file is an existing directory, 44237 # for example /java/linux/cups 44238 if test -d ${resource}; then 44239 depdir=${resource} 44240 else 44241 44242 # cups is for example mymodule 44243 # $resource is for example libs/general/libmymod_1_2_3.zip 44244 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44245 # $with_builddeps_dir is for example /localhome/builddeps 44246 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44247 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44248 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44249 filename=`basename $resource` 44250 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44251 filebase=${filename%%.*} 44252 extension=${filename#*.} 44253 installdir=$with_builddeps_dir/$filebase 44254 if test ! -f $installdir/$filename.unpacked; then 44255 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44256 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44257 if test ! -d $installdir; then 44258 mkdir -p $installdir 44259 fi 44260 if test ! -d $installdir; then 44261 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44262 fi 44263 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44264 touch $tmpfile 44265 if test ! -f $tmpfile; then 44266 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44267 fi 44268 44269 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44270 # $tmpfile is the local file name for the downloaded file. 44271 VALID_TOOL=no 44272 if test "x$BDEPS_FTP" = xwget; then 44273 VALID_TOOL=yes 44274 wget -O $tmpfile $with_builddeps_server/$resource 44275 fi 44276 if test "x$BDEPS_FTP" = xlftp; then 44277 VALID_TOOL=yes 44278 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44279 fi 44280 if test "x$BDEPS_FTP" = xftp; then 44281 VALID_TOOL=yes 44282 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44283 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44284 FTPUSERPWD=${FTPSERVER%%@*} 44285 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44286 FTPUSER=${userpwd%%:*} 44287 FTPPWD=${userpwd#*@} 44288 FTPSERVER=${FTPSERVER#*@} 44289 else 44290 FTPUSER=ftp 44291 FTPPWD=ftp 44292 fi 44293 # the "pass" command does not work on some 44294 # ftp clients (read ftp.exe) but if it works, 44295 # passive mode is better! 44296 ( \ 44297 echo "user $FTPUSER $FTPPWD" ; \ 44298 echo "pass" ; \ 44299 echo "bin" ; \ 44300 echo "get $FTPPATH $tmpfile" ; \ 44301 ) | ftp -in $FTPSERVER 44302 fi 44303 if test "x$VALID_TOOL" != xyes; then 44304 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44305 fi 44306 44307 mv $tmpfile $installdir/$filename 44308 if test ! -s $installdir/$filename; then 44309 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44310 fi 44311 case "$extension" in 44312 zip) echo "Unzipping $installdir/$filename..." 44313 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44314 ;; 44315 tar.gz) echo "Untaring $installdir/$filename..." 44316 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44317 ;; 44318 tgz) echo "Untaring $installdir/$filename..." 44319 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44320 ;; 44321 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44322 ;; 44323 esac 44324 fi 44325 if test -f $installdir/$filename.unpacked; then 44326 depdir=$installdir 44327 fi 44328 44329 fi 44330 # Source the builddeps file again, because in the previous command, the depdir 44331 # was updated to point at the current build dependency install directory. 44332 . $builddepsfile 44333 # Now extract variables from the builddeps.conf files. 44334 theroot=${builddep_cups_ROOT} 44335 thecflags=${builddep_cups_CFLAGS} 44336 thelibs=${builddep_cups_LIBS} 44337 if test "x$depdir" = x; then 44338 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44339 fi 44340 CUPS=$depdir 44341 if test "x$theroot" != x; then 44342 CUPS="$theroot" 44343 fi 44344 if test "x$thecflags" != x; then 44345 CUPS_CFLAGS="$thecflags" 44346 fi 44347 if test "x$thelibs" != x; then 44348 CUPS_LIBS="$thelibs" 44349 fi 44350 CUPS_FOUND=yes 44351 44352 fi 44353 44354 fi 44355 44356 fi 44357 if test "x$CUPS_FOUND" = xno; then 44358 # Are the cups headers installed in the default /usr/include location? 44359 for ac_header in cups/cups.h cups/ppd.h 44360 do : 44361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44362 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44364 cat >>confdefs.h <<_ACEOF 44365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44366 _ACEOF 44367 44368 CUPS_FOUND=yes 44369 CUPS_CFLAGS= 44370 DEFAULT_CUPS=yes 44371 44372 44373 fi 44374 44375 done 44376 44377 fi 44378 if test "x$CUPS_FOUND" = xno; then 44379 # Getting nervous now? Lets poke around for standard Solaris third-party 44380 # package installation locations. 44381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44382 $as_echo_n "checking for cups headers... " >&6; } 44383 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44384 # An SFW package seems to be installed! 44385 CUPS_FOUND=yes 44386 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44387 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44388 # A CSW package seems to be installed! 44389 CUPS_FOUND=yes 44390 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44391 fi 44392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44393 $as_echo "$CUPS_FOUND" >&6; } 44394 fi 44395 if test "x$CUPS_FOUND" = xno; then 44396 44397 # Print a helpful message on how to acquire the necessary build dependency. 44398 # cups is the help tag: freetype, cups, pulse, alsa etc 44399 MISSING_DEPENDENCY=cups 44400 44401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44402 cygwin_help $MISSING_DEPENDENCY 44403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44404 msys_help $MISSING_DEPENDENCY 44405 else 44406 PKGHANDLER_COMMAND= 44407 44408 case $PKGHANDLER in 44409 apt-get) 44410 apt_help $MISSING_DEPENDENCY ;; 44411 yum) 44412 yum_help $MISSING_DEPENDENCY ;; 44413 port) 44414 port_help $MISSING_DEPENDENCY ;; 44415 pkgutil) 44416 pkgutil_help $MISSING_DEPENDENCY ;; 44417 pkgadd) 44418 pkgadd_help $MISSING_DEPENDENCY ;; 44419 esac 44420 44421 if test "x$PKGHANDLER_COMMAND" != x; then 44422 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44423 fi 44424 fi 44425 44426 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44427 fi 44428 fi 44429 44430 44431 44432 44433 44434 44435 ############################################################################### 44436 # 44437 # The ubiquitous freetype library is used to render fonts. 44438 # 44439 44440 # Check whether --with-freetype was given. 44441 if test "${with_freetype+set}" = set; then : 44442 withval=$with_freetype; 44443 fi 44444 44445 44446 # Check whether --with-freetype-include was given. 44447 if test "${with_freetype_include+set}" = set; then : 44448 withval=$with_freetype_include; 44449 fi 44450 44451 44452 # Check whether --with-freetype-lib was given. 44453 if test "${with_freetype_lib+set}" = set; then : 44454 withval=$with_freetype_lib; 44455 fi 44456 44457 44458 # Check whether --with-freetype-src was given. 44459 if test "${with_freetype_src+set}" = set; then : 44460 withval=$with_freetype_src; 44461 fi 44462 44463 # Check whether --enable-freetype-bundling was given. 44464 if test "${enable_freetype_bundling+set}" = set; then : 44465 enableval=$enable_freetype_bundling; 44466 fi 44467 44468 44469 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44470 FREETYPE_BASE_NAME=freetype 44471 FREETYPE_CFLAGS= 44472 FREETYPE_LIBS= 44473 FREETYPE_BUNDLE_LIB_PATH= 44474 44475 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44476 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 44477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44478 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44479 fi 44480 if test "x$enable_freetype_bundling" != x; then 44481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44482 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44483 fi 44484 else 44485 # freetype is needed to build; go get it! 44486 44487 BUNDLE_FREETYPE="$enable_freetype_bundling" 44488 44489 if test "x$with_freetype_src" != x; then 44490 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44491 # Try to build freetype if --with-freetype-src was given on Windows 44492 44493 FREETYPE_SRC_PATH="$with_freetype_src" 44494 BUILD_FREETYPE=yes 44495 44496 # Check if the freetype sources are acessible.. 44497 if ! test -d $FREETYPE_SRC_PATH; then 44498 { $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 44499 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44500 BUILD_FREETYPE=no 44501 fi 44502 # ..and contain a vc2010 project file 44503 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44504 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44505 { $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 44506 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44507 BUILD_FREETYPE=no 44508 fi 44509 # Now check if configure found a version of 'msbuild.exe' 44510 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44511 { $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 44512 $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;} 44513 BUILD_FREETYPE=no 44514 fi 44515 44516 # Ready to go.. 44517 if test "x$BUILD_FREETYPE" = xyes; then 44518 44519 # msbuild requires trailing slashes for output directories 44520 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44521 freetype_lib_path_unix="$freetype_lib_path" 44522 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44523 44524 unix_path="$vcxproj_path" 44525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44526 windows_path=`$CYGPATH -m "$unix_path"` 44527 vcxproj_path="$windows_path" 44528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44529 windows_path=`cmd //c echo $unix_path` 44530 vcxproj_path="$windows_path" 44531 fi 44532 44533 44534 unix_path="$freetype_lib_path" 44535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44536 windows_path=`$CYGPATH -m "$unix_path"` 44537 freetype_lib_path="$windows_path" 44538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44539 windows_path=`cmd //c echo $unix_path` 44540 freetype_lib_path="$windows_path" 44541 fi 44542 44543 44544 unix_path="$freetype_obj_path" 44545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44546 windows_path=`$CYGPATH -m "$unix_path"` 44547 freetype_obj_path="$windows_path" 44548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44549 windows_path=`cmd //c echo $unix_path` 44550 freetype_obj_path="$windows_path" 44551 fi 44552 44553 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44554 freetype_platform=x64 44555 else 44556 freetype_platform=win32 44557 fi 44558 44559 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44560 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44561 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44562 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44563 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44564 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44565 44566 # First we try to build the freetype.dll 44567 $ECHO -e "@echo off\n"\ 44568 "$MSBUILD $vcxproj_path "\ 44569 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44570 "/p:Configuration=\"Release Multithreaded\" "\ 44571 "/p:Platform=$freetype_platform "\ 44572 "/p:ConfigurationType=DynamicLibrary "\ 44573 "/p:TargetName=freetype "\ 44574 "/p:OutDir=\"$freetype_lib_path\" "\ 44575 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44576 cmd /c freetype.bat 44577 44578 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44579 # If that succeeds we also build freetype.lib 44580 $ECHO -e "@echo off\n"\ 44581 "$MSBUILD $vcxproj_path "\ 44582 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44583 "/p:Configuration=\"Release Multithreaded\" "\ 44584 "/p:Platform=$freetype_platform "\ 44585 "/p:ConfigurationType=StaticLibrary "\ 44586 "/p:TargetName=freetype "\ 44587 "/p:OutDir=\"$freetype_lib_path\" "\ 44588 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44589 cmd /c freetype.bat 44590 44591 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44592 # Once we build both, lib and dll, set freetype lib and include path appropriately 44593 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44594 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44595 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44596 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44597 else 44598 BUILD_FREETYPE=no 44599 fi 44600 else 44601 BUILD_FREETYPE=no 44602 fi 44603 fi 44604 44605 if test "x$BUILD_FREETYPE" = xyes; then 44606 # Okay, we built it. Check that it works. 44607 44608 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44609 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44610 METHOD="--with-freetype-src" 44611 44612 # Let's start with an optimistic view of the world :-) 44613 FOUND_FREETYPE=yes 44614 44615 # First look for the canonical freetype main include file ft2build.h. 44616 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44617 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44618 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44619 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44620 # Fail. 44621 FOUND_FREETYPE=no 44622 fi 44623 fi 44624 44625 if test "x$FOUND_FREETYPE" = xyes; then 44626 # Include file found, let's continue the sanity check. 44627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44628 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44629 44630 # Reset to default value 44631 FREETYPE_BASE_NAME=freetype 44632 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44633 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44634 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44635 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44636 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44637 # for the .6 version explicitly. 44638 FREETYPE_BASE_NAME=freetype.6 44639 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44641 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44642 else 44643 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44644 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44645 FOUND_FREETYPE=no 44646 fi 44647 else 44648 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44649 # On Windows, we will need both .lib and .dll file. 44650 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44651 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44652 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44653 FOUND_FREETYPE=no 44654 fi 44655 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44656 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44657 # Found lib in isa dir, use that instead. 44658 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44660 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44661 fi 44662 fi 44663 fi 44664 44665 if test "x$FOUND_FREETYPE" = xyes; then 44666 44667 # Only process if variable expands to non-empty 44668 44669 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44671 44672 # Input might be given as Windows format, start by converting to 44673 # unix format. 44674 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44675 new_path=`$CYGPATH -u "$path"` 44676 44677 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44678 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44679 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44680 # "foo.exe" is OK but "foo" is an error. 44681 # 44682 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44683 # It is also a way to make sure we got the proper file name for the real test later on. 44684 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44685 if test "x$test_shortpath" = x; then 44686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44687 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44688 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44689 fi 44690 44691 # Call helper function which possibly converts this using DOS-style short mode. 44692 # If so, the updated path is stored in $new_path. 44693 44694 input_path="$new_path" 44695 # Check if we need to convert this using DOS-style short mode. If the path 44696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44697 # take no chances and rewrite it. 44698 # Note: m4 eats our [], so we need to use [ and ] instead. 44699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44700 if test "x$has_forbidden_chars" != x; then 44701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44702 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44703 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44704 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44705 # Going to short mode and back again did indeed matter. Since short mode is 44706 # case insensitive, let's make it lowercase to improve readability. 44707 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44708 # Now convert it back to Unix-style (cygpath) 44709 input_path=`$CYGPATH -u "$shortmode_path"` 44710 new_path="$input_path" 44711 fi 44712 fi 44713 44714 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44715 if test "x$test_cygdrive_prefix" = x; then 44716 # As a simple fix, exclude /usr/bin since it's not a real path. 44717 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44718 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44719 # a path prefixed by /cygdrive for fixpath to work. 44720 new_path="$CYGWIN_ROOT_PATH$input_path" 44721 fi 44722 fi 44723 44724 44725 if test "x$path" != "x$new_path"; then 44726 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44728 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44729 fi 44730 44731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44732 44733 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44734 has_colon=`$ECHO $path | $GREP ^.:` 44735 new_path="$path" 44736 if test "x$has_colon" = x; then 44737 # Not in mixed or Windows style, start by that. 44738 new_path=`cmd //c echo $path` 44739 fi 44740 44741 44742 input_path="$new_path" 44743 # Check if we need to convert this using DOS-style short mode. If the path 44744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44745 # take no chances and rewrite it. 44746 # Note: m4 eats our [], so we need to use [ and ] instead. 44747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44748 if test "x$has_forbidden_chars" != x; then 44749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44750 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44751 fi 44752 44753 44754 windows_path="$new_path" 44755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44756 unix_path=`$CYGPATH -u "$windows_path"` 44757 new_path="$unix_path" 44758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44760 new_path="$unix_path" 44761 fi 44762 44763 if test "x$path" != "x$new_path"; then 44764 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44766 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44767 fi 44768 44769 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44770 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44771 44772 else 44773 # We're on a unix platform. Hooray! :) 44774 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44775 has_space=`$ECHO "$path" | $GREP " "` 44776 if test "x$has_space" != x; then 44777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44778 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44779 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44780 fi 44781 44782 # Use eval to expand a potential ~ 44783 eval path="$path" 44784 if test ! -f "$path" && test ! -d "$path"; then 44785 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44786 fi 44787 44788 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44789 fi 44790 fi 44791 44792 44793 # Only process if variable expands to non-empty 44794 44795 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44797 44798 # Input might be given as Windows format, start by converting to 44799 # unix format. 44800 path="$POTENTIAL_FREETYPE_LIB_PATH" 44801 new_path=`$CYGPATH -u "$path"` 44802 44803 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44804 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44805 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44806 # "foo.exe" is OK but "foo" is an error. 44807 # 44808 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44809 # It is also a way to make sure we got the proper file name for the real test later on. 44810 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44811 if test "x$test_shortpath" = x; then 44812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44813 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44814 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44815 fi 44816 44817 # Call helper function which possibly converts this using DOS-style short mode. 44818 # If so, the updated path is stored in $new_path. 44819 44820 input_path="$new_path" 44821 # Check if we need to convert this using DOS-style short mode. If the path 44822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44823 # take no chances and rewrite it. 44824 # Note: m4 eats our [], so we need to use [ and ] instead. 44825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44826 if test "x$has_forbidden_chars" != x; then 44827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44828 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44829 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44830 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44831 # Going to short mode and back again did indeed matter. Since short mode is 44832 # case insensitive, let's make it lowercase to improve readability. 44833 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44834 # Now convert it back to Unix-style (cygpath) 44835 input_path=`$CYGPATH -u "$shortmode_path"` 44836 new_path="$input_path" 44837 fi 44838 fi 44839 44840 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44841 if test "x$test_cygdrive_prefix" = x; then 44842 # As a simple fix, exclude /usr/bin since it's not a real path. 44843 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44844 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44845 # a path prefixed by /cygdrive for fixpath to work. 44846 new_path="$CYGWIN_ROOT_PATH$input_path" 44847 fi 44848 fi 44849 44850 44851 if test "x$path" != "x$new_path"; then 44852 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44854 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44855 fi 44856 44857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44858 44859 path="$POTENTIAL_FREETYPE_LIB_PATH" 44860 has_colon=`$ECHO $path | $GREP ^.:` 44861 new_path="$path" 44862 if test "x$has_colon" = x; then 44863 # Not in mixed or Windows style, start by that. 44864 new_path=`cmd //c echo $path` 44865 fi 44866 44867 44868 input_path="$new_path" 44869 # Check if we need to convert this using DOS-style short mode. If the path 44870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44871 # take no chances and rewrite it. 44872 # Note: m4 eats our [], so we need to use [ and ] instead. 44873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44874 if test "x$has_forbidden_chars" != x; then 44875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44877 fi 44878 44879 44880 windows_path="$new_path" 44881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44882 unix_path=`$CYGPATH -u "$windows_path"` 44883 new_path="$unix_path" 44884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44886 new_path="$unix_path" 44887 fi 44888 44889 if test "x$path" != "x$new_path"; then 44890 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44892 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44893 fi 44894 44895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44897 44898 else 44899 # We're on a unix platform. Hooray! :) 44900 path="$POTENTIAL_FREETYPE_LIB_PATH" 44901 has_space=`$ECHO "$path" | $GREP " "` 44902 if test "x$has_space" != x; then 44903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44904 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44906 fi 44907 44908 # Use eval to expand a potential ~ 44909 eval path="$path" 44910 if test ! -f "$path" && test ! -d "$path"; then 44911 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44912 fi 44913 44914 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44915 fi 44916 fi 44917 44918 44919 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44921 $as_echo_n "checking for freetype includes... " >&6; } 44922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44923 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44924 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44926 $as_echo_n "checking for freetype libraries... " >&6; } 44927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44928 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44929 fi 44930 44931 if test "x$FOUND_FREETYPE" != xyes; then 44932 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44933 fi 44934 else 44935 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44936 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44937 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44938 fi 44939 else 44940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44941 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44942 fi 44943 fi 44944 44945 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44946 # User has specified settings 44947 44948 if test "x$BUNDLE_FREETYPE" = x; then 44949 # If not specified, default is to bundle freetype 44950 BUNDLE_FREETYPE=yes 44951 fi 44952 44953 if test "x$with_freetype" != x; then 44954 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44955 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44956 fi 44957 44958 # Allow --with-freetype-lib and --with-freetype-include to override 44959 if test "x$with_freetype_include" != x; then 44960 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44961 fi 44962 if test "x$with_freetype_lib" != x; then 44963 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44964 fi 44965 44966 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44967 # Okay, we got it. Check that it works. 44968 44969 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44970 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44971 METHOD="--with-freetype" 44972 44973 # Let's start with an optimistic view of the world :-) 44974 FOUND_FREETYPE=yes 44975 44976 # First look for the canonical freetype main include file ft2build.h. 44977 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44978 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44979 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44980 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44981 # Fail. 44982 FOUND_FREETYPE=no 44983 fi 44984 fi 44985 44986 if test "x$FOUND_FREETYPE" = xyes; then 44987 # Include file found, let's continue the sanity check. 44988 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44989 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44990 44991 # Reset to default value 44992 FREETYPE_BASE_NAME=freetype 44993 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44994 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44995 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44996 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44997 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44998 # for the .6 version explicitly. 44999 FREETYPE_BASE_NAME=freetype.6 45000 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45001 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45002 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45003 else 45004 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45005 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45006 FOUND_FREETYPE=no 45007 fi 45008 else 45009 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45010 # On Windows, we will need both .lib and .dll file. 45011 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45012 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45013 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45014 FOUND_FREETYPE=no 45015 fi 45016 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45017 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45018 # Found lib in isa dir, use that instead. 45019 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45021 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45022 fi 45023 fi 45024 fi 45025 45026 if test "x$FOUND_FREETYPE" = xyes; then 45027 45028 # Only process if variable expands to non-empty 45029 45030 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45032 45033 # Input might be given as Windows format, start by converting to 45034 # unix format. 45035 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45036 new_path=`$CYGPATH -u "$path"` 45037 45038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45041 # "foo.exe" is OK but "foo" is an error. 45042 # 45043 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45044 # It is also a way to make sure we got the proper file name for the real test later on. 45045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45046 if test "x$test_shortpath" = x; then 45047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45048 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45049 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45050 fi 45051 45052 # Call helper function which possibly converts this using DOS-style short mode. 45053 # If so, the updated path is stored in $new_path. 45054 45055 input_path="$new_path" 45056 # Check if we need to convert this using DOS-style short mode. If the path 45057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45058 # take no chances and rewrite it. 45059 # Note: m4 eats our [], so we need to use [ and ] instead. 45060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45061 if test "x$has_forbidden_chars" != x; then 45062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45066 # Going to short mode and back again did indeed matter. Since short mode is 45067 # case insensitive, let's make it lowercase to improve readability. 45068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45069 # Now convert it back to Unix-style (cygpath) 45070 input_path=`$CYGPATH -u "$shortmode_path"` 45071 new_path="$input_path" 45072 fi 45073 fi 45074 45075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45076 if test "x$test_cygdrive_prefix" = x; then 45077 # As a simple fix, exclude /usr/bin since it's not a real path. 45078 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45080 # a path prefixed by /cygdrive for fixpath to work. 45081 new_path="$CYGWIN_ROOT_PATH$input_path" 45082 fi 45083 fi 45084 45085 45086 if test "x$path" != "x$new_path"; then 45087 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45089 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45090 fi 45091 45092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45093 45094 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45095 has_colon=`$ECHO $path | $GREP ^.:` 45096 new_path="$path" 45097 if test "x$has_colon" = x; then 45098 # Not in mixed or Windows style, start by that. 45099 new_path=`cmd //c echo $path` 45100 fi 45101 45102 45103 input_path="$new_path" 45104 # Check if we need to convert this using DOS-style short mode. If the path 45105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45106 # take no chances and rewrite it. 45107 # Note: m4 eats our [], so we need to use [ and ] instead. 45108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45109 if test "x$has_forbidden_chars" != x; then 45110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45112 fi 45113 45114 45115 windows_path="$new_path" 45116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45117 unix_path=`$CYGPATH -u "$windows_path"` 45118 new_path="$unix_path" 45119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45121 new_path="$unix_path" 45122 fi 45123 45124 if test "x$path" != "x$new_path"; then 45125 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45127 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45128 fi 45129 45130 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45131 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45132 45133 else 45134 # We're on a unix platform. Hooray! :) 45135 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45136 has_space=`$ECHO "$path" | $GREP " "` 45137 if test "x$has_space" != x; then 45138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45139 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45140 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45141 fi 45142 45143 # Use eval to expand a potential ~ 45144 eval path="$path" 45145 if test ! -f "$path" && test ! -d "$path"; then 45146 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45147 fi 45148 45149 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45150 fi 45151 fi 45152 45153 45154 # Only process if variable expands to non-empty 45155 45156 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45158 45159 # Input might be given as Windows format, start by converting to 45160 # unix format. 45161 path="$POTENTIAL_FREETYPE_LIB_PATH" 45162 new_path=`$CYGPATH -u "$path"` 45163 45164 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45165 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45166 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45167 # "foo.exe" is OK but "foo" is an error. 45168 # 45169 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45170 # It is also a way to make sure we got the proper file name for the real test later on. 45171 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45172 if test "x$test_shortpath" = x; then 45173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45174 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45175 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45176 fi 45177 45178 # Call helper function which possibly converts this using DOS-style short mode. 45179 # If so, the updated path is stored in $new_path. 45180 45181 input_path="$new_path" 45182 # Check if we need to convert this using DOS-style short mode. If the path 45183 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45184 # take no chances and rewrite it. 45185 # Note: m4 eats our [], so we need to use [ and ] instead. 45186 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45187 if test "x$has_forbidden_chars" != x; then 45188 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45189 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45190 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45191 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45192 # Going to short mode and back again did indeed matter. Since short mode is 45193 # case insensitive, let's make it lowercase to improve readability. 45194 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45195 # Now convert it back to Unix-style (cygpath) 45196 input_path=`$CYGPATH -u "$shortmode_path"` 45197 new_path="$input_path" 45198 fi 45199 fi 45200 45201 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45202 if test "x$test_cygdrive_prefix" = x; then 45203 # As a simple fix, exclude /usr/bin since it's not a real path. 45204 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45205 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45206 # a path prefixed by /cygdrive for fixpath to work. 45207 new_path="$CYGWIN_ROOT_PATH$input_path" 45208 fi 45209 fi 45210 45211 45212 if test "x$path" != "x$new_path"; then 45213 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45215 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45216 fi 45217 45218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45219 45220 path="$POTENTIAL_FREETYPE_LIB_PATH" 45221 has_colon=`$ECHO $path | $GREP ^.:` 45222 new_path="$path" 45223 if test "x$has_colon" = x; then 45224 # Not in mixed or Windows style, start by that. 45225 new_path=`cmd //c echo $path` 45226 fi 45227 45228 45229 input_path="$new_path" 45230 # Check if we need to convert this using DOS-style short mode. If the path 45231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45232 # take no chances and rewrite it. 45233 # Note: m4 eats our [], so we need to use [ and ] instead. 45234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45235 if test "x$has_forbidden_chars" != x; then 45236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45237 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45238 fi 45239 45240 45241 windows_path="$new_path" 45242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45243 unix_path=`$CYGPATH -u "$windows_path"` 45244 new_path="$unix_path" 45245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45247 new_path="$unix_path" 45248 fi 45249 45250 if test "x$path" != "x$new_path"; then 45251 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45253 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45254 fi 45255 45256 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45257 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45258 45259 else 45260 # We're on a unix platform. Hooray! :) 45261 path="$POTENTIAL_FREETYPE_LIB_PATH" 45262 has_space=`$ECHO "$path" | $GREP " "` 45263 if test "x$has_space" != x; then 45264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45265 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45266 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45267 fi 45268 45269 # Use eval to expand a potential ~ 45270 eval path="$path" 45271 if test ! -f "$path" && test ! -d "$path"; then 45272 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45273 fi 45274 45275 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45276 fi 45277 fi 45278 45279 45280 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45282 $as_echo_n "checking for freetype includes... " >&6; } 45283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45284 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45285 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45287 $as_echo_n "checking for freetype libraries... " >&6; } 45288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45289 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45290 fi 45291 45292 if test "x$FOUND_FREETYPE" != xyes; then 45293 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45294 fi 45295 else 45296 # User specified only one of lib or include. This is an error. 45297 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45298 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45299 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45300 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45301 else 45302 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45303 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45304 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45305 fi 45306 fi 45307 else 45308 # User did not specify settings, but we need freetype. Try to locate it. 45309 45310 if test "x$BUNDLE_FREETYPE" = x; then 45311 # If not specified, default is to bundle freetype only on windows 45312 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45313 BUNDLE_FREETYPE=yes 45314 else 45315 BUNDLE_FREETYPE=no 45316 fi 45317 fi 45318 45319 if test "x$FOUND_FREETYPE" != xyes; then 45320 # Check builddeps 45321 45322 45323 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45324 # Source the builddeps file again, to make sure it uses the latest variables! 45325 . $builddepsfile 45326 # Look for a target and build machine specific resource! 45327 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45328 if test "x$resource" = x; then 45329 # Ok, lets instead look for a target specific resource 45330 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45331 fi 45332 if test "x$resource" = x; then 45333 # Ok, lets instead look for a build specific resource 45334 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45335 fi 45336 if test "x$resource" = x; then 45337 # Ok, lets instead look for a generic resource 45338 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45339 resource=${builddep_freetype2} 45340 fi 45341 if test "x$resource" != x; then 45342 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45343 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45344 # If the resource in the builddeps.conf file is an existing directory, 45345 # for example /java/linux/cups 45346 if test -d ${resource}; then 45347 depdir=${resource} 45348 else 45349 45350 # freetype2 is for example mymodule 45351 # $resource is for example libs/general/libmymod_1_2_3.zip 45352 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45353 # $with_builddeps_dir is for example /localhome/builddeps 45354 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45355 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45356 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45357 filename=`basename $resource` 45358 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45359 filebase=${filename%%.*} 45360 extension=${filename#*.} 45361 installdir=$with_builddeps_dir/$filebase 45362 if test ! -f $installdir/$filename.unpacked; then 45363 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45364 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45365 if test ! -d $installdir; then 45366 mkdir -p $installdir 45367 fi 45368 if test ! -d $installdir; then 45369 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45370 fi 45371 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45372 touch $tmpfile 45373 if test ! -f $tmpfile; then 45374 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45375 fi 45376 45377 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45378 # $tmpfile is the local file name for the downloaded file. 45379 VALID_TOOL=no 45380 if test "x$BDEPS_FTP" = xwget; then 45381 VALID_TOOL=yes 45382 wget -O $tmpfile $with_builddeps_server/$resource 45383 fi 45384 if test "x$BDEPS_FTP" = xlftp; then 45385 VALID_TOOL=yes 45386 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45387 fi 45388 if test "x$BDEPS_FTP" = xftp; then 45389 VALID_TOOL=yes 45390 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45391 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45392 FTPUSERPWD=${FTPSERVER%%@*} 45393 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45394 FTPUSER=${userpwd%%:*} 45395 FTPPWD=${userpwd#*@} 45396 FTPSERVER=${FTPSERVER#*@} 45397 else 45398 FTPUSER=ftp 45399 FTPPWD=ftp 45400 fi 45401 # the "pass" command does not work on some 45402 # ftp clients (read ftp.exe) but if it works, 45403 # passive mode is better! 45404 ( \ 45405 echo "user $FTPUSER $FTPPWD" ; \ 45406 echo "pass" ; \ 45407 echo "bin" ; \ 45408 echo "get $FTPPATH $tmpfile" ; \ 45409 ) | ftp -in $FTPSERVER 45410 fi 45411 if test "x$VALID_TOOL" != xyes; then 45412 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45413 fi 45414 45415 mv $tmpfile $installdir/$filename 45416 if test ! -s $installdir/$filename; then 45417 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45418 fi 45419 case "$extension" in 45420 zip) echo "Unzipping $installdir/$filename..." 45421 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45422 ;; 45423 tar.gz) echo "Untaring $installdir/$filename..." 45424 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45425 ;; 45426 tgz) echo "Untaring $installdir/$filename..." 45427 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45428 ;; 45429 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45430 ;; 45431 esac 45432 fi 45433 if test -f $installdir/$filename.unpacked; then 45434 depdir=$installdir 45435 fi 45436 45437 fi 45438 # Source the builddeps file again, because in the previous command, the depdir 45439 # was updated to point at the current build dependency install directory. 45440 . $builddepsfile 45441 # Now extract variables from the builddeps.conf files. 45442 theroot=${builddep_freetype2_ROOT} 45443 thecflags=${builddep_freetype2_CFLAGS} 45444 thelibs=${builddep_freetype2_LIBS} 45445 if test "x$depdir" = x; then 45446 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45447 fi 45448 FREETYPE=$depdir 45449 if test "x$theroot" != x; then 45450 FREETYPE="$theroot" 45451 fi 45452 if test "x$thecflags" != x; then 45453 FREETYPE_CFLAGS="$thecflags" 45454 fi 45455 if test "x$thelibs" != x; then 45456 FREETYPE_LIBS="$thelibs" 45457 fi 45458 FOUND_FREETYPE=yes 45459 else FOUND_FREETYPE=no 45460 45461 fi 45462 else FOUND_FREETYPE=no 45463 45464 fi 45465 45466 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45467 if test "x$FOUND_FREETYPE" = xyes; then 45468 if test "x$BUNDLE_FREETYPE" = xyes; then 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45470 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45471 FOUND_FREETYPE=no 45472 else 45473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45474 $as_echo_n "checking for freetype... " >&6; } 45475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45476 $as_echo "yes (using builddeps)" >&6; } 45477 fi 45478 fi 45479 fi 45480 45481 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45482 if test "x$SYSROOT" = x; then 45483 if test "x$FOUND_FREETYPE" != xyes; then 45484 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45485 if test "x$PKG_CONFIG" != x; then 45486 45487 pkg_failed=no 45488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45489 $as_echo_n "checking for FREETYPE... " >&6; } 45490 45491 if test -n "$FREETYPE_CFLAGS"; then 45492 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45493 elif test -n "$PKG_CONFIG"; then 45494 if test -n "$PKG_CONFIG" && \ 45495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45496 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45497 ac_status=$? 45498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45499 test $ac_status = 0; }; then 45500 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45501 else 45502 pkg_failed=yes 45503 fi 45504 else 45505 pkg_failed=untried 45506 fi 45507 if test -n "$FREETYPE_LIBS"; then 45508 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45509 elif test -n "$PKG_CONFIG"; then 45510 if test -n "$PKG_CONFIG" && \ 45511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45512 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45513 ac_status=$? 45514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45515 test $ac_status = 0; }; then 45516 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45517 else 45518 pkg_failed=yes 45519 fi 45520 else 45521 pkg_failed=untried 45522 fi 45523 45524 45525 45526 if test $pkg_failed = yes; then 45527 45528 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45529 _pkg_short_errors_supported=yes 45530 else 45531 _pkg_short_errors_supported=no 45532 fi 45533 if test $_pkg_short_errors_supported = yes; then 45534 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45535 else 45536 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45537 fi 45538 # Put the nasty error message in config.log where it belongs 45539 echo "$FREETYPE_PKG_ERRORS" >&5 45540 45541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45542 $as_echo "no" >&6; } 45543 FOUND_FREETYPE=no 45544 elif test $pkg_failed = untried; then 45545 FOUND_FREETYPE=no 45546 else 45547 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45548 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45550 $as_echo "yes" >&6; } 45551 FOUND_FREETYPE=yes 45552 fi 45553 if test "x$FOUND_FREETYPE" = xyes; then 45554 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45555 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45556 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45557 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45558 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45559 fi 45560 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45561 if test "x$BUNDLE_FREETYPE" = xyes; then 45562 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45563 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45564 FOUND_FREETYPE=no 45565 else 45566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45567 $as_echo_n "checking for freetype... " >&6; } 45568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45569 $as_echo "yes (using pkg-config)" >&6; } 45570 fi 45571 fi 45572 fi 45573 fi 45574 fi 45575 45576 if test "x$FOUND_FREETYPE" != xyes; then 45577 # Check in well-known locations 45578 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45579 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45580 45581 windows_path="$FREETYPE_BASE_DIR" 45582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45583 unix_path=`$CYGPATH -u "$windows_path"` 45584 FREETYPE_BASE_DIR="$unix_path" 45585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45587 FREETYPE_BASE_DIR="$unix_path" 45588 fi 45589 45590 45591 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45592 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45593 METHOD="well-known location" 45594 45595 # Let's start with an optimistic view of the world :-) 45596 FOUND_FREETYPE=yes 45597 45598 # First look for the canonical freetype main include file ft2build.h. 45599 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45600 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45601 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45602 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45603 # Fail. 45604 FOUND_FREETYPE=no 45605 fi 45606 fi 45607 45608 if test "x$FOUND_FREETYPE" = xyes; then 45609 # Include file found, let's continue the sanity check. 45610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45611 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45612 45613 # Reset to default value 45614 FREETYPE_BASE_NAME=freetype 45615 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45616 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45617 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45618 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45619 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45620 # for the .6 version explicitly. 45621 FREETYPE_BASE_NAME=freetype.6 45622 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45623 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45624 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45625 else 45626 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45627 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45628 FOUND_FREETYPE=no 45629 fi 45630 else 45631 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45632 # On Windows, we will need both .lib and .dll file. 45633 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45634 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45635 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45636 FOUND_FREETYPE=no 45637 fi 45638 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45639 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45640 # Found lib in isa dir, use that instead. 45641 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45643 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45644 fi 45645 fi 45646 fi 45647 45648 if test "x$FOUND_FREETYPE" = xyes; then 45649 45650 # Only process if variable expands to non-empty 45651 45652 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45654 45655 # Input might be given as Windows format, start by converting to 45656 # unix format. 45657 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45658 new_path=`$CYGPATH -u "$path"` 45659 45660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45663 # "foo.exe" is OK but "foo" is an error. 45664 # 45665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45666 # It is also a way to make sure we got the proper file name for the real test later on. 45667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45668 if test "x$test_shortpath" = x; then 45669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45670 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45671 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45672 fi 45673 45674 # Call helper function which possibly converts this using DOS-style short mode. 45675 # If so, the updated path is stored in $new_path. 45676 45677 input_path="$new_path" 45678 # Check if we need to convert this using DOS-style short mode. If the path 45679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45680 # take no chances and rewrite it. 45681 # Note: m4 eats our [], so we need to use [ and ] instead. 45682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45683 if test "x$has_forbidden_chars" != x; then 45684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45688 # Going to short mode and back again did indeed matter. Since short mode is 45689 # case insensitive, let's make it lowercase to improve readability. 45690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45691 # Now convert it back to Unix-style (cygpath) 45692 input_path=`$CYGPATH -u "$shortmode_path"` 45693 new_path="$input_path" 45694 fi 45695 fi 45696 45697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45698 if test "x$test_cygdrive_prefix" = x; then 45699 # As a simple fix, exclude /usr/bin since it's not a real path. 45700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45702 # a path prefixed by /cygdrive for fixpath to work. 45703 new_path="$CYGWIN_ROOT_PATH$input_path" 45704 fi 45705 fi 45706 45707 45708 if test "x$path" != "x$new_path"; then 45709 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45711 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45712 fi 45713 45714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45715 45716 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45717 has_colon=`$ECHO $path | $GREP ^.:` 45718 new_path="$path" 45719 if test "x$has_colon" = x; then 45720 # Not in mixed or Windows style, start by that. 45721 new_path=`cmd //c echo $path` 45722 fi 45723 45724 45725 input_path="$new_path" 45726 # Check if we need to convert this using DOS-style short mode. If the path 45727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45728 # take no chances and rewrite it. 45729 # Note: m4 eats our [], so we need to use [ and ] instead. 45730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45731 if test "x$has_forbidden_chars" != x; then 45732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45734 fi 45735 45736 45737 windows_path="$new_path" 45738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45739 unix_path=`$CYGPATH -u "$windows_path"` 45740 new_path="$unix_path" 45741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45743 new_path="$unix_path" 45744 fi 45745 45746 if test "x$path" != "x$new_path"; then 45747 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45749 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45750 fi 45751 45752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45754 45755 else 45756 # We're on a unix platform. Hooray! :) 45757 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45758 has_space=`$ECHO "$path" | $GREP " "` 45759 if test "x$has_space" != x; then 45760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45761 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45763 fi 45764 45765 # Use eval to expand a potential ~ 45766 eval path="$path" 45767 if test ! -f "$path" && test ! -d "$path"; then 45768 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45769 fi 45770 45771 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45772 fi 45773 fi 45774 45775 45776 # Only process if variable expands to non-empty 45777 45778 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45780 45781 # Input might be given as Windows format, start by converting to 45782 # unix format. 45783 path="$POTENTIAL_FREETYPE_LIB_PATH" 45784 new_path=`$CYGPATH -u "$path"` 45785 45786 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45787 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45788 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45789 # "foo.exe" is OK but "foo" is an error. 45790 # 45791 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45792 # It is also a way to make sure we got the proper file name for the real test later on. 45793 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45794 if test "x$test_shortpath" = x; then 45795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45796 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45797 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45798 fi 45799 45800 # Call helper function which possibly converts this using DOS-style short mode. 45801 # If so, the updated path is stored in $new_path. 45802 45803 input_path="$new_path" 45804 # Check if we need to convert this using DOS-style short mode. If the path 45805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45806 # take no chances and rewrite it. 45807 # Note: m4 eats our [], so we need to use [ and ] instead. 45808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45809 if test "x$has_forbidden_chars" != x; then 45810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45811 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45812 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45813 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45814 # Going to short mode and back again did indeed matter. Since short mode is 45815 # case insensitive, let's make it lowercase to improve readability. 45816 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45817 # Now convert it back to Unix-style (cygpath) 45818 input_path=`$CYGPATH -u "$shortmode_path"` 45819 new_path="$input_path" 45820 fi 45821 fi 45822 45823 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45824 if test "x$test_cygdrive_prefix" = x; then 45825 # As a simple fix, exclude /usr/bin since it's not a real path. 45826 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45827 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45828 # a path prefixed by /cygdrive for fixpath to work. 45829 new_path="$CYGWIN_ROOT_PATH$input_path" 45830 fi 45831 fi 45832 45833 45834 if test "x$path" != "x$new_path"; then 45835 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45837 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45838 fi 45839 45840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45841 45842 path="$POTENTIAL_FREETYPE_LIB_PATH" 45843 has_colon=`$ECHO $path | $GREP ^.:` 45844 new_path="$path" 45845 if test "x$has_colon" = x; then 45846 # Not in mixed or Windows style, start by that. 45847 new_path=`cmd //c echo $path` 45848 fi 45849 45850 45851 input_path="$new_path" 45852 # Check if we need to convert this using DOS-style short mode. If the path 45853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45854 # take no chances and rewrite it. 45855 # Note: m4 eats our [], so we need to use [ and ] instead. 45856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45857 if test "x$has_forbidden_chars" != x; then 45858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45859 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45860 fi 45861 45862 45863 windows_path="$new_path" 45864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45865 unix_path=`$CYGPATH -u "$windows_path"` 45866 new_path="$unix_path" 45867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45869 new_path="$unix_path" 45870 fi 45871 45872 if test "x$path" != "x$new_path"; then 45873 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45874 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45875 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45876 fi 45877 45878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45880 45881 else 45882 # We're on a unix platform. Hooray! :) 45883 path="$POTENTIAL_FREETYPE_LIB_PATH" 45884 has_space=`$ECHO "$path" | $GREP " "` 45885 if test "x$has_space" != x; then 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45887 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45888 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45889 fi 45890 45891 # Use eval to expand a potential ~ 45892 eval path="$path" 45893 if test ! -f "$path" && test ! -d "$path"; then 45894 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45895 fi 45896 45897 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45898 fi 45899 fi 45900 45901 45902 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45904 $as_echo_n "checking for freetype includes... " >&6; } 45905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45906 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45907 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45909 $as_echo_n "checking for freetype libraries... " >&6; } 45910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45911 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45912 fi 45913 45914 if test "x$FOUND_FREETYPE" != xyes; then 45915 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45916 45917 windows_path="$FREETYPE_BASE_DIR" 45918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45919 unix_path=`$CYGPATH -u "$windows_path"` 45920 FREETYPE_BASE_DIR="$unix_path" 45921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45923 FREETYPE_BASE_DIR="$unix_path" 45924 fi 45925 45926 45927 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45928 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45929 METHOD="well-known location" 45930 45931 # Let's start with an optimistic view of the world :-) 45932 FOUND_FREETYPE=yes 45933 45934 # First look for the canonical freetype main include file ft2build.h. 45935 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45936 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45937 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45938 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45939 # Fail. 45940 FOUND_FREETYPE=no 45941 fi 45942 fi 45943 45944 if test "x$FOUND_FREETYPE" = xyes; then 45945 # Include file found, let's continue the sanity check. 45946 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45947 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45948 45949 # Reset to default value 45950 FREETYPE_BASE_NAME=freetype 45951 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45952 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45953 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45954 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45955 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45956 # for the .6 version explicitly. 45957 FREETYPE_BASE_NAME=freetype.6 45958 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45959 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45960 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45961 else 45962 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45963 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45964 FOUND_FREETYPE=no 45965 fi 45966 else 45967 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45968 # On Windows, we will need both .lib and .dll file. 45969 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45970 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45971 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45972 FOUND_FREETYPE=no 45973 fi 45974 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45975 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45976 # Found lib in isa dir, use that instead. 45977 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45979 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45980 fi 45981 fi 45982 fi 45983 45984 if test "x$FOUND_FREETYPE" = xyes; then 45985 45986 # Only process if variable expands to non-empty 45987 45988 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45990 45991 # Input might be given as Windows format, start by converting to 45992 # unix format. 45993 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45994 new_path=`$CYGPATH -u "$path"` 45995 45996 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45997 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45998 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45999 # "foo.exe" is OK but "foo" is an error. 46000 # 46001 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46002 # It is also a way to make sure we got the proper file name for the real test later on. 46003 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46004 if test "x$test_shortpath" = x; then 46005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46006 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46007 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46008 fi 46009 46010 # Call helper function which possibly converts this using DOS-style short mode. 46011 # If so, the updated path is stored in $new_path. 46012 46013 input_path="$new_path" 46014 # Check if we need to convert this using DOS-style short mode. If the path 46015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46016 # take no chances and rewrite it. 46017 # Note: m4 eats our [], so we need to use [ and ] instead. 46018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46019 if test "x$has_forbidden_chars" != x; then 46020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46021 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46022 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46023 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46024 # Going to short mode and back again did indeed matter. Since short mode is 46025 # case insensitive, let's make it lowercase to improve readability. 46026 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46027 # Now convert it back to Unix-style (cygpath) 46028 input_path=`$CYGPATH -u "$shortmode_path"` 46029 new_path="$input_path" 46030 fi 46031 fi 46032 46033 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46034 if test "x$test_cygdrive_prefix" = x; then 46035 # As a simple fix, exclude /usr/bin since it's not a real path. 46036 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46037 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46038 # a path prefixed by /cygdrive for fixpath to work. 46039 new_path="$CYGWIN_ROOT_PATH$input_path" 46040 fi 46041 fi 46042 46043 46044 if test "x$path" != "x$new_path"; then 46045 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46047 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46048 fi 46049 46050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46051 46052 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46053 has_colon=`$ECHO $path | $GREP ^.:` 46054 new_path="$path" 46055 if test "x$has_colon" = x; then 46056 # Not in mixed or Windows style, start by that. 46057 new_path=`cmd //c echo $path` 46058 fi 46059 46060 46061 input_path="$new_path" 46062 # Check if we need to convert this using DOS-style short mode. If the path 46063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46064 # take no chances and rewrite it. 46065 # Note: m4 eats our [], so we need to use [ and ] instead. 46066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46067 if test "x$has_forbidden_chars" != x; then 46068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46069 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46070 fi 46071 46072 46073 windows_path="$new_path" 46074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46075 unix_path=`$CYGPATH -u "$windows_path"` 46076 new_path="$unix_path" 46077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46079 new_path="$unix_path" 46080 fi 46081 46082 if test "x$path" != "x$new_path"; then 46083 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46085 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46086 fi 46087 46088 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46089 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46090 46091 else 46092 # We're on a unix platform. Hooray! :) 46093 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46094 has_space=`$ECHO "$path" | $GREP " "` 46095 if test "x$has_space" != x; then 46096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46097 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46098 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46099 fi 46100 46101 # Use eval to expand a potential ~ 46102 eval path="$path" 46103 if test ! -f "$path" && test ! -d "$path"; then 46104 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46105 fi 46106 46107 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46108 fi 46109 fi 46110 46111 46112 # Only process if variable expands to non-empty 46113 46114 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46116 46117 # Input might be given as Windows format, start by converting to 46118 # unix format. 46119 path="$POTENTIAL_FREETYPE_LIB_PATH" 46120 new_path=`$CYGPATH -u "$path"` 46121 46122 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46123 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46124 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46125 # "foo.exe" is OK but "foo" is an error. 46126 # 46127 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46128 # It is also a way to make sure we got the proper file name for the real test later on. 46129 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46130 if test "x$test_shortpath" = x; then 46131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46132 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46133 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46134 fi 46135 46136 # Call helper function which possibly converts this using DOS-style short mode. 46137 # If so, the updated path is stored in $new_path. 46138 46139 input_path="$new_path" 46140 # Check if we need to convert this using DOS-style short mode. If the path 46141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46142 # take no chances and rewrite it. 46143 # Note: m4 eats our [], so we need to use [ and ] instead. 46144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46145 if test "x$has_forbidden_chars" != x; then 46146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46147 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46148 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46149 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46150 # Going to short mode and back again did indeed matter. Since short mode is 46151 # case insensitive, let's make it lowercase to improve readability. 46152 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46153 # Now convert it back to Unix-style (cygpath) 46154 input_path=`$CYGPATH -u "$shortmode_path"` 46155 new_path="$input_path" 46156 fi 46157 fi 46158 46159 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46160 if test "x$test_cygdrive_prefix" = x; then 46161 # As a simple fix, exclude /usr/bin since it's not a real path. 46162 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46163 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46164 # a path prefixed by /cygdrive for fixpath to work. 46165 new_path="$CYGWIN_ROOT_PATH$input_path" 46166 fi 46167 fi 46168 46169 46170 if test "x$path" != "x$new_path"; then 46171 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46173 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46174 fi 46175 46176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46177 46178 path="$POTENTIAL_FREETYPE_LIB_PATH" 46179 has_colon=`$ECHO $path | $GREP ^.:` 46180 new_path="$path" 46181 if test "x$has_colon" = x; then 46182 # Not in mixed or Windows style, start by that. 46183 new_path=`cmd //c echo $path` 46184 fi 46185 46186 46187 input_path="$new_path" 46188 # Check if we need to convert this using DOS-style short mode. If the path 46189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46190 # take no chances and rewrite it. 46191 # Note: m4 eats our [], so we need to use [ and ] instead. 46192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46193 if test "x$has_forbidden_chars" != x; then 46194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46195 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46196 fi 46197 46198 46199 windows_path="$new_path" 46200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46201 unix_path=`$CYGPATH -u "$windows_path"` 46202 new_path="$unix_path" 46203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46205 new_path="$unix_path" 46206 fi 46207 46208 if test "x$path" != "x$new_path"; then 46209 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46211 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46212 fi 46213 46214 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46215 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46216 46217 else 46218 # We're on a unix platform. Hooray! :) 46219 path="$POTENTIAL_FREETYPE_LIB_PATH" 46220 has_space=`$ECHO "$path" | $GREP " "` 46221 if test "x$has_space" != x; then 46222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46223 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46224 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46225 fi 46226 46227 # Use eval to expand a potential ~ 46228 eval path="$path" 46229 if test ! -f "$path" && test ! -d "$path"; then 46230 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46231 fi 46232 46233 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46234 fi 46235 fi 46236 46237 46238 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46240 $as_echo_n "checking for freetype includes... " >&6; } 46241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46242 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46243 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46245 $as_echo_n "checking for freetype libraries... " >&6; } 46246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46247 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46248 fi 46249 46250 fi 46251 else 46252 FREETYPE_BASE_DIR="$SYSROOT/usr" 46253 46254 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46255 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46256 METHOD="well-known location" 46257 46258 # Let's start with an optimistic view of the world :-) 46259 FOUND_FREETYPE=yes 46260 46261 # First look for the canonical freetype main include file ft2build.h. 46262 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46263 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46264 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46265 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46266 # Fail. 46267 FOUND_FREETYPE=no 46268 fi 46269 fi 46270 46271 if test "x$FOUND_FREETYPE" = xyes; then 46272 # Include file found, let's continue the sanity check. 46273 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46274 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46275 46276 # Reset to default value 46277 FREETYPE_BASE_NAME=freetype 46278 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46279 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46280 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46281 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46282 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46283 # for the .6 version explicitly. 46284 FREETYPE_BASE_NAME=freetype.6 46285 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46286 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46287 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46288 else 46289 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46290 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46291 FOUND_FREETYPE=no 46292 fi 46293 else 46294 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46295 # On Windows, we will need both .lib and .dll file. 46296 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46297 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46298 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46299 FOUND_FREETYPE=no 46300 fi 46301 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46302 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46303 # Found lib in isa dir, use that instead. 46304 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46305 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46306 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46307 fi 46308 fi 46309 fi 46310 46311 if test "x$FOUND_FREETYPE" = xyes; then 46312 46313 # Only process if variable expands to non-empty 46314 46315 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46317 46318 # Input might be given as Windows format, start by converting to 46319 # unix format. 46320 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46321 new_path=`$CYGPATH -u "$path"` 46322 46323 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46324 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46325 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46326 # "foo.exe" is OK but "foo" is an error. 46327 # 46328 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46329 # It is also a way to make sure we got the proper file name for the real test later on. 46330 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46331 if test "x$test_shortpath" = x; then 46332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46333 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46334 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46335 fi 46336 46337 # Call helper function which possibly converts this using DOS-style short mode. 46338 # If so, the updated path is stored in $new_path. 46339 46340 input_path="$new_path" 46341 # Check if we need to convert this using DOS-style short mode. If the path 46342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46343 # take no chances and rewrite it. 46344 # Note: m4 eats our [], so we need to use [ and ] instead. 46345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46346 if test "x$has_forbidden_chars" != x; then 46347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46348 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46349 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46350 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46351 # Going to short mode and back again did indeed matter. Since short mode is 46352 # case insensitive, let's make it lowercase to improve readability. 46353 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46354 # Now convert it back to Unix-style (cygpath) 46355 input_path=`$CYGPATH -u "$shortmode_path"` 46356 new_path="$input_path" 46357 fi 46358 fi 46359 46360 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46361 if test "x$test_cygdrive_prefix" = x; then 46362 # As a simple fix, exclude /usr/bin since it's not a real path. 46363 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46364 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46365 # a path prefixed by /cygdrive for fixpath to work. 46366 new_path="$CYGWIN_ROOT_PATH$input_path" 46367 fi 46368 fi 46369 46370 46371 if test "x$path" != "x$new_path"; then 46372 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46374 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46375 fi 46376 46377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46378 46379 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46380 has_colon=`$ECHO $path | $GREP ^.:` 46381 new_path="$path" 46382 if test "x$has_colon" = x; then 46383 # Not in mixed or Windows style, start by that. 46384 new_path=`cmd //c echo $path` 46385 fi 46386 46387 46388 input_path="$new_path" 46389 # Check if we need to convert this using DOS-style short mode. If the path 46390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46391 # take no chances and rewrite it. 46392 # Note: m4 eats our [], so we need to use [ and ] instead. 46393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46394 if test "x$has_forbidden_chars" != x; then 46395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46396 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46397 fi 46398 46399 46400 windows_path="$new_path" 46401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46402 unix_path=`$CYGPATH -u "$windows_path"` 46403 new_path="$unix_path" 46404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46406 new_path="$unix_path" 46407 fi 46408 46409 if test "x$path" != "x$new_path"; then 46410 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46412 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46413 fi 46414 46415 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46416 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46417 46418 else 46419 # We're on a unix platform. Hooray! :) 46420 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46421 has_space=`$ECHO "$path" | $GREP " "` 46422 if test "x$has_space" != x; then 46423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46424 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46425 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46426 fi 46427 46428 # Use eval to expand a potential ~ 46429 eval path="$path" 46430 if test ! -f "$path" && test ! -d "$path"; then 46431 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46432 fi 46433 46434 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46435 fi 46436 fi 46437 46438 46439 # Only process if variable expands to non-empty 46440 46441 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46443 46444 # Input might be given as Windows format, start by converting to 46445 # unix format. 46446 path="$POTENTIAL_FREETYPE_LIB_PATH" 46447 new_path=`$CYGPATH -u "$path"` 46448 46449 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46450 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46451 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46452 # "foo.exe" is OK but "foo" is an error. 46453 # 46454 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46455 # It is also a way to make sure we got the proper file name for the real test later on. 46456 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46457 if test "x$test_shortpath" = x; then 46458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46459 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46460 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46461 fi 46462 46463 # Call helper function which possibly converts this using DOS-style short mode. 46464 # If so, the updated path is stored in $new_path. 46465 46466 input_path="$new_path" 46467 # Check if we need to convert this using DOS-style short mode. If the path 46468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46469 # take no chances and rewrite it. 46470 # Note: m4 eats our [], so we need to use [ and ] instead. 46471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46472 if test "x$has_forbidden_chars" != x; then 46473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46474 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46475 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46476 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46477 # Going to short mode and back again did indeed matter. Since short mode is 46478 # case insensitive, let's make it lowercase to improve readability. 46479 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46480 # Now convert it back to Unix-style (cygpath) 46481 input_path=`$CYGPATH -u "$shortmode_path"` 46482 new_path="$input_path" 46483 fi 46484 fi 46485 46486 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46487 if test "x$test_cygdrive_prefix" = x; then 46488 # As a simple fix, exclude /usr/bin since it's not a real path. 46489 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46490 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46491 # a path prefixed by /cygdrive for fixpath to work. 46492 new_path="$CYGWIN_ROOT_PATH$input_path" 46493 fi 46494 fi 46495 46496 46497 if test "x$path" != "x$new_path"; then 46498 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46500 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46501 fi 46502 46503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46504 46505 path="$POTENTIAL_FREETYPE_LIB_PATH" 46506 has_colon=`$ECHO $path | $GREP ^.:` 46507 new_path="$path" 46508 if test "x$has_colon" = x; then 46509 # Not in mixed or Windows style, start by that. 46510 new_path=`cmd //c echo $path` 46511 fi 46512 46513 46514 input_path="$new_path" 46515 # Check if we need to convert this using DOS-style short mode. If the path 46516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46517 # take no chances and rewrite it. 46518 # Note: m4 eats our [], so we need to use [ and ] instead. 46519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46520 if test "x$has_forbidden_chars" != x; then 46521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46522 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46523 fi 46524 46525 46526 windows_path="$new_path" 46527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46528 unix_path=`$CYGPATH -u "$windows_path"` 46529 new_path="$unix_path" 46530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46532 new_path="$unix_path" 46533 fi 46534 46535 if test "x$path" != "x$new_path"; then 46536 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46537 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46538 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46539 fi 46540 46541 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46542 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46543 46544 else 46545 # We're on a unix platform. Hooray! :) 46546 path="$POTENTIAL_FREETYPE_LIB_PATH" 46547 has_space=`$ECHO "$path" | $GREP " "` 46548 if test "x$has_space" != x; then 46549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46550 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46551 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46552 fi 46553 46554 # Use eval to expand a potential ~ 46555 eval path="$path" 46556 if test ! -f "$path" && test ! -d "$path"; then 46557 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46558 fi 46559 46560 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46561 fi 46562 fi 46563 46564 46565 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46567 $as_echo_n "checking for freetype includes... " >&6; } 46568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46569 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46570 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46572 $as_echo_n "checking for freetype libraries... " >&6; } 46573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46574 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46575 fi 46576 46577 46578 if test "x$FOUND_FREETYPE" != xyes; then 46579 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46580 46581 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46582 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46583 METHOD="well-known location" 46584 46585 # Let's start with an optimistic view of the world :-) 46586 FOUND_FREETYPE=yes 46587 46588 # First look for the canonical freetype main include file ft2build.h. 46589 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46590 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46591 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46592 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46593 # Fail. 46594 FOUND_FREETYPE=no 46595 fi 46596 fi 46597 46598 if test "x$FOUND_FREETYPE" = xyes; then 46599 # Include file found, let's continue the sanity check. 46600 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46601 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46602 46603 # Reset to default value 46604 FREETYPE_BASE_NAME=freetype 46605 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46606 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46607 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46608 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46609 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46610 # for the .6 version explicitly. 46611 FREETYPE_BASE_NAME=freetype.6 46612 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46613 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46614 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46615 else 46616 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46617 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46618 FOUND_FREETYPE=no 46619 fi 46620 else 46621 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46622 # On Windows, we will need both .lib and .dll file. 46623 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46624 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46625 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46626 FOUND_FREETYPE=no 46627 fi 46628 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46629 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46630 # Found lib in isa dir, use that instead. 46631 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46632 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46633 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46634 fi 46635 fi 46636 fi 46637 46638 if test "x$FOUND_FREETYPE" = xyes; then 46639 46640 # Only process if variable expands to non-empty 46641 46642 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46644 46645 # Input might be given as Windows format, start by converting to 46646 # unix format. 46647 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46648 new_path=`$CYGPATH -u "$path"` 46649 46650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46653 # "foo.exe" is OK but "foo" is an error. 46654 # 46655 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46656 # It is also a way to make sure we got the proper file name for the real test later on. 46657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46658 if test "x$test_shortpath" = x; then 46659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46660 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46661 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46662 fi 46663 46664 # Call helper function which possibly converts this using DOS-style short mode. 46665 # If so, the updated path is stored in $new_path. 46666 46667 input_path="$new_path" 46668 # Check if we need to convert this using DOS-style short mode. If the path 46669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46670 # take no chances and rewrite it. 46671 # Note: m4 eats our [], so we need to use [ and ] instead. 46672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46673 if test "x$has_forbidden_chars" != x; then 46674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46678 # Going to short mode and back again did indeed matter. Since short mode is 46679 # case insensitive, let's make it lowercase to improve readability. 46680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46681 # Now convert it back to Unix-style (cygpath) 46682 input_path=`$CYGPATH -u "$shortmode_path"` 46683 new_path="$input_path" 46684 fi 46685 fi 46686 46687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46688 if test "x$test_cygdrive_prefix" = x; then 46689 # As a simple fix, exclude /usr/bin since it's not a real path. 46690 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46692 # a path prefixed by /cygdrive for fixpath to work. 46693 new_path="$CYGWIN_ROOT_PATH$input_path" 46694 fi 46695 fi 46696 46697 46698 if test "x$path" != "x$new_path"; then 46699 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46701 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46702 fi 46703 46704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46705 46706 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46707 has_colon=`$ECHO $path | $GREP ^.:` 46708 new_path="$path" 46709 if test "x$has_colon" = x; then 46710 # Not in mixed or Windows style, start by that. 46711 new_path=`cmd //c echo $path` 46712 fi 46713 46714 46715 input_path="$new_path" 46716 # Check if we need to convert this using DOS-style short mode. If the path 46717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46718 # take no chances and rewrite it. 46719 # Note: m4 eats our [], so we need to use [ and ] instead. 46720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46721 if test "x$has_forbidden_chars" != x; then 46722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46724 fi 46725 46726 46727 windows_path="$new_path" 46728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46729 unix_path=`$CYGPATH -u "$windows_path"` 46730 new_path="$unix_path" 46731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46733 new_path="$unix_path" 46734 fi 46735 46736 if test "x$path" != "x$new_path"; then 46737 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46739 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46740 fi 46741 46742 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46743 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46744 46745 else 46746 # We're on a unix platform. Hooray! :) 46747 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46748 has_space=`$ECHO "$path" | $GREP " "` 46749 if test "x$has_space" != x; then 46750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46751 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46752 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46753 fi 46754 46755 # Use eval to expand a potential ~ 46756 eval path="$path" 46757 if test ! -f "$path" && test ! -d "$path"; then 46758 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46759 fi 46760 46761 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46762 fi 46763 fi 46764 46765 46766 # Only process if variable expands to non-empty 46767 46768 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46770 46771 # Input might be given as Windows format, start by converting to 46772 # unix format. 46773 path="$POTENTIAL_FREETYPE_LIB_PATH" 46774 new_path=`$CYGPATH -u "$path"` 46775 46776 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46777 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46778 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46779 # "foo.exe" is OK but "foo" is an error. 46780 # 46781 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46782 # It is also a way to make sure we got the proper file name for the real test later on. 46783 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46784 if test "x$test_shortpath" = x; then 46785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46786 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46787 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46788 fi 46789 46790 # Call helper function which possibly converts this using DOS-style short mode. 46791 # If so, the updated path is stored in $new_path. 46792 46793 input_path="$new_path" 46794 # Check if we need to convert this using DOS-style short mode. If the path 46795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46796 # take no chances and rewrite it. 46797 # Note: m4 eats our [], so we need to use [ and ] instead. 46798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46799 if test "x$has_forbidden_chars" != x; then 46800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46804 # Going to short mode and back again did indeed matter. Since short mode is 46805 # case insensitive, let's make it lowercase to improve readability. 46806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46807 # Now convert it back to Unix-style (cygpath) 46808 input_path=`$CYGPATH -u "$shortmode_path"` 46809 new_path="$input_path" 46810 fi 46811 fi 46812 46813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46814 if test "x$test_cygdrive_prefix" = x; then 46815 # As a simple fix, exclude /usr/bin since it's not a real path. 46816 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46818 # a path prefixed by /cygdrive for fixpath to work. 46819 new_path="$CYGWIN_ROOT_PATH$input_path" 46820 fi 46821 fi 46822 46823 46824 if test "x$path" != "x$new_path"; then 46825 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46827 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46828 fi 46829 46830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46831 46832 path="$POTENTIAL_FREETYPE_LIB_PATH" 46833 has_colon=`$ECHO $path | $GREP ^.:` 46834 new_path="$path" 46835 if test "x$has_colon" = x; then 46836 # Not in mixed or Windows style, start by that. 46837 new_path=`cmd //c echo $path` 46838 fi 46839 46840 46841 input_path="$new_path" 46842 # Check if we need to convert this using DOS-style short mode. If the path 46843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46844 # take no chances and rewrite it. 46845 # Note: m4 eats our [], so we need to use [ and ] instead. 46846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46847 if test "x$has_forbidden_chars" != x; then 46848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46849 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46850 fi 46851 46852 46853 windows_path="$new_path" 46854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46855 unix_path=`$CYGPATH -u "$windows_path"` 46856 new_path="$unix_path" 46857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46859 new_path="$unix_path" 46860 fi 46861 46862 if test "x$path" != "x$new_path"; then 46863 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46865 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46866 fi 46867 46868 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46869 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46870 46871 else 46872 # We're on a unix platform. Hooray! :) 46873 path="$POTENTIAL_FREETYPE_LIB_PATH" 46874 has_space=`$ECHO "$path" | $GREP " "` 46875 if test "x$has_space" != x; then 46876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46877 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46878 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46879 fi 46880 46881 # Use eval to expand a potential ~ 46882 eval path="$path" 46883 if test ! -f "$path" && test ! -d "$path"; then 46884 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46885 fi 46886 46887 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46888 fi 46889 fi 46890 46891 46892 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46894 $as_echo_n "checking for freetype includes... " >&6; } 46895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46896 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46897 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46899 $as_echo_n "checking for freetype libraries... " >&6; } 46900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46901 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46902 fi 46903 46904 fi 46905 46906 if test "x$FOUND_FREETYPE" != xyes; then 46907 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46908 46909 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46910 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46911 METHOD="well-known location" 46912 46913 # Let's start with an optimistic view of the world :-) 46914 FOUND_FREETYPE=yes 46915 46916 # First look for the canonical freetype main include file ft2build.h. 46917 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46918 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46919 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46920 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46921 # Fail. 46922 FOUND_FREETYPE=no 46923 fi 46924 fi 46925 46926 if test "x$FOUND_FREETYPE" = xyes; then 46927 # Include file found, let's continue the sanity check. 46928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46929 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46930 46931 # Reset to default value 46932 FREETYPE_BASE_NAME=freetype 46933 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46934 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46935 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46936 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46937 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46938 # for the .6 version explicitly. 46939 FREETYPE_BASE_NAME=freetype.6 46940 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46941 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46942 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46943 else 46944 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46945 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46946 FOUND_FREETYPE=no 46947 fi 46948 else 46949 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46950 # On Windows, we will need both .lib and .dll file. 46951 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46952 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46953 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46954 FOUND_FREETYPE=no 46955 fi 46956 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46957 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46958 # Found lib in isa dir, use that instead. 46959 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46961 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46962 fi 46963 fi 46964 fi 46965 46966 if test "x$FOUND_FREETYPE" = xyes; then 46967 46968 # Only process if variable expands to non-empty 46969 46970 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46972 46973 # Input might be given as Windows format, start by converting to 46974 # unix format. 46975 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46976 new_path=`$CYGPATH -u "$path"` 46977 46978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46981 # "foo.exe" is OK but "foo" is an error. 46982 # 46983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46984 # It is also a way to make sure we got the proper file name for the real test later on. 46985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46986 if test "x$test_shortpath" = x; then 46987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46988 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46989 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46990 fi 46991 46992 # Call helper function which possibly converts this using DOS-style short mode. 46993 # If so, the updated path is stored in $new_path. 46994 46995 input_path="$new_path" 46996 # Check if we need to convert this using DOS-style short mode. If the path 46997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46998 # take no chances and rewrite it. 46999 # Note: m4 eats our [], so we need to use [ and ] instead. 47000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47001 if test "x$has_forbidden_chars" != x; then 47002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47006 # Going to short mode and back again did indeed matter. Since short mode is 47007 # case insensitive, let's make it lowercase to improve readability. 47008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47009 # Now convert it back to Unix-style (cygpath) 47010 input_path=`$CYGPATH -u "$shortmode_path"` 47011 new_path="$input_path" 47012 fi 47013 fi 47014 47015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47016 if test "x$test_cygdrive_prefix" = x; then 47017 # As a simple fix, exclude /usr/bin since it's not a real path. 47018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47020 # a path prefixed by /cygdrive for fixpath to work. 47021 new_path="$CYGWIN_ROOT_PATH$input_path" 47022 fi 47023 fi 47024 47025 47026 if test "x$path" != "x$new_path"; then 47027 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47029 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47030 fi 47031 47032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47033 47034 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47035 has_colon=`$ECHO $path | $GREP ^.:` 47036 new_path="$path" 47037 if test "x$has_colon" = x; then 47038 # Not in mixed or Windows style, start by that. 47039 new_path=`cmd //c echo $path` 47040 fi 47041 47042 47043 input_path="$new_path" 47044 # Check if we need to convert this using DOS-style short mode. If the path 47045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47046 # take no chances and rewrite it. 47047 # Note: m4 eats our [], so we need to use [ and ] instead. 47048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47049 if test "x$has_forbidden_chars" != x; then 47050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47052 fi 47053 47054 47055 windows_path="$new_path" 47056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47057 unix_path=`$CYGPATH -u "$windows_path"` 47058 new_path="$unix_path" 47059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47061 new_path="$unix_path" 47062 fi 47063 47064 if test "x$path" != "x$new_path"; then 47065 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47067 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47068 fi 47069 47070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47072 47073 else 47074 # We're on a unix platform. Hooray! :) 47075 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47076 has_space=`$ECHO "$path" | $GREP " "` 47077 if test "x$has_space" != x; then 47078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47079 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47081 fi 47082 47083 # Use eval to expand a potential ~ 47084 eval path="$path" 47085 if test ! -f "$path" && test ! -d "$path"; then 47086 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47087 fi 47088 47089 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47090 fi 47091 fi 47092 47093 47094 # Only process if variable expands to non-empty 47095 47096 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47098 47099 # Input might be given as Windows format, start by converting to 47100 # unix format. 47101 path="$POTENTIAL_FREETYPE_LIB_PATH" 47102 new_path=`$CYGPATH -u "$path"` 47103 47104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47107 # "foo.exe" is OK but "foo" is an error. 47108 # 47109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47110 # It is also a way to make sure we got the proper file name for the real test later on. 47111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47112 if test "x$test_shortpath" = x; then 47113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47114 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47115 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47116 fi 47117 47118 # Call helper function which possibly converts this using DOS-style short mode. 47119 # If so, the updated path is stored in $new_path. 47120 47121 input_path="$new_path" 47122 # Check if we need to convert this using DOS-style short mode. If the path 47123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47124 # take no chances and rewrite it. 47125 # Note: m4 eats our [], so we need to use [ and ] instead. 47126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47127 if test "x$has_forbidden_chars" != x; then 47128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47132 # Going to short mode and back again did indeed matter. Since short mode is 47133 # case insensitive, let's make it lowercase to improve readability. 47134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47135 # Now convert it back to Unix-style (cygpath) 47136 input_path=`$CYGPATH -u "$shortmode_path"` 47137 new_path="$input_path" 47138 fi 47139 fi 47140 47141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47142 if test "x$test_cygdrive_prefix" = x; then 47143 # As a simple fix, exclude /usr/bin since it's not a real path. 47144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47146 # a path prefixed by /cygdrive for fixpath to work. 47147 new_path="$CYGWIN_ROOT_PATH$input_path" 47148 fi 47149 fi 47150 47151 47152 if test "x$path" != "x$new_path"; then 47153 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47155 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47156 fi 47157 47158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47159 47160 path="$POTENTIAL_FREETYPE_LIB_PATH" 47161 has_colon=`$ECHO $path | $GREP ^.:` 47162 new_path="$path" 47163 if test "x$has_colon" = x; then 47164 # Not in mixed or Windows style, start by that. 47165 new_path=`cmd //c echo $path` 47166 fi 47167 47168 47169 input_path="$new_path" 47170 # Check if we need to convert this using DOS-style short mode. If the path 47171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47172 # take no chances and rewrite it. 47173 # Note: m4 eats our [], so we need to use [ and ] instead. 47174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47175 if test "x$has_forbidden_chars" != x; then 47176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47178 fi 47179 47180 47181 windows_path="$new_path" 47182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47183 unix_path=`$CYGPATH -u "$windows_path"` 47184 new_path="$unix_path" 47185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47187 new_path="$unix_path" 47188 fi 47189 47190 if test "x$path" != "x$new_path"; then 47191 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47193 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47194 fi 47195 47196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47198 47199 else 47200 # We're on a unix platform. Hooray! :) 47201 path="$POTENTIAL_FREETYPE_LIB_PATH" 47202 has_space=`$ECHO "$path" | $GREP " "` 47203 if test "x$has_space" != x; then 47204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47205 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47207 fi 47208 47209 # Use eval to expand a potential ~ 47210 eval path="$path" 47211 if test ! -f "$path" && test ! -d "$path"; then 47212 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47213 fi 47214 47215 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47216 fi 47217 fi 47218 47219 47220 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47222 $as_echo_n "checking for freetype includes... " >&6; } 47223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47224 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47225 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47227 $as_echo_n "checking for freetype libraries... " >&6; } 47228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47229 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47230 fi 47231 47232 fi 47233 47234 if test "x$FOUND_FREETYPE" != xyes; then 47235 FREETYPE_BASE_DIR="$SYSROOT/usr" 47236 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47237 47238 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47239 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47240 METHOD="well-known location" 47241 47242 # Let's start with an optimistic view of the world :-) 47243 FOUND_FREETYPE=yes 47244 47245 # First look for the canonical freetype main include file ft2build.h. 47246 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47247 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47248 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47249 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47250 # Fail. 47251 FOUND_FREETYPE=no 47252 fi 47253 fi 47254 47255 if test "x$FOUND_FREETYPE" = xyes; then 47256 # Include file found, let's continue the sanity check. 47257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47258 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47259 47260 # Reset to default value 47261 FREETYPE_BASE_NAME=freetype 47262 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47263 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47264 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47265 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47266 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47267 # for the .6 version explicitly. 47268 FREETYPE_BASE_NAME=freetype.6 47269 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47270 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47271 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47272 else 47273 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47274 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47275 FOUND_FREETYPE=no 47276 fi 47277 else 47278 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47279 # On Windows, we will need both .lib and .dll file. 47280 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47281 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47282 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47283 FOUND_FREETYPE=no 47284 fi 47285 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47286 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47287 # Found lib in isa dir, use that instead. 47288 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47290 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47291 fi 47292 fi 47293 fi 47294 47295 if test "x$FOUND_FREETYPE" = xyes; then 47296 47297 # Only process if variable expands to non-empty 47298 47299 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47301 47302 # Input might be given as Windows format, start by converting to 47303 # unix format. 47304 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47305 new_path=`$CYGPATH -u "$path"` 47306 47307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47310 # "foo.exe" is OK but "foo" is an error. 47311 # 47312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47313 # It is also a way to make sure we got the proper file name for the real test later on. 47314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47315 if test "x$test_shortpath" = x; then 47316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47317 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47318 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47319 fi 47320 47321 # Call helper function which possibly converts this using DOS-style short mode. 47322 # If so, the updated path is stored in $new_path. 47323 47324 input_path="$new_path" 47325 # Check if we need to convert this using DOS-style short mode. If the path 47326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47327 # take no chances and rewrite it. 47328 # Note: m4 eats our [], so we need to use [ and ] instead. 47329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47330 if test "x$has_forbidden_chars" != x; then 47331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47335 # Going to short mode and back again did indeed matter. Since short mode is 47336 # case insensitive, let's make it lowercase to improve readability. 47337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47338 # Now convert it back to Unix-style (cygpath) 47339 input_path=`$CYGPATH -u "$shortmode_path"` 47340 new_path="$input_path" 47341 fi 47342 fi 47343 47344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47345 if test "x$test_cygdrive_prefix" = x; then 47346 # As a simple fix, exclude /usr/bin since it's not a real path. 47347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47349 # a path prefixed by /cygdrive for fixpath to work. 47350 new_path="$CYGWIN_ROOT_PATH$input_path" 47351 fi 47352 fi 47353 47354 47355 if test "x$path" != "x$new_path"; then 47356 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47358 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47359 fi 47360 47361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47362 47363 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47364 has_colon=`$ECHO $path | $GREP ^.:` 47365 new_path="$path" 47366 if test "x$has_colon" = x; then 47367 # Not in mixed or Windows style, start by that. 47368 new_path=`cmd //c echo $path` 47369 fi 47370 47371 47372 input_path="$new_path" 47373 # Check if we need to convert this using DOS-style short mode. If the path 47374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47375 # take no chances and rewrite it. 47376 # Note: m4 eats our [], so we need to use [ and ] instead. 47377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47378 if test "x$has_forbidden_chars" != x; then 47379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47381 fi 47382 47383 47384 windows_path="$new_path" 47385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47386 unix_path=`$CYGPATH -u "$windows_path"` 47387 new_path="$unix_path" 47388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47390 new_path="$unix_path" 47391 fi 47392 47393 if test "x$path" != "x$new_path"; then 47394 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47396 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47397 fi 47398 47399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47401 47402 else 47403 # We're on a unix platform. Hooray! :) 47404 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47405 has_space=`$ECHO "$path" | $GREP " "` 47406 if test "x$has_space" != x; then 47407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47408 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47410 fi 47411 47412 # Use eval to expand a potential ~ 47413 eval path="$path" 47414 if test ! -f "$path" && test ! -d "$path"; then 47415 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47416 fi 47417 47418 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47419 fi 47420 fi 47421 47422 47423 # Only process if variable expands to non-empty 47424 47425 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47427 47428 # Input might be given as Windows format, start by converting to 47429 # unix format. 47430 path="$POTENTIAL_FREETYPE_LIB_PATH" 47431 new_path=`$CYGPATH -u "$path"` 47432 47433 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47434 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47435 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47436 # "foo.exe" is OK but "foo" is an error. 47437 # 47438 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47439 # It is also a way to make sure we got the proper file name for the real test later on. 47440 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47441 if test "x$test_shortpath" = x; then 47442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47443 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47444 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47445 fi 47446 47447 # Call helper function which possibly converts this using DOS-style short mode. 47448 # If so, the updated path is stored in $new_path. 47449 47450 input_path="$new_path" 47451 # Check if we need to convert this using DOS-style short mode. If the path 47452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47453 # take no chances and rewrite it. 47454 # Note: m4 eats our [], so we need to use [ and ] instead. 47455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47456 if test "x$has_forbidden_chars" != x; then 47457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47458 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47459 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47460 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47461 # Going to short mode and back again did indeed matter. Since short mode is 47462 # case insensitive, let's make it lowercase to improve readability. 47463 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47464 # Now convert it back to Unix-style (cygpath) 47465 input_path=`$CYGPATH -u "$shortmode_path"` 47466 new_path="$input_path" 47467 fi 47468 fi 47469 47470 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47471 if test "x$test_cygdrive_prefix" = x; then 47472 # As a simple fix, exclude /usr/bin since it's not a real path. 47473 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47474 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47475 # a path prefixed by /cygdrive for fixpath to work. 47476 new_path="$CYGWIN_ROOT_PATH$input_path" 47477 fi 47478 fi 47479 47480 47481 if test "x$path" != "x$new_path"; then 47482 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47483 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47484 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47485 fi 47486 47487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47488 47489 path="$POTENTIAL_FREETYPE_LIB_PATH" 47490 has_colon=`$ECHO $path | $GREP ^.:` 47491 new_path="$path" 47492 if test "x$has_colon" = x; then 47493 # Not in mixed or Windows style, start by that. 47494 new_path=`cmd //c echo $path` 47495 fi 47496 47497 47498 input_path="$new_path" 47499 # Check if we need to convert this using DOS-style short mode. If the path 47500 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47501 # take no chances and rewrite it. 47502 # Note: m4 eats our [], so we need to use [ and ] instead. 47503 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47504 if test "x$has_forbidden_chars" != x; then 47505 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47506 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47507 fi 47508 47509 47510 windows_path="$new_path" 47511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47512 unix_path=`$CYGPATH -u "$windows_path"` 47513 new_path="$unix_path" 47514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47515 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47516 new_path="$unix_path" 47517 fi 47518 47519 if test "x$path" != "x$new_path"; then 47520 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47521 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47522 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47523 fi 47524 47525 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47526 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47527 47528 else 47529 # We're on a unix platform. Hooray! :) 47530 path="$POTENTIAL_FREETYPE_LIB_PATH" 47531 has_space=`$ECHO "$path" | $GREP " "` 47532 if test "x$has_space" != x; then 47533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47534 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47535 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47536 fi 47537 47538 # Use eval to expand a potential ~ 47539 eval path="$path" 47540 if test ! -f "$path" && test ! -d "$path"; then 47541 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47542 fi 47543 47544 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47545 fi 47546 fi 47547 47548 47549 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47551 $as_echo_n "checking for freetype includes... " >&6; } 47552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47553 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47554 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47556 $as_echo_n "checking for freetype libraries... " >&6; } 47557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47558 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47559 fi 47560 47561 else 47562 47563 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47564 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47565 METHOD="well-known location" 47566 47567 # Let's start with an optimistic view of the world :-) 47568 FOUND_FREETYPE=yes 47569 47570 # First look for the canonical freetype main include file ft2build.h. 47571 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47572 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47573 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47574 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47575 # Fail. 47576 FOUND_FREETYPE=no 47577 fi 47578 fi 47579 47580 if test "x$FOUND_FREETYPE" = xyes; then 47581 # Include file found, let's continue the sanity check. 47582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47583 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47584 47585 # Reset to default value 47586 FREETYPE_BASE_NAME=freetype 47587 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47588 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47589 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47590 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47591 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47592 # for the .6 version explicitly. 47593 FREETYPE_BASE_NAME=freetype.6 47594 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47595 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47596 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47597 else 47598 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47599 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47600 FOUND_FREETYPE=no 47601 fi 47602 else 47603 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47604 # On Windows, we will need both .lib and .dll file. 47605 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47606 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47607 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47608 FOUND_FREETYPE=no 47609 fi 47610 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47611 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47612 # Found lib in isa dir, use that instead. 47613 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47615 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47616 fi 47617 fi 47618 fi 47619 47620 if test "x$FOUND_FREETYPE" = xyes; then 47621 47622 # Only process if variable expands to non-empty 47623 47624 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47626 47627 # Input might be given as Windows format, start by converting to 47628 # unix format. 47629 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47630 new_path=`$CYGPATH -u "$path"` 47631 47632 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47633 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47634 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47635 # "foo.exe" is OK but "foo" is an error. 47636 # 47637 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47638 # It is also a way to make sure we got the proper file name for the real test later on. 47639 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47640 if test "x$test_shortpath" = x; then 47641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47642 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47643 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47644 fi 47645 47646 # Call helper function which possibly converts this using DOS-style short mode. 47647 # If so, the updated path is stored in $new_path. 47648 47649 input_path="$new_path" 47650 # Check if we need to convert this using DOS-style short mode. If the path 47651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47652 # take no chances and rewrite it. 47653 # Note: m4 eats our [], so we need to use [ and ] instead. 47654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47655 if test "x$has_forbidden_chars" != x; then 47656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47657 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47658 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47659 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47660 # Going to short mode and back again did indeed matter. Since short mode is 47661 # case insensitive, let's make it lowercase to improve readability. 47662 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47663 # Now convert it back to Unix-style (cygpath) 47664 input_path=`$CYGPATH -u "$shortmode_path"` 47665 new_path="$input_path" 47666 fi 47667 fi 47668 47669 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47670 if test "x$test_cygdrive_prefix" = x; then 47671 # As a simple fix, exclude /usr/bin since it's not a real path. 47672 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47673 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47674 # a path prefixed by /cygdrive for fixpath to work. 47675 new_path="$CYGWIN_ROOT_PATH$input_path" 47676 fi 47677 fi 47678 47679 47680 if test "x$path" != "x$new_path"; then 47681 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47683 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47684 fi 47685 47686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47687 47688 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47689 has_colon=`$ECHO $path | $GREP ^.:` 47690 new_path="$path" 47691 if test "x$has_colon" = x; then 47692 # Not in mixed or Windows style, start by that. 47693 new_path=`cmd //c echo $path` 47694 fi 47695 47696 47697 input_path="$new_path" 47698 # Check if we need to convert this using DOS-style short mode. If the path 47699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47700 # take no chances and rewrite it. 47701 # Note: m4 eats our [], so we need to use [ and ] instead. 47702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47703 if test "x$has_forbidden_chars" != x; then 47704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47705 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47706 fi 47707 47708 47709 windows_path="$new_path" 47710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47711 unix_path=`$CYGPATH -u "$windows_path"` 47712 new_path="$unix_path" 47713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47715 new_path="$unix_path" 47716 fi 47717 47718 if test "x$path" != "x$new_path"; then 47719 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47721 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47722 fi 47723 47724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47726 47727 else 47728 # We're on a unix platform. Hooray! :) 47729 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47730 has_space=`$ECHO "$path" | $GREP " "` 47731 if test "x$has_space" != x; then 47732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47733 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47734 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47735 fi 47736 47737 # Use eval to expand a potential ~ 47738 eval path="$path" 47739 if test ! -f "$path" && test ! -d "$path"; then 47740 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47741 fi 47742 47743 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47744 fi 47745 fi 47746 47747 47748 # Only process if variable expands to non-empty 47749 47750 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47752 47753 # Input might be given as Windows format, start by converting to 47754 # unix format. 47755 path="$POTENTIAL_FREETYPE_LIB_PATH" 47756 new_path=`$CYGPATH -u "$path"` 47757 47758 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47759 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47760 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47761 # "foo.exe" is OK but "foo" is an error. 47762 # 47763 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47764 # It is also a way to make sure we got the proper file name for the real test later on. 47765 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47766 if test "x$test_shortpath" = x; then 47767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47768 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47769 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47770 fi 47771 47772 # Call helper function which possibly converts this using DOS-style short mode. 47773 # If so, the updated path is stored in $new_path. 47774 47775 input_path="$new_path" 47776 # Check if we need to convert this using DOS-style short mode. If the path 47777 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47778 # take no chances and rewrite it. 47779 # Note: m4 eats our [], so we need to use [ and ] instead. 47780 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47781 if test "x$has_forbidden_chars" != x; then 47782 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47783 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47784 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47785 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47786 # Going to short mode and back again did indeed matter. Since short mode is 47787 # case insensitive, let's make it lowercase to improve readability. 47788 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47789 # Now convert it back to Unix-style (cygpath) 47790 input_path=`$CYGPATH -u "$shortmode_path"` 47791 new_path="$input_path" 47792 fi 47793 fi 47794 47795 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47796 if test "x$test_cygdrive_prefix" = x; then 47797 # As a simple fix, exclude /usr/bin since it's not a real path. 47798 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47799 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47800 # a path prefixed by /cygdrive for fixpath to work. 47801 new_path="$CYGWIN_ROOT_PATH$input_path" 47802 fi 47803 fi 47804 47805 47806 if test "x$path" != "x$new_path"; then 47807 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47809 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47810 fi 47811 47812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47813 47814 path="$POTENTIAL_FREETYPE_LIB_PATH" 47815 has_colon=`$ECHO $path | $GREP ^.:` 47816 new_path="$path" 47817 if test "x$has_colon" = x; then 47818 # Not in mixed or Windows style, start by that. 47819 new_path=`cmd //c echo $path` 47820 fi 47821 47822 47823 input_path="$new_path" 47824 # Check if we need to convert this using DOS-style short mode. If the path 47825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47826 # take no chances and rewrite it. 47827 # Note: m4 eats our [], so we need to use [ and ] instead. 47828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47829 if test "x$has_forbidden_chars" != x; then 47830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47831 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47832 fi 47833 47834 47835 windows_path="$new_path" 47836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47837 unix_path=`$CYGPATH -u "$windows_path"` 47838 new_path="$unix_path" 47839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47841 new_path="$unix_path" 47842 fi 47843 47844 if test "x$path" != "x$new_path"; then 47845 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47847 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47848 fi 47849 47850 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47851 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47852 47853 else 47854 # We're on a unix platform. Hooray! :) 47855 path="$POTENTIAL_FREETYPE_LIB_PATH" 47856 has_space=`$ECHO "$path" | $GREP " "` 47857 if test "x$has_space" != x; then 47858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47859 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47860 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47861 fi 47862 47863 # Use eval to expand a potential ~ 47864 eval path="$path" 47865 if test ! -f "$path" && test ! -d "$path"; then 47866 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47867 fi 47868 47869 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47870 fi 47871 fi 47872 47873 47874 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47876 $as_echo_n "checking for freetype includes... " >&6; } 47877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47878 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47879 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47881 $as_echo_n "checking for freetype libraries... " >&6; } 47882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47883 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47884 fi 47885 47886 if test "x$FOUND_FREETYPE" != xyes; then 47887 47888 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47889 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47890 METHOD="well-known location" 47891 47892 # Let's start with an optimistic view of the world :-) 47893 FOUND_FREETYPE=yes 47894 47895 # First look for the canonical freetype main include file ft2build.h. 47896 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47897 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47898 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47899 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47900 # Fail. 47901 FOUND_FREETYPE=no 47902 fi 47903 fi 47904 47905 if test "x$FOUND_FREETYPE" = xyes; then 47906 # Include file found, let's continue the sanity check. 47907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47908 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47909 47910 # Reset to default value 47911 FREETYPE_BASE_NAME=freetype 47912 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47913 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47914 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47915 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47916 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47917 # for the .6 version explicitly. 47918 FREETYPE_BASE_NAME=freetype.6 47919 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47920 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47921 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47922 else 47923 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47924 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47925 FOUND_FREETYPE=no 47926 fi 47927 else 47928 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47929 # On Windows, we will need both .lib and .dll file. 47930 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47931 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47932 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47933 FOUND_FREETYPE=no 47934 fi 47935 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47936 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47937 # Found lib in isa dir, use that instead. 47938 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47940 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47941 fi 47942 fi 47943 fi 47944 47945 if test "x$FOUND_FREETYPE" = xyes; then 47946 47947 # Only process if variable expands to non-empty 47948 47949 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47951 47952 # Input might be given as Windows format, start by converting to 47953 # unix format. 47954 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47955 new_path=`$CYGPATH -u "$path"` 47956 47957 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47958 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47959 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47960 # "foo.exe" is OK but "foo" is an error. 47961 # 47962 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47963 # It is also a way to make sure we got the proper file name for the real test later on. 47964 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47965 if test "x$test_shortpath" = x; then 47966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47967 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47968 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47969 fi 47970 47971 # Call helper function which possibly converts this using DOS-style short mode. 47972 # If so, the updated path is stored in $new_path. 47973 47974 input_path="$new_path" 47975 # Check if we need to convert this using DOS-style short mode. If the path 47976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47977 # take no chances and rewrite it. 47978 # Note: m4 eats our [], so we need to use [ and ] instead. 47979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47980 if test "x$has_forbidden_chars" != x; then 47981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47982 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47983 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47984 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47985 # Going to short mode and back again did indeed matter. Since short mode is 47986 # case insensitive, let's make it lowercase to improve readability. 47987 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47988 # Now convert it back to Unix-style (cygpath) 47989 input_path=`$CYGPATH -u "$shortmode_path"` 47990 new_path="$input_path" 47991 fi 47992 fi 47993 47994 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47995 if test "x$test_cygdrive_prefix" = x; then 47996 # As a simple fix, exclude /usr/bin since it's not a real path. 47997 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47998 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47999 # a path prefixed by /cygdrive for fixpath to work. 48000 new_path="$CYGWIN_ROOT_PATH$input_path" 48001 fi 48002 fi 48003 48004 48005 if test "x$path" != "x$new_path"; then 48006 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48008 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48009 fi 48010 48011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48012 48013 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48014 has_colon=`$ECHO $path | $GREP ^.:` 48015 new_path="$path" 48016 if test "x$has_colon" = x; then 48017 # Not in mixed or Windows style, start by that. 48018 new_path=`cmd //c echo $path` 48019 fi 48020 48021 48022 input_path="$new_path" 48023 # Check if we need to convert this using DOS-style short mode. If the path 48024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48025 # take no chances and rewrite it. 48026 # Note: m4 eats our [], so we need to use [ and ] instead. 48027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48028 if test "x$has_forbidden_chars" != x; then 48029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48030 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48031 fi 48032 48033 48034 windows_path="$new_path" 48035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48036 unix_path=`$CYGPATH -u "$windows_path"` 48037 new_path="$unix_path" 48038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48040 new_path="$unix_path" 48041 fi 48042 48043 if test "x$path" != "x$new_path"; then 48044 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48046 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48047 fi 48048 48049 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48050 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48051 48052 else 48053 # We're on a unix platform. Hooray! :) 48054 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48055 has_space=`$ECHO "$path" | $GREP " "` 48056 if test "x$has_space" != x; then 48057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48058 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48059 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48060 fi 48061 48062 # Use eval to expand a potential ~ 48063 eval path="$path" 48064 if test ! -f "$path" && test ! -d "$path"; then 48065 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48066 fi 48067 48068 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48069 fi 48070 fi 48071 48072 48073 # Only process if variable expands to non-empty 48074 48075 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48077 48078 # Input might be given as Windows format, start by converting to 48079 # unix format. 48080 path="$POTENTIAL_FREETYPE_LIB_PATH" 48081 new_path=`$CYGPATH -u "$path"` 48082 48083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48086 # "foo.exe" is OK but "foo" is an error. 48087 # 48088 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48089 # It is also a way to make sure we got the proper file name for the real test later on. 48090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48091 if test "x$test_shortpath" = x; then 48092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48093 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48094 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48095 fi 48096 48097 # Call helper function which possibly converts this using DOS-style short mode. 48098 # If so, the updated path is stored in $new_path. 48099 48100 input_path="$new_path" 48101 # Check if we need to convert this using DOS-style short mode. If the path 48102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48103 # take no chances and rewrite it. 48104 # Note: m4 eats our [], so we need to use [ and ] instead. 48105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48106 if test "x$has_forbidden_chars" != x; then 48107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48111 # Going to short mode and back again did indeed matter. Since short mode is 48112 # case insensitive, let's make it lowercase to improve readability. 48113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48114 # Now convert it back to Unix-style (cygpath) 48115 input_path=`$CYGPATH -u "$shortmode_path"` 48116 new_path="$input_path" 48117 fi 48118 fi 48119 48120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48121 if test "x$test_cygdrive_prefix" = x; then 48122 # As a simple fix, exclude /usr/bin since it's not a real path. 48123 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48125 # a path prefixed by /cygdrive for fixpath to work. 48126 new_path="$CYGWIN_ROOT_PATH$input_path" 48127 fi 48128 fi 48129 48130 48131 if test "x$path" != "x$new_path"; then 48132 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48134 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48135 fi 48136 48137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48138 48139 path="$POTENTIAL_FREETYPE_LIB_PATH" 48140 has_colon=`$ECHO $path | $GREP ^.:` 48141 new_path="$path" 48142 if test "x$has_colon" = x; then 48143 # Not in mixed or Windows style, start by that. 48144 new_path=`cmd //c echo $path` 48145 fi 48146 48147 48148 input_path="$new_path" 48149 # Check if we need to convert this using DOS-style short mode. If the path 48150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48151 # take no chances and rewrite it. 48152 # Note: m4 eats our [], so we need to use [ and ] instead. 48153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48154 if test "x$has_forbidden_chars" != x; then 48155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48157 fi 48158 48159 48160 windows_path="$new_path" 48161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48162 unix_path=`$CYGPATH -u "$windows_path"` 48163 new_path="$unix_path" 48164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48166 new_path="$unix_path" 48167 fi 48168 48169 if test "x$path" != "x$new_path"; then 48170 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48172 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48173 fi 48174 48175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48177 48178 else 48179 # We're on a unix platform. Hooray! :) 48180 path="$POTENTIAL_FREETYPE_LIB_PATH" 48181 has_space=`$ECHO "$path" | $GREP " "` 48182 if test "x$has_space" != x; then 48183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48184 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48185 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48186 fi 48187 48188 # Use eval to expand a potential ~ 48189 eval path="$path" 48190 if test ! -f "$path" && test ! -d "$path"; then 48191 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48192 fi 48193 48194 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48195 fi 48196 fi 48197 48198 48199 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48201 $as_echo_n "checking for freetype includes... " >&6; } 48202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48203 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48204 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48206 $as_echo_n "checking for freetype libraries... " >&6; } 48207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48208 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48209 fi 48210 48211 fi 48212 fi 48213 fi 48214 fi 48215 fi # end check in well-known locations 48216 48217 if test "x$FOUND_FREETYPE" != xyes; then 48218 48219 # Print a helpful message on how to acquire the necessary build dependency. 48220 # freetype is the help tag: freetype, cups, pulse, alsa etc 48221 MISSING_DEPENDENCY=freetype 48222 48223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48224 cygwin_help $MISSING_DEPENDENCY 48225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48226 msys_help $MISSING_DEPENDENCY 48227 else 48228 PKGHANDLER_COMMAND= 48229 48230 case $PKGHANDLER in 48231 apt-get) 48232 apt_help $MISSING_DEPENDENCY ;; 48233 yum) 48234 yum_help $MISSING_DEPENDENCY ;; 48235 port) 48236 port_help $MISSING_DEPENDENCY ;; 48237 pkgutil) 48238 pkgutil_help $MISSING_DEPENDENCY ;; 48239 pkgadd) 48240 pkgadd_help $MISSING_DEPENDENCY ;; 48241 esac 48242 48243 if test "x$PKGHANDLER_COMMAND" != x; then 48244 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48245 fi 48246 fi 48247 48248 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48249 fi 48250 fi # end user specified settings 48251 48252 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48253 if test "x$FREETYPE_CFLAGS" = x; then 48254 48255 # Only process if variable expands to non-empty 48256 48257 if test "x$FREETYPE_INCLUDE_PATH" != x; then 48258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48259 48260 # Input might be given as Windows format, start by converting to 48261 # unix format. 48262 path="$FREETYPE_INCLUDE_PATH" 48263 new_path=`$CYGPATH -u "$path"` 48264 48265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48268 # "foo.exe" is OK but "foo" is an error. 48269 # 48270 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48271 # It is also a way to make sure we got the proper file name for the real test later on. 48272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48273 if test "x$test_shortpath" = x; then 48274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48275 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48276 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48277 fi 48278 48279 # Call helper function which possibly converts this using DOS-style short mode. 48280 # If so, the updated path is stored in $new_path. 48281 48282 input_path="$new_path" 48283 # Check if we need to convert this using DOS-style short mode. If the path 48284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48285 # take no chances and rewrite it. 48286 # Note: m4 eats our [], so we need to use [ and ] instead. 48287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48288 if test "x$has_forbidden_chars" != x; then 48289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48293 # Going to short mode and back again did indeed matter. Since short mode is 48294 # case insensitive, let's make it lowercase to improve readability. 48295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48296 # Now convert it back to Unix-style (cygpath) 48297 input_path=`$CYGPATH -u "$shortmode_path"` 48298 new_path="$input_path" 48299 fi 48300 fi 48301 48302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48303 if test "x$test_cygdrive_prefix" = x; then 48304 # As a simple fix, exclude /usr/bin since it's not a real path. 48305 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48307 # a path prefixed by /cygdrive for fixpath to work. 48308 new_path="$CYGWIN_ROOT_PATH$input_path" 48309 fi 48310 fi 48311 48312 48313 if test "x$path" != "x$new_path"; then 48314 FREETYPE_INCLUDE_PATH="$new_path" 48315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48316 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48317 fi 48318 48319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48320 48321 path="$FREETYPE_INCLUDE_PATH" 48322 has_colon=`$ECHO $path | $GREP ^.:` 48323 new_path="$path" 48324 if test "x$has_colon" = x; then 48325 # Not in mixed or Windows style, start by that. 48326 new_path=`cmd //c echo $path` 48327 fi 48328 48329 48330 input_path="$new_path" 48331 # Check if we need to convert this using DOS-style short mode. If the path 48332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48333 # take no chances and rewrite it. 48334 # Note: m4 eats our [], so we need to use [ and ] instead. 48335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48336 if test "x$has_forbidden_chars" != x; then 48337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48339 fi 48340 48341 48342 windows_path="$new_path" 48343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48344 unix_path=`$CYGPATH -u "$windows_path"` 48345 new_path="$unix_path" 48346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48348 new_path="$unix_path" 48349 fi 48350 48351 if test "x$path" != "x$new_path"; then 48352 FREETYPE_INCLUDE_PATH="$new_path" 48353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48354 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48355 fi 48356 48357 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48358 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48359 48360 else 48361 # We're on a unix platform. Hooray! :) 48362 path="$FREETYPE_INCLUDE_PATH" 48363 has_space=`$ECHO "$path" | $GREP " "` 48364 if test "x$has_space" != x; then 48365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48366 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48367 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48368 fi 48369 48370 # Use eval to expand a potential ~ 48371 eval path="$path" 48372 if test ! -f "$path" && test ! -d "$path"; then 48373 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48374 fi 48375 48376 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48377 fi 48378 fi 48379 48380 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48381 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48382 else 48383 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48384 fi 48385 fi 48386 48387 if test "x$FREETYPE_LIBS" = x; then 48388 48389 # Only process if variable expands to non-empty 48390 48391 if test "x$FREETYPE_LIB_PATH" != x; then 48392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48393 48394 # Input might be given as Windows format, start by converting to 48395 # unix format. 48396 path="$FREETYPE_LIB_PATH" 48397 new_path=`$CYGPATH -u "$path"` 48398 48399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48402 # "foo.exe" is OK but "foo" is an error. 48403 # 48404 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48405 # It is also a way to make sure we got the proper file name for the real test later on. 48406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48407 if test "x$test_shortpath" = x; then 48408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48409 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48410 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48411 fi 48412 48413 # Call helper function which possibly converts this using DOS-style short mode. 48414 # If so, the updated path is stored in $new_path. 48415 48416 input_path="$new_path" 48417 # Check if we need to convert this using DOS-style short mode. If the path 48418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48419 # take no chances and rewrite it. 48420 # Note: m4 eats our [], so we need to use [ and ] instead. 48421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48422 if test "x$has_forbidden_chars" != x; then 48423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48424 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48425 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48426 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48427 # Going to short mode and back again did indeed matter. Since short mode is 48428 # case insensitive, let's make it lowercase to improve readability. 48429 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48430 # Now convert it back to Unix-style (cygpath) 48431 input_path=`$CYGPATH -u "$shortmode_path"` 48432 new_path="$input_path" 48433 fi 48434 fi 48435 48436 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48437 if test "x$test_cygdrive_prefix" = x; then 48438 # As a simple fix, exclude /usr/bin since it's not a real path. 48439 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48440 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48441 # a path prefixed by /cygdrive for fixpath to work. 48442 new_path="$CYGWIN_ROOT_PATH$input_path" 48443 fi 48444 fi 48445 48446 48447 if test "x$path" != "x$new_path"; then 48448 FREETYPE_LIB_PATH="$new_path" 48449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48450 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48451 fi 48452 48453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48454 48455 path="$FREETYPE_LIB_PATH" 48456 has_colon=`$ECHO $path | $GREP ^.:` 48457 new_path="$path" 48458 if test "x$has_colon" = x; then 48459 # Not in mixed or Windows style, start by that. 48460 new_path=`cmd //c echo $path` 48461 fi 48462 48463 48464 input_path="$new_path" 48465 # Check if we need to convert this using DOS-style short mode. If the path 48466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48467 # take no chances and rewrite it. 48468 # Note: m4 eats our [], so we need to use [ and ] instead. 48469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48470 if test "x$has_forbidden_chars" != x; then 48471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48472 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48473 fi 48474 48475 48476 windows_path="$new_path" 48477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48478 unix_path=`$CYGPATH -u "$windows_path"` 48479 new_path="$unix_path" 48480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48482 new_path="$unix_path" 48483 fi 48484 48485 if test "x$path" != "x$new_path"; then 48486 FREETYPE_LIB_PATH="$new_path" 48487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48488 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48489 fi 48490 48491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48493 48494 else 48495 # We're on a unix platform. Hooray! :) 48496 path="$FREETYPE_LIB_PATH" 48497 has_space=`$ECHO "$path" | $GREP " "` 48498 if test "x$has_space" != x; then 48499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48500 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48501 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48502 fi 48503 48504 # Use eval to expand a potential ~ 48505 eval path="$path" 48506 if test ! -f "$path" && test ! -d "$path"; then 48507 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48508 fi 48509 48510 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48511 fi 48512 fi 48513 48514 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48515 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48516 else 48517 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48518 fi 48519 fi 48520 48521 # Try to compile it 48522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48523 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48524 ac_ext=cpp 48525 ac_cpp='$CXXCPP $CPPFLAGS' 48526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48529 48530 PREV_CXXCFLAGS="$CXXFLAGS" 48531 PREV_LIBS="$LIBS" 48532 PREV_CXX="$CXX" 48533 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48534 LIBS="$LIBS $FREETYPE_LIBS" 48535 CXX="$FIXPATH $CXX" 48536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48537 /* end confdefs.h. */ 48538 48539 #include<ft2build.h> 48540 #include FT_FREETYPE_H 48541 int main () { 48542 FT_Init_FreeType(NULL); 48543 return 0; 48544 } 48545 48546 _ACEOF 48547 if ac_fn_cxx_try_link "$LINENO"; then : 48548 48549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48550 $as_echo "yes" >&6; } 48551 48552 else 48553 48554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48555 $as_echo "no" >&6; } 48556 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48557 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48558 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48559 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48560 48561 48562 # Print a helpful message on how to acquire the necessary build dependency. 48563 # freetype is the help tag: freetype, cups, pulse, alsa etc 48564 MISSING_DEPENDENCY=freetype 48565 48566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48567 cygwin_help $MISSING_DEPENDENCY 48568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48569 msys_help $MISSING_DEPENDENCY 48570 else 48571 PKGHANDLER_COMMAND= 48572 48573 case $PKGHANDLER in 48574 apt-get) 48575 apt_help $MISSING_DEPENDENCY ;; 48576 yum) 48577 yum_help $MISSING_DEPENDENCY ;; 48578 port) 48579 port_help $MISSING_DEPENDENCY ;; 48580 pkgutil) 48581 pkgutil_help $MISSING_DEPENDENCY ;; 48582 pkgadd) 48583 pkgadd_help $MISSING_DEPENDENCY ;; 48584 esac 48585 48586 if test "x$PKGHANDLER_COMMAND" != x; then 48587 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48588 fi 48589 fi 48590 48591 48592 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48593 48594 48595 fi 48596 rm -f core conftest.err conftest.$ac_objext \ 48597 conftest$ac_exeext conftest.$ac_ext 48598 CXXCFLAGS="$PREV_CXXFLAGS" 48599 LIBS="$PREV_LIBS" 48600 CXX="$PREV_CXX" 48601 ac_ext=cpp 48602 ac_cpp='$CXXCPP $CPPFLAGS' 48603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48606 48607 48608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48609 $as_echo_n "checking if we should bundle freetype... " >&6; } 48610 if test "x$BUNDLE_FREETYPE" = xyes; then 48611 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48612 fi 48613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48614 $as_echo "$BUNDLE_FREETYPE" >&6; } 48615 48616 fi # end freetype needed 48617 48618 48619 48620 48621 48622 48623 48624 ############################################################################### 48625 # 48626 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48627 # 48628 48629 # Check whether --with-alsa was given. 48630 if test "${with_alsa+set}" = set; then : 48631 withval=$with_alsa; 48632 fi 48633 48634 48635 # Check whether --with-alsa-include was given. 48636 if test "${with_alsa_include+set}" = set; then : 48637 withval=$with_alsa_include; 48638 fi 48639 48640 48641 # Check whether --with-alsa-lib was given. 48642 if test "${with_alsa_lib+set}" = set; then : 48643 withval=$with_alsa_lib; 48644 fi 48645 48646 48647 if test "x$ALSA_NOT_NEEDED" = xyes; then 48648 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48650 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48651 fi 48652 ALSA_CFLAGS= 48653 ALSA_LIBS= 48654 else 48655 ALSA_FOUND=no 48656 48657 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48658 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48659 fi 48660 48661 if test "x${with_alsa}" != x; then 48662 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48663 ALSA_CFLAGS="-I${with_alsa}/include" 48664 ALSA_FOUND=yes 48665 fi 48666 if test "x${with_alsa_include}" != x; then 48667 ALSA_CFLAGS="-I${with_alsa_include}" 48668 ALSA_FOUND=yes 48669 fi 48670 if test "x${with_alsa_lib}" != x; then 48671 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48672 ALSA_FOUND=yes 48673 fi 48674 if test "x$ALSA_FOUND" = xno; then 48675 48676 48677 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48678 # Source the builddeps file again, to make sure it uses the latest variables! 48679 . $builddepsfile 48680 # Look for a target and build machine specific resource! 48681 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48682 if test "x$resource" = x; then 48683 # Ok, lets instead look for a target specific resource 48684 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48685 fi 48686 if test "x$resource" = x; then 48687 # Ok, lets instead look for a build specific resource 48688 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48689 fi 48690 if test "x$resource" = x; then 48691 # Ok, lets instead look for a generic resource 48692 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48693 resource=${builddep_alsa} 48694 fi 48695 if test "x$resource" != x; then 48696 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48697 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48698 # If the resource in the builddeps.conf file is an existing directory, 48699 # for example /java/linux/cups 48700 if test -d ${resource}; then 48701 depdir=${resource} 48702 else 48703 48704 # alsa is for example mymodule 48705 # $resource is for example libs/general/libmymod_1_2_3.zip 48706 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48707 # $with_builddeps_dir is for example /localhome/builddeps 48708 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48709 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48710 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48711 filename=`basename $resource` 48712 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48713 filebase=${filename%%.*} 48714 extension=${filename#*.} 48715 installdir=$with_builddeps_dir/$filebase 48716 if test ! -f $installdir/$filename.unpacked; then 48717 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48718 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48719 if test ! -d $installdir; then 48720 mkdir -p $installdir 48721 fi 48722 if test ! -d $installdir; then 48723 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48724 fi 48725 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48726 touch $tmpfile 48727 if test ! -f $tmpfile; then 48728 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48729 fi 48730 48731 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48732 # $tmpfile is the local file name for the downloaded file. 48733 VALID_TOOL=no 48734 if test "x$BDEPS_FTP" = xwget; then 48735 VALID_TOOL=yes 48736 wget -O $tmpfile $with_builddeps_server/$resource 48737 fi 48738 if test "x$BDEPS_FTP" = xlftp; then 48739 VALID_TOOL=yes 48740 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48741 fi 48742 if test "x$BDEPS_FTP" = xftp; then 48743 VALID_TOOL=yes 48744 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48745 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48746 FTPUSERPWD=${FTPSERVER%%@*} 48747 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48748 FTPUSER=${userpwd%%:*} 48749 FTPPWD=${userpwd#*@} 48750 FTPSERVER=${FTPSERVER#*@} 48751 else 48752 FTPUSER=ftp 48753 FTPPWD=ftp 48754 fi 48755 # the "pass" command does not work on some 48756 # ftp clients (read ftp.exe) but if it works, 48757 # passive mode is better! 48758 ( \ 48759 echo "user $FTPUSER $FTPPWD" ; \ 48760 echo "pass" ; \ 48761 echo "bin" ; \ 48762 echo "get $FTPPATH $tmpfile" ; \ 48763 ) | ftp -in $FTPSERVER 48764 fi 48765 if test "x$VALID_TOOL" != xyes; then 48766 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48767 fi 48768 48769 mv $tmpfile $installdir/$filename 48770 if test ! -s $installdir/$filename; then 48771 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48772 fi 48773 case "$extension" in 48774 zip) echo "Unzipping $installdir/$filename..." 48775 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48776 ;; 48777 tar.gz) echo "Untaring $installdir/$filename..." 48778 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48779 ;; 48780 tgz) echo "Untaring $installdir/$filename..." 48781 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48782 ;; 48783 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48784 ;; 48785 esac 48786 fi 48787 if test -f $installdir/$filename.unpacked; then 48788 depdir=$installdir 48789 fi 48790 48791 fi 48792 # Source the builddeps file again, because in the previous command, the depdir 48793 # was updated to point at the current build dependency install directory. 48794 . $builddepsfile 48795 # Now extract variables from the builddeps.conf files. 48796 theroot=${builddep_alsa_ROOT} 48797 thecflags=${builddep_alsa_CFLAGS} 48798 thelibs=${builddep_alsa_LIBS} 48799 if test "x$depdir" = x; then 48800 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48801 fi 48802 ALSA=$depdir 48803 if test "x$theroot" != x; then 48804 ALSA="$theroot" 48805 fi 48806 if test "x$thecflags" != x; then 48807 ALSA_CFLAGS="$thecflags" 48808 fi 48809 if test "x$thelibs" != x; then 48810 ALSA_LIBS="$thelibs" 48811 fi 48812 ALSA_FOUND=yes 48813 else ALSA_FOUND=no 48814 48815 fi 48816 else ALSA_FOUND=no 48817 48818 fi 48819 48820 fi 48821 # Do not try pkg-config if we have a sysroot set. 48822 if test "x$SYSROOT" = x; then 48823 if test "x$ALSA_FOUND" = xno; then 48824 48825 pkg_failed=no 48826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48827 $as_echo_n "checking for ALSA... " >&6; } 48828 48829 if test -n "$ALSA_CFLAGS"; then 48830 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48831 elif test -n "$PKG_CONFIG"; then 48832 if test -n "$PKG_CONFIG" && \ 48833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48834 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48835 ac_status=$? 48836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48837 test $ac_status = 0; }; then 48838 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48839 else 48840 pkg_failed=yes 48841 fi 48842 else 48843 pkg_failed=untried 48844 fi 48845 if test -n "$ALSA_LIBS"; then 48846 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48847 elif test -n "$PKG_CONFIG"; then 48848 if test -n "$PKG_CONFIG" && \ 48849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48850 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48851 ac_status=$? 48852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48853 test $ac_status = 0; }; then 48854 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48855 else 48856 pkg_failed=yes 48857 fi 48858 else 48859 pkg_failed=untried 48860 fi 48861 48862 48863 48864 if test $pkg_failed = yes; then 48865 48866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48867 _pkg_short_errors_supported=yes 48868 else 48869 _pkg_short_errors_supported=no 48870 fi 48871 if test $_pkg_short_errors_supported = yes; then 48872 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48873 else 48874 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48875 fi 48876 # Put the nasty error message in config.log where it belongs 48877 echo "$ALSA_PKG_ERRORS" >&5 48878 48879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48880 $as_echo "no" >&6; } 48881 ALSA_FOUND=no 48882 elif test $pkg_failed = untried; then 48883 ALSA_FOUND=no 48884 else 48885 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48886 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48888 $as_echo "yes" >&6; } 48889 ALSA_FOUND=yes 48890 fi 48891 fi 48892 fi 48893 if test "x$ALSA_FOUND" = xno; then 48894 for ac_header in alsa/asoundlib.h 48895 do : 48896 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48897 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48898 cat >>confdefs.h <<_ACEOF 48899 #define HAVE_ALSA_ASOUNDLIB_H 1 48900 _ACEOF 48901 48902 ALSA_FOUND=yes 48903 ALSA_CFLAGS=-Iignoreme 48904 ALSA_LIBS=-lasound 48905 DEFAULT_ALSA=yes 48906 48907 else 48908 ALSA_FOUND=no 48909 fi 48910 48911 done 48912 48913 fi 48914 if test "x$ALSA_FOUND" = xno; then 48915 48916 # Print a helpful message on how to acquire the necessary build dependency. 48917 # alsa is the help tag: freetype, cups, pulse, alsa etc 48918 MISSING_DEPENDENCY=alsa 48919 48920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48921 cygwin_help $MISSING_DEPENDENCY 48922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48923 msys_help $MISSING_DEPENDENCY 48924 else 48925 PKGHANDLER_COMMAND= 48926 48927 case $PKGHANDLER in 48928 apt-get) 48929 apt_help $MISSING_DEPENDENCY ;; 48930 yum) 48931 yum_help $MISSING_DEPENDENCY ;; 48932 port) 48933 port_help $MISSING_DEPENDENCY ;; 48934 pkgutil) 48935 pkgutil_help $MISSING_DEPENDENCY ;; 48936 pkgadd) 48937 pkgadd_help $MISSING_DEPENDENCY ;; 48938 esac 48939 48940 if test "x$PKGHANDLER_COMMAND" != x; then 48941 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48942 fi 48943 fi 48944 48945 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48946 fi 48947 fi 48948 48949 48950 48951 48952 48953 48954 ############################################################################### 48955 # 48956 # Check for the jpeg library 48957 # 48958 48959 48960 # Check whether --with-libjpeg was given. 48961 if test "${with_libjpeg+set}" = set; then : 48962 withval=$with_libjpeg; 48963 fi 48964 48965 48966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48967 $as_echo_n "checking for which libjpeg to use... " >&6; } 48968 48969 # default is bundled 48970 DEFAULT_LIBJPEG=bundled 48971 48972 # 48973 # if user didn't specify, use DEFAULT_LIBJPEG 48974 # 48975 if test "x${with_libjpeg}" = "x"; then 48976 with_libjpeg=${DEFAULT_LIBJPEG} 48977 fi 48978 48979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48980 $as_echo "${with_libjpeg}" >&6; } 48981 48982 if test "x${with_libjpeg}" = "xbundled"; then 48983 USE_EXTERNAL_LIBJPEG=false 48984 elif test "x${with_libjpeg}" = "xsystem"; then 48985 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48986 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48987 48988 else 48989 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48990 fi 48991 48992 48993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48994 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48995 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48996 $as_echo_n "(cached) " >&6 48997 else 48998 ac_check_lib_save_LIBS=$LIBS 48999 LIBS="-ljpeg $LIBS" 49000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49001 /* end confdefs.h. */ 49002 49003 /* Override any GCC internal prototype to avoid an error. 49004 Use char because int might match the return type of a GCC 49005 builtin and then its argument prototype would still apply. */ 49006 #ifdef __cplusplus 49007 extern "C" 49008 #endif 49009 char jpeg_CreateDecompress (); 49010 int 49011 main () 49012 { 49013 return jpeg_CreateDecompress (); 49014 ; 49015 return 0; 49016 } 49017 _ACEOF 49018 if ac_fn_cxx_try_link "$LINENO"; then : 49019 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 49020 else 49021 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 49022 fi 49023 rm -f core conftest.err conftest.$ac_objext \ 49024 conftest$ac_exeext conftest.$ac_ext 49025 LIBS=$ac_check_lib_save_LIBS 49026 fi 49027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 49028 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 49029 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 49030 cat >>confdefs.h <<_ACEOF 49031 #define HAVE_LIBJPEG 1 49032 _ACEOF 49033 49034 LIBS="-ljpeg $LIBS" 49035 49036 else 49037 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 49038 fi 49039 49040 49041 USE_EXTERNAL_LIBJPEG=true 49042 else 49043 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 49044 fi 49045 49046 49047 49048 ############################################################################### 49049 # 49050 # Check for the gif library 49051 # 49052 49053 49054 # Check whether --with-giflib was given. 49055 if test "${with_giflib+set}" = set; then : 49056 withval=$with_giflib; 49057 fi 49058 49059 49060 49061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 49062 $as_echo_n "checking for which giflib to use... " >&6; } 49063 49064 # default is bundled 49065 DEFAULT_GIFLIB=bundled 49066 49067 # 49068 # if user didn't specify, use DEFAULT_GIFLIB 49069 # 49070 if test "x${with_giflib}" = "x"; then 49071 with_giflib=${DEFAULT_GIFLIB} 49072 fi 49073 49074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 49075 $as_echo "${with_giflib}" >&6; } 49076 49077 if test "x${with_giflib}" = "xbundled"; then 49078 USE_EXTERNAL_LIBGIF=false 49079 elif test "x${with_giflib}" = "xsystem"; then 49080 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 49081 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 49082 49083 else 49084 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 49085 fi 49086 49087 49088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 49089 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 49090 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 49091 $as_echo_n "(cached) " >&6 49092 else 49093 ac_check_lib_save_LIBS=$LIBS 49094 LIBS="-lgif $LIBS" 49095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49096 /* end confdefs.h. */ 49097 49098 /* Override any GCC internal prototype to avoid an error. 49099 Use char because int might match the return type of a GCC 49100 builtin and then its argument prototype would still apply. */ 49101 #ifdef __cplusplus 49102 extern "C" 49103 #endif 49104 char DGifGetCode (); 49105 int 49106 main () 49107 { 49108 return DGifGetCode (); 49109 ; 49110 return 0; 49111 } 49112 _ACEOF 49113 if ac_fn_cxx_try_link "$LINENO"; then : 49114 ac_cv_lib_gif_DGifGetCode=yes 49115 else 49116 ac_cv_lib_gif_DGifGetCode=no 49117 fi 49118 rm -f core conftest.err conftest.$ac_objext \ 49119 conftest$ac_exeext conftest.$ac_ext 49120 LIBS=$ac_check_lib_save_LIBS 49121 fi 49122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 49123 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 49124 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 49125 cat >>confdefs.h <<_ACEOF 49126 #define HAVE_LIBGIF 1 49127 _ACEOF 49128 49129 LIBS="-lgif $LIBS" 49130 49131 else 49132 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49133 fi 49134 49135 49136 USE_EXTERNAL_LIBGIF=true 49137 else 49138 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49139 fi 49140 49141 49142 ############################################################################### 49143 # 49144 # Check for the lcms2 library 49145 # 49146 49147 49148 # Check whether --with-lcms was given. 49149 if test "${with_lcms+set}" = set; then : 49150 withval=$with_lcms; 49151 fi 49152 49153 49154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49155 $as_echo_n "checking for which lcms to use... " >&6; } 49156 49157 DEFAULT_LCMS=bundled 49158 49159 # 49160 # If user didn't specify, use DEFAULT_LCMS 49161 # 49162 if test "x${with_lcms}" = "x"; then 49163 with_lcms=${DEFAULT_LCMS} 49164 fi 49165 49166 if test "x${with_lcms}" = "xbundled"; then 49167 USE_EXTERNAL_LCMS=false 49168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49169 $as_echo "bundled" >&6; } 49170 elif test "x${with_lcms}" = "xsystem"; then 49171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49172 $as_echo "system" >&6; } 49173 49174 pkg_failed=no 49175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49176 $as_echo_n "checking for LCMS... " >&6; } 49177 49178 if test -n "$LCMS_CFLAGS"; then 49179 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49180 elif test -n "$PKG_CONFIG"; then 49181 if test -n "$PKG_CONFIG" && \ 49182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49183 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49184 ac_status=$? 49185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49186 test $ac_status = 0; }; then 49187 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49188 else 49189 pkg_failed=yes 49190 fi 49191 else 49192 pkg_failed=untried 49193 fi 49194 if test -n "$LCMS_LIBS"; then 49195 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49196 elif test -n "$PKG_CONFIG"; then 49197 if test -n "$PKG_CONFIG" && \ 49198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49199 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49200 ac_status=$? 49201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49202 test $ac_status = 0; }; then 49203 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49204 else 49205 pkg_failed=yes 49206 fi 49207 else 49208 pkg_failed=untried 49209 fi 49210 49211 49212 49213 if test $pkg_failed = yes; then 49214 49215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49216 _pkg_short_errors_supported=yes 49217 else 49218 _pkg_short_errors_supported=no 49219 fi 49220 if test $_pkg_short_errors_supported = yes; then 49221 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49222 else 49223 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49224 fi 49225 # Put the nasty error message in config.log where it belongs 49226 echo "$LCMS_PKG_ERRORS" >&5 49227 49228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49229 $as_echo "no" >&6; } 49230 LCMS_FOUND=no 49231 elif test $pkg_failed = untried; then 49232 LCMS_FOUND=no 49233 else 49234 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49235 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49237 $as_echo "yes" >&6; } 49238 LCMS_FOUND=yes 49239 fi 49240 if test "x${LCMS_FOUND}" = "xyes"; then 49241 USE_EXTERNAL_LCMS=true 49242 else 49243 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49244 fi 49245 else 49246 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49247 fi 49248 49249 49250 49251 ############################################################################### 49252 # 49253 # Check for the png library 49254 # 49255 49256 49257 # Check whether --with-libpng was given. 49258 if test "${with_libpng+set}" = set; then : 49259 withval=$with_libpng; 49260 fi 49261 49262 49263 49264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49265 $as_echo_n "checking for which libpng to use... " >&6; } 49266 49267 # default is bundled 49268 DEFAULT_LIBPNG=bundled 49269 49270 # 49271 # if user didn't specify, use DEFAULT_LIBPNG 49272 # 49273 if test "x${with_libpng}" = "x"; then 49274 with_libpng=${DEFAULT_LIBPNG} 49275 fi 49276 49277 if test "x${with_libpng}" = "xbundled"; then 49278 USE_EXTERNAL_LIBPNG=false 49279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49280 $as_echo "bundled" >&6; } 49281 elif test "x${with_libpng}" = "xsystem"; then 49282 49283 pkg_failed=no 49284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49285 $as_echo_n "checking for PNG... " >&6; } 49286 49287 if test -n "$PNG_CFLAGS"; then 49288 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49289 elif test -n "$PKG_CONFIG"; then 49290 if test -n "$PKG_CONFIG" && \ 49291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49292 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49293 ac_status=$? 49294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49295 test $ac_status = 0; }; then 49296 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49297 else 49298 pkg_failed=yes 49299 fi 49300 else 49301 pkg_failed=untried 49302 fi 49303 if test -n "$PNG_LIBS"; then 49304 pkg_cv_PNG_LIBS="$PNG_LIBS" 49305 elif test -n "$PKG_CONFIG"; then 49306 if test -n "$PKG_CONFIG" && \ 49307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49308 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49309 ac_status=$? 49310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49311 test $ac_status = 0; }; then 49312 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49313 else 49314 pkg_failed=yes 49315 fi 49316 else 49317 pkg_failed=untried 49318 fi 49319 49320 49321 49322 if test $pkg_failed = yes; then 49323 49324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49325 _pkg_short_errors_supported=yes 49326 else 49327 _pkg_short_errors_supported=no 49328 fi 49329 if test $_pkg_short_errors_supported = yes; then 49330 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49331 else 49332 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49333 fi 49334 # Put the nasty error message in config.log where it belongs 49335 echo "$PNG_PKG_ERRORS" >&5 49336 49337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49338 $as_echo "no" >&6; } 49339 LIBPNG_FOUND=no 49340 elif test $pkg_failed = untried; then 49341 LIBPNG_FOUND=no 49342 else 49343 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49344 PNG_LIBS=$pkg_cv_PNG_LIBS 49345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49346 $as_echo "yes" >&6; } 49347 LIBPNG_FOUND=yes 49348 fi 49349 if test "x${LIBPNG_FOUND}" = "xyes"; then 49350 USE_EXTERNAL_LIBPNG=true 49351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49352 $as_echo "system" >&6; } 49353 else 49354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49355 $as_echo "system not found" >&6; } 49356 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49357 fi 49358 else 49359 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49360 fi 49361 49362 49363 ############################################################################### 49364 # 49365 # Check for the zlib library 49366 # 49367 49368 49369 # Check whether --with-zlib was given. 49370 if test "${with_zlib+set}" = set; then : 49371 withval=$with_zlib; 49372 fi 49373 49374 49375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49376 $as_echo_n "checking for compress in -lz... " >&6; } 49377 if ${ac_cv_lib_z_compress+:} false; then : 49378 $as_echo_n "(cached) " >&6 49379 else 49380 ac_check_lib_save_LIBS=$LIBS 49381 LIBS="-lz $LIBS" 49382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49383 /* end confdefs.h. */ 49384 49385 /* Override any GCC internal prototype to avoid an error. 49386 Use char because int might match the return type of a GCC 49387 builtin and then its argument prototype would still apply. */ 49388 #ifdef __cplusplus 49389 extern "C" 49390 #endif 49391 char compress (); 49392 int 49393 main () 49394 { 49395 return compress (); 49396 ; 49397 return 0; 49398 } 49399 _ACEOF 49400 if ac_fn_cxx_try_link "$LINENO"; then : 49401 ac_cv_lib_z_compress=yes 49402 else 49403 ac_cv_lib_z_compress=no 49404 fi 49405 rm -f core conftest.err conftest.$ac_objext \ 49406 conftest$ac_exeext conftest.$ac_ext 49407 LIBS=$ac_check_lib_save_LIBS 49408 fi 49409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49410 $as_echo "$ac_cv_lib_z_compress" >&6; } 49411 if test "x$ac_cv_lib_z_compress" = xyes; then : 49412 ZLIB_FOUND=yes 49413 else 49414 ZLIB_FOUND=no 49415 fi 49416 49417 49418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49419 $as_echo_n "checking for which zlib to use... " >&6; } 49420 49421 DEFAULT_ZLIB=bundled 49422 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49423 # 49424 # On macosx default is system...on others default is 49425 # 49426 DEFAULT_ZLIB=system 49427 fi 49428 49429 if test "x${ZLIB_FOUND}" != "xyes"; then 49430 # 49431 # If we don't find any system...set default to bundled 49432 # 49433 DEFAULT_ZLIB=bundled 49434 fi 49435 49436 # 49437 # If user didn't specify, use DEFAULT_ZLIB 49438 # 49439 if test "x${with_zlib}" = "x"; then 49440 with_zlib=${DEFAULT_ZLIB} 49441 fi 49442 49443 if test "x${with_zlib}" = "xbundled"; then 49444 USE_EXTERNAL_LIBZ=false 49445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49446 $as_echo "bundled" >&6; } 49447 elif test "x${with_zlib}" = "xsystem"; then 49448 if test "x${ZLIB_FOUND}" = "xyes"; then 49449 USE_EXTERNAL_LIBZ=true 49450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49451 $as_echo "system" >&6; } 49452 else 49453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49454 $as_echo "system not found" >&6; } 49455 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49456 fi 49457 else 49458 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49459 fi 49460 49461 49462 49463 ############################################################################### 49464 LIBZIP_CAN_USE_MMAP=true 49465 49466 49467 49468 ############################################################################### 49469 # 49470 # Check if altzone exists in time.h 49471 # 49472 49473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49474 /* end confdefs.h. */ 49475 #include <time.h> 49476 int 49477 main () 49478 { 49479 return (int)altzone; 49480 ; 49481 return 0; 49482 } 49483 _ACEOF 49484 if ac_fn_cxx_try_link "$LINENO"; then : 49485 has_altzone=yes 49486 else 49487 has_altzone=no 49488 fi 49489 rm -f core conftest.err conftest.$ac_objext \ 49490 conftest$ac_exeext conftest.$ac_ext 49491 if test "x$has_altzone" = xyes; then 49492 49493 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49494 49495 fi 49496 49497 ############################################################################### 49498 # 49499 # Check the maths library 49500 # 49501 49502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49503 $as_echo_n "checking for cos in -lm... " >&6; } 49504 if ${ac_cv_lib_m_cos+:} false; then : 49505 $as_echo_n "(cached) " >&6 49506 else 49507 ac_check_lib_save_LIBS=$LIBS 49508 LIBS="-lm $LIBS" 49509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49510 /* end confdefs.h. */ 49511 49512 /* Override any GCC internal prototype to avoid an error. 49513 Use char because int might match the return type of a GCC 49514 builtin and then its argument prototype would still apply. */ 49515 #ifdef __cplusplus 49516 extern "C" 49517 #endif 49518 char cos (); 49519 int 49520 main () 49521 { 49522 return cos (); 49523 ; 49524 return 0; 49525 } 49526 _ACEOF 49527 if ac_fn_cxx_try_link "$LINENO"; then : 49528 ac_cv_lib_m_cos=yes 49529 else 49530 ac_cv_lib_m_cos=no 49531 fi 49532 rm -f core conftest.err conftest.$ac_objext \ 49533 conftest$ac_exeext conftest.$ac_ext 49534 LIBS=$ac_check_lib_save_LIBS 49535 fi 49536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49537 $as_echo "$ac_cv_lib_m_cos" >&6; } 49538 if test "x$ac_cv_lib_m_cos" = xyes; then : 49539 cat >>confdefs.h <<_ACEOF 49540 #define HAVE_LIBM 1 49541 _ACEOF 49542 49543 LIBS="-lm $LIBS" 49544 49545 else 49546 49547 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49548 $as_echo "$as_me: Maths library was not found" >&6;} 49549 49550 49551 fi 49552 49553 49554 49555 ############################################################################### 49556 # 49557 # Check for libdl.so 49558 49559 save_LIBS="$LIBS" 49560 LIBS="" 49561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49562 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49563 if ${ac_cv_lib_dl_dlopen+:} false; then : 49564 $as_echo_n "(cached) " >&6 49565 else 49566 ac_check_lib_save_LIBS=$LIBS 49567 LIBS="-ldl $LIBS" 49568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49569 /* end confdefs.h. */ 49570 49571 /* Override any GCC internal prototype to avoid an error. 49572 Use char because int might match the return type of a GCC 49573 builtin and then its argument prototype would still apply. */ 49574 #ifdef __cplusplus 49575 extern "C" 49576 #endif 49577 char dlopen (); 49578 int 49579 main () 49580 { 49581 return dlopen (); 49582 ; 49583 return 0; 49584 } 49585 _ACEOF 49586 if ac_fn_cxx_try_link "$LINENO"; then : 49587 ac_cv_lib_dl_dlopen=yes 49588 else 49589 ac_cv_lib_dl_dlopen=no 49590 fi 49591 rm -f core conftest.err conftest.$ac_objext \ 49592 conftest$ac_exeext conftest.$ac_ext 49593 LIBS=$ac_check_lib_save_LIBS 49594 fi 49595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49598 cat >>confdefs.h <<_ACEOF 49599 #define HAVE_LIBDL 1 49600 _ACEOF 49601 49602 LIBS="-ldl $LIBS" 49603 49604 fi 49605 49606 LIBDL="$LIBS" 49607 49608 LIBS="$save_LIBS" 49609 49610 49611 ############################################################################### 49612 # 49613 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49614 # dynamic build is configured on command line. 49615 # 49616 49617 # Check whether --with-stdc++lib was given. 49618 if test "${with_stdc__lib+set}" = set; then : 49619 withval=$with_stdc__lib; 49620 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49621 && test "x$with_stdc__lib" != xdefault; then 49622 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49623 fi 49624 49625 else 49626 with_stdc__lib=default 49627 49628 fi 49629 49630 49631 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49632 # Test if -lstdc++ works. 49633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49634 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49635 ac_ext=cpp 49636 ac_cpp='$CXXCPP $CPPFLAGS' 49637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49640 49641 OLD_CXXFLAGS="$CXXFLAGS" 49642 CXXFLAGS="$CXXFLAGS -lstdc++" 49643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49644 /* end confdefs.h. */ 49645 49646 int 49647 main () 49648 { 49649 return 0; 49650 ; 49651 return 0; 49652 } 49653 _ACEOF 49654 if ac_fn_cxx_try_link "$LINENO"; then : 49655 has_dynamic_libstdcxx=yes 49656 else 49657 has_dynamic_libstdcxx=no 49658 fi 49659 rm -f core conftest.err conftest.$ac_objext \ 49660 conftest$ac_exeext conftest.$ac_ext 49661 CXXFLAGS="$OLD_CXXFLAGS" 49662 ac_ext=cpp 49663 ac_cpp='$CXXCPP $CPPFLAGS' 49664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49667 49668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49669 $as_echo "$has_dynamic_libstdcxx" >&6; } 49670 49671 # Test if stdc++ can be linked statically. 49672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49673 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49674 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49675 ac_ext=cpp 49676 ac_cpp='$CXXCPP $CPPFLAGS' 49677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49680 49681 OLD_LIBS="$LIBS" 49682 OLD_CXX="$CXX" 49683 LIBS="$STATIC_STDCXX_FLAGS" 49684 CXX="$CC" 49685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49686 /* end confdefs.h. */ 49687 49688 int 49689 main () 49690 { 49691 return 0; 49692 ; 49693 return 0; 49694 } 49695 _ACEOF 49696 if ac_fn_cxx_try_link "$LINENO"; then : 49697 has_static_libstdcxx=yes 49698 else 49699 has_static_libstdcxx=no 49700 fi 49701 rm -f core conftest.err conftest.$ac_objext \ 49702 conftest$ac_exeext conftest.$ac_ext 49703 LIBS="$OLD_LIBS" 49704 CXX="$OLD_CXX" 49705 ac_ext=cpp 49706 ac_cpp='$CXXCPP $CPPFLAGS' 49707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49710 49711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49712 $as_echo "$has_static_libstdcxx" >&6; } 49713 49714 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49715 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49716 fi 49717 49718 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49719 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49720 fi 49721 49722 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49723 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49724 fi 49725 49726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49727 $as_echo_n "checking how to link with libstdc++... " >&6; } 49728 # If dynamic was requested, it's available since it would fail above otherwise. 49729 # If dynamic wasn't requested, go with static unless it isn't available. 49730 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49731 LIBCXX="$LIBCXX -lstdc++" 49732 LDCXX="$CXX" 49733 STATIC_CXX_SETTING="STATIC_CXX=false" 49734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49735 $as_echo "dynamic" >&6; } 49736 else 49737 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49738 LDCXX="$CC" 49739 STATIC_CXX_SETTING="STATIC_CXX=true" 49740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49741 $as_echo "static" >&6; } 49742 fi 49743 fi 49744 49745 49746 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49747 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49748 49749 pkg_failed=no 49750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49751 $as_echo_n "checking for LIBFFI... " >&6; } 49752 49753 if test -n "$LIBFFI_CFLAGS"; then 49754 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49755 elif test -n "$PKG_CONFIG"; then 49756 if test -n "$PKG_CONFIG" && \ 49757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49758 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49759 ac_status=$? 49760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49761 test $ac_status = 0; }; then 49762 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49763 else 49764 pkg_failed=yes 49765 fi 49766 else 49767 pkg_failed=untried 49768 fi 49769 if test -n "$LIBFFI_LIBS"; then 49770 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49771 elif test -n "$PKG_CONFIG"; then 49772 if test -n "$PKG_CONFIG" && \ 49773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49774 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49775 ac_status=$? 49776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49777 test $ac_status = 0; }; then 49778 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49779 else 49780 pkg_failed=yes 49781 fi 49782 else 49783 pkg_failed=untried 49784 fi 49785 49786 49787 49788 if test $pkg_failed = yes; then 49789 49790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49791 _pkg_short_errors_supported=yes 49792 else 49793 _pkg_short_errors_supported=no 49794 fi 49795 if test $_pkg_short_errors_supported = yes; then 49796 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49797 else 49798 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49799 fi 49800 # Put the nasty error message in config.log where it belongs 49801 echo "$LIBFFI_PKG_ERRORS" >&5 49802 49803 as_fn_error $? "Package requirements (libffi) were not met: 49804 49805 $LIBFFI_PKG_ERRORS 49806 49807 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49808 installed software in a non-standard prefix. 49809 49810 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49811 and LIBFFI_LIBS to avoid the need to call pkg-config. 49812 See the pkg-config man page for more details. 49813 " "$LINENO" 5 49814 elif test $pkg_failed = untried; then 49815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49817 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49818 is in your PATH or set the PKG_CONFIG environment variable to the full 49819 path to pkg-config. 49820 49821 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49822 and LIBFFI_LIBS to avoid the need to call pkg-config. 49823 See the pkg-config man page for more details. 49824 49825 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49826 See \`config.log' for more details" "$LINENO" 5; } 49827 else 49828 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49829 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49831 $as_echo "yes" >&6; } 49832 : 49833 fi 49834 49835 fi 49836 49837 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49838 # Extract the first word of "llvm-config", so it can be a program name with args. 49839 set dummy llvm-config; ac_word=$2 49840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49841 $as_echo_n "checking for $ac_word... " >&6; } 49842 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49843 $as_echo_n "(cached) " >&6 49844 else 49845 if test -n "$LLVM_CONFIG"; then 49846 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49847 else 49848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49849 for as_dir in $PATH 49850 do 49851 IFS=$as_save_IFS 49852 test -z "$as_dir" && as_dir=. 49853 for ac_exec_ext in '' $ac_executable_extensions; do 49854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49855 ac_cv_prog_LLVM_CONFIG="llvm-config" 49856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49857 break 2 49858 fi 49859 done 49860 done 49861 IFS=$as_save_IFS 49862 49863 fi 49864 fi 49865 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49866 if test -n "$LLVM_CONFIG"; then 49867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49868 $as_echo "$LLVM_CONFIG" >&6; } 49869 else 49870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49871 $as_echo "no" >&6; } 49872 fi 49873 49874 49875 49876 if test "x$LLVM_CONFIG" != xllvm-config; then 49877 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49878 fi 49879 49880 llvm_components="jit mcjit engine nativecodegen native" 49881 unset LLVM_CFLAGS 49882 for flag in $("$LLVM_CONFIG" --cxxflags); do 49883 if echo "${flag}" | grep -q '^-[ID]'; then 49884 if test "${flag}" != "-D_DEBUG" ; then 49885 if test "${LLVM_CFLAGS}" != "" ; then 49886 LLVM_CFLAGS="${LLVM_CFLAGS} " 49887 fi 49888 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49889 fi 49890 fi 49891 done 49892 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49893 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49894 49895 unset LLVM_LDFLAGS 49896 for flag in $("${LLVM_CONFIG}" --ldflags); do 49897 if echo "${flag}" | grep -q '^-L'; then 49898 if test "${LLVM_LDFLAGS}" != ""; then 49899 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49900 fi 49901 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49902 fi 49903 done 49904 49905 unset LLVM_LIBS 49906 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49907 if echo "${flag}" | grep -q '^-l'; then 49908 if test "${LLVM_LIBS}" != ""; then 49909 LLVM_LIBS="${LLVM_LIBS} " 49910 fi 49911 LLVM_LIBS="${LLVM_LIBS}${flag}" 49912 fi 49913 done 49914 49915 49916 49917 49918 fi 49919 49920 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49921 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49922 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49923 fi 49924 49925 # TODO better (platform agnostic) test 49926 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49927 LIBCXX="-lstdc++" 49928 fi 49929 49930 49931 49932 49933 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49934 49935 49936 # Check whether --with-msvcr-dll was given. 49937 if test "${with_msvcr_dll+set}" = set; then : 49938 withval=$with_msvcr_dll; 49939 fi 49940 49941 49942 if test "x$with_msvcr_dll" != x; then 49943 # If given explicitely by user, do not probe. If not present, fail directly. 49944 49945 DLL_NAME="$MSVCR_NAME" 49946 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 49947 METHOD="--with-msvcr-dll" 49948 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49949 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49950 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49951 49952 # Need to check if the found msvcr is correct architecture 49953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49954 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49955 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49957 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49958 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49959 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49960 CORRECT_MSVCR_ARCH="PE32 executable" 49961 else 49962 CORRECT_MSVCR_ARCH="PE32+ executable" 49963 fi 49964 else 49965 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49966 CORRECT_MSVCR_ARCH=386 49967 else 49968 CORRECT_MSVCR_ARCH=x86-64 49969 fi 49970 fi 49971 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49973 $as_echo "ok" >&6; } 49974 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49975 49976 # Only process if variable expands to non-empty 49977 49978 if test "x$MSVC_DLL" != x; then 49979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49980 49981 # Input might be given as Windows format, start by converting to 49982 # unix format. 49983 path="$MSVC_DLL" 49984 new_path=`$CYGPATH -u "$path"` 49985 49986 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49987 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49988 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49989 # "foo.exe" is OK but "foo" is an error. 49990 # 49991 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49992 # It is also a way to make sure we got the proper file name for the real test later on. 49993 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49994 if test "x$test_shortpath" = x; then 49995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49996 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49997 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49998 fi 49999 50000 # Call helper function which possibly converts this using DOS-style short mode. 50001 # If so, the updated path is stored in $new_path. 50002 50003 input_path="$new_path" 50004 # Check if we need to convert this using DOS-style short mode. If the path 50005 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50006 # take no chances and rewrite it. 50007 # Note: m4 eats our [], so we need to use [ and ] instead. 50008 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50009 if test "x$has_forbidden_chars" != x; then 50010 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50011 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50012 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50013 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50014 # Going to short mode and back again did indeed matter. Since short mode is 50015 # case insensitive, let's make it lowercase to improve readability. 50016 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50017 # Now convert it back to Unix-style (cygpath) 50018 input_path=`$CYGPATH -u "$shortmode_path"` 50019 new_path="$input_path" 50020 fi 50021 fi 50022 50023 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50024 if test "x$test_cygdrive_prefix" = x; then 50025 # As a simple fix, exclude /usr/bin since it's not a real path. 50026 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50027 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50028 # a path prefixed by /cygdrive for fixpath to work. 50029 new_path="$CYGWIN_ROOT_PATH$input_path" 50030 fi 50031 fi 50032 50033 50034 if test "x$path" != "x$new_path"; then 50035 MSVC_DLL="$new_path" 50036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50037 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50038 fi 50039 50040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50041 50042 path="$MSVC_DLL" 50043 has_colon=`$ECHO $path | $GREP ^.:` 50044 new_path="$path" 50045 if test "x$has_colon" = x; then 50046 # Not in mixed or Windows style, start by that. 50047 new_path=`cmd //c echo $path` 50048 fi 50049 50050 50051 input_path="$new_path" 50052 # Check if we need to convert this using DOS-style short mode. If the path 50053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50054 # take no chances and rewrite it. 50055 # Note: m4 eats our [], so we need to use [ and ] instead. 50056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50057 if test "x$has_forbidden_chars" != x; then 50058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50059 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50060 fi 50061 50062 50063 windows_path="$new_path" 50064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50065 unix_path=`$CYGPATH -u "$windows_path"` 50066 new_path="$unix_path" 50067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50069 new_path="$unix_path" 50070 fi 50071 50072 if test "x$path" != "x$new_path"; then 50073 MSVC_DLL="$new_path" 50074 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50075 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50076 fi 50077 50078 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50079 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50080 50081 else 50082 # We're on a unix platform. Hooray! :) 50083 path="$MSVC_DLL" 50084 has_space=`$ECHO "$path" | $GREP " "` 50085 if test "x$has_space" != x; then 50086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50087 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50088 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50089 fi 50090 50091 # Use eval to expand a potential ~ 50092 eval path="$path" 50093 if test ! -f "$path" && test ! -d "$path"; then 50094 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50095 fi 50096 50097 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50098 fi 50099 fi 50100 50101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50102 $as_echo_n "checking for $DLL_NAME... " >&6; } 50103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50104 $as_echo "$MSVC_DLL" >&6; } 50105 else 50106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50107 $as_echo "incorrect, ignoring" >&6; } 50108 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50109 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50110 fi 50111 fi 50112 50113 if test "x$MSVC_DLL" = x; then 50114 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 50115 fi 50116 MSVCR_DLL="$MSVC_DLL" 50117 elif test "x$DEVKIT_MSVCR_DLL" != x; then 50118 50119 DLL_NAME="$MSVCR_NAME" 50120 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 50121 METHOD="devkit" 50122 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50123 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50124 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50125 50126 # Need to check if the found msvcr is correct architecture 50127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50128 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50129 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50131 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50132 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50133 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50134 CORRECT_MSVCR_ARCH="PE32 executable" 50135 else 50136 CORRECT_MSVCR_ARCH="PE32+ executable" 50137 fi 50138 else 50139 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50140 CORRECT_MSVCR_ARCH=386 50141 else 50142 CORRECT_MSVCR_ARCH=x86-64 50143 fi 50144 fi 50145 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50147 $as_echo "ok" >&6; } 50148 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50149 50150 # Only process if variable expands to non-empty 50151 50152 if test "x$MSVC_DLL" != x; then 50153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50154 50155 # Input might be given as Windows format, start by converting to 50156 # unix format. 50157 path="$MSVC_DLL" 50158 new_path=`$CYGPATH -u "$path"` 50159 50160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50163 # "foo.exe" is OK but "foo" is an error. 50164 # 50165 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50166 # It is also a way to make sure we got the proper file name for the real test later on. 50167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50168 if test "x$test_shortpath" = x; then 50169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50170 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50171 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50172 fi 50173 50174 # Call helper function which possibly converts this using DOS-style short mode. 50175 # If so, the updated path is stored in $new_path. 50176 50177 input_path="$new_path" 50178 # Check if we need to convert this using DOS-style short mode. If the path 50179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50180 # take no chances and rewrite it. 50181 # Note: m4 eats our [], so we need to use [ and ] instead. 50182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50183 if test "x$has_forbidden_chars" != x; then 50184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50188 # Going to short mode and back again did indeed matter. Since short mode is 50189 # case insensitive, let's make it lowercase to improve readability. 50190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50191 # Now convert it back to Unix-style (cygpath) 50192 input_path=`$CYGPATH -u "$shortmode_path"` 50193 new_path="$input_path" 50194 fi 50195 fi 50196 50197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50198 if test "x$test_cygdrive_prefix" = x; then 50199 # As a simple fix, exclude /usr/bin since it's not a real path. 50200 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50202 # a path prefixed by /cygdrive for fixpath to work. 50203 new_path="$CYGWIN_ROOT_PATH$input_path" 50204 fi 50205 fi 50206 50207 50208 if test "x$path" != "x$new_path"; then 50209 MSVC_DLL="$new_path" 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50211 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50212 fi 50213 50214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50215 50216 path="$MSVC_DLL" 50217 has_colon=`$ECHO $path | $GREP ^.:` 50218 new_path="$path" 50219 if test "x$has_colon" = x; then 50220 # Not in mixed or Windows style, start by that. 50221 new_path=`cmd //c echo $path` 50222 fi 50223 50224 50225 input_path="$new_path" 50226 # Check if we need to convert this using DOS-style short mode. If the path 50227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50228 # take no chances and rewrite it. 50229 # Note: m4 eats our [], so we need to use [ and ] instead. 50230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50231 if test "x$has_forbidden_chars" != x; then 50232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50234 fi 50235 50236 50237 windows_path="$new_path" 50238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50239 unix_path=`$CYGPATH -u "$windows_path"` 50240 new_path="$unix_path" 50241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50243 new_path="$unix_path" 50244 fi 50245 50246 if test "x$path" != "x$new_path"; then 50247 MSVC_DLL="$new_path" 50248 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50249 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50250 fi 50251 50252 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50253 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50254 50255 else 50256 # We're on a unix platform. Hooray! :) 50257 path="$MSVC_DLL" 50258 has_space=`$ECHO "$path" | $GREP " "` 50259 if test "x$has_space" != x; then 50260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50261 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50262 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50263 fi 50264 50265 # Use eval to expand a potential ~ 50266 eval path="$path" 50267 if test ! -f "$path" && test ! -d "$path"; then 50268 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50269 fi 50270 50271 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50272 fi 50273 fi 50274 50275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50276 $as_echo_n "checking for $DLL_NAME... " >&6; } 50277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50278 $as_echo "$MSVC_DLL" >&6; } 50279 else 50280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50281 $as_echo "incorrect, ignoring" >&6; } 50282 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50283 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50284 fi 50285 fi 50286 50287 if test "x$MSVC_DLL" = x; then 50288 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 50289 fi 50290 MSVCR_DLL="$MSVC_DLL" 50291 else 50292 50293 DLL_NAME="${MSVCR_NAME}" 50294 MSVC_DLL= 50295 50296 if test "x$MSVC_DLL" = x; then 50297 # Probe: Using well-known location from Visual Studio 10.0 50298 if test "x$VCINSTALLDIR" != x; then 50299 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50300 50301 windows_path="$CYGWIN_VC_INSTALL_DIR" 50302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50303 unix_path=`$CYGPATH -u "$windows_path"` 50304 CYGWIN_VC_INSTALL_DIR="$unix_path" 50305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50307 CYGWIN_VC_INSTALL_DIR="$unix_path" 50308 fi 50309 50310 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50311 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50312 else 50313 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50314 fi 50315 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50316 50317 DLL_NAME="$DLL_NAME" 50318 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50319 METHOD="well-known location in VCINSTALLDIR" 50320 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50321 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50322 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50323 50324 # Need to check if the found msvcr is correct architecture 50325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50326 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50327 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50329 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50330 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50331 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50332 CORRECT_MSVCR_ARCH="PE32 executable" 50333 else 50334 CORRECT_MSVCR_ARCH="PE32+ executable" 50335 fi 50336 else 50337 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50338 CORRECT_MSVCR_ARCH=386 50339 else 50340 CORRECT_MSVCR_ARCH=x86-64 50341 fi 50342 fi 50343 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50345 $as_echo "ok" >&6; } 50346 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50347 50348 # Only process if variable expands to non-empty 50349 50350 if test "x$MSVC_DLL" != x; then 50351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50352 50353 # Input might be given as Windows format, start by converting to 50354 # unix format. 50355 path="$MSVC_DLL" 50356 new_path=`$CYGPATH -u "$path"` 50357 50358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50361 # "foo.exe" is OK but "foo" is an error. 50362 # 50363 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50364 # It is also a way to make sure we got the proper file name for the real test later on. 50365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50366 if test "x$test_shortpath" = x; then 50367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50368 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50369 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50370 fi 50371 50372 # Call helper function which possibly converts this using DOS-style short mode. 50373 # If so, the updated path is stored in $new_path. 50374 50375 input_path="$new_path" 50376 # Check if we need to convert this using DOS-style short mode. If the path 50377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50378 # take no chances and rewrite it. 50379 # Note: m4 eats our [], so we need to use [ and ] instead. 50380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50381 if test "x$has_forbidden_chars" != x; then 50382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50386 # Going to short mode and back again did indeed matter. Since short mode is 50387 # case insensitive, let's make it lowercase to improve readability. 50388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50389 # Now convert it back to Unix-style (cygpath) 50390 input_path=`$CYGPATH -u "$shortmode_path"` 50391 new_path="$input_path" 50392 fi 50393 fi 50394 50395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50396 if test "x$test_cygdrive_prefix" = x; then 50397 # As a simple fix, exclude /usr/bin since it's not a real path. 50398 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50400 # a path prefixed by /cygdrive for fixpath to work. 50401 new_path="$CYGWIN_ROOT_PATH$input_path" 50402 fi 50403 fi 50404 50405 50406 if test "x$path" != "x$new_path"; then 50407 MSVC_DLL="$new_path" 50408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50409 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50410 fi 50411 50412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50413 50414 path="$MSVC_DLL" 50415 has_colon=`$ECHO $path | $GREP ^.:` 50416 new_path="$path" 50417 if test "x$has_colon" = x; then 50418 # Not in mixed or Windows style, start by that. 50419 new_path=`cmd //c echo $path` 50420 fi 50421 50422 50423 input_path="$new_path" 50424 # Check if we need to convert this using DOS-style short mode. If the path 50425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50426 # take no chances and rewrite it. 50427 # Note: m4 eats our [], so we need to use [ and ] instead. 50428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50429 if test "x$has_forbidden_chars" != x; then 50430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50431 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50432 fi 50433 50434 50435 windows_path="$new_path" 50436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50437 unix_path=`$CYGPATH -u "$windows_path"` 50438 new_path="$unix_path" 50439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50441 new_path="$unix_path" 50442 fi 50443 50444 if test "x$path" != "x$new_path"; then 50445 MSVC_DLL="$new_path" 50446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50447 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50448 fi 50449 50450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50452 50453 else 50454 # We're on a unix platform. Hooray! :) 50455 path="$MSVC_DLL" 50456 has_space=`$ECHO "$path" | $GREP " "` 50457 if test "x$has_space" != x; then 50458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50459 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50460 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50461 fi 50462 50463 # Use eval to expand a potential ~ 50464 eval path="$path" 50465 if test ! -f "$path" && test ! -d "$path"; then 50466 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50467 fi 50468 50469 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50470 fi 50471 fi 50472 50473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50474 $as_echo_n "checking for $DLL_NAME... " >&6; } 50475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50476 $as_echo "$MSVC_DLL" >&6; } 50477 else 50478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50479 $as_echo "incorrect, ignoring" >&6; } 50480 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50481 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50482 fi 50483 fi 50484 50485 fi 50486 fi 50487 50488 if test "x$MSVC_DLL" = x; then 50489 # Probe: Check in the Boot JDK directory. 50490 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50491 50492 DLL_NAME="$DLL_NAME" 50493 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50494 METHOD="well-known location in Boot JDK" 50495 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50496 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50497 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50498 50499 # Need to check if the found msvcr is correct architecture 50500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50501 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50502 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50504 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50505 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50506 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50507 CORRECT_MSVCR_ARCH="PE32 executable" 50508 else 50509 CORRECT_MSVCR_ARCH="PE32+ executable" 50510 fi 50511 else 50512 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50513 CORRECT_MSVCR_ARCH=386 50514 else 50515 CORRECT_MSVCR_ARCH=x86-64 50516 fi 50517 fi 50518 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50520 $as_echo "ok" >&6; } 50521 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50522 50523 # Only process if variable expands to non-empty 50524 50525 if test "x$MSVC_DLL" != x; then 50526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50527 50528 # Input might be given as Windows format, start by converting to 50529 # unix format. 50530 path="$MSVC_DLL" 50531 new_path=`$CYGPATH -u "$path"` 50532 50533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50536 # "foo.exe" is OK but "foo" is an error. 50537 # 50538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50539 # It is also a way to make sure we got the proper file name for the real test later on. 50540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50541 if test "x$test_shortpath" = x; then 50542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50543 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50544 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50545 fi 50546 50547 # Call helper function which possibly converts this using DOS-style short mode. 50548 # If so, the updated path is stored in $new_path. 50549 50550 input_path="$new_path" 50551 # Check if we need to convert this using DOS-style short mode. If the path 50552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50553 # take no chances and rewrite it. 50554 # Note: m4 eats our [], so we need to use [ and ] instead. 50555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50556 if test "x$has_forbidden_chars" != x; then 50557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50561 # Going to short mode and back again did indeed matter. Since short mode is 50562 # case insensitive, let's make it lowercase to improve readability. 50563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50564 # Now convert it back to Unix-style (cygpath) 50565 input_path=`$CYGPATH -u "$shortmode_path"` 50566 new_path="$input_path" 50567 fi 50568 fi 50569 50570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50571 if test "x$test_cygdrive_prefix" = x; then 50572 # As a simple fix, exclude /usr/bin since it's not a real path. 50573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50575 # a path prefixed by /cygdrive for fixpath to work. 50576 new_path="$CYGWIN_ROOT_PATH$input_path" 50577 fi 50578 fi 50579 50580 50581 if test "x$path" != "x$new_path"; then 50582 MSVC_DLL="$new_path" 50583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50584 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50585 fi 50586 50587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50588 50589 path="$MSVC_DLL" 50590 has_colon=`$ECHO $path | $GREP ^.:` 50591 new_path="$path" 50592 if test "x$has_colon" = x; then 50593 # Not in mixed or Windows style, start by that. 50594 new_path=`cmd //c echo $path` 50595 fi 50596 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50607 fi 50608 50609 50610 windows_path="$new_path" 50611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50612 unix_path=`$CYGPATH -u "$windows_path"` 50613 new_path="$unix_path" 50614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50616 new_path="$unix_path" 50617 fi 50618 50619 if test "x$path" != "x$new_path"; then 50620 MSVC_DLL="$new_path" 50621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50622 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50623 fi 50624 50625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50627 50628 else 50629 # We're on a unix platform. Hooray! :) 50630 path="$MSVC_DLL" 50631 has_space=`$ECHO "$path" | $GREP " "` 50632 if test "x$has_space" != x; then 50633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50634 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50636 fi 50637 50638 # Use eval to expand a potential ~ 50639 eval path="$path" 50640 if test ! -f "$path" && test ! -d "$path"; then 50641 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50642 fi 50643 50644 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50645 fi 50646 fi 50647 50648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50649 $as_echo_n "checking for $DLL_NAME... " >&6; } 50650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50651 $as_echo "$MSVC_DLL" >&6; } 50652 else 50653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50654 $as_echo "incorrect, ignoring" >&6; } 50655 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50656 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50657 fi 50658 fi 50659 50660 fi 50661 50662 if test "x$MSVC_DLL" = x; then 50663 # Probe: Look in the Windows system32 directory 50664 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50665 50666 windows_path="$CYGWIN_SYSTEMROOT" 50667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50668 unix_path=`$CYGPATH -u "$windows_path"` 50669 CYGWIN_SYSTEMROOT="$unix_path" 50670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50672 CYGWIN_SYSTEMROOT="$unix_path" 50673 fi 50674 50675 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50676 50677 DLL_NAME="$DLL_NAME" 50678 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50679 METHOD="well-known location in SYSTEMROOT" 50680 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50681 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50682 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50683 50684 # Need to check if the found msvcr is correct architecture 50685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50686 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50687 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50689 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50690 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50691 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50692 CORRECT_MSVCR_ARCH="PE32 executable" 50693 else 50694 CORRECT_MSVCR_ARCH="PE32+ executable" 50695 fi 50696 else 50697 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50698 CORRECT_MSVCR_ARCH=386 50699 else 50700 CORRECT_MSVCR_ARCH=x86-64 50701 fi 50702 fi 50703 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50705 $as_echo "ok" >&6; } 50706 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50707 50708 # Only process if variable expands to non-empty 50709 50710 if test "x$MSVC_DLL" != x; then 50711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50712 50713 # Input might be given as Windows format, start by converting to 50714 # unix format. 50715 path="$MSVC_DLL" 50716 new_path=`$CYGPATH -u "$path"` 50717 50718 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50719 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50720 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50721 # "foo.exe" is OK but "foo" is an error. 50722 # 50723 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50724 # It is also a way to make sure we got the proper file name for the real test later on. 50725 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50726 if test "x$test_shortpath" = x; then 50727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50728 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50729 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50730 fi 50731 50732 # Call helper function which possibly converts this using DOS-style short mode. 50733 # If so, the updated path is stored in $new_path. 50734 50735 input_path="$new_path" 50736 # Check if we need to convert this using DOS-style short mode. If the path 50737 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50738 # take no chances and rewrite it. 50739 # Note: m4 eats our [], so we need to use [ and ] instead. 50740 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50741 if test "x$has_forbidden_chars" != x; then 50742 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50743 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50744 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50745 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50746 # Going to short mode and back again did indeed matter. Since short mode is 50747 # case insensitive, let's make it lowercase to improve readability. 50748 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50749 # Now convert it back to Unix-style (cygpath) 50750 input_path=`$CYGPATH -u "$shortmode_path"` 50751 new_path="$input_path" 50752 fi 50753 fi 50754 50755 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50756 if test "x$test_cygdrive_prefix" = x; then 50757 # As a simple fix, exclude /usr/bin since it's not a real path. 50758 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50759 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50760 # a path prefixed by /cygdrive for fixpath to work. 50761 new_path="$CYGWIN_ROOT_PATH$input_path" 50762 fi 50763 fi 50764 50765 50766 if test "x$path" != "x$new_path"; then 50767 MSVC_DLL="$new_path" 50768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50769 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50770 fi 50771 50772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50773 50774 path="$MSVC_DLL" 50775 has_colon=`$ECHO $path | $GREP ^.:` 50776 new_path="$path" 50777 if test "x$has_colon" = x; then 50778 # Not in mixed or Windows style, start by that. 50779 new_path=`cmd //c echo $path` 50780 fi 50781 50782 50783 input_path="$new_path" 50784 # Check if we need to convert this using DOS-style short mode. If the path 50785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50786 # take no chances and rewrite it. 50787 # Note: m4 eats our [], so we need to use [ and ] instead. 50788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50789 if test "x$has_forbidden_chars" != x; then 50790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50791 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50792 fi 50793 50794 50795 windows_path="$new_path" 50796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50797 unix_path=`$CYGPATH -u "$windows_path"` 50798 new_path="$unix_path" 50799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50801 new_path="$unix_path" 50802 fi 50803 50804 if test "x$path" != "x$new_path"; then 50805 MSVC_DLL="$new_path" 50806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50807 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50808 fi 50809 50810 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50811 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50812 50813 else 50814 # We're on a unix platform. Hooray! :) 50815 path="$MSVC_DLL" 50816 has_space=`$ECHO "$path" | $GREP " "` 50817 if test "x$has_space" != x; then 50818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50819 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50820 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50821 fi 50822 50823 # Use eval to expand a potential ~ 50824 eval path="$path" 50825 if test ! -f "$path" && test ! -d "$path"; then 50826 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50827 fi 50828 50829 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50830 fi 50831 fi 50832 50833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50834 $as_echo_n "checking for $DLL_NAME... " >&6; } 50835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50836 $as_echo "$MSVC_DLL" >&6; } 50837 else 50838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50839 $as_echo "incorrect, ignoring" >&6; } 50840 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50841 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50842 fi 50843 fi 50844 50845 fi 50846 50847 if test "x$MSVC_DLL" = x; then 50848 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50849 if test "x$VS100COMNTOOLS" != x; then 50850 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50851 50852 windows_path="$CYGWIN_VS_TOOLS_DIR" 50853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50854 unix_path=`$CYGPATH -u "$windows_path"` 50855 CYGWIN_VS_TOOLS_DIR="$unix_path" 50856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50858 CYGWIN_VS_TOOLS_DIR="$unix_path" 50859 fi 50860 50861 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50862 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50863 | $GREP -i /x64/ | $HEAD --lines 1` 50864 else 50865 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50866 | $GREP -i /x86/ | $HEAD --lines 1` 50867 fi 50868 50869 DLL_NAME="$DLL_NAME" 50870 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50871 METHOD="search of VS100COMNTOOLS" 50872 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50873 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50874 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50875 50876 # Need to check if the found msvcr is correct architecture 50877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50878 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50879 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50881 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50882 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50883 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50884 CORRECT_MSVCR_ARCH="PE32 executable" 50885 else 50886 CORRECT_MSVCR_ARCH="PE32+ executable" 50887 fi 50888 else 50889 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50890 CORRECT_MSVCR_ARCH=386 50891 else 50892 CORRECT_MSVCR_ARCH=x86-64 50893 fi 50894 fi 50895 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50897 $as_echo "ok" >&6; } 50898 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50899 50900 # Only process if variable expands to non-empty 50901 50902 if test "x$MSVC_DLL" != x; then 50903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50904 50905 # Input might be given as Windows format, start by converting to 50906 # unix format. 50907 path="$MSVC_DLL" 50908 new_path=`$CYGPATH -u "$path"` 50909 50910 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50911 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50912 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50913 # "foo.exe" is OK but "foo" is an error. 50914 # 50915 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50916 # It is also a way to make sure we got the proper file name for the real test later on. 50917 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50918 if test "x$test_shortpath" = x; then 50919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50920 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50921 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50922 fi 50923 50924 # Call helper function which possibly converts this using DOS-style short mode. 50925 # If so, the updated path is stored in $new_path. 50926 50927 input_path="$new_path" 50928 # Check if we need to convert this using DOS-style short mode. If the path 50929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50930 # take no chances and rewrite it. 50931 # Note: m4 eats our [], so we need to use [ and ] instead. 50932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50933 if test "x$has_forbidden_chars" != x; then 50934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50935 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50936 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50937 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50938 # Going to short mode and back again did indeed matter. Since short mode is 50939 # case insensitive, let's make it lowercase to improve readability. 50940 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50941 # Now convert it back to Unix-style (cygpath) 50942 input_path=`$CYGPATH -u "$shortmode_path"` 50943 new_path="$input_path" 50944 fi 50945 fi 50946 50947 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50948 if test "x$test_cygdrive_prefix" = x; then 50949 # As a simple fix, exclude /usr/bin since it's not a real path. 50950 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50951 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50952 # a path prefixed by /cygdrive for fixpath to work. 50953 new_path="$CYGWIN_ROOT_PATH$input_path" 50954 fi 50955 fi 50956 50957 50958 if test "x$path" != "x$new_path"; then 50959 MSVC_DLL="$new_path" 50960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50961 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50962 fi 50963 50964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50965 50966 path="$MSVC_DLL" 50967 has_colon=`$ECHO $path | $GREP ^.:` 50968 new_path="$path" 50969 if test "x$has_colon" = x; then 50970 # Not in mixed or Windows style, start by that. 50971 new_path=`cmd //c echo $path` 50972 fi 50973 50974 50975 input_path="$new_path" 50976 # Check if we need to convert this using DOS-style short mode. If the path 50977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50978 # take no chances and rewrite it. 50979 # Note: m4 eats our [], so we need to use [ and ] instead. 50980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50981 if test "x$has_forbidden_chars" != x; then 50982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50984 fi 50985 50986 50987 windows_path="$new_path" 50988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50989 unix_path=`$CYGPATH -u "$windows_path"` 50990 new_path="$unix_path" 50991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50992 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50993 new_path="$unix_path" 50994 fi 50995 50996 if test "x$path" != "x$new_path"; then 50997 MSVC_DLL="$new_path" 50998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50999 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51000 fi 51001 51002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51004 51005 else 51006 # We're on a unix platform. Hooray! :) 51007 path="$MSVC_DLL" 51008 has_space=`$ECHO "$path" | $GREP " "` 51009 if test "x$has_space" != x; then 51010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51011 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51012 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51013 fi 51014 51015 # Use eval to expand a potential ~ 51016 eval path="$path" 51017 if test ! -f "$path" && test ! -d "$path"; then 51018 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51019 fi 51020 51021 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51022 fi 51023 fi 51024 51025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51026 $as_echo_n "checking for $DLL_NAME... " >&6; } 51027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51028 $as_echo "$MSVC_DLL" >&6; } 51029 else 51030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51031 $as_echo "incorrect, ignoring" >&6; } 51032 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51033 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51034 fi 51035 fi 51036 51037 fi 51038 fi 51039 51040 if test "x$MSVC_DLL" = x; then 51041 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 51042 # (This was the original behaviour; kept since it might turn something up) 51043 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 51044 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51045 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51046 | $GREP x64 | $HEAD --lines 1` 51047 else 51048 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51049 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 51050 if test "x$POSSIBLE_MSVC_DLL" = x; then 51051 # We're grasping at straws now... 51052 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51053 | $HEAD --lines 1` 51054 fi 51055 fi 51056 51057 51058 DLL_NAME="$DLL_NAME" 51059 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51060 METHOD="search of VCINSTALLDIR" 51061 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51063 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51064 51065 # Need to check if the found msvcr is correct architecture 51066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51067 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51068 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51070 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51071 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51072 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51073 CORRECT_MSVCR_ARCH="PE32 executable" 51074 else 51075 CORRECT_MSVCR_ARCH="PE32+ executable" 51076 fi 51077 else 51078 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51079 CORRECT_MSVCR_ARCH=386 51080 else 51081 CORRECT_MSVCR_ARCH=x86-64 51082 fi 51083 fi 51084 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51086 $as_echo "ok" >&6; } 51087 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51088 51089 # Only process if variable expands to non-empty 51090 51091 if test "x$MSVC_DLL" != x; then 51092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51093 51094 # Input might be given as Windows format, start by converting to 51095 # unix format. 51096 path="$MSVC_DLL" 51097 new_path=`$CYGPATH -u "$path"` 51098 51099 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51100 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51101 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51102 # "foo.exe" is OK but "foo" is an error. 51103 # 51104 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51105 # It is also a way to make sure we got the proper file name for the real test later on. 51106 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51107 if test "x$test_shortpath" = x; then 51108 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51109 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51110 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51111 fi 51112 51113 # Call helper function which possibly converts this using DOS-style short mode. 51114 # If so, the updated path is stored in $new_path. 51115 51116 input_path="$new_path" 51117 # Check if we need to convert this using DOS-style short mode. If the path 51118 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51119 # take no chances and rewrite it. 51120 # Note: m4 eats our [], so we need to use [ and ] instead. 51121 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51122 if test "x$has_forbidden_chars" != x; then 51123 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51124 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51125 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51126 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51127 # Going to short mode and back again did indeed matter. Since short mode is 51128 # case insensitive, let's make it lowercase to improve readability. 51129 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51130 # Now convert it back to Unix-style (cygpath) 51131 input_path=`$CYGPATH -u "$shortmode_path"` 51132 new_path="$input_path" 51133 fi 51134 fi 51135 51136 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51137 if test "x$test_cygdrive_prefix" = x; then 51138 # As a simple fix, exclude /usr/bin since it's not a real path. 51139 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51140 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51141 # a path prefixed by /cygdrive for fixpath to work. 51142 new_path="$CYGWIN_ROOT_PATH$input_path" 51143 fi 51144 fi 51145 51146 51147 if test "x$path" != "x$new_path"; then 51148 MSVC_DLL="$new_path" 51149 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51150 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51151 fi 51152 51153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51154 51155 path="$MSVC_DLL" 51156 has_colon=`$ECHO $path | $GREP ^.:` 51157 new_path="$path" 51158 if test "x$has_colon" = x; then 51159 # Not in mixed or Windows style, start by that. 51160 new_path=`cmd //c echo $path` 51161 fi 51162 51163 51164 input_path="$new_path" 51165 # Check if we need to convert this using DOS-style short mode. If the path 51166 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51167 # take no chances and rewrite it. 51168 # Note: m4 eats our [], so we need to use [ and ] instead. 51169 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51170 if test "x$has_forbidden_chars" != x; then 51171 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51172 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51173 fi 51174 51175 51176 windows_path="$new_path" 51177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51178 unix_path=`$CYGPATH -u "$windows_path"` 51179 new_path="$unix_path" 51180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51181 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51182 new_path="$unix_path" 51183 fi 51184 51185 if test "x$path" != "x$new_path"; then 51186 MSVC_DLL="$new_path" 51187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51188 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51189 fi 51190 51191 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51192 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51193 51194 else 51195 # We're on a unix platform. Hooray! :) 51196 path="$MSVC_DLL" 51197 has_space=`$ECHO "$path" | $GREP " "` 51198 if test "x$has_space" != x; then 51199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51200 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51201 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51202 fi 51203 51204 # Use eval to expand a potential ~ 51205 eval path="$path" 51206 if test ! -f "$path" && test ! -d "$path"; then 51207 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51208 fi 51209 51210 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51211 fi 51212 fi 51213 51214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51215 $as_echo_n "checking for $DLL_NAME... " >&6; } 51216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51217 $as_echo "$MSVC_DLL" >&6; } 51218 else 51219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51220 $as_echo "incorrect, ignoring" >&6; } 51221 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51222 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51223 fi 51224 fi 51225 51226 fi 51227 fi 51228 51229 if test "x$MSVC_DLL" = x; then 51230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51231 $as_echo_n "checking for $DLL_NAME... " >&6; } 51232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51233 $as_echo "no" >&6; } 51234 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 51235 fi 51236 51237 MSVCR_DLL="$MSVC_DLL" 51238 fi 51239 51240 51241 51242 # Check whether --with-msvcp-dll was given. 51243 if test "${with_msvcp_dll+set}" = set; then : 51244 withval=$with_msvcp_dll; 51245 fi 51246 51247 51248 if test "x$MSVCP_NAME" != "x"; then 51249 if test "x$with_msvcp_dll" != x; then 51250 # If given explicitely by user, do not probe. If not present, fail directly. 51251 51252 DLL_NAME="$MSVCP_NAME" 51253 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 51254 METHOD="--with-msvcp-dll" 51255 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51256 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51257 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51258 51259 # Need to check if the found msvcr is correct architecture 51260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51261 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51262 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51264 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51265 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51266 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51267 CORRECT_MSVCR_ARCH="PE32 executable" 51268 else 51269 CORRECT_MSVCR_ARCH="PE32+ executable" 51270 fi 51271 else 51272 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51273 CORRECT_MSVCR_ARCH=386 51274 else 51275 CORRECT_MSVCR_ARCH=x86-64 51276 fi 51277 fi 51278 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51280 $as_echo "ok" >&6; } 51281 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51282 51283 # Only process if variable expands to non-empty 51284 51285 if test "x$MSVC_DLL" != x; then 51286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51287 51288 # Input might be given as Windows format, start by converting to 51289 # unix format. 51290 path="$MSVC_DLL" 51291 new_path=`$CYGPATH -u "$path"` 51292 51293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51296 # "foo.exe" is OK but "foo" is an error. 51297 # 51298 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51299 # It is also a way to make sure we got the proper file name for the real test later on. 51300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51301 if test "x$test_shortpath" = x; then 51302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51303 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51304 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51305 fi 51306 51307 # Call helper function which possibly converts this using DOS-style short mode. 51308 # If so, the updated path is stored in $new_path. 51309 51310 input_path="$new_path" 51311 # Check if we need to convert this using DOS-style short mode. If the path 51312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51313 # take no chances and rewrite it. 51314 # Note: m4 eats our [], so we need to use [ and ] instead. 51315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51316 if test "x$has_forbidden_chars" != x; then 51317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51318 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51319 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51320 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51321 # Going to short mode and back again did indeed matter. Since short mode is 51322 # case insensitive, let's make it lowercase to improve readability. 51323 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51324 # Now convert it back to Unix-style (cygpath) 51325 input_path=`$CYGPATH -u "$shortmode_path"` 51326 new_path="$input_path" 51327 fi 51328 fi 51329 51330 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51331 if test "x$test_cygdrive_prefix" = x; then 51332 # As a simple fix, exclude /usr/bin since it's not a real path. 51333 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51334 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51335 # a path prefixed by /cygdrive for fixpath to work. 51336 new_path="$CYGWIN_ROOT_PATH$input_path" 51337 fi 51338 fi 51339 51340 51341 if test "x$path" != "x$new_path"; then 51342 MSVC_DLL="$new_path" 51343 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51344 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51345 fi 51346 51347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51348 51349 path="$MSVC_DLL" 51350 has_colon=`$ECHO $path | $GREP ^.:` 51351 new_path="$path" 51352 if test "x$has_colon" = x; then 51353 # Not in mixed or Windows style, start by that. 51354 new_path=`cmd //c echo $path` 51355 fi 51356 51357 51358 input_path="$new_path" 51359 # Check if we need to convert this using DOS-style short mode. If the path 51360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51361 # take no chances and rewrite it. 51362 # Note: m4 eats our [], so we need to use [ and ] instead. 51363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51364 if test "x$has_forbidden_chars" != x; then 51365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51367 fi 51368 51369 51370 windows_path="$new_path" 51371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51372 unix_path=`$CYGPATH -u "$windows_path"` 51373 new_path="$unix_path" 51374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51376 new_path="$unix_path" 51377 fi 51378 51379 if test "x$path" != "x$new_path"; then 51380 MSVC_DLL="$new_path" 51381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51382 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51383 fi 51384 51385 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51386 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51387 51388 else 51389 # We're on a unix platform. Hooray! :) 51390 path="$MSVC_DLL" 51391 has_space=`$ECHO "$path" | $GREP " "` 51392 if test "x$has_space" != x; then 51393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51394 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51395 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51396 fi 51397 51398 # Use eval to expand a potential ~ 51399 eval path="$path" 51400 if test ! -f "$path" && test ! -d "$path"; then 51401 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51402 fi 51403 51404 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51405 fi 51406 fi 51407 51408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51409 $as_echo_n "checking for $DLL_NAME... " >&6; } 51410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51411 $as_echo "$MSVC_DLL" >&6; } 51412 else 51413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51414 $as_echo "incorrect, ignoring" >&6; } 51415 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51416 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51417 fi 51418 fi 51419 51420 if test "x$MSVC_DLL" = x; then 51421 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 51422 fi 51423 MSVCP_DLL="$MSVC_DLL" 51424 elif test "x$DEVKIT_MSVCP_DLL" != x; then 51425 51426 DLL_NAME="$MSVCP_NAME" 51427 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 51428 METHOD="devkit" 51429 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51430 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51431 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51432 51433 # Need to check if the found msvcr is correct architecture 51434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51435 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51436 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51438 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51439 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51440 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51441 CORRECT_MSVCR_ARCH="PE32 executable" 51442 else 51443 CORRECT_MSVCR_ARCH="PE32+ executable" 51444 fi 51445 else 51446 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51447 CORRECT_MSVCR_ARCH=386 51448 else 51449 CORRECT_MSVCR_ARCH=x86-64 51450 fi 51451 fi 51452 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51454 $as_echo "ok" >&6; } 51455 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51456 51457 # Only process if variable expands to non-empty 51458 51459 if test "x$MSVC_DLL" != x; then 51460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51461 51462 # Input might be given as Windows format, start by converting to 51463 # unix format. 51464 path="$MSVC_DLL" 51465 new_path=`$CYGPATH -u "$path"` 51466 51467 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51468 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51469 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51470 # "foo.exe" is OK but "foo" is an error. 51471 # 51472 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51473 # It is also a way to make sure we got the proper file name for the real test later on. 51474 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51475 if test "x$test_shortpath" = x; then 51476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51477 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51478 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51479 fi 51480 51481 # Call helper function which possibly converts this using DOS-style short mode. 51482 # If so, the updated path is stored in $new_path. 51483 51484 input_path="$new_path" 51485 # Check if we need to convert this using DOS-style short mode. If the path 51486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51487 # take no chances and rewrite it. 51488 # Note: m4 eats our [], so we need to use [ and ] instead. 51489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51490 if test "x$has_forbidden_chars" != x; then 51491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51492 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51493 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51494 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51495 # Going to short mode and back again did indeed matter. Since short mode is 51496 # case insensitive, let's make it lowercase to improve readability. 51497 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51498 # Now convert it back to Unix-style (cygpath) 51499 input_path=`$CYGPATH -u "$shortmode_path"` 51500 new_path="$input_path" 51501 fi 51502 fi 51503 51504 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51505 if test "x$test_cygdrive_prefix" = x; then 51506 # As a simple fix, exclude /usr/bin since it's not a real path. 51507 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51508 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51509 # a path prefixed by /cygdrive for fixpath to work. 51510 new_path="$CYGWIN_ROOT_PATH$input_path" 51511 fi 51512 fi 51513 51514 51515 if test "x$path" != "x$new_path"; then 51516 MSVC_DLL="$new_path" 51517 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51518 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51519 fi 51520 51521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51522 51523 path="$MSVC_DLL" 51524 has_colon=`$ECHO $path | $GREP ^.:` 51525 new_path="$path" 51526 if test "x$has_colon" = x; then 51527 # Not in mixed or Windows style, start by that. 51528 new_path=`cmd //c echo $path` 51529 fi 51530 51531 51532 input_path="$new_path" 51533 # Check if we need to convert this using DOS-style short mode. If the path 51534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51535 # take no chances and rewrite it. 51536 # Note: m4 eats our [], so we need to use [ and ] instead. 51537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51538 if test "x$has_forbidden_chars" != x; then 51539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51540 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51541 fi 51542 51543 51544 windows_path="$new_path" 51545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51546 unix_path=`$CYGPATH -u "$windows_path"` 51547 new_path="$unix_path" 51548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51550 new_path="$unix_path" 51551 fi 51552 51553 if test "x$path" != "x$new_path"; then 51554 MSVC_DLL="$new_path" 51555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51556 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51557 fi 51558 51559 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51560 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51561 51562 else 51563 # We're on a unix platform. Hooray! :) 51564 path="$MSVC_DLL" 51565 has_space=`$ECHO "$path" | $GREP " "` 51566 if test "x$has_space" != x; then 51567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51568 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51569 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51570 fi 51571 51572 # Use eval to expand a potential ~ 51573 eval path="$path" 51574 if test ! -f "$path" && test ! -d "$path"; then 51575 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51576 fi 51577 51578 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51579 fi 51580 fi 51581 51582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51583 $as_echo_n "checking for $DLL_NAME... " >&6; } 51584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51585 $as_echo "$MSVC_DLL" >&6; } 51586 else 51587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51588 $as_echo "incorrect, ignoring" >&6; } 51589 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51590 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51591 fi 51592 fi 51593 51594 if test "x$MSVC_DLL" = x; then 51595 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 51596 fi 51597 MSVCP_DLL="$MSVC_DLL" 51598 else 51599 51600 DLL_NAME="${MSVCP_NAME}" 51601 MSVC_DLL= 51602 51603 if test "x$MSVC_DLL" = x; then 51604 # Probe: Using well-known location from Visual Studio 10.0 51605 if test "x$VCINSTALLDIR" != x; then 51606 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 51607 51608 windows_path="$CYGWIN_VC_INSTALL_DIR" 51609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51610 unix_path=`$CYGPATH -u "$windows_path"` 51611 CYGWIN_VC_INSTALL_DIR="$unix_path" 51612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51614 CYGWIN_VC_INSTALL_DIR="$unix_path" 51615 fi 51616 51617 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51618 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 51619 else 51620 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 51621 fi 51622 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 51623 51624 DLL_NAME="$DLL_NAME" 51625 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51626 METHOD="well-known location in VCINSTALLDIR" 51627 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51628 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51629 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51630 51631 # Need to check if the found msvcr is correct architecture 51632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51633 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51634 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51636 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51637 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51638 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51639 CORRECT_MSVCR_ARCH="PE32 executable" 51640 else 51641 CORRECT_MSVCR_ARCH="PE32+ executable" 51642 fi 51643 else 51644 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51645 CORRECT_MSVCR_ARCH=386 51646 else 51647 CORRECT_MSVCR_ARCH=x86-64 51648 fi 51649 fi 51650 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51652 $as_echo "ok" >&6; } 51653 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51654 51655 # Only process if variable expands to non-empty 51656 51657 if test "x$MSVC_DLL" != x; then 51658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51659 51660 # Input might be given as Windows format, start by converting to 51661 # unix format. 51662 path="$MSVC_DLL" 51663 new_path=`$CYGPATH -u "$path"` 51664 51665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51668 # "foo.exe" is OK but "foo" is an error. 51669 # 51670 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51671 # It is also a way to make sure we got the proper file name for the real test later on. 51672 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51673 if test "x$test_shortpath" = x; then 51674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51675 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51676 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51677 fi 51678 51679 # Call helper function which possibly converts this using DOS-style short mode. 51680 # If so, the updated path is stored in $new_path. 51681 51682 input_path="$new_path" 51683 # Check if we need to convert this using DOS-style short mode. If the path 51684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51685 # take no chances and rewrite it. 51686 # Note: m4 eats our [], so we need to use [ and ] instead. 51687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51688 if test "x$has_forbidden_chars" != x; then 51689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51690 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51691 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51692 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51693 # Going to short mode and back again did indeed matter. Since short mode is 51694 # case insensitive, let's make it lowercase to improve readability. 51695 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51696 # Now convert it back to Unix-style (cygpath) 51697 input_path=`$CYGPATH -u "$shortmode_path"` 51698 new_path="$input_path" 51699 fi 51700 fi 51701 51702 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51703 if test "x$test_cygdrive_prefix" = x; then 51704 # As a simple fix, exclude /usr/bin since it's not a real path. 51705 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51706 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51707 # a path prefixed by /cygdrive for fixpath to work. 51708 new_path="$CYGWIN_ROOT_PATH$input_path" 51709 fi 51710 fi 51711 51712 51713 if test "x$path" != "x$new_path"; then 51714 MSVC_DLL="$new_path" 51715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51716 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51717 fi 51718 51719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51720 51721 path="$MSVC_DLL" 51722 has_colon=`$ECHO $path | $GREP ^.:` 51723 new_path="$path" 51724 if test "x$has_colon" = x; then 51725 # Not in mixed or Windows style, start by that. 51726 new_path=`cmd //c echo $path` 51727 fi 51728 51729 51730 input_path="$new_path" 51731 # Check if we need to convert this using DOS-style short mode. If the path 51732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51733 # take no chances and rewrite it. 51734 # Note: m4 eats our [], so we need to use [ and ] instead. 51735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51736 if test "x$has_forbidden_chars" != x; then 51737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51738 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51739 fi 51740 51741 51742 windows_path="$new_path" 51743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51744 unix_path=`$CYGPATH -u "$windows_path"` 51745 new_path="$unix_path" 51746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51747 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51748 new_path="$unix_path" 51749 fi 51750 51751 if test "x$path" != "x$new_path"; then 51752 MSVC_DLL="$new_path" 51753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51754 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51755 fi 51756 51757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51759 51760 else 51761 # We're on a unix platform. Hooray! :) 51762 path="$MSVC_DLL" 51763 has_space=`$ECHO "$path" | $GREP " "` 51764 if test "x$has_space" != x; then 51765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51766 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51767 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51768 fi 51769 51770 # Use eval to expand a potential ~ 51771 eval path="$path" 51772 if test ! -f "$path" && test ! -d "$path"; then 51773 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51774 fi 51775 51776 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51777 fi 51778 fi 51779 51780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51781 $as_echo_n "checking for $DLL_NAME... " >&6; } 51782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51783 $as_echo "$MSVC_DLL" >&6; } 51784 else 51785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51786 $as_echo "incorrect, ignoring" >&6; } 51787 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51788 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51789 fi 51790 fi 51791 51792 fi 51793 fi 51794 51795 if test "x$MSVC_DLL" = x; then 51796 # Probe: Check in the Boot JDK directory. 51797 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 51798 51799 DLL_NAME="$DLL_NAME" 51800 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51801 METHOD="well-known location in Boot JDK" 51802 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51803 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51804 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51805 51806 # Need to check if the found msvcr is correct architecture 51807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51808 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51809 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51811 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51812 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51813 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51814 CORRECT_MSVCR_ARCH="PE32 executable" 51815 else 51816 CORRECT_MSVCR_ARCH="PE32+ executable" 51817 fi 51818 else 51819 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51820 CORRECT_MSVCR_ARCH=386 51821 else 51822 CORRECT_MSVCR_ARCH=x86-64 51823 fi 51824 fi 51825 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51827 $as_echo "ok" >&6; } 51828 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51829 51830 # Only process if variable expands to non-empty 51831 51832 if test "x$MSVC_DLL" != x; then 51833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51834 51835 # Input might be given as Windows format, start by converting to 51836 # unix format. 51837 path="$MSVC_DLL" 51838 new_path=`$CYGPATH -u "$path"` 51839 51840 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51841 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51842 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51843 # "foo.exe" is OK but "foo" is an error. 51844 # 51845 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51846 # It is also a way to make sure we got the proper file name for the real test later on. 51847 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51848 if test "x$test_shortpath" = x; then 51849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51850 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51851 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51852 fi 51853 51854 # Call helper function which possibly converts this using DOS-style short mode. 51855 # If so, the updated path is stored in $new_path. 51856 51857 input_path="$new_path" 51858 # Check if we need to convert this using DOS-style short mode. If the path 51859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51860 # take no chances and rewrite it. 51861 # Note: m4 eats our [], so we need to use [ and ] instead. 51862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51863 if test "x$has_forbidden_chars" != x; then 51864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51868 # Going to short mode and back again did indeed matter. Since short mode is 51869 # case insensitive, let's make it lowercase to improve readability. 51870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51871 # Now convert it back to Unix-style (cygpath) 51872 input_path=`$CYGPATH -u "$shortmode_path"` 51873 new_path="$input_path" 51874 fi 51875 fi 51876 51877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51878 if test "x$test_cygdrive_prefix" = x; then 51879 # As a simple fix, exclude /usr/bin since it's not a real path. 51880 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51882 # a path prefixed by /cygdrive for fixpath to work. 51883 new_path="$CYGWIN_ROOT_PATH$input_path" 51884 fi 51885 fi 51886 51887 51888 if test "x$path" != "x$new_path"; then 51889 MSVC_DLL="$new_path" 51890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51891 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51892 fi 51893 51894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51895 51896 path="$MSVC_DLL" 51897 has_colon=`$ECHO $path | $GREP ^.:` 51898 new_path="$path" 51899 if test "x$has_colon" = x; then 51900 # Not in mixed or Windows style, start by that. 51901 new_path=`cmd //c echo $path` 51902 fi 51903 51904 51905 input_path="$new_path" 51906 # Check if we need to convert this using DOS-style short mode. If the path 51907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51908 # take no chances and rewrite it. 51909 # Note: m4 eats our [], so we need to use [ and ] instead. 51910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51911 if test "x$has_forbidden_chars" != x; then 51912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51914 fi 51915 51916 51917 windows_path="$new_path" 51918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51919 unix_path=`$CYGPATH -u "$windows_path"` 51920 new_path="$unix_path" 51921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51923 new_path="$unix_path" 51924 fi 51925 51926 if test "x$path" != "x$new_path"; then 51927 MSVC_DLL="$new_path" 51928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51929 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51930 fi 51931 51932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51934 51935 else 51936 # We're on a unix platform. Hooray! :) 51937 path="$MSVC_DLL" 51938 has_space=`$ECHO "$path" | $GREP " "` 51939 if test "x$has_space" != x; then 51940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51941 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51942 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51943 fi 51944 51945 # Use eval to expand a potential ~ 51946 eval path="$path" 51947 if test ! -f "$path" && test ! -d "$path"; then 51948 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51949 fi 51950 51951 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51952 fi 51953 fi 51954 51955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51956 $as_echo_n "checking for $DLL_NAME... " >&6; } 51957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51958 $as_echo "$MSVC_DLL" >&6; } 51959 else 51960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51961 $as_echo "incorrect, ignoring" >&6; } 51962 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51963 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51964 fi 51965 fi 51966 51967 fi 51968 51969 if test "x$MSVC_DLL" = x; then 51970 # Probe: Look in the Windows system32 directory 51971 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 51972 51973 windows_path="$CYGWIN_SYSTEMROOT" 51974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51975 unix_path=`$CYGPATH -u "$windows_path"` 51976 CYGWIN_SYSTEMROOT="$unix_path" 51977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51979 CYGWIN_SYSTEMROOT="$unix_path" 51980 fi 51981 51982 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 51983 51984 DLL_NAME="$DLL_NAME" 51985 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51986 METHOD="well-known location in SYSTEMROOT" 51987 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51988 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51989 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51990 51991 # Need to check if the found msvcr is correct architecture 51992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51993 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51994 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51996 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51997 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51998 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51999 CORRECT_MSVCR_ARCH="PE32 executable" 52000 else 52001 CORRECT_MSVCR_ARCH="PE32+ executable" 52002 fi 52003 else 52004 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52005 CORRECT_MSVCR_ARCH=386 52006 else 52007 CORRECT_MSVCR_ARCH=x86-64 52008 fi 52009 fi 52010 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 52011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 52012 $as_echo "ok" >&6; } 52013 MSVC_DLL="$POSSIBLE_MSVC_DLL" 52014 52015 # Only process if variable expands to non-empty 52016 52017 if test "x$MSVC_DLL" != x; then 52018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52019 52020 # Input might be given as Windows format, start by converting to 52021 # unix format. 52022 path="$MSVC_DLL" 52023 new_path=`$CYGPATH -u "$path"` 52024 52025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52028 # "foo.exe" is OK but "foo" is an error. 52029 # 52030 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52031 # It is also a way to make sure we got the proper file name for the real test later on. 52032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52033 if test "x$test_shortpath" = x; then 52034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52035 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52036 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 52037 fi 52038 52039 # Call helper function which possibly converts this using DOS-style short mode. 52040 # If so, the updated path is stored in $new_path. 52041 52042 input_path="$new_path" 52043 # Check if we need to convert this using DOS-style short mode. If the path 52044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52045 # take no chances and rewrite it. 52046 # Note: m4 eats our [], so we need to use [ and ] instead. 52047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52048 if test "x$has_forbidden_chars" != x; then 52049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52053 # Going to short mode and back again did indeed matter. Since short mode is 52054 # case insensitive, let's make it lowercase to improve readability. 52055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52056 # Now convert it back to Unix-style (cygpath) 52057 input_path=`$CYGPATH -u "$shortmode_path"` 52058 new_path="$input_path" 52059 fi 52060 fi 52061 52062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52063 if test "x$test_cygdrive_prefix" = x; then 52064 # As a simple fix, exclude /usr/bin since it's not a real path. 52065 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52067 # a path prefixed by /cygdrive for fixpath to work. 52068 new_path="$CYGWIN_ROOT_PATH$input_path" 52069 fi 52070 fi 52071 52072 52073 if test "x$path" != "x$new_path"; then 52074 MSVC_DLL="$new_path" 52075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52076 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52077 fi 52078 52079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52080 52081 path="$MSVC_DLL" 52082 has_colon=`$ECHO $path | $GREP ^.:` 52083 new_path="$path" 52084 if test "x$has_colon" = x; then 52085 # Not in mixed or Windows style, start by that. 52086 new_path=`cmd //c echo $path` 52087 fi 52088 52089 52090 input_path="$new_path" 52091 # Check if we need to convert this using DOS-style short mode. If the path 52092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52093 # take no chances and rewrite it. 52094 # Note: m4 eats our [], so we need to use [ and ] instead. 52095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52096 if test "x$has_forbidden_chars" != x; then 52097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52098 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52099 fi 52100 52101 52102 windows_path="$new_path" 52103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52104 unix_path=`$CYGPATH -u "$windows_path"` 52105 new_path="$unix_path" 52106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52108 new_path="$unix_path" 52109 fi 52110 52111 if test "x$path" != "x$new_path"; then 52112 MSVC_DLL="$new_path" 52113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52114 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52115 fi 52116 52117 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52118 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52119 52120 else 52121 # We're on a unix platform. Hooray! :) 52122 path="$MSVC_DLL" 52123 has_space=`$ECHO "$path" | $GREP " "` 52124 if test "x$has_space" != x; then 52125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52126 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52127 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52128 fi 52129 52130 # Use eval to expand a potential ~ 52131 eval path="$path" 52132 if test ! -f "$path" && test ! -d "$path"; then 52133 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 52134 fi 52135 52136 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 52137 fi 52138 fi 52139 52140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52141 $as_echo_n "checking for $DLL_NAME... " >&6; } 52142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 52143 $as_echo "$MSVC_DLL" >&6; } 52144 else 52145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 52146 $as_echo "incorrect, ignoring" >&6; } 52147 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 52148 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 52149 fi 52150 fi 52151 52152 fi 52153 52154 if test "x$MSVC_DLL" = x; then 52155 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 52156 if test "x$VS100COMNTOOLS" != x; then 52157 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 52158 52159 windows_path="$CYGWIN_VS_TOOLS_DIR" 52160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52161 unix_path=`$CYGPATH -u "$windows_path"` 52162 CYGWIN_VS_TOOLS_DIR="$unix_path" 52163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52165 CYGWIN_VS_TOOLS_DIR="$unix_path" 52166 fi 52167 52168 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52169 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 52170 | $GREP -i /x64/ | $HEAD --lines 1` 52171 else 52172 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 52173 | $GREP -i /x86/ | $HEAD --lines 1` 52174 fi 52175 52176 DLL_NAME="$DLL_NAME" 52177 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 52178 METHOD="search of VS100COMNTOOLS" 52179 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 52180 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 52181 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 52182 52183 # Need to check if the found msvcr is correct architecture 52184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 52185 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 52186 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 52187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52188 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 52189 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 52190 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52191 CORRECT_MSVCR_ARCH="PE32 executable" 52192 else 52193 CORRECT_MSVCR_ARCH="PE32+ executable" 52194 fi 52195 else 52196 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52197 CORRECT_MSVCR_ARCH=386 52198 else 52199 CORRECT_MSVCR_ARCH=x86-64 52200 fi 52201 fi 52202 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 52203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 52204 $as_echo "ok" >&6; } 52205 MSVC_DLL="$POSSIBLE_MSVC_DLL" 52206 52207 # Only process if variable expands to non-empty 52208 52209 if test "x$MSVC_DLL" != x; then 52210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52211 52212 # Input might be given as Windows format, start by converting to 52213 # unix format. 52214 path="$MSVC_DLL" 52215 new_path=`$CYGPATH -u "$path"` 52216 52217 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52218 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52219 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52220 # "foo.exe" is OK but "foo" is an error. 52221 # 52222 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52223 # It is also a way to make sure we got the proper file name for the real test later on. 52224 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52225 if test "x$test_shortpath" = x; then 52226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52227 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52228 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 52229 fi 52230 52231 # Call helper function which possibly converts this using DOS-style short mode. 52232 # If so, the updated path is stored in $new_path. 52233 52234 input_path="$new_path" 52235 # Check if we need to convert this using DOS-style short mode. If the path 52236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52237 # take no chances and rewrite it. 52238 # Note: m4 eats our [], so we need to use [ and ] instead. 52239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52240 if test "x$has_forbidden_chars" != x; then 52241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52242 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52243 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52244 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52245 # Going to short mode and back again did indeed matter. Since short mode is 52246 # case insensitive, let's make it lowercase to improve readability. 52247 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52248 # Now convert it back to Unix-style (cygpath) 52249 input_path=`$CYGPATH -u "$shortmode_path"` 52250 new_path="$input_path" 52251 fi 52252 fi 52253 52254 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52255 if test "x$test_cygdrive_prefix" = x; then 52256 # As a simple fix, exclude /usr/bin since it's not a real path. 52257 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52258 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52259 # a path prefixed by /cygdrive for fixpath to work. 52260 new_path="$CYGWIN_ROOT_PATH$input_path" 52261 fi 52262 fi 52263 52264 52265 if test "x$path" != "x$new_path"; then 52266 MSVC_DLL="$new_path" 52267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52268 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52269 fi 52270 52271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52272 52273 path="$MSVC_DLL" 52274 has_colon=`$ECHO $path | $GREP ^.:` 52275 new_path="$path" 52276 if test "x$has_colon" = x; then 52277 # Not in mixed or Windows style, start by that. 52278 new_path=`cmd //c echo $path` 52279 fi 52280 52281 52282 input_path="$new_path" 52283 # Check if we need to convert this using DOS-style short mode. If the path 52284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52285 # take no chances and rewrite it. 52286 # Note: m4 eats our [], so we need to use [ and ] instead. 52287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52288 if test "x$has_forbidden_chars" != x; then 52289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52291 fi 52292 52293 52294 windows_path="$new_path" 52295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52296 unix_path=`$CYGPATH -u "$windows_path"` 52297 new_path="$unix_path" 52298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52300 new_path="$unix_path" 52301 fi 52302 52303 if test "x$path" != "x$new_path"; then 52304 MSVC_DLL="$new_path" 52305 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52306 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52307 fi 52308 52309 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52310 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52311 52312 else 52313 # We're on a unix platform. Hooray! :) 52314 path="$MSVC_DLL" 52315 has_space=`$ECHO "$path" | $GREP " "` 52316 if test "x$has_space" != x; then 52317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52318 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52319 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52320 fi 52321 52322 # Use eval to expand a potential ~ 52323 eval path="$path" 52324 if test ! -f "$path" && test ! -d "$path"; then 52325 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 52326 fi 52327 52328 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 52329 fi 52330 fi 52331 52332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52333 $as_echo_n "checking for $DLL_NAME... " >&6; } 52334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 52335 $as_echo "$MSVC_DLL" >&6; } 52336 else 52337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 52338 $as_echo "incorrect, ignoring" >&6; } 52339 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 52340 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 52341 fi 52342 fi 52343 52344 fi 52345 fi 52346 52347 if test "x$MSVC_DLL" = x; then 52348 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 52349 # (This was the original behaviour; kept since it might turn something up) 52350 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 52351 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52352 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 52353 | $GREP x64 | $HEAD --lines 1` 52354 else 52355 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 52356 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 52357 if test "x$POSSIBLE_MSVC_DLL" = x; then 52358 # We're grasping at straws now... 52359 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 52360 | $HEAD --lines 1` 52361 fi 52362 fi 52363 52364 52365 DLL_NAME="$DLL_NAME" 52366 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 52367 METHOD="search of VCINSTALLDIR" 52368 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 52369 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 52370 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 52371 52372 # Need to check if the found msvcr is correct architecture 52373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 52374 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 52375 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 52376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52377 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 52378 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 52379 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52380 CORRECT_MSVCR_ARCH="PE32 executable" 52381 else 52382 CORRECT_MSVCR_ARCH="PE32+ executable" 52383 fi 52384 else 52385 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52386 CORRECT_MSVCR_ARCH=386 52387 else 52388 CORRECT_MSVCR_ARCH=x86-64 52389 fi 52390 fi 52391 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 52392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 52393 $as_echo "ok" >&6; } 52394 MSVC_DLL="$POSSIBLE_MSVC_DLL" 52395 52396 # Only process if variable expands to non-empty 52397 52398 if test "x$MSVC_DLL" != x; then 52399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52400 52401 # Input might be given as Windows format, start by converting to 52402 # unix format. 52403 path="$MSVC_DLL" 52404 new_path=`$CYGPATH -u "$path"` 52405 52406 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52407 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52408 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52409 # "foo.exe" is OK but "foo" is an error. 52410 # 52411 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52412 # It is also a way to make sure we got the proper file name for the real test later on. 52413 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52414 if test "x$test_shortpath" = x; then 52415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52416 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52417 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 52418 fi 52419 52420 # Call helper function which possibly converts this using DOS-style short mode. 52421 # If so, the updated path is stored in $new_path. 52422 52423 input_path="$new_path" 52424 # Check if we need to convert this using DOS-style short mode. If the path 52425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52426 # take no chances and rewrite it. 52427 # Note: m4 eats our [], so we need to use [ and ] instead. 52428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52429 if test "x$has_forbidden_chars" != x; then 52430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52434 # Going to short mode and back again did indeed matter. Since short mode is 52435 # case insensitive, let's make it lowercase to improve readability. 52436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52437 # Now convert it back to Unix-style (cygpath) 52438 input_path=`$CYGPATH -u "$shortmode_path"` 52439 new_path="$input_path" 52440 fi 52441 fi 52442 52443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52444 if test "x$test_cygdrive_prefix" = x; then 52445 # As a simple fix, exclude /usr/bin since it's not a real path. 52446 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52448 # a path prefixed by /cygdrive for fixpath to work. 52449 new_path="$CYGWIN_ROOT_PATH$input_path" 52450 fi 52451 fi 52452 52453 52454 if test "x$path" != "x$new_path"; then 52455 MSVC_DLL="$new_path" 52456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52457 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52458 fi 52459 52460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52461 52462 path="$MSVC_DLL" 52463 has_colon=`$ECHO $path | $GREP ^.:` 52464 new_path="$path" 52465 if test "x$has_colon" = x; then 52466 # Not in mixed or Windows style, start by that. 52467 new_path=`cmd //c echo $path` 52468 fi 52469 52470 52471 input_path="$new_path" 52472 # Check if we need to convert this using DOS-style short mode. If the path 52473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52474 # take no chances and rewrite it. 52475 # Note: m4 eats our [], so we need to use [ and ] instead. 52476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52477 if test "x$has_forbidden_chars" != x; then 52478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52480 fi 52481 52482 52483 windows_path="$new_path" 52484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52485 unix_path=`$CYGPATH -u "$windows_path"` 52486 new_path="$unix_path" 52487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52489 new_path="$unix_path" 52490 fi 52491 52492 if test "x$path" != "x$new_path"; then 52493 MSVC_DLL="$new_path" 52494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52495 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52496 fi 52497 52498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52500 52501 else 52502 # We're on a unix platform. Hooray! :) 52503 path="$MSVC_DLL" 52504 has_space=`$ECHO "$path" | $GREP " "` 52505 if test "x$has_space" != x; then 52506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52507 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52508 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52509 fi 52510 52511 # Use eval to expand a potential ~ 52512 eval path="$path" 52513 if test ! -f "$path" && test ! -d "$path"; then 52514 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 52515 fi 52516 52517 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 52518 fi 52519 fi 52520 52521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52522 $as_echo_n "checking for $DLL_NAME... " >&6; } 52523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 52524 $as_echo "$MSVC_DLL" >&6; } 52525 else 52526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 52527 $as_echo "incorrect, ignoring" >&6; } 52528 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 52529 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 52530 fi 52531 fi 52532 52533 fi 52534 fi 52535 52536 if test "x$MSVC_DLL" = x; then 52537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52538 $as_echo_n "checking for $DLL_NAME... " >&6; } 52539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52540 $as_echo "no" >&6; } 52541 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 52542 fi 52543 52544 MSVCP_DLL="$MSVC_DLL" 52545 fi 52546 52547 fi 52548 52549 52550 52551 # Check whether --with-dxsdk was given. 52552 if test "${with_dxsdk+set}" = set; then : 52553 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 52554 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 52555 fi 52556 52557 52558 52559 52560 # Check whether --with-dxsdk-lib was given. 52561 if test "${with_dxsdk_lib+set}" = set; then : 52562 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 52563 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 52564 fi 52565 52566 52567 52568 52569 # Check whether --with-dxsdk-include was given. 52570 if test "${with_dxsdk_include+set}" = set; then : 52571 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 52572 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 52573 fi 52574 52575 52576 fi 52577 52578 52579 ############################################################################### 52580 # 52581 # We need to do some final tweaking, when everything else is done. 52582 # 52583 ############################################################################### 52584 52585 52586 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 52587 52588 52589 # The name of the Service Agent jar. 52590 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 52591 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52592 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 52593 fi 52594 52595 52596 52597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 52598 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 52599 52600 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 52601 ENABLE_INTREE_EC=yes 52602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52603 $as_echo "yes" >&6; } 52604 else 52605 ENABLE_INTREE_EC=no 52606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52607 $as_echo "no" >&6; } 52608 fi 52609 52610 52611 52612 52613 ############################################################################### 52614 # 52615 # Configure parts of the build that only affect the build performance, 52616 # not the result. 52617 # 52618 ############################################################################### 52619 52620 52621 # How many cores do we have on this build system? 52622 52623 # Check whether --with-num-cores was given. 52624 if test "${with_num_cores+set}" = set; then : 52625 withval=$with_num_cores; 52626 fi 52627 52628 if test "x$with_num_cores" = x; then 52629 # The number of cores were not specified, try to probe them. 52630 52631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 52632 $as_echo_n "checking for number of cores... " >&6; } 52633 NUM_CORES=1 52634 FOUND_CORES=no 52635 52636 if test -f /proc/cpuinfo; then 52637 # Looks like a Linux (or cygwin) system 52638 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 52639 FOUND_CORES=yes 52640 elif test -x /usr/sbin/psrinfo; then 52641 # Looks like a Solaris system 52642 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 52643 FOUND_CORES=yes 52644 elif test -x /usr/sbin/system_profiler; then 52645 # Looks like a MacOSX system 52646 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 52647 FOUND_CORES=yes 52648 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 52649 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 52650 FOUND_CORES=yes 52651 elif test -n "$NUMBER_OF_PROCESSORS"; then 52652 # On windows, look in the env 52653 NUM_CORES=$NUMBER_OF_PROCESSORS 52654 FOUND_CORES=yes 52655 fi 52656 52657 if test "x$FOUND_CORES" = xyes; then 52658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 52659 $as_echo "$NUM_CORES" >&6; } 52660 else 52661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 52662 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 52663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 52664 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 52665 fi 52666 52667 else 52668 NUM_CORES=$with_num_cores 52669 fi 52670 52671 52672 52673 # How much memory do we have on this build system? 52674 52675 # Check whether --with-memory-size was given. 52676 if test "${with_memory_size+set}" = set; then : 52677 withval=$with_memory_size; 52678 fi 52679 52680 if test "x$with_memory_size" = x; then 52681 # The memory size was not specified, try to probe it. 52682 52683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 52684 $as_echo_n "checking for memory size... " >&6; } 52685 # Default to 1024 MB 52686 MEMORY_SIZE=1024 52687 FOUND_MEM=no 52688 52689 if test -f /proc/meminfo; then 52690 # Looks like a Linux (or cygwin) system 52691 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 52692 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 52693 FOUND_MEM=yes 52694 elif test -x /usr/sbin/prtconf; then 52695 # Looks like a Solaris or AIX system 52696 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 52697 FOUND_MEM=yes 52698 elif test -x /usr/sbin/system_profiler; then 52699 # Looks like a MacOSX system 52700 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 52701 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 52702 FOUND_MEM=yes 52703 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52704 # Windows, but without cygwin 52705 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 52706 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 52707 FOUND_MEM=yes 52708 fi 52709 52710 if test "x$FOUND_MEM" = xyes; then 52711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 52712 $as_echo "$MEMORY_SIZE MB" >&6; } 52713 else 52714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 52715 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 52716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 52717 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 52718 fi 52719 52720 else 52721 MEMORY_SIZE=$with_memory_size 52722 fi 52723 52724 52725 52726 # Provide a decent default number of parallel jobs for make depending on 52727 # number of cores, amount of memory and machine architecture. 52728 52729 # Check whether --with-jobs was given. 52730 if test "${with_jobs+set}" = set; then : 52731 withval=$with_jobs; 52732 fi 52733 52734 if test "x$with_jobs" = x; then 52735 # Number of jobs was not specified, calculate. 52736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 52737 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 52738 # Approximate memory in GB. 52739 memory_gb=`expr $MEMORY_SIZE / 1024` 52740 # Pick the lowest of memory in gb and number of cores. 52741 if test "$memory_gb" -lt "$NUM_CORES"; then 52742 JOBS="$memory_gb" 52743 else 52744 JOBS="$NUM_CORES" 52745 # On bigger machines, leave some room for other processes to run 52746 if test "$JOBS" -gt "4"; then 52747 JOBS=`expr $JOBS '*' 90 / 100` 52748 fi 52749 fi 52750 # Cap number of jobs to 16 52751 if test "$JOBS" -gt "16"; then 52752 JOBS=16 52753 fi 52754 if test "$JOBS" -eq "0"; then 52755 JOBS=1 52756 fi 52757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 52758 $as_echo "$JOBS" >&6; } 52759 else 52760 JOBS=$with_jobs 52761 fi 52762 52763 52764 52765 # Setup arguments for the boot jdk (after cores and memory have been setup) 52766 52767 ############################################################################## 52768 # 52769 # Specify jvm options for anything that is run with the Boot JDK. 52770 # Not all JVM:s accept the same arguments on the command line. 52771 # 52772 52773 # Check whether --with-boot-jdk-jvmargs was given. 52774 if test "${with_boot_jdk_jvmargs+set}" = set; then : 52775 withval=$with_boot_jdk_jvmargs; 52776 fi 52777 52778 52779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 52780 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 52781 52782 # Disable special log output when a debug build is used as Boot JDK... 52783 52784 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 52785 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 52786 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 52787 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52788 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52789 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52790 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 52791 JVM_ARG_OK=true 52792 else 52793 $ECHO "Arg failed:" >&5 52794 $ECHO "$OUTPUT" >&5 52795 JVM_ARG_OK=false 52796 fi 52797 52798 52799 # Apply user provided options. 52800 52801 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 52802 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 52803 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 52804 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52805 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52806 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52807 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 52808 JVM_ARG_OK=true 52809 else 52810 $ECHO "Arg failed:" >&5 52811 $ECHO "$OUTPUT" >&5 52812 JVM_ARG_OK=false 52813 fi 52814 52815 52816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 52817 $as_echo "$boot_jdk_jvmargs" >&6; } 52818 52819 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 52820 JAVA_FLAGS=$boot_jdk_jvmargs 52821 52822 52823 52824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 52825 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 52826 52827 # Starting amount of heap memory. 52828 52829 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 52830 $ECHO "Command: $JAVA -Xms64M -version" >&5 52831 OUTPUT=`$JAVA -Xms64M -version 2>&1` 52832 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52833 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52834 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52835 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 52836 JVM_ARG_OK=true 52837 else 52838 $ECHO "Arg failed:" >&5 52839 $ECHO "$OUTPUT" >&5 52840 JVM_ARG_OK=false 52841 fi 52842 52843 52844 # Maximum amount of heap memory. 52845 # Maximum stack size. 52846 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 52847 if test "x$BUILD_NUM_BITS" = x32; then 52848 if test "$JVM_MAX_HEAP" -gt "1100"; then 52849 JVM_MAX_HEAP=1100 52850 elif test "$JVM_MAX_HEAP" -lt "512"; then 52851 JVM_MAX_HEAP=512 52852 fi 52853 STACK_SIZE=768 52854 else 52855 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 52856 # pointers are used. Apparently, we need to increase the heap and stack 52857 # space for the jvm. More specifically, when running javac to build huge 52858 # jdk batch 52859 if test "$JVM_MAX_HEAP" -gt "1600"; then 52860 JVM_MAX_HEAP=1600 52861 elif test "$JVM_MAX_HEAP" -lt "512"; then 52862 JVM_MAX_HEAP=512 52863 fi 52864 STACK_SIZE=1536 52865 fi 52866 52867 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 52868 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 52869 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 52870 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52871 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52872 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52873 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 52874 JVM_ARG_OK=true 52875 else 52876 $ECHO "Arg failed:" >&5 52877 $ECHO "$OUTPUT" >&5 52878 JVM_ARG_OK=false 52879 fi 52880 52881 52882 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 52883 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 52884 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 52885 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52886 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52887 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52888 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 52889 JVM_ARG_OK=true 52890 else 52891 $ECHO "Arg failed:" >&5 52892 $ECHO "$OUTPUT" >&5 52893 JVM_ARG_OK=false 52894 fi 52895 52896 52897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 52898 $as_echo "$boot_jdk_jvmargs_big" >&6; } 52899 52900 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 52901 52902 52903 52904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 52905 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 52906 52907 # Use serial gc for small short lived tools if possible 52908 52909 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 52910 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 52911 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 52912 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52913 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52914 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52915 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 52916 JVM_ARG_OK=true 52917 else 52918 $ECHO "Arg failed:" >&5 52919 $ECHO "$OUTPUT" >&5 52920 JVM_ARG_OK=false 52921 fi 52922 52923 52924 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 52925 $ECHO "Command: $JAVA -Xms32M -version" >&5 52926 OUTPUT=`$JAVA -Xms32M -version 2>&1` 52927 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52928 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52929 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52930 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 52931 JVM_ARG_OK=true 52932 else 52933 $ECHO "Arg failed:" >&5 52934 $ECHO "$OUTPUT" >&5 52935 JVM_ARG_OK=false 52936 fi 52937 52938 52939 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 52940 $ECHO "Command: $JAVA -Xmx512M -version" >&5 52941 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 52942 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52943 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52944 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52945 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 52946 JVM_ARG_OK=true 52947 else 52948 $ECHO "Arg failed:" >&5 52949 $ECHO "$OUTPUT" >&5 52950 JVM_ARG_OK=false 52951 fi 52952 52953 52954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 52955 $as_echo "$boot_jdk_jvmargs_small" >&6; } 52956 52957 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 52958 52959 52960 JAVA_TOOL_FLAGS_SMALL="" 52961 for f in $JAVA_FLAGS_SMALL; do 52962 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 52963 done 52964 52965 52966 52967 # Setup smart javac (after cores and memory have been setup) 52968 52969 52970 # Check whether --with-sjavac-server-java was given. 52971 if test "${with_sjavac_server_java+set}" = set; then : 52972 withval=$with_sjavac_server_java; 52973 fi 52974 52975 52976 if test "x$with_sjavac_server_java" != x; then 52977 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 52978 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 52979 if test "x$FOUND_VERSION" = x; then 52980 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 52981 fi 52982 else 52983 SJAVAC_SERVER_JAVA="$JAVA" 52984 fi 52985 52986 52987 if test "$MEMORY_SIZE" -gt "3000"; then 52988 52989 $ECHO "Check if jvm arg is ok: -d64" >&5 52990 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 52991 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 52992 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52993 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52994 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52995 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 52996 JVM_ARG_OK=true 52997 else 52998 $ECHO "Arg failed:" >&5 52999 $ECHO "$OUTPUT" >&5 53000 JVM_ARG_OK=false 53001 fi 53002 53003 if test "$JVM_ARG_OK" = true; then 53004 JVM_64BIT=true 53005 JVM_ARG_OK=false 53006 fi 53007 fi 53008 53009 MX_VALUE=`expr $MEMORY_SIZE / 2` 53010 if test "$JVM_64BIT" = true; then 53011 # Set ms lower than mx since more than one instance of the server might 53012 # get launched at the same time before they figure out which instance won. 53013 MS_VALUE=512 53014 if test "$MX_VALUE" -gt "2048"; then 53015 MX_VALUE=2048 53016 fi 53017 else 53018 MS_VALUE=256 53019 if test "$MX_VALUE" -gt "1500"; then 53020 MX_VALUE=1500 53021 fi 53022 fi 53023 if test "$MX_VALUE" -lt "512"; then 53024 MX_VALUE=512 53025 fi 53026 53027 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 53028 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 53029 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 53030 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53031 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53032 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53033 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 53034 JVM_ARG_OK=true 53035 else 53036 $ECHO "Arg failed:" >&5 53037 $ECHO "$OUTPUT" >&5 53038 JVM_ARG_OK=false 53039 fi 53040 53041 53042 53043 # Check whether --enable-sjavac was given. 53044 if test "${enable_sjavac+set}" = set; then : 53045 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 53046 else 53047 ENABLE_SJAVAC='no' 53048 fi 53049 53050 if test "x$JVM_ARG_OK" = "xfalse"; then 53051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 53052 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 53053 ENABLE_SJAVAC=no; 53054 fi 53055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 53056 $as_echo_n "checking whether to use sjavac... " >&6; } 53057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 53058 $as_echo "$ENABLE_SJAVAC" >&6; } 53059 53060 53061 53062 # Can the C/C++ compiler use precompiled headers? 53063 53064 53065 ############################################################################### 53066 # 53067 # Can the C/C++ compiler use precompiled headers? 53068 # 53069 # Check whether --enable-precompiled-headers was given. 53070 if test "${enable_precompiled_headers+set}" = set; then : 53071 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 53072 else 53073 ENABLE_PRECOMPH=yes 53074 fi 53075 53076 53077 USE_PRECOMPILED_HEADER=1 53078 if test "x$ENABLE_PRECOMPH" = xno; then 53079 USE_PRECOMPILED_HEADER=0 53080 fi 53081 53082 if test "x$ENABLE_PRECOMPH" = xyes; then 53083 # Check that the compiler actually supports precomp headers. 53084 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 53086 $as_echo_n "checking that precompiled headers work... " >&6; } 53087 echo "int alfa();" > conftest.h 53088 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 53089 if test ! -f conftest.hpp.gch; then 53090 USE_PRECOMPILED_HEADER=0 53091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53092 $as_echo "no" >&6; } 53093 else 53094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53095 $as_echo "yes" >&6; } 53096 fi 53097 rm -f conftest.h conftest.hpp.gch 53098 fi 53099 fi 53100 53101 53102 53103 53104 # Setup use of ccache, if available 53105 53106 # Check whether --enable-ccache was given. 53107 if test "${enable_ccache+set}" = set; then : 53108 enableval=$enable_ccache; 53109 fi 53110 53111 53112 CCACHE= 53113 CCACHE_STATUS= 53114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 53115 $as_echo_n "checking is ccache enabled... " >&6; } 53116 if test "x$enable_ccache" = xyes; then 53117 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 53118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53119 $as_echo "yes" >&6; } 53120 OLD_PATH="$PATH" 53121 if test "x$TOOLCHAIN_PATH" != x; then 53122 PATH=$TOOLCHAIN_PATH:$PATH 53123 fi 53124 53125 53126 53127 # Publish this variable in the help. 53128 53129 53130 if test "x$CCACHE" = x; then 53131 # The variable is not set by user, try to locate tool using the code snippet 53132 for ac_prog in ccache 53133 do 53134 # Extract the first word of "$ac_prog", so it can be a program name with args. 53135 set dummy $ac_prog; ac_word=$2 53136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53137 $as_echo_n "checking for $ac_word... " >&6; } 53138 if ${ac_cv_path_CCACHE+:} false; then : 53139 $as_echo_n "(cached) " >&6 53140 else 53141 case $CCACHE in 53142 [\\/]* | ?:[\\/]*) 53143 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53144 ;; 53145 *) 53146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53147 for as_dir in $PATH 53148 do 53149 IFS=$as_save_IFS 53150 test -z "$as_dir" && as_dir=. 53151 for ac_exec_ext in '' $ac_executable_extensions; do 53152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53153 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53155 break 2 53156 fi 53157 done 53158 done 53159 IFS=$as_save_IFS 53160 53161 ;; 53162 esac 53163 fi 53164 CCACHE=$ac_cv_path_CCACHE 53165 if test -n "$CCACHE"; then 53166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53167 $as_echo "$CCACHE" >&6; } 53168 else 53169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53170 $as_echo "no" >&6; } 53171 fi 53172 53173 53174 test -n "$CCACHE" && break 53175 done 53176 53177 else 53178 # The variable is set, but is it from the command line or the environment? 53179 53180 # Try to remove the string !CCACHE! from our list. 53181 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 53182 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 53183 # If it failed, the variable was not from the command line. Ignore it, 53184 # but warn the user (except for BASH, which is always set by the calling BASH). 53185 if test "xCCACHE" != xBASH; then 53186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 53187 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 53188 fi 53189 # Try to locate tool using the code snippet 53190 for ac_prog in ccache 53191 do 53192 # Extract the first word of "$ac_prog", so it can be a program name with args. 53193 set dummy $ac_prog; ac_word=$2 53194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53195 $as_echo_n "checking for $ac_word... " >&6; } 53196 if ${ac_cv_path_CCACHE+:} false; then : 53197 $as_echo_n "(cached) " >&6 53198 else 53199 case $CCACHE in 53200 [\\/]* | ?:[\\/]*) 53201 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53202 ;; 53203 *) 53204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53205 for as_dir in $PATH 53206 do 53207 IFS=$as_save_IFS 53208 test -z "$as_dir" && as_dir=. 53209 for ac_exec_ext in '' $ac_executable_extensions; do 53210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53211 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53213 break 2 53214 fi 53215 done 53216 done 53217 IFS=$as_save_IFS 53218 53219 ;; 53220 esac 53221 fi 53222 CCACHE=$ac_cv_path_CCACHE 53223 if test -n "$CCACHE"; then 53224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53225 $as_echo "$CCACHE" >&6; } 53226 else 53227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53228 $as_echo "no" >&6; } 53229 fi 53230 53231 53232 test -n "$CCACHE" && break 53233 done 53234 53235 else 53236 # If it succeeded, then it was overridden by the user. We will use it 53237 # for the tool. 53238 53239 # First remove it from the list of overridden variables, so we can test 53240 # for unknown variables in the end. 53241 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 53242 53243 # Check if the provided tool contains a complete path. 53244 tool_specified="$CCACHE" 53245 tool_basename="${tool_specified##*/}" 53246 if test "x$tool_basename" = "x$tool_specified"; then 53247 # A command without a complete path is provided, search $PATH. 53248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 53249 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 53250 # Extract the first word of "$tool_basename", so it can be a program name with args. 53251 set dummy $tool_basename; ac_word=$2 53252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53253 $as_echo_n "checking for $ac_word... " >&6; } 53254 if ${ac_cv_path_CCACHE+:} false; then : 53255 $as_echo_n "(cached) " >&6 53256 else 53257 case $CCACHE in 53258 [\\/]* | ?:[\\/]*) 53259 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53260 ;; 53261 *) 53262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53263 for as_dir in $PATH 53264 do 53265 IFS=$as_save_IFS 53266 test -z "$as_dir" && as_dir=. 53267 for ac_exec_ext in '' $ac_executable_extensions; do 53268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53269 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53271 break 2 53272 fi 53273 done 53274 done 53275 IFS=$as_save_IFS 53276 53277 ;; 53278 esac 53279 fi 53280 CCACHE=$ac_cv_path_CCACHE 53281 if test -n "$CCACHE"; then 53282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53283 $as_echo "$CCACHE" >&6; } 53284 else 53285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53286 $as_echo "no" >&6; } 53287 fi 53288 53289 53290 if test "x$CCACHE" = x; then 53291 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 53292 fi 53293 else 53294 # Otherwise we believe it is a complete path. Use it as it is. 53295 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 53296 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 53297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 53298 $as_echo_n "checking for CCACHE... " >&6; } 53299 if test ! -x "$tool_specified"; then 53300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 53301 $as_echo "not found" >&6; } 53302 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 53303 fi 53304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 53305 $as_echo "$tool_specified" >&6; } 53306 fi 53307 fi 53308 fi 53309 53310 53311 53312 if test "x$CCACHE" = x; then 53313 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 53314 fi 53315 53316 53317 PATH="$OLD_PATH" 53318 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 53319 CCACHE_STATUS="Active ($CCACHE_VERSION)" 53320 else 53321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53322 $as_echo "no" >&6; } 53323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 53324 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 53325 fi 53326 elif test "x$enable_ccache" = xno; then 53327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 53328 $as_echo "no, explicitly disabled" >&6; } 53329 CCACHE_STATUS="Disabled" 53330 elif test "x$enable_ccache" = x; then 53331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53332 $as_echo "no" >&6; } 53333 else 53334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 53335 $as_echo "unknown" >&6; } 53336 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 53337 fi 53338 53339 53340 53341 # Check whether --with-ccache-dir was given. 53342 if test "${with_ccache_dir+set}" = set; then : 53343 withval=$with_ccache_dir; 53344 fi 53345 53346 53347 if test "x$with_ccache_dir" != x; then 53348 # When using a non home ccache directory, assume the use is to share ccache files 53349 # with other users. Thus change the umask. 53350 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 53351 if test "x$CCACHE" = x; then 53352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 53353 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 53354 fi 53355 fi 53356 53357 if test "x$CCACHE" != x; then 53358 53359 if test "x$CCACHE" != x; then 53360 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 53361 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 53362 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 53363 if test "x$HAS_BAD_CCACHE" != "x"; then 53364 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 53365 fi 53366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 53367 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 53368 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 53369 PUSHED_FLAGS="$CXXFLAGS" 53370 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 53371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53372 /* end confdefs.h. */ 53373 53374 int 53375 main () 53376 { 53377 53378 ; 53379 return 0; 53380 } 53381 _ACEOF 53382 if ac_fn_cxx_try_compile "$LINENO"; then : 53383 CC_KNOWS_CCACHE_TRICK=yes 53384 else 53385 CC_KNOWS_CCACHE_TRICK=no 53386 fi 53387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53388 CXXFLAGS="$PUSHED_FLAGS" 53389 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 53390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53391 $as_echo "yes" >&6; } 53392 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 53393 53394 CCACHE_SLOPPINESS=pch_defines,time_macros 53395 else 53396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53397 $as_echo "no" >&6; } 53398 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 53399 fi 53400 fi 53401 53402 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 53403 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 53404 53405 if test "x$SET_CCACHE_DIR" != x; then 53406 mkdir -p $CCACHE_DIR > /dev/null 2>&1 53407 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 53408 fi 53409 fi 53410 53411 fi 53412 53413 53414 ############################################################################### 53415 # 53416 # And now the finish... 53417 # 53418 ############################################################################### 53419 53420 # Check for some common pitfalls 53421 53422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53423 file_to_test="$SRC_ROOT/LICENSE" 53424 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 53425 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 53426 fi 53427 fi 53428 53429 53430 # Did user specify any unknown variables? 53431 53432 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 53433 # Replace the separating ! with spaces before presenting for end user. 53434 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 53435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 53436 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 53437 fi 53438 53439 53440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 53441 $as_echo_n "checking if build directory is on local disk... " >&6; } 53442 53443 # df -l lists only local disks; if the given directory is not found then 53444 # a non-zero exit code is given 53445 if test "x$DF" = x; then 53446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53447 # msys does not have df; use Windows "net use" instead. 53448 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 53449 if test "x$IS_NETWORK_DISK" = x; then 53450 OUTPUT_DIR_IS_LOCAL="yes" 53451 else 53452 OUTPUT_DIR_IS_LOCAL="no" 53453 fi 53454 else 53455 # No df here, say it's local 53456 OUTPUT_DIR_IS_LOCAL="yes" 53457 fi 53458 else 53459 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 53460 OUTPUT_DIR_IS_LOCAL="yes" 53461 else 53462 OUTPUT_DIR_IS_LOCAL="no" 53463 fi 53464 fi 53465 53466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 53467 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 53468 53469 53470 53471 # Check if the user has any old-style ALT_ variables set. 53472 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 53473 53474 # Before generating output files, test if they exist. If they do, this is a reconfigure. 53475 # Since we can't properly handle the dependencies for this, warn the user about the situation 53476 if test -e $OUTPUT_ROOT/spec.gmk; then 53477 IS_RECONFIGURE=yes 53478 else 53479 IS_RECONFIGURE=no 53480 fi 53481 53482 53483 # At the end, call the custom hook. (Dummy macro if no custom sources available) 53484 53485 53486 # We're messing a bit with internal autoconf variables to put the config.status 53487 # in the output directory instead of the current directory. 53488 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 53489 53490 # Create the actual output files. Now the main work of configure is done. 53491 cat >confcache <<\_ACEOF 53492 # This file is a shell script that caches the results of configure 53493 # tests run on this system so they can be shared between configure 53494 # scripts and configure runs, see configure's option --config-cache. 53495 # It is not useful on other systems. If it contains results you don't 53496 # want to keep, you may remove or edit it. 53497 # 53498 # config.status only pays attention to the cache file if you give it 53499 # the --recheck option to rerun configure. 53500 # 53501 # `ac_cv_env_foo' variables (set or unset) will be overridden when 53502 # loading this file, other *unset* `ac_cv_foo' will be assigned the 53503 # following values. 53504 53505 _ACEOF 53506 53507 # The following way of writing the cache mishandles newlines in values, 53508 # but we know of no workaround that is simple, portable, and efficient. 53509 # So, we kill variables containing newlines. 53510 # Ultrix sh set writes to stderr and can't be redirected directly, 53511 # and sets the high bit in the cache file unless we assign to the vars. 53512 ( 53513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 53514 eval ac_val=\$$ac_var 53515 case $ac_val in #( 53516 *${as_nl}*) 53517 case $ac_var in #( 53518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 53519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 53520 esac 53521 case $ac_var in #( 53522 _ | IFS | as_nl) ;; #( 53523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 53524 *) { eval $ac_var=; unset $ac_var;} ;; 53525 esac ;; 53526 esac 53527 done 53528 53529 (set) 2>&1 | 53530 case $as_nl`(ac_space=' '; set) 2>&1` in #( 53531 *${as_nl}ac_space=\ *) 53532 # `set' does not quote correctly, so add quotes: double-quote 53533 # substitution turns \\\\ into \\, and sed turns \\ into \. 53534 sed -n \ 53535 "s/'/'\\\\''/g; 53536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 53537 ;; #( 53538 *) 53539 # `set' quotes correctly as required by POSIX, so do not add quotes. 53540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 53541 ;; 53542 esac | 53543 sort 53544 ) | 53545 sed ' 53546 /^ac_cv_env_/b end 53547 t clear 53548 :clear 53549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 53550 t end 53551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 53552 :end' >>confcache 53553 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 53554 if test -w "$cache_file"; then 53555 if test "x$cache_file" != "x/dev/null"; then 53556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 53557 $as_echo "$as_me: updating cache $cache_file" >&6;} 53558 if test ! -f "$cache_file" || test -h "$cache_file"; then 53559 cat confcache >"$cache_file" 53560 else 53561 case $cache_file in #( 53562 */* | ?:*) 53563 mv -f confcache "$cache_file"$$ && 53564 mv -f "$cache_file"$$ "$cache_file" ;; #( 53565 *) 53566 mv -f confcache "$cache_file" ;; 53567 esac 53568 fi 53569 fi 53570 else 53571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 53572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 53573 fi 53574 fi 53575 rm -f confcache 53576 53577 test "x$prefix" = xNONE && prefix=$ac_default_prefix 53578 # Let make expand exec_prefix. 53579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 53580 53581 # Transform confdefs.h into DEFS. 53582 # Protect against shell expansion while executing Makefile rules. 53583 # Protect against Makefile macro expansion. 53584 # 53585 # If the first sed substitution is executed (which looks for macros that 53586 # take arguments), then branch to the quote section. Otherwise, 53587 # look for a macro that doesn't take arguments. 53588 ac_script=' 53589 :mline 53590 /\\$/{ 53591 N 53592 s,\\\n,, 53593 b mline 53594 } 53595 t clear 53596 :clear 53597 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 53598 t quote 53599 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 53600 t quote 53601 b any 53602 :quote 53603 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 53604 s/\[/\\&/g 53605 s/\]/\\&/g 53606 s/\$/$$/g 53607 H 53608 :any 53609 ${ 53610 g 53611 s/^\n// 53612 s/\n/ /g 53613 p 53614 } 53615 ' 53616 DEFS=`sed -n "$ac_script" confdefs.h` 53617 53618 53619 ac_libobjs= 53620 ac_ltlibobjs= 53621 U= 53622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 53623 # 1. Remove the extension, and $U if already installed. 53624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 53625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 53626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 53627 # will be set to the directory where LIBOBJS objects are built. 53628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 53629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 53630 done 53631 LIBOBJS=$ac_libobjs 53632 53633 LTLIBOBJS=$ac_ltlibobjs 53634 53635 53636 53637 : "${CONFIG_STATUS=./config.status}" 53638 ac_write_fail=0 53639 ac_clean_files_save=$ac_clean_files 53640 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 53641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 53642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 53643 as_write_fail=0 53644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 53645 #! $SHELL 53646 # Generated by $as_me. 53647 # Run this file to recreate the current configuration. 53648 # Compiler output produced by configure, useful for debugging 53649 # configure, is in config.log if it exists. 53650 53651 debug=false 53652 ac_cs_recheck=false 53653 ac_cs_silent=false 53654 53655 SHELL=\${CONFIG_SHELL-$SHELL} 53656 export SHELL 53657 _ASEOF 53658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 53659 ## -------------------- ## 53660 ## M4sh Initialization. ## 53661 ## -------------------- ## 53662 53663 # Be more Bourne compatible 53664 DUALCASE=1; export DUALCASE # for MKS sh 53665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 53666 emulate sh 53667 NULLCMD=: 53668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 53669 # is contrary to our usage. Disable this feature. 53670 alias -g '${1+"$@"}'='"$@"' 53671 setopt NO_GLOB_SUBST 53672 else 53673 case `(set -o) 2>/dev/null` in #( 53674 *posix*) : 53675 set -o posix ;; #( 53676 *) : 53677 ;; 53678 esac 53679 fi 53680 53681 53682 as_nl=' 53683 ' 53684 export as_nl 53685 # Printing a long string crashes Solaris 7 /usr/bin/printf. 53686 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 53687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 53688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 53689 # Prefer a ksh shell builtin over an external printf program on Solaris, 53690 # but without wasting forks for bash or zsh. 53691 if test -z "$BASH_VERSION$ZSH_VERSION" \ 53692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53693 as_echo='print -r --' 53694 as_echo_n='print -rn --' 53695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53696 as_echo='printf %s\n' 53697 as_echo_n='printf %s' 53698 else 53699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53701 as_echo_n='/usr/ucb/echo -n' 53702 else 53703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 53704 as_echo_n_body='eval 53705 arg=$1; 53706 case $arg in #( 53707 *"$as_nl"*) 53708 expr "X$arg" : "X\\(.*\\)$as_nl"; 53709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 53710 esac; 53711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 53712 ' 53713 export as_echo_n_body 53714 as_echo_n='sh -c $as_echo_n_body as_echo' 53715 fi 53716 export as_echo_body 53717 as_echo='sh -c $as_echo_body as_echo' 53718 fi 53719 53720 # The user is always right. 53721 if test "${PATH_SEPARATOR+set}" != set; then 53722 PATH_SEPARATOR=: 53723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 53724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 53725 PATH_SEPARATOR=';' 53726 } 53727 fi 53728 53729 53730 # IFS 53731 # We need space, tab and new line, in precisely that order. Quoting is 53732 # there to prevent editors from complaining about space-tab. 53733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 53734 # splitting by setting IFS to empty value.) 53735 IFS=" "" $as_nl" 53736 53737 # Find who we are. Look in the path if we contain no directory separator. 53738 as_myself= 53739 case $0 in #(( 53740 *[\\/]* ) as_myself=$0 ;; 53741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53742 for as_dir in $PATH 53743 do 53744 IFS=$as_save_IFS 53745 test -z "$as_dir" && as_dir=. 53746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53747 done 53748 IFS=$as_save_IFS 53749 53750 ;; 53751 esac 53752 # We did not find ourselves, most probably we were run as `sh COMMAND' 53753 # in which case we are not to be found in the path. 53754 if test "x$as_myself" = x; then 53755 as_myself=$0 53756 fi 53757 if test ! -f "$as_myself"; then 53758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53759 exit 1 53760 fi 53761 53762 # Unset variables that we do not need and which cause bugs (e.g. in 53763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53764 # suppresses any "Segmentation fault" message there. '((' could 53765 # trigger a bug in pdksh 5.2.14. 53766 for as_var in BASH_ENV ENV MAIL MAILPATH 53767 do eval test x\${$as_var+set} = xset \ 53768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53769 done 53770 PS1='$ ' 53771 PS2='> ' 53772 PS4='+ ' 53773 53774 # NLS nuisances. 53775 LC_ALL=C 53776 export LC_ALL 53777 LANGUAGE=C 53778 export LANGUAGE 53779 53780 # CDPATH. 53781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53782 53783 53784 # as_fn_error STATUS ERROR [LINENO LOG_FD] 53785 # ---------------------------------------- 53786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53788 # script with STATUS, using 1 if that was 0. 53789 as_fn_error () 53790 { 53791 as_status=$1; test $as_status -eq 0 && as_status=1 53792 if test "$4"; then 53793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53795 fi 53796 $as_echo "$as_me: error: $2" >&2 53797 as_fn_exit $as_status 53798 } # as_fn_error 53799 53800 53801 # as_fn_set_status STATUS 53802 # ----------------------- 53803 # Set $? to STATUS, without forking. 53804 as_fn_set_status () 53805 { 53806 return $1 53807 } # as_fn_set_status 53808 53809 # as_fn_exit STATUS 53810 # ----------------- 53811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53812 as_fn_exit () 53813 { 53814 set +e 53815 as_fn_set_status $1 53816 exit $1 53817 } # as_fn_exit 53818 53819 # as_fn_unset VAR 53820 # --------------- 53821 # Portably unset VAR. 53822 as_fn_unset () 53823 { 53824 { eval $1=; unset $1;} 53825 } 53826 as_unset=as_fn_unset 53827 # as_fn_append VAR VALUE 53828 # ---------------------- 53829 # Append the text in VALUE to the end of the definition contained in VAR. Take 53830 # advantage of any shell optimizations that allow amortized linear growth over 53831 # repeated appends, instead of the typical quadratic growth present in naive 53832 # implementations. 53833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53834 eval 'as_fn_append () 53835 { 53836 eval $1+=\$2 53837 }' 53838 else 53839 as_fn_append () 53840 { 53841 eval $1=\$$1\$2 53842 } 53843 fi # as_fn_append 53844 53845 # as_fn_arith ARG... 53846 # ------------------ 53847 # Perform arithmetic evaluation on the ARGs, and store the result in the 53848 # global $as_val. Take advantage of shells that can avoid forks. The arguments 53849 # must be portable across $(()) and expr. 53850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 53851 eval 'as_fn_arith () 53852 { 53853 as_val=$(( $* )) 53854 }' 53855 else 53856 as_fn_arith () 53857 { 53858 as_val=`expr "$@" || test $? -eq 1` 53859 } 53860 fi # as_fn_arith 53861 53862 53863 if expr a : '\(a\)' >/dev/null 2>&1 && 53864 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53865 as_expr=expr 53866 else 53867 as_expr=false 53868 fi 53869 53870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 53871 as_basename=basename 53872 else 53873 as_basename=false 53874 fi 53875 53876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 53877 as_dirname=dirname 53878 else 53879 as_dirname=false 53880 fi 53881 53882 as_me=`$as_basename -- "$0" || 53883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53884 X"$0" : 'X\(//\)$' \| \ 53885 X"$0" : 'X\(/\)' \| . 2>/dev/null || 53886 $as_echo X/"$0" | 53887 sed '/^.*\/\([^/][^/]*\)\/*$/{ 53888 s//\1/ 53889 q 53890 } 53891 /^X\/\(\/\/\)$/{ 53892 s//\1/ 53893 q 53894 } 53895 /^X\/\(\/\).*/{ 53896 s//\1/ 53897 q 53898 } 53899 s/.*/./; q'` 53900 53901 # Avoid depending upon Character Ranges. 53902 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 53903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 53904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 53905 as_cr_digits='0123456789' 53906 as_cr_alnum=$as_cr_Letters$as_cr_digits 53907 53908 ECHO_C= ECHO_N= ECHO_T= 53909 case `echo -n x` in #((((( 53910 -n*) 53911 case `echo 'xy\c'` in 53912 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53913 xy) ECHO_C='\c';; 53914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53915 ECHO_T=' ';; 53916 esac;; 53917 *) 53918 ECHO_N='-n';; 53919 esac 53920 53921 rm -f conf$$ conf$$.exe conf$$.file 53922 if test -d conf$$.dir; then 53923 rm -f conf$$.dir/conf$$.file 53924 else 53925 rm -f conf$$.dir 53926 mkdir conf$$.dir 2>/dev/null 53927 fi 53928 if (echo >conf$$.file) 2>/dev/null; then 53929 if ln -s conf$$.file conf$$ 2>/dev/null; then 53930 as_ln_s='ln -s' 53931 # ... but there are two gotchas: 53932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 53933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53934 # In both cases, we have to default to `cp -pR'. 53935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53936 as_ln_s='cp -pR' 53937 elif ln conf$$.file conf$$ 2>/dev/null; then 53938 as_ln_s=ln 53939 else 53940 as_ln_s='cp -pR' 53941 fi 53942 else 53943 as_ln_s='cp -pR' 53944 fi 53945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53946 rmdir conf$$.dir 2>/dev/null 53947 53948 53949 # as_fn_mkdir_p 53950 # ------------- 53951 # Create "$as_dir" as a directory, including parents if necessary. 53952 as_fn_mkdir_p () 53953 { 53954 53955 case $as_dir in #( 53956 -*) as_dir=./$as_dir;; 53957 esac 53958 test -d "$as_dir" || eval $as_mkdir_p || { 53959 as_dirs= 53960 while :; do 53961 case $as_dir in #( 53962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 53963 *) as_qdir=$as_dir;; 53964 esac 53965 as_dirs="'$as_qdir' $as_dirs" 53966 as_dir=`$as_dirname -- "$as_dir" || 53967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53968 X"$as_dir" : 'X\(//\)[^/]' \| \ 53969 X"$as_dir" : 'X\(//\)$' \| \ 53970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 53971 $as_echo X"$as_dir" | 53972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53973 s//\1/ 53974 q 53975 } 53976 /^X\(\/\/\)[^/].*/{ 53977 s//\1/ 53978 q 53979 } 53980 /^X\(\/\/\)$/{ 53981 s//\1/ 53982 q 53983 } 53984 /^X\(\/\).*/{ 53985 s//\1/ 53986 q 53987 } 53988 s/.*/./; q'` 53989 test -d "$as_dir" && break 53990 done 53991 test -z "$as_dirs" || eval "mkdir $as_dirs" 53992 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 53993 53994 53995 } # as_fn_mkdir_p 53996 if mkdir -p . 2>/dev/null; then 53997 as_mkdir_p='mkdir -p "$as_dir"' 53998 else 53999 test -d ./-p && rmdir ./-p 54000 as_mkdir_p=false 54001 fi 54002 54003 54004 # as_fn_executable_p FILE 54005 # ----------------------- 54006 # Test if FILE is an executable regular file. 54007 as_fn_executable_p () 54008 { 54009 test -f "$1" && test -x "$1" 54010 } # as_fn_executable_p 54011 as_test_x='test -x' 54012 as_executable_p=as_fn_executable_p 54013 54014 # Sed expression to map a string onto a valid CPP name. 54015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 54016 54017 # Sed expression to map a string onto a valid variable name. 54018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 54019 54020 54021 exec 6>&1 54022 ## ----------------------------------- ## 54023 ## Main body of $CONFIG_STATUS script. ## 54024 ## ----------------------------------- ## 54025 _ASEOF 54026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 54027 54028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54029 # Save the log message, to keep $0 and so on meaningful, and to 54030 # report actual input values of CONFIG_FILES etc. instead of their 54031 # values after options handling. 54032 ac_log=" 54033 This file was extended by OpenJDK $as_me jdk9, which was 54034 generated by GNU Autoconf 2.69. Invocation command line was 54035 54036 CONFIG_FILES = $CONFIG_FILES 54037 CONFIG_HEADERS = $CONFIG_HEADERS 54038 CONFIG_LINKS = $CONFIG_LINKS 54039 CONFIG_COMMANDS = $CONFIG_COMMANDS 54040 $ $0 $@ 54041 54042 on `(hostname || uname -n) 2>/dev/null | sed 1q` 54043 " 54044 54045 _ACEOF 54046 54047 case $ac_config_files in *" 54048 "*) set x $ac_config_files; shift; ac_config_files=$*;; 54049 esac 54050 54051 54052 54053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54054 # Files that config.status was made for. 54055 config_files="$ac_config_files" 54056 54057 _ACEOF 54058 54059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54060 ac_cs_usage="\ 54061 \`$as_me' instantiates files and other configuration actions 54062 from templates according to the current configuration. Unless the files 54063 and actions are specified as TAGs, all are instantiated by default. 54064 54065 Usage: $0 [OPTION]... [TAG]... 54066 54067 -h, --help print this help, then exit 54068 -V, --version print version number and configuration settings, then exit 54069 --config print configuration, then exit 54070 -q, --quiet, --silent 54071 do not print progress messages 54072 -d, --debug don't remove temporary files 54073 --recheck update $as_me by reconfiguring in the same conditions 54074 --file=FILE[:TEMPLATE] 54075 instantiate the configuration file FILE 54076 54077 Configuration files: 54078 $config_files 54079 54080 Report bugs to <build-dev@openjdk.java.net>. 54081 OpenJDK home page: <http://openjdk.java.net>." 54082 54083 _ACEOF 54084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54085 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 54086 ac_cs_version="\\ 54087 OpenJDK config.status jdk9 54088 configured by $0, generated by GNU Autoconf 2.69, 54089 with options \\"\$ac_cs_config\\" 54090 54091 Copyright (C) 2012 Free Software Foundation, Inc. 54092 This config.status script is free software; the Free Software Foundation 54093 gives unlimited permission to copy, distribute and modify it." 54094 54095 ac_pwd='$ac_pwd' 54096 srcdir='$srcdir' 54097 AWK='$AWK' 54098 test -n "\$AWK" || AWK=awk 54099 _ACEOF 54100 54101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54102 # The default lists apply if the user does not specify any file. 54103 ac_need_defaults=: 54104 while test $# != 0 54105 do 54106 case $1 in 54107 --*=?*) 54108 ac_option=`expr "X$1" : 'X\([^=]*\)='` 54109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 54110 ac_shift=: 54111 ;; 54112 --*=) 54113 ac_option=`expr "X$1" : 'X\([^=]*\)='` 54114 ac_optarg= 54115 ac_shift=: 54116 ;; 54117 *) 54118 ac_option=$1 54119 ac_optarg=$2 54120 ac_shift=shift 54121 ;; 54122 esac 54123 54124 case $ac_option in 54125 # Handling of the options. 54126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 54127 ac_cs_recheck=: ;; 54128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 54129 $as_echo "$ac_cs_version"; exit ;; 54130 --config | --confi | --conf | --con | --co | --c ) 54131 $as_echo "$ac_cs_config"; exit ;; 54132 --debug | --debu | --deb | --de | --d | -d ) 54133 debug=: ;; 54134 --file | --fil | --fi | --f ) 54135 $ac_shift 54136 case $ac_optarg in 54137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 54138 '') as_fn_error $? "missing file argument" ;; 54139 esac 54140 as_fn_append CONFIG_FILES " '$ac_optarg'" 54141 ac_need_defaults=false;; 54142 --he | --h | --help | --hel | -h ) 54143 $as_echo "$ac_cs_usage"; exit ;; 54144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 54145 | -silent | --silent | --silen | --sile | --sil | --si | --s) 54146 ac_cs_silent=: ;; 54147 54148 # This is an error. 54149 -*) as_fn_error $? "unrecognized option: \`$1' 54150 Try \`$0 --help' for more information." ;; 54151 54152 *) as_fn_append ac_config_targets " $1" 54153 ac_need_defaults=false ;; 54154 54155 esac 54156 shift 54157 done 54158 54159 ac_configure_extra_args= 54160 54161 if $ac_cs_silent; then 54162 exec 6>/dev/null 54163 ac_configure_extra_args="$ac_configure_extra_args --silent" 54164 fi 54165 54166 _ACEOF 54167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54168 if \$ac_cs_recheck; then 54169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 54170 shift 54171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 54172 CONFIG_SHELL='$SHELL' 54173 export CONFIG_SHELL 54174 exec "\$@" 54175 fi 54176 54177 _ACEOF 54178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54179 exec 5>>config.log 54180 { 54181 echo 54182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 54183 ## Running $as_me. ## 54184 _ASBOX 54185 $as_echo "$ac_log" 54186 } >&5 54187 54188 _ACEOF 54189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54190 _ACEOF 54191 54192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54193 54194 # Handling of arguments. 54195 for ac_config_target in $ac_config_targets 54196 do 54197 case $ac_config_target in 54198 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 54199 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 54200 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 54201 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 54202 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 54203 54204 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 54205 esac 54206 done 54207 54208 54209 # If the user did not use the arguments to specify the items to instantiate, 54210 # then the envvar interface is used. Set only those that are not. 54211 # We use the long form for the default assignment because of an extremely 54212 # bizarre bug on SunOS 4.1.3. 54213 if $ac_need_defaults; then 54214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 54215 fi 54216 54217 # Have a temporary directory for convenience. Make it in the build tree 54218 # simply because there is no reason against having it here, and in addition, 54219 # creating and moving files from /tmp can sometimes cause problems. 54220 # Hook for its removal unless debugging. 54221 # Note that there is a small window in which the directory will not be cleaned: 54222 # after its creation but before its name has been assigned to `$tmp'. 54223 $debug || 54224 { 54225 tmp= ac_tmp= 54226 trap 'exit_status=$? 54227 : "${ac_tmp:=$tmp}" 54228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 54229 ' 0 54230 trap 'as_fn_exit 1' 1 2 13 15 54231 } 54232 # Create a (secure) tmp directory for tmp files. 54233 54234 { 54235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 54236 test -d "$tmp" 54237 } || 54238 { 54239 tmp=./conf$$-$RANDOM 54240 (umask 077 && mkdir "$tmp") 54241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 54242 ac_tmp=$tmp 54243 54244 # Set up the scripts for CONFIG_FILES section. 54245 # No need to generate them if there are no CONFIG_FILES. 54246 # This happens for instance with `./config.status config.h'. 54247 if test -n "$CONFIG_FILES"; then 54248 54249 54250 ac_cr=`echo X | tr X '\015'` 54251 # On cygwin, bash can eat \r inside `` if the user requested igncr. 54252 # But we know of no other shell where ac_cr would be empty at this 54253 # point, so we can use a bashism as a fallback. 54254 if test "x$ac_cr" = x; then 54255 eval ac_cr=\$\'\\r\' 54256 fi 54257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 54258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 54259 ac_cs_awk_cr='\\r' 54260 else 54261 ac_cs_awk_cr=$ac_cr 54262 fi 54263 54264 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 54265 _ACEOF 54266 54267 54268 { 54269 echo "cat >conf$$subs.awk <<_ACEOF" && 54270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 54271 echo "_ACEOF" 54272 } >conf$$subs.sh || 54273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 54275 ac_delim='%!_!# ' 54276 for ac_last_try in false false false false false :; do 54277 . ./conf$$subs.sh || 54278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54279 54280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 54281 if test $ac_delim_n = $ac_delim_num; then 54282 break 54283 elif $ac_last_try; then 54284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54285 else 54286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 54287 fi 54288 done 54289 rm -f conf$$subs.sh 54290 54291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54292 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 54293 _ACEOF 54294 sed -n ' 54295 h 54296 s/^/S["/; s/!.*/"]=/ 54297 p 54298 g 54299 s/^[^!]*!// 54300 :repl 54301 t repl 54302 s/'"$ac_delim"'$// 54303 t delim 54304 :nl 54305 h 54306 s/\(.\{148\}\)..*/\1/ 54307 t more1 54308 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 54309 p 54310 n 54311 b repl 54312 :more1 54313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54314 p 54315 g 54316 s/.\{148\}// 54317 t nl 54318 :delim 54319 h 54320 s/\(.\{148\}\)..*/\1/ 54321 t more2 54322 s/["\\]/\\&/g; s/^/"/; s/$/"/ 54323 p 54324 b 54325 :more2 54326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54327 p 54328 g 54329 s/.\{148\}// 54330 t delim 54331 ' <conf$$subs.awk | sed ' 54332 /^[^""]/{ 54333 N 54334 s/\n// 54335 } 54336 ' >>$CONFIG_STATUS || ac_write_fail=1 54337 rm -f conf$$subs.awk 54338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54339 _ACAWK 54340 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 54341 for (key in S) S_is_set[key] = 1 54342 FS = "" 54343 54344 } 54345 { 54346 line = $ 0 54347 nfields = split(line, field, "@") 54348 substed = 0 54349 len = length(field[1]) 54350 for (i = 2; i < nfields; i++) { 54351 key = field[i] 54352 keylen = length(key) 54353 if (S_is_set[key]) { 54354 value = S[key] 54355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 54356 len += length(value) + length(field[++i]) 54357 substed = 1 54358 } else 54359 len += 1 + keylen 54360 } 54361 54362 print line 54363 } 54364 54365 _ACAWK 54366 _ACEOF 54367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54368 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 54369 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 54370 else 54371 cat 54372 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 54373 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 54374 _ACEOF 54375 54376 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 54377 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 54378 # trailing colons and then remove the whole line if VPATH becomes empty 54379 # (actually we leave an empty line to preserve line numbers). 54380 if test "x$srcdir" = x.; then 54381 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 54382 h 54383 s/// 54384 s/^/:/ 54385 s/[ ]*$/:/ 54386 s/:\$(srcdir):/:/g 54387 s/:\${srcdir}:/:/g 54388 s/:@srcdir@:/:/g 54389 s/^:*// 54390 s/:*$// 54391 x 54392 s/\(=[ ]*\).*/\1/ 54393 G 54394 s/\n// 54395 s/^[^=]*=[ ]*$// 54396 }' 54397 fi 54398 54399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54400 fi # test -n "$CONFIG_FILES" 54401 54402 54403 eval set X " :F $CONFIG_FILES " 54404 shift 54405 for ac_tag 54406 do 54407 case $ac_tag in 54408 :[FHLC]) ac_mode=$ac_tag; continue;; 54409 esac 54410 case $ac_mode$ac_tag in 54411 :[FHL]*:*);; 54412 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 54413 :[FH]-) ac_tag=-:-;; 54414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 54415 esac 54416 ac_save_IFS=$IFS 54417 IFS=: 54418 set x $ac_tag 54419 IFS=$ac_save_IFS 54420 shift 54421 ac_file=$1 54422 shift 54423 54424 case $ac_mode in 54425 :L) ac_source=$1;; 54426 :[FH]) 54427 ac_file_inputs= 54428 for ac_f 54429 do 54430 case $ac_f in 54431 -) ac_f="$ac_tmp/stdin";; 54432 *) # Look for the file first in the build tree, then in the source tree 54433 # (if the path is not absolute). The absolute path cannot be DOS-style, 54434 # because $ac_f cannot contain `:'. 54435 test -f "$ac_f" || 54436 case $ac_f in 54437 [\\/$]*) false;; 54438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 54439 esac || 54440 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 54441 esac 54442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 54443 as_fn_append ac_file_inputs " '$ac_f'" 54444 done 54445 54446 # Let's still pretend it is `configure' which instantiates (i.e., don't 54447 # use $as_me), people would be surprised to read: 54448 # /* config.h. Generated by config.status. */ 54449 configure_input='Generated from '` 54450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 54451 `' by configure.' 54452 if test x"$ac_file" != x-; then 54453 configure_input="$ac_file. $configure_input" 54454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 54455 $as_echo "$as_me: creating $ac_file" >&6;} 54456 fi 54457 # Neutralize special characters interpreted by sed in replacement strings. 54458 case $configure_input in #( 54459 *\&* | *\|* | *\\* ) 54460 ac_sed_conf_input=`$as_echo "$configure_input" | 54461 sed 's/[\\\\&|]/\\\\&/g'`;; #( 54462 *) ac_sed_conf_input=$configure_input;; 54463 esac 54464 54465 case $ac_tag in 54466 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 54467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 54468 esac 54469 ;; 54470 esac 54471 54472 ac_dir=`$as_dirname -- "$ac_file" || 54473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54474 X"$ac_file" : 'X\(//\)[^/]' \| \ 54475 X"$ac_file" : 'X\(//\)$' \| \ 54476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 54477 $as_echo X"$ac_file" | 54478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54479 s//\1/ 54480 q 54481 } 54482 /^X\(\/\/\)[^/].*/{ 54483 s//\1/ 54484 q 54485 } 54486 /^X\(\/\/\)$/{ 54487 s//\1/ 54488 q 54489 } 54490 /^X\(\/\).*/{ 54491 s//\1/ 54492 q 54493 } 54494 s/.*/./; q'` 54495 as_dir="$ac_dir"; as_fn_mkdir_p 54496 ac_builddir=. 54497 54498 case "$ac_dir" in 54499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 54500 *) 54501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 54502 # A ".." for each directory in $ac_dir_suffix. 54503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 54504 case $ac_top_builddir_sub in 54505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 54506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 54507 esac ;; 54508 esac 54509 ac_abs_top_builddir=$ac_pwd 54510 ac_abs_builddir=$ac_pwd$ac_dir_suffix 54511 # for backward compatibility: 54512 ac_top_builddir=$ac_top_build_prefix 54513 54514 case $srcdir in 54515 .) # We are building in place. 54516 ac_srcdir=. 54517 ac_top_srcdir=$ac_top_builddir_sub 54518 ac_abs_top_srcdir=$ac_pwd ;; 54519 [\\/]* | ?:[\\/]* ) # Absolute name. 54520 ac_srcdir=$srcdir$ac_dir_suffix; 54521 ac_top_srcdir=$srcdir 54522 ac_abs_top_srcdir=$srcdir ;; 54523 *) # Relative name. 54524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 54525 ac_top_srcdir=$ac_top_build_prefix$srcdir 54526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 54527 esac 54528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 54529 54530 54531 case $ac_mode in 54532 :F) 54533 # 54534 # CONFIG_FILE 54535 # 54536 54537 _ACEOF 54538 54539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54540 # If the template does not know about datarootdir, expand it. 54541 # FIXME: This hack should be removed a few years after 2.60. 54542 ac_datarootdir_hack=; ac_datarootdir_seen= 54543 ac_sed_dataroot=' 54544 /datarootdir/ { 54545 p 54546 q 54547 } 54548 /@datadir@/p 54549 /@docdir@/p 54550 /@infodir@/p 54551 /@localedir@/p 54552 /@mandir@/p' 54553 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 54554 *datarootdir*) ac_datarootdir_seen=yes;; 54555 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 54556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 54557 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 54558 _ACEOF 54559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54560 ac_datarootdir_hack=' 54561 s&@datadir@&$datadir&g 54562 s&@docdir@&$docdir&g 54563 s&@infodir@&$infodir&g 54564 s&@localedir@&$localedir&g 54565 s&@mandir@&$mandir&g 54566 s&\\\${datarootdir}&$datarootdir&g' ;; 54567 esac 54568 _ACEOF 54569 54570 # Neutralize VPATH when `$srcdir' = `.'. 54571 # Shell code in configure.ac might set extrasub. 54572 # FIXME: do we really want to maintain this feature? 54573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54574 ac_sed_extra="$ac_vpsub 54575 $extrasub 54576 _ACEOF 54577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54578 :t 54579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54580 s|@configure_input@|$ac_sed_conf_input|;t t 54581 s&@top_builddir@&$ac_top_builddir_sub&;t t 54582 s&@top_build_prefix@&$ac_top_build_prefix&;t t 54583 s&@srcdir@&$ac_srcdir&;t t 54584 s&@abs_srcdir@&$ac_abs_srcdir&;t t 54585 s&@top_srcdir@&$ac_top_srcdir&;t t 54586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54587 s&@builddir@&$ac_builddir&;t t 54588 s&@abs_builddir@&$ac_abs_builddir&;t t 54589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54590 $ac_datarootdir_hack 54591 " 54592 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 54593 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54594 54595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 54597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 54598 "$ac_tmp/out"`; test -z "$ac_out"; } && 54599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54600 which seems to be undefined. Please make sure it is defined" >&5 54601 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54602 which seems to be undefined. Please make sure it is defined" >&2;} 54603 54604 rm -f "$ac_tmp/stdin" 54605 case $ac_file in 54606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 54607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 54608 esac \ 54609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54610 ;; 54611 54612 54613 54614 esac 54615 54616 done # for ac_tag 54617 54618 54619 as_fn_exit 0 54620 _ACEOF 54621 ac_clean_files=$ac_clean_files_save 54622 54623 test $ac_write_fail = 0 || 54624 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 54625 54626 54627 # configure is writing to config.log, and then calls config.status. 54628 # config.status does its own redirection, appending to config.log. 54629 # Unfortunately, on DOS this fails, as config.log is still kept open 54630 # by configure, so config.status won't be able to write to it; its 54631 # output is simply discarded. So we exec the FD to /dev/null, 54632 # effectively closing config.log, so it can be properly (re)opened and 54633 # appended to by config.status. When coming back to configure, we 54634 # need to make the FD available again. 54635 if test "$no_create" != yes; then 54636 ac_cs_success=: 54637 ac_config_status_args= 54638 test "$silent" = yes && 54639 ac_config_status_args="$ac_config_status_args --quiet" 54640 exec 5>/dev/null 54641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54642 exec 5>>config.log 54643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54644 # would make configure fail if this is the last instruction. 54645 $ac_cs_success || as_fn_exit 1 54646 fi 54647 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 54648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 54649 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 54650 fi 54651 54652 54653 # After AC_OUTPUT, we need to do final work 54654 54655 54656 # Try to move config.log (generated by autoconf) to the configure-support directory. 54657 if test -e ./config.log; then 54658 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 54659 fi 54660 54661 # Rotate our log file (configure.log) 54662 if test -e "$OUTPUT_ROOT/configure.log.old"; then 54663 $RM -f "$OUTPUT_ROOT/configure.log.old" 54664 fi 54665 if test -e "$OUTPUT_ROOT/configure.log"; then 54666 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 54667 fi 54668 54669 # Move configure.log from current directory to the build output root 54670 if test -e ./configure.log; then 54671 echo found it 54672 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 54673 fi 54674 54675 # Make the compare script executable 54676 $CHMOD +x $OUTPUT_ROOT/compare.sh 54677 54678 54679 # Finally output some useful information to the user 54680 54681 # Finally output some useful information to the user 54682 54683 printf "\n" 54684 printf "====================================================\n" 54685 if test "x$no_create" != "xyes"; then 54686 if test "x$IS_RECONFIGURE" != "xyes"; then 54687 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 54688 else 54689 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 54690 fi 54691 else 54692 if test "x$IS_RECONFIGURE" != "xyes"; then 54693 printf "A configuration has been successfully checked but not created\n" 54694 else 54695 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 54696 fi 54697 fi 54698 if test "x$CONFIGURE_COMMAND_LINE" != x; then 54699 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 54700 else 54701 printf "using default settings.\n" 54702 fi 54703 54704 printf "\n" 54705 printf "Configuration summary:\n" 54706 printf "* Debug level: $DEBUG_LEVEL\n" 54707 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 54708 printf "* JDK variant: $JDK_VARIANT\n" 54709 printf "* JVM variants: $with_jvm_variants\n" 54710 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 54711 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 54712 54713 printf "\n" 54714 printf "Tools summary:\n" 54715 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 54716 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 54717 fi 54718 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 54719 if test "x$TOOLCHAIN_VERSION" != "x"; then 54720 print_version=" $TOOLCHAIN_VERSION" 54721 fi 54722 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 54723 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 54724 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 54725 54726 printf "\n" 54727 printf "Build performance summary:\n" 54728 printf "* Cores to use: $JOBS\n" 54729 printf "* Memory limit: $MEMORY_SIZE MB\n" 54730 if test "x$CCACHE_STATUS" != "x"; then 54731 printf "* ccache status: $CCACHE_STATUS\n" 54732 fi 54733 printf "\n" 54734 54735 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 54736 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 54737 printf "will result in longer build times.\n" 54738 printf "\n" 54739 fi 54740 54741 if test "x$FOUND_ALT_VARIABLES" != "x"; then 54742 printf "WARNING: You have old-style ALT_ environment variables set.\n" 54743 printf "These are not respected, and will be ignored. It is recommended\n" 54744 printf "that you clean your environment. The following variables are set:\n" 54745 printf "$FOUND_ALT_VARIABLES\n" 54746 printf "\n" 54747 fi 54748 54749 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 54750 printf "WARNING: Your build output directory is not on a local disk.\n" 54751 printf "This will severely degrade build performance!\n" 54752 printf "It is recommended that you create an output directory on a local disk,\n" 54753 printf "and run the configure script again from that directory.\n" 54754 printf "\n" 54755 fi 54756 54757 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 54758 printf "WARNING: The result of this configuration has overridden an older\n" 54759 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 54760 printf "proper build. Failure to do so might result in strange build problems.\n" 54761 printf "\n" 54762 fi 54763 54764 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 54765 printf "WARNING: The result of this configuration was not saved.\n" 54766 printf "You should run without '--no-create | -n' to create the configuration.\n" 54767 printf "\n" 54768 fi 54769 54770 54771 54772 # Locate config.log. 54773 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 54774 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 54775 elif test -e "./config.log"; then 54776 CONFIG_LOG_PATH="." 54777 fi 54778 54779 if test -e "$CONFIG_LOG_PATH/config.log"; then 54780 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 54781 if test $? -eq 0; then 54782 printf "The following warnings were produced. Repeated here for convenience:\n" 54783 # We must quote sed expression (using []) to stop m4 from eating the []. 54784 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 54785 printf "\n" 54786 fi 54787 fi 54788