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 jdk8. 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='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 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 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 UCRT_DLL_DIR 644 MSVCP_DLL 645 MSVCR_DLL 646 LIBCXX 647 LLVM_LIBS 648 LLVM_LDFLAGS 649 LLVM_CFLAGS 650 LLVM_CONFIG 651 LIBFFI_LIBS 652 LIBFFI_CFLAGS 653 STATIC_CXX_SETTING 654 LIBDL 655 LIBM 656 LIBZIP_CAN_USE_MMAP 657 USE_EXTERNAL_LIBZ 658 USE_EXTERNAL_LIBGIF 659 USE_EXTERNAL_LIBJPEG 660 FONTCONFIG_CFLAGS 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 DEBUG_BINARIES 675 STRIP_POLICY 676 ENABLE_DEBUG_SYMBOLS 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG 678 ZERO_ARCHFLAG 679 LDFLAGS_CXX_JDK 680 LDFLAGS_JDKEXE_SUFFIX 681 LDFLAGS_JDKLIB_SUFFIX 682 LDFLAGS_JDKEXE 683 LDFLAGS_JDKLIB 684 CXXFLAGS_JDKEXE 685 CXXFLAGS_JDKLIB 686 CFLAGS_JDKEXE 687 CFLAGS_JDKLIB 688 MACOSX_VERSION_MIN 689 NO_LIFETIME_DSE_CFLAG 690 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 691 LEGACY_EXTRA_LDFLAGS 692 LEGACY_EXTRA_CXXFLAGS 693 LEGACY_EXTRA_CFLAGS 694 CXXSTD_CXXFLAG 695 CXX_O_FLAG_NONE 696 CXX_O_FLAG_NORM 697 CXX_O_FLAG_HI 698 CXX_O_FLAG_HIGHEST 699 C_O_FLAG_NONE 700 C_O_FLAG_NORM 701 C_O_FLAG_HI 702 C_O_FLAG_HIGHEST 703 CXXFLAGS_DEBUG_SYMBOLS 704 CFLAGS_DEBUG_SYMBOLS 705 ASFLAGS_DEBUG_SYMBOLS 706 CXX_FLAG_DEPS 707 C_FLAG_DEPS 708 SET_SHARED_LIBRARY_MAPFILE 709 SET_SHARED_LIBRARY_NAME 710 SET_SHARED_LIBRARY_ORIGIN 711 SET_EXECUTABLE_ORIGIN 712 SHARED_LIBRARY_FLAGS 713 CXX_FLAG_REORDER 714 C_FLAG_REORDER 715 SYSROOT_LDFLAGS 716 SYSROOT_CFLAGS 717 RC_FLAGS 718 AR_OUT_OPTION 719 LD_OUT_OPTION 720 EXE_OUT_OPTION 721 CC_OUT_OPTION 722 POST_MCS_CMD 723 POST_STRIP_CMD 724 ARFLAGS 725 COMPILER_TARGET_BITS_FLAG 726 JT_HOME 727 JTREGEXE 728 USING_BROKEN_SUSE_LD 729 PACKAGE_PATH 730 LDEXECXX 731 LDEXE 732 USE_CLANG 733 HOTSPOT_LD 734 HOTSPOT_CXX 735 HOTSPOT_RC 736 HOTSPOT_MT 737 BUILD_LD 738 BUILD_CXX 739 BUILD_CC 740 ac_ct_OBJDUMP 741 OBJDUMP 742 ac_ct_OBJCOPY 743 OBJCOPY 744 ac_ct_NM 745 OTOOL 746 ac_ct_STRIP 747 MCS 748 GNM 749 NM 750 STRIP 751 MSBUILD 752 DUMPBIN 753 RC 754 MT 755 LIPO 756 ac_ct_OBJC 757 OBJCFLAGS 758 OBJC 759 ac_ct_AR 760 AR 761 AS 762 LDCXX 763 LD 764 CXXCPP 765 CPP 766 CXX_VERSION_NUMBER 767 CC_VERSION_NUMBER 768 ac_ct_CXX 769 CXXFLAGS 770 CXX 771 ac_ct_PROPER_COMPILER_CXX 772 PROPER_COMPILER_CXX 773 TOOLCHAIN_PATH_CXX 774 POTENTIAL_CXX 775 OBJEXT 776 EXEEXT 777 ac_ct_CC 778 CPPFLAGS 779 LDFLAGS 780 CFLAGS 781 CC 782 ac_ct_PROPER_COMPILER_CC 783 PROPER_COMPILER_CC 784 TOOLCHAIN_PATH_CC 785 POTENTIAL_CC 786 SDKPATH 787 XCODEBUILD 788 SET_DEVELOPER_DIR 789 VS_LIB 790 VS_INCLUDE 791 VS_PATH 792 CYGWIN_LINK 793 EXE_SUFFIX 794 OBJ_SUFFIX 795 STATIC_LIBRARY 796 SHARED_LIBRARY 797 STATIC_LIBRARY_SUFFIX 798 SHARED_LIBRARY_SUFFIX 799 LIBRARY_PREFIX 800 TOOLCHAIN_TYPE 801 BUILD_HOTSPOT 802 HOTSPOT_DIST 803 BUILD_OUTPUT 804 OVERRIDE_SRC_ROOT 805 ADD_SRC_ROOT 806 JDK_TOPDIR 807 NASHORN_TOPDIR 808 HOTSPOT_TOPDIR 809 JAXWS_TOPDIR 810 JAXP_TOPDIR 811 CORBA_TOPDIR 812 LANGTOOLS_TOPDIR 813 JAVA_FLAGS_SMALL 814 JAVA_FLAGS_BIG 815 JAVA_FLAGS 816 BOOT_JDK_BITS 817 JAVAC_FLAGS 818 BOOT_JDK_SOURCETARGET 819 BOOT_JDK 820 BOOT_TOOLSJAR 821 BOOT_RTJAR 822 JAVA_CHECK 823 JAVAC_CHECK 824 COOKED_BUILD_NUMBER 825 COOKED_JDK_UPDATE_VERSION 826 JDK_VERSION 827 COPYRIGHT_YEAR 828 MACOSX_BUNDLE_ID_BASE 829 MACOSX_BUNDLE_NAME_BASE 830 COMPANY_NAME 831 JDK_RC_PLATFORM_NAME 832 PRODUCT_SUFFIX 833 PRODUCT_NAME 834 LAUNCHER_NAME 835 MILESTONE 836 JDK_BUILD_NUMBER 837 JDK_UPDATE_VERSION 838 JDK_MICRO_VERSION 839 JDK_MINOR_VERSION 840 JDK_MAJOR_VERSION 841 USER_RELEASE_SUFFIX 842 COMPRESS_JARS 843 UNLIMITED_CRYPTO 844 CACERTS_FILE 845 TEST_IN_BUILD 846 BUILD_HEADLESS 847 SUPPORT_HEADFUL 848 SUPPORT_HEADLESS 849 BDEPS_FTP 850 BDEPS_UNZIP 851 OS_VERSION_MICRO 852 OS_VERSION_MINOR 853 OS_VERSION_MAJOR 854 PKG_CONFIG 855 CODESIGN 856 XATTR 857 DSYMUTIL 858 IS_GNU_TIME 859 TIME 860 STAT 861 HG 862 READELF 863 LDD 864 ZIP 865 UNZIP 866 FIND_DELETE 867 MAKE 868 CHECK_TOOLSDIR_MAKE 869 CHECK_TOOLSDIR_GMAKE 870 CHECK_MAKE 871 CHECK_GMAKE 872 PKGHANDLER 873 OUTPUT_ROOT 874 CONF_NAME 875 SPEC 876 DEVKIT_LIB_DIR 877 BUILD_VARIANT_RELEASE 878 DEBUG_CLASSFILES 879 FASTDEBUG 880 VARIANT 881 DEBUG_LEVEL 882 MACOSX_UNIVERSAL 883 INCLUDE_SA 884 JVM_VARIANT_CORE 885 JVM_VARIANT_ZEROSHARK 886 JVM_VARIANT_ZERO 887 JVM_VARIANT_KERNEL 888 JVM_VARIANT_MINIMAL1 889 JVM_VARIANT_CLIENT 890 JVM_VARIANT_SERVER 891 JVM_VARIANTS 892 JVM_INTERPRETER 893 JDK_VARIANT 894 SET_OPENJDK 895 BUILD_LOG_WRAPPER 896 BUILD_LOG_PREVIOUS 897 BUILD_LOG 898 TOPDIR 899 PATH_SEP 900 ZERO_ARCHDEF 901 DEFINE_CROSS_COMPILE_ARCH 902 LP64 903 OPENJDK_TARGET_OS_EXPORT_DIR 904 OPENJDK_TARGET_OS_API_DIR 905 OPENJDK_TARGET_CPU_JLI_CFLAGS 906 OPENJDK_TARGET_CPU_OSARCH 907 OPENJDK_TARGET_CPU_ISADIR 908 OPENJDK_TARGET_CPU_LIBDIR 909 OPENJDK_TARGET_CPU_LEGACY_LIB 910 OPENJDK_TARGET_CPU_LEGACY 911 REQUIRED_OS_VERSION 912 REQUIRED_OS_NAME 913 COMPILE_TYPE 914 OPENJDK_TARGET_CPU_ENDIAN 915 OPENJDK_TARGET_CPU_BITS 916 OPENJDK_TARGET_CPU_ARCH 917 OPENJDK_TARGET_CPU 918 OPENJDK_TARGET_OS_ENV 919 OPENJDK_TARGET_OS_API 920 OPENJDK_TARGET_OS 921 OPENJDK_BUILD_CPU_ENDIAN 922 OPENJDK_BUILD_CPU_BITS 923 OPENJDK_BUILD_CPU_ARCH 924 OPENJDK_BUILD_CPU 925 OPENJDK_BUILD_OS_ENV 926 OPENJDK_BUILD_OS_API 927 OPENJDK_BUILD_OS 928 OPENJDK_BUILD_AUTOCONF_NAME 929 OPENJDK_TARGET_AUTOCONF_NAME 930 target_os 931 target_vendor 932 target_cpu 933 target 934 host_os 935 host_vendor 936 host_cpu 937 host 938 build_os 939 build_vendor 940 build_cpu 941 build 942 CPIO 943 SETFILE 944 DF 945 READLINK 946 CYGPATH 947 SED 948 FGREP 949 EGREP 950 GREP 951 AWK 952 XARGS 953 WHICH 954 WC 955 UNIQ 956 UNAME 957 TR 958 TOUCH 959 TEE 960 TAR 961 TAIL 962 SORT 963 SH 964 RM 965 PRINTF 966 NAWK 967 MV 968 MKTEMP 969 MKDIR 970 LS 971 LN 972 HEAD 973 FIND 974 FILE 975 EXPR 976 ECHO 977 DIRNAME 978 DIFF 979 DATE 980 CUT 981 CP 982 COMM 983 CMP 984 CHMOD 985 CAT 986 BASH 987 BASENAME 988 DATE_WHEN_CONFIGURED 989 CONFIGURE_COMMAND_LINE 990 CUSTOM_MAKE_DIR 991 target_alias 992 host_alias 993 build_alias 994 LIBS 995 ECHO_T 996 ECHO_N 997 ECHO_C 998 DEFS 999 mandir 1000 localedir 1001 libdir 1002 psdir 1003 pdfdir 1004 dvidir 1005 htmldir 1006 infodir 1007 docdir 1008 oldincludedir 1009 includedir 1010 localstatedir 1011 sharedstatedir 1012 sysconfdir 1013 datadir 1014 datarootdir 1015 libexecdir 1016 sbindir 1017 bindir 1018 program_transform_name 1019 prefix 1020 exec_prefix 1021 PACKAGE_URL 1022 PACKAGE_BUGREPORT 1023 PACKAGE_STRING 1024 PACKAGE_VERSION 1025 PACKAGE_TARNAME 1026 PACKAGE_NAME 1027 PATH_SEPARATOR 1028 SHELL' 1029 ac_subst_files='' 1030 ac_user_opts=' 1031 enable_option_checking 1032 with_custom_make_dir 1033 with_target_bits 1034 enable_openjdk_only 1035 with_jdk_variant 1036 with_jvm_interpreter 1037 with_jvm_variants 1038 enable_debug 1039 with_debug_level 1040 with_devkit 1041 with_sys_root 1042 with_sysroot 1043 with_tools_dir 1044 with_toolchain_path 1045 with_extra_path 1046 with_xcode_path 1047 with_conf_name 1048 with_builddeps_conf 1049 with_builddeps_server 1050 with_builddeps_dir 1051 with_builddeps_group 1052 enable_headful 1053 enable_hotspot_test_in_build 1054 with_cacerts_file 1055 enable_unlimited_crypto 1056 with_milestone 1057 with_update_version 1058 with_user_release_suffix 1059 with_build_number 1060 with_copyright_year 1061 with_boot_jdk 1062 with_boot_jdk_jvmargs 1063 with_add_source_root 1064 with_override_source_root 1065 with_adds_and_overrides 1066 with_override_langtools 1067 with_override_corba 1068 with_override_jaxp 1069 with_override_jaxws 1070 with_override_hotspot 1071 with_override_nashorn 1072 with_override_jdk 1073 with_import_hotspot 1074 with_toolchain_type 1075 with_toolchain_version 1076 with_jtreg 1077 with_extra_cflags 1078 with_extra_cxxflags 1079 with_extra_ldflags 1080 enable_debug_symbols 1081 enable_zip_debug_info 1082 with_native_debug_symbols 1083 enable_macosx_runtime_support 1084 with_x 1085 with_cups 1086 with_cups_include 1087 with_freetype 1088 with_freetype_include 1089 with_freetype_lib 1090 with_freetype_src 1091 enable_freetype_bundling 1092 with_alsa 1093 with_alsa_include 1094 with_alsa_lib 1095 with_fontconfig 1096 with_fontconfig_include 1097 with_giflib 1098 with_zlib 1099 with_stdc__lib 1100 with_msvcr_dll 1101 with_msvcp_dll 1102 with_ucrt_dll_dir 1103 with_dxsdk 1104 with_dxsdk_lib 1105 with_dxsdk_include 1106 with_num_cores 1107 with_memory_size 1108 with_jobs 1109 with_sjavac_server_java 1110 enable_sjavac 1111 enable_precompiled_headers 1112 enable_ccache 1113 with_ccache_dir 1114 ' 1115 ac_precious_vars='build_alias 1116 host_alias 1117 target_alias 1118 BASENAME 1119 BASH 1120 CAT 1121 CHMOD 1122 CMP 1123 COMM 1124 CP 1125 CUT 1126 DATE 1127 DIFF 1128 DIRNAME 1129 ECHO 1130 EXPR 1131 FILE 1132 FIND 1133 HEAD 1134 LN 1135 LS 1136 MKDIR 1137 MKTEMP 1138 MV 1139 NAWK 1140 PRINTF 1141 RM 1142 SH 1143 SORT 1144 TAIL 1145 TAR 1146 TEE 1147 TOUCH 1148 TR 1149 UNAME 1150 UNIQ 1151 WC 1152 WHICH 1153 XARGS 1154 AWK 1155 GREP 1156 EGREP 1157 FGREP 1158 SED 1159 CYGPATH 1160 READLINK 1161 DF 1162 SETFILE 1163 CPIO 1164 UNZIP 1165 ZIP 1166 LDD 1167 READELF 1168 HG 1169 STAT 1170 TIME 1171 DSYMUTIL 1172 XATTR 1173 CODESIGN 1174 PKG_CONFIG 1175 CC 1176 CFLAGS 1177 LDFLAGS 1178 LIBS 1179 CPPFLAGS 1180 CXX 1181 CXXFLAGS 1182 CCC 1183 CPP 1184 CXXCPP 1185 AS 1186 AR 1187 OBJC 1188 OBJCFLAGS 1189 LIPO 1190 STRIP 1191 NM 1192 GNM 1193 MCS 1194 OBJCOPY 1195 OBJDUMP 1196 BUILD_CC 1197 BUILD_CXX 1198 BUILD_LD 1199 JTREGEXE 1200 XMKMF 1201 FREETYPE_CFLAGS 1202 FREETYPE_LIBS 1203 ALSA_CFLAGS 1204 ALSA_LIBS 1205 LIBFFI_CFLAGS 1206 LIBFFI_LIBS 1207 CCACHE' 1208 1209 1210 # Initialize some variables set by options. 1211 ac_init_help= 1212 ac_init_version=false 1213 ac_unrecognized_opts= 1214 ac_unrecognized_sep= 1215 # The variables have the same names as the options, with 1216 # dashes changed to underlines. 1217 cache_file=/dev/null 1218 exec_prefix=NONE 1219 no_create= 1220 no_recursion= 1221 prefix=NONE 1222 program_prefix=NONE 1223 program_suffix=NONE 1224 program_transform_name=s,x,x, 1225 silent= 1226 site= 1227 srcdir= 1228 verbose= 1229 x_includes=NONE 1230 x_libraries=NONE 1231 1232 # Installation directory options. 1233 # These are left unexpanded so users can "make install exec_prefix=/foo" 1234 # and all the variables that are supposed to be based on exec_prefix 1235 # by default will actually change. 1236 # Use braces instead of parens because sh, perl, etc. also accept them. 1237 # (The list follows the same order as the GNU Coding Standards.) 1238 bindir='${exec_prefix}/bin' 1239 sbindir='${exec_prefix}/sbin' 1240 libexecdir='${exec_prefix}/libexec' 1241 datarootdir='${prefix}/share' 1242 datadir='${datarootdir}' 1243 sysconfdir='${prefix}/etc' 1244 sharedstatedir='${prefix}/com' 1245 localstatedir='${prefix}/var' 1246 includedir='${prefix}/include' 1247 oldincludedir='/usr/include' 1248 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1249 infodir='${datarootdir}/info' 1250 htmldir='${docdir}' 1251 dvidir='${docdir}' 1252 pdfdir='${docdir}' 1253 psdir='${docdir}' 1254 libdir='${exec_prefix}/lib' 1255 localedir='${datarootdir}/locale' 1256 mandir='${datarootdir}/man' 1257 1258 ac_prev= 1259 ac_dashdash= 1260 for ac_option 1261 do 1262 # If the previous option needs an argument, assign it. 1263 if test -n "$ac_prev"; then 1264 eval $ac_prev=\$ac_option 1265 ac_prev= 1266 continue 1267 fi 1268 1269 case $ac_option in 1270 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1271 *=) ac_optarg= ;; 1272 *) ac_optarg=yes ;; 1273 esac 1274 1275 # Accept the important Cygnus configure options, so we can diagnose typos. 1276 1277 case $ac_dashdash$ac_option in 1278 --) 1279 ac_dashdash=yes ;; 1280 1281 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1282 ac_prev=bindir ;; 1283 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1284 bindir=$ac_optarg ;; 1285 1286 -build | --build | --buil | --bui | --bu) 1287 ac_prev=build_alias ;; 1288 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1289 build_alias=$ac_optarg ;; 1290 1291 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1292 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1293 ac_prev=cache_file ;; 1294 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1295 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1296 cache_file=$ac_optarg ;; 1297 1298 --config-cache | -C) 1299 cache_file=config.cache ;; 1300 1301 -datadir | --datadir | --datadi | --datad) 1302 ac_prev=datadir ;; 1303 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1304 datadir=$ac_optarg ;; 1305 1306 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1307 | --dataroo | --dataro | --datar) 1308 ac_prev=datarootdir ;; 1309 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1310 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1311 datarootdir=$ac_optarg ;; 1312 1313 -disable-* | --disable-*) 1314 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1317 as_fn_error $? "invalid feature name: $ac_useropt" 1318 ac_useropt_orig=$ac_useropt 1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1320 case $ac_user_opts in 1321 *" 1322 "enable_$ac_useropt" 1323 "*) ;; 1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1325 ac_unrecognized_sep=', ';; 1326 esac 1327 eval enable_$ac_useropt=no ;; 1328 1329 -docdir | --docdir | --docdi | --doc | --do) 1330 ac_prev=docdir ;; 1331 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1332 docdir=$ac_optarg ;; 1333 1334 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1335 ac_prev=dvidir ;; 1336 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1337 dvidir=$ac_optarg ;; 1338 1339 -enable-* | --enable-*) 1340 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1341 # Reject names that are not valid shell variable names. 1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1343 as_fn_error $? "invalid feature name: $ac_useropt" 1344 ac_useropt_orig=$ac_useropt 1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1346 case $ac_user_opts in 1347 *" 1348 "enable_$ac_useropt" 1349 "*) ;; 1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1351 ac_unrecognized_sep=', ';; 1352 esac 1353 eval enable_$ac_useropt=\$ac_optarg ;; 1354 1355 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1356 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1357 | --exec | --exe | --ex) 1358 ac_prev=exec_prefix ;; 1359 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1360 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1361 | --exec=* | --exe=* | --ex=*) 1362 exec_prefix=$ac_optarg ;; 1363 1364 -gas | --gas | --ga | --g) 1365 # Obsolete; use --with-gas. 1366 with_gas=yes ;; 1367 1368 -help | --help | --hel | --he | -h) 1369 ac_init_help=long ;; 1370 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1371 ac_init_help=recursive ;; 1372 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1373 ac_init_help=short ;; 1374 1375 -host | --host | --hos | --ho) 1376 ac_prev=host_alias ;; 1377 -host=* | --host=* | --hos=* | --ho=*) 1378 host_alias=$ac_optarg ;; 1379 1380 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1381 ac_prev=htmldir ;; 1382 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1383 | --ht=*) 1384 htmldir=$ac_optarg ;; 1385 1386 -includedir | --includedir | --includedi | --included | --include \ 1387 | --includ | --inclu | --incl | --inc) 1388 ac_prev=includedir ;; 1389 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1390 | --includ=* | --inclu=* | --incl=* | --inc=*) 1391 includedir=$ac_optarg ;; 1392 1393 -infodir | --infodir | --infodi | --infod | --info | --inf) 1394 ac_prev=infodir ;; 1395 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1396 infodir=$ac_optarg ;; 1397 1398 -libdir | --libdir | --libdi | --libd) 1399 ac_prev=libdir ;; 1400 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1401 libdir=$ac_optarg ;; 1402 1403 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1404 | --libexe | --libex | --libe) 1405 ac_prev=libexecdir ;; 1406 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1407 | --libexe=* | --libex=* | --libe=*) 1408 libexecdir=$ac_optarg ;; 1409 1410 -localedir | --localedir | --localedi | --localed | --locale) 1411 ac_prev=localedir ;; 1412 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1413 localedir=$ac_optarg ;; 1414 1415 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1416 | --localstate | --localstat | --localsta | --localst | --locals) 1417 ac_prev=localstatedir ;; 1418 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1419 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1420 localstatedir=$ac_optarg ;; 1421 1422 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1423 ac_prev=mandir ;; 1424 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1425 mandir=$ac_optarg ;; 1426 1427 -nfp | --nfp | --nf) 1428 # Obsolete; use --without-fp. 1429 with_fp=no ;; 1430 1431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1432 | --no-cr | --no-c | -n) 1433 no_create=yes ;; 1434 1435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1437 no_recursion=yes ;; 1438 1439 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1440 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1441 | --oldin | --oldi | --old | --ol | --o) 1442 ac_prev=oldincludedir ;; 1443 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1444 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1445 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1446 oldincludedir=$ac_optarg ;; 1447 1448 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1449 ac_prev=prefix ;; 1450 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1451 prefix=$ac_optarg ;; 1452 1453 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1454 | --program-pre | --program-pr | --program-p) 1455 ac_prev=program_prefix ;; 1456 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1457 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1458 program_prefix=$ac_optarg ;; 1459 1460 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1461 | --program-suf | --program-su | --program-s) 1462 ac_prev=program_suffix ;; 1463 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1464 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1465 program_suffix=$ac_optarg ;; 1466 1467 -program-transform-name | --program-transform-name \ 1468 | --program-transform-nam | --program-transform-na \ 1469 | --program-transform-n | --program-transform- \ 1470 | --program-transform | --program-transfor \ 1471 | --program-transfo | --program-transf \ 1472 | --program-trans | --program-tran \ 1473 | --progr-tra | --program-tr | --program-t) 1474 ac_prev=program_transform_name ;; 1475 -program-transform-name=* | --program-transform-name=* \ 1476 | --program-transform-nam=* | --program-transform-na=* \ 1477 | --program-transform-n=* | --program-transform-=* \ 1478 | --program-transform=* | --program-transfor=* \ 1479 | --program-transfo=* | --program-transf=* \ 1480 | --program-trans=* | --program-tran=* \ 1481 | --progr-tra=* | --program-tr=* | --program-t=*) 1482 program_transform_name=$ac_optarg ;; 1483 1484 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1485 ac_prev=pdfdir ;; 1486 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1487 pdfdir=$ac_optarg ;; 1488 1489 -psdir | --psdir | --psdi | --psd | --ps) 1490 ac_prev=psdir ;; 1491 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1492 psdir=$ac_optarg ;; 1493 1494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1495 | -silent | --silent | --silen | --sile | --sil) 1496 silent=yes ;; 1497 1498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1499 ac_prev=sbindir ;; 1500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1501 | --sbi=* | --sb=*) 1502 sbindir=$ac_optarg ;; 1503 1504 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1506 | --sharedst | --shareds | --shared | --share | --shar \ 1507 | --sha | --sh) 1508 ac_prev=sharedstatedir ;; 1509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1512 | --sha=* | --sh=*) 1513 sharedstatedir=$ac_optarg ;; 1514 1515 -site | --site | --sit) 1516 ac_prev=site ;; 1517 -site=* | --site=* | --sit=*) 1518 site=$ac_optarg ;; 1519 1520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1521 ac_prev=srcdir ;; 1522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1523 srcdir=$ac_optarg ;; 1524 1525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1526 | --syscon | --sysco | --sysc | --sys | --sy) 1527 ac_prev=sysconfdir ;; 1528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1530 sysconfdir=$ac_optarg ;; 1531 1532 -target | --target | --targe | --targ | --tar | --ta | --t) 1533 ac_prev=target_alias ;; 1534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1535 target_alias=$ac_optarg ;; 1536 1537 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1538 verbose=yes ;; 1539 1540 -version | --version | --versio | --versi | --vers | -V) 1541 ac_init_version=: ;; 1542 1543 -with-* | --with-*) 1544 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1545 # Reject names that are not valid shell variable names. 1546 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1547 as_fn_error $? "invalid package name: $ac_useropt" 1548 ac_useropt_orig=$ac_useropt 1549 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1550 case $ac_user_opts in 1551 *" 1552 "with_$ac_useropt" 1553 "*) ;; 1554 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1555 ac_unrecognized_sep=', ';; 1556 esac 1557 eval with_$ac_useropt=\$ac_optarg ;; 1558 1559 -without-* | --without-*) 1560 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1561 # Reject names that are not valid shell variable names. 1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1563 as_fn_error $? "invalid package name: $ac_useropt" 1564 ac_useropt_orig=$ac_useropt 1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1566 case $ac_user_opts in 1567 *" 1568 "with_$ac_useropt" 1569 "*) ;; 1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1571 ac_unrecognized_sep=', ';; 1572 esac 1573 eval with_$ac_useropt=no ;; 1574 1575 --x) 1576 # Obsolete; use --with-x. 1577 with_x=yes ;; 1578 1579 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1580 | --x-incl | --x-inc | --x-in | --x-i) 1581 ac_prev=x_includes ;; 1582 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1583 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1584 x_includes=$ac_optarg ;; 1585 1586 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1587 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1588 ac_prev=x_libraries ;; 1589 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1590 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1591 x_libraries=$ac_optarg ;; 1592 1593 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1594 Try \`$0 --help' for more information" 1595 ;; 1596 1597 *=*) 1598 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1599 # Reject names that are not valid shell variable names. 1600 case $ac_envvar in #( 1601 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1602 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1603 esac 1604 eval $ac_envvar=\$ac_optarg 1605 export $ac_envvar ;; 1606 1607 *) 1608 # FIXME: should be removed in autoconf 3.0. 1609 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1610 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1611 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1612 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1613 ;; 1614 1615 esac 1616 done 1617 1618 if test -n "$ac_prev"; then 1619 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1620 as_fn_error $? "missing argument to $ac_option" 1621 fi 1622 1623 if test -n "$ac_unrecognized_opts"; then 1624 case $enable_option_checking in 1625 no) ;; 1626 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1627 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1628 esac 1629 fi 1630 1631 # Check all directory arguments for consistency. 1632 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1633 datadir sysconfdir sharedstatedir localstatedir includedir \ 1634 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1635 libdir localedir mandir 1636 do 1637 eval ac_val=\$$ac_var 1638 # Remove trailing slashes. 1639 case $ac_val in 1640 */ ) 1641 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1642 eval $ac_var=\$ac_val;; 1643 esac 1644 # Be sure to have absolute directory names. 1645 case $ac_val in 1646 [\\/$]* | ?:[\\/]* ) continue;; 1647 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1648 esac 1649 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1650 done 1651 1652 # There might be people who depend on the old broken behavior: `$host' 1653 # used to hold the argument of --host etc. 1654 # FIXME: To remove some day. 1655 build=$build_alias 1656 host=$host_alias 1657 target=$target_alias 1658 1659 # FIXME: To remove some day. 1660 if test "x$host_alias" != x; then 1661 if test "x$build_alias" = x; then 1662 cross_compiling=maybe 1663 elif test "x$build_alias" != "x$host_alias"; then 1664 cross_compiling=yes 1665 fi 1666 fi 1667 1668 ac_tool_prefix= 1669 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1670 1671 test "$silent" = yes && exec 6>/dev/null 1672 1673 1674 ac_pwd=`pwd` && test -n "$ac_pwd" && 1675 ac_ls_di=`ls -di .` && 1676 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1677 as_fn_error $? "working directory cannot be determined" 1678 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1679 as_fn_error $? "pwd does not report name of working directory" 1680 1681 1682 # Find the source files, if location was not specified. 1683 if test -z "$srcdir"; then 1684 ac_srcdir_defaulted=yes 1685 # Try the directory containing this script, then the parent directory. 1686 ac_confdir=`$as_dirname -- "$as_myself" || 1687 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1688 X"$as_myself" : 'X\(//\)[^/]' \| \ 1689 X"$as_myself" : 'X\(//\)$' \| \ 1690 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1691 $as_echo X"$as_myself" | 1692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1693 s//\1/ 1694 q 1695 } 1696 /^X\(\/\/\)[^/].*/{ 1697 s//\1/ 1698 q 1699 } 1700 /^X\(\/\/\)$/{ 1701 s//\1/ 1702 q 1703 } 1704 /^X\(\/\).*/{ 1705 s//\1/ 1706 q 1707 } 1708 s/.*/./; q'` 1709 srcdir=$ac_confdir 1710 if test ! -r "$srcdir/$ac_unique_file"; then 1711 srcdir=.. 1712 fi 1713 else 1714 ac_srcdir_defaulted=no 1715 fi 1716 if test ! -r "$srcdir/$ac_unique_file"; then 1717 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1718 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1719 fi 1720 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1721 ac_abs_confdir=`( 1722 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1723 pwd)` 1724 # When building in place, set srcdir=. 1725 if test "$ac_abs_confdir" = "$ac_pwd"; then 1726 srcdir=. 1727 fi 1728 # Remove unnecessary trailing slashes from srcdir. 1729 # Double slashes in file names in object file debugging info 1730 # mess up M-x gdb in Emacs. 1731 case $srcdir in 1732 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1733 esac 1734 for ac_var in $ac_precious_vars; do 1735 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1736 eval ac_env_${ac_var}_value=\$${ac_var} 1737 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1738 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1739 done 1740 1741 # 1742 # Report the --help message. 1743 # 1744 if test "$ac_init_help" = "long"; then 1745 # Omit some internal or obsolete options to make the list less imposing. 1746 # This message is too long to be a string in the A/UX 3.1 sh. 1747 cat <<_ACEOF 1748 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1749 1750 Usage: $0 [OPTION]... [VAR=VALUE]... 1751 1752 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1753 VAR=VALUE. See below for descriptions of some of the useful variables. 1754 1755 Defaults for the options are specified in brackets. 1756 1757 Configuration: 1758 -h, --help display this help and exit 1759 --help=short display options specific to this package 1760 --help=recursive display the short help of all the included packages 1761 -V, --version display version information and exit 1762 -q, --quiet, --silent do not print \`checking ...' messages 1763 --cache-file=FILE cache test results in FILE [disabled] 1764 -C, --config-cache alias for \`--cache-file=config.cache' 1765 -n, --no-create do not create output files 1766 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1767 1768 Installation directories: 1769 --prefix=PREFIX install architecture-independent files in PREFIX 1770 [$ac_default_prefix] 1771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1772 [PREFIX] 1773 1774 By default, \`make install' will install all the files in 1775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1776 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1777 for instance \`--prefix=\$HOME'. 1778 1779 For better control, use the options below. 1780 1781 Fine tuning of the installation directories: 1782 --bindir=DIR user executables [EPREFIX/bin] 1783 --sbindir=DIR system admin executables [EPREFIX/sbin] 1784 --libexecdir=DIR program executables [EPREFIX/libexec] 1785 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1786 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1787 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1788 --libdir=DIR object code libraries [EPREFIX/lib] 1789 --includedir=DIR C header files [PREFIX/include] 1790 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1791 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1792 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1793 --infodir=DIR info documentation [DATAROOTDIR/info] 1794 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1795 --mandir=DIR man documentation [DATAROOTDIR/man] 1796 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1797 --htmldir=DIR html documentation [DOCDIR] 1798 --dvidir=DIR dvi documentation [DOCDIR] 1799 --pdfdir=DIR pdf documentation [DOCDIR] 1800 --psdir=DIR ps documentation [DOCDIR] 1801 _ACEOF 1802 1803 cat <<\_ACEOF 1804 1805 X features: 1806 --x-includes=DIR X include files are in DIR 1807 --x-libraries=DIR X library files are in DIR 1808 1809 System types: 1810 --build=BUILD configure for building on BUILD [guessed] 1811 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1812 --target=TARGET configure for building compilers for TARGET [HOST] 1813 _ACEOF 1814 fi 1815 1816 if test -n "$ac_init_help"; then 1817 case $ac_init_help in 1818 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1819 esac 1820 cat <<\_ACEOF 1821 1822 Optional Features: 1823 --disable-option-checking ignore unrecognized --enable/--with options 1824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1826 --enable-openjdk-only suppress building custom source even if present 1827 [disabled] 1828 --enable-debug set the debug level to fastdebug (shorthand for 1829 --with-debug-level=fastdebug) [disabled] 1830 --disable-headful disable building headful support (graphical UI 1831 support) [enabled] 1832 --enable-hotspot-test-in-build 1833 run the Queens test after Hotspot build [disabled] 1834 --enable-unlimited-crypto 1835 Enable unlimited crypto policy [disabled] 1836 --disable-debug-symbols disable generation of debug symbols [enabled] 1837 --disable-zip-debug-info 1838 disable zipping of debug-info files [enabled] 1839 --enable-macosx-runtime-support 1840 Deprecated. Option is kept for backwards 1841 compatibility and is ignored 1842 --disable-freetype-bundling 1843 disable bundling of the freetype library with the 1844 build result [enabled on Windows or when using 1845 --with-freetype, disabled otherwise] 1846 --enable-sjavac use sjavac to do fast incremental compiles 1847 [disabled] 1848 --disable-precompiled-headers 1849 disable using precompiled headers when compiling C++ 1850 [enabled] 1851 --enable-ccache enable using ccache to speed up recompilations 1852 [disabled] 1853 1854 Optional Packages: 1855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1857 --with-custom-make-dir use this directory for custom build/make files 1858 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1859 support it), e.g. --with-target-bits=32 [guessed] 1860 --with-jdk-variant JDK variant to build (normal) [normal] 1861 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1862 --with-jvm-variants JVM variants (separated by commas) to build (server, 1863 client, minimal1, kernel, zero, zeroshark, core) 1864 [server] 1865 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1866 [release] 1867 --with-devkit use this devkit for compilers, tools and resources 1868 --with-sys-root alias for --with-sysroot for backwards compatability 1869 --with-sysroot use this directory as sysroot) 1870 --with-tools-dir alias for --with-toolchain-path for backwards 1871 compatibility 1872 --with-toolchain-path prepend these directories when searching for 1873 toolchain binaries (compilers etc) 1874 --with-extra-path prepend these directories to the default path 1875 --with-xcode-path explicit path to Xcode 4 (generally for building on 1876 10.9 and later) 1877 --with-conf-name use this as the name of the configuration [generated 1878 from important configuration options] 1879 --with-builddeps-conf use this configuration file for the builddeps 1880 --with-builddeps-server download and use build dependencies from this server 1881 url 1882 --with-builddeps-dir store downloaded build dependencies here 1883 [/localhome/builddeps] 1884 --with-builddeps-group chgrp the downloaded build dependencies to this 1885 group 1886 --with-cacerts-file specify alternative cacerts file 1887 --with-milestone Set milestone value for build [internal] 1888 --with-update-version Set update version value for build [b00] 1889 --with-user-release-suffix 1890 Add a custom string to the version string if build 1891 number isn't set.[username_builddateb00] 1892 --with-build-number Set build number value for build [b00] 1893 --with-copyright-year Set copyright year value for build [current year] 1894 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1895 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1896 invocations of the Boot JDK, overriding the default 1897 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1898 -enableassertions" 1899 --with-add-source-root for each and every source directory, look in this 1900 additional source root for the same directory; if it 1901 exists and have files in it, include it in the build 1902 --with-override-source-root 1903 for each and every source directory, look in this 1904 override source root for the same directory; if it 1905 exists, use that directory instead and ignore the 1906 directory in the original source root 1907 --with-adds-and-overrides 1908 use the subdirs 'adds' and 'overrides' in the 1909 specified directory as add-source-root and 1910 override-source-root 1911 --with-override-langtools 1912 use this langtools dir for the build 1913 --with-override-corba use this corba dir for the build 1914 --with-override-jaxp use this jaxp dir for the build 1915 --with-override-jaxws use this jaxws dir for the build 1916 --with-override-hotspot use this hotspot dir for the build 1917 --with-override-nashorn use this nashorn dir for the build 1918 --with-override-jdk use this jdk dir for the build 1919 --with-import-hotspot import hotspot binaries from this jdk image or 1920 hotspot build dist dir instead of building from 1921 source 1922 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1923 to show possible values [platform dependent] 1924 --with-toolchain-version 1925 the version of the toolchain to look for, use 1926 '--help' to show possible values [platform 1927 dependent] 1928 --with-jtreg Regression Test Harness [probed] 1929 --with-extra-cflags extra flags to be used when compiling jdk c-files 1930 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1931 --with-extra-ldflags extra flags to be used when linking jdk 1932 --with-native-debug-symbols 1933 set the native debug symbol configuration (none, 1934 internal, external, zipped) [varying] 1935 --with-x use the X Window System 1936 --with-cups specify prefix directory for the cups package 1937 (expecting the headers under PATH/include) 1938 --with-cups-include specify directory for the cups include files 1939 --with-freetype specify prefix directory for the freetype package 1940 (expecting the libraries under PATH/lib and the 1941 headers under PATH/include) 1942 --with-freetype-include specify directory for the freetype include files 1943 --with-freetype-lib specify directory for the freetype library 1944 --with-freetype-src specify directory with freetype sources to 1945 automatically build the library (experimental, 1946 Windows-only) 1947 --with-alsa specify prefix directory for the alsa package 1948 (expecting the libraries under PATH/lib and the 1949 headers under PATH/include) 1950 --with-alsa-include specify directory for the alsa include files 1951 --with-alsa-lib specify directory for the alsa library 1952 --with-fontconfig specify prefix directory for the fontconfig package 1953 (expecting the headers under PATH/include) 1954 --with-fontconfig-include 1955 specify directory for the fontconfig include files 1956 --with-giflib use giflib from build system or OpenJDK source 1957 (system, bundled) [bundled] 1958 --with-zlib use zlib from build system or OpenJDK source 1959 (system, bundled) [bundled] 1960 --with-stdc++lib=<static>,<dynamic>,<default> 1961 force linking of the C++ runtime on Linux to either 1962 static or dynamic, default is static with dynamic as 1963 fallback 1964 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1965 (Windows only) [probed] 1966 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1967 (Windows only) [probed] 1968 --with-ucrt-dll-dir path to Microsoft Windows Kit UCRT DLL dir (Windows 1969 only) [probed] 1970 --with-dxsdk Deprecated. Option is kept for backwards 1971 compatibility and is ignored 1972 --with-dxsdk-lib Deprecated. Option is kept for backwards 1973 compatibility and is ignored 1974 --with-dxsdk-include Deprecated. Option is kept for backwards 1975 compatibility and is ignored 1976 --with-num-cores number of cores in the build system, e.g. 1977 --with-num-cores=8 [probed] 1978 --with-memory-size memory (in MB) available in the build system, e.g. 1979 --with-memory-size=1024 [probed] 1980 --with-jobs number of parallel jobs to let make run [calculated 1981 based on cores and memory] 1982 --with-sjavac-server-java 1983 use this java binary for running the sjavac 1984 background server [Boot JDK java] 1985 --with-ccache-dir where to store ccache files [~/.ccache] 1986 1987 Some influential environment variables: 1988 BASENAME Override default value for BASENAME 1989 BASH Override default value for BASH 1990 CAT Override default value for CAT 1991 CHMOD Override default value for CHMOD 1992 CMP Override default value for CMP 1993 COMM Override default value for COMM 1994 CP Override default value for CP 1995 CUT Override default value for CUT 1996 DATE Override default value for DATE 1997 DIFF Override default value for DIFF 1998 DIRNAME Override default value for DIRNAME 1999 ECHO Override default value for ECHO 2000 EXPR Override default value for EXPR 2001 FILE Override default value for FILE 2002 FIND Override default value for FIND 2003 HEAD Override default value for HEAD 2004 LN Override default value for LN 2005 LS Override default value for LS 2006 MKDIR Override default value for MKDIR 2007 MKTEMP Override default value for MKTEMP 2008 MV Override default value for MV 2009 NAWK Override default value for NAWK 2010 PRINTF Override default value for PRINTF 2011 RM Override default value for RM 2012 SH Override default value for SH 2013 SORT Override default value for SORT 2014 TAIL Override default value for TAIL 2015 TAR Override default value for TAR 2016 TEE Override default value for TEE 2017 TOUCH Override default value for TOUCH 2018 TR Override default value for TR 2019 UNAME Override default value for UNAME 2020 UNIQ Override default value for UNIQ 2021 WC Override default value for WC 2022 WHICH Override default value for WHICH 2023 XARGS Override default value for XARGS 2024 AWK Override default value for AWK 2025 GREP Override default value for GREP 2026 EGREP Override default value for EGREP 2027 FGREP Override default value for FGREP 2028 SED Override default value for SED 2029 CYGPATH Override default value for CYGPATH 2030 READLINK Override default value for READLINK 2031 DF Override default value for DF 2032 SETFILE Override default value for SETFILE 2033 CPIO Override default value for CPIO 2034 UNZIP Override default value for UNZIP 2035 ZIP Override default value for ZIP 2036 LDD Override default value for LDD 2037 READELF Override default value for READELF 2038 HG Override default value for HG 2039 STAT Override default value for STAT 2040 TIME Override default value for TIME 2041 DSYMUTIL Override default value for DSYMUTIL 2042 XATTR Override default value for XATTR 2043 CODESIGN Override default value for CODESIGN 2044 PKG_CONFIG path to pkg-config utility 2045 CC C compiler command 2046 CFLAGS C compiler flags 2047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2048 nonstandard directory <lib dir> 2049 LIBS libraries to pass to the linker, e.g. -l<library> 2050 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2051 you have headers in a nonstandard directory <include dir> 2052 CXX C++ compiler command 2053 CXXFLAGS C++ compiler flags 2054 CPP C preprocessor 2055 CXXCPP C++ preprocessor 2056 AS Override default value for AS 2057 AR Override default value for AR 2058 OBJC Objective C compiler command 2059 OBJCFLAGS Objective C compiler flags 2060 LIPO Override default value for LIPO 2061 STRIP Override default value for STRIP 2062 NM Override default value for NM 2063 GNM Override default value for GNM 2064 MCS Override default value for MCS 2065 OBJCOPY Override default value for OBJCOPY 2066 OBJDUMP Override default value for OBJDUMP 2067 BUILD_CC Override default value for BUILD_CC 2068 BUILD_CXX Override default value for BUILD_CXX 2069 BUILD_LD Override default value for BUILD_LD 2070 JTREGEXE Override default value for JTREGEXE 2071 XMKMF Path to xmkmf, Makefile generator for X Window System 2072 FREETYPE_CFLAGS 2073 C compiler flags for FREETYPE, overriding pkg-config 2074 FREETYPE_LIBS 2075 linker flags for FREETYPE, overriding pkg-config 2076 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2077 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2078 LIBFFI_CFLAGS 2079 C compiler flags for LIBFFI, overriding pkg-config 2080 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2081 CCACHE Override default value for CCACHE 2082 2083 Use these variables to override the choices made by `configure' or to help 2084 it to find libraries and programs with nonstandard names/locations. 2085 2086 Report bugs to <build-dev@openjdk.java.net>. 2087 OpenJDK home page: <http://openjdk.java.net>. 2088 _ACEOF 2089 ac_status=$? 2090 fi 2091 2092 if test "$ac_init_help" = "recursive"; then 2093 # If there are subdirs, report their specific --help. 2094 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2095 test -d "$ac_dir" || 2096 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2097 continue 2098 ac_builddir=. 2099 2100 case "$ac_dir" in 2101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2102 *) 2103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2104 # A ".." for each directory in $ac_dir_suffix. 2105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2106 case $ac_top_builddir_sub in 2107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2109 esac ;; 2110 esac 2111 ac_abs_top_builddir=$ac_pwd 2112 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2113 # for backward compatibility: 2114 ac_top_builddir=$ac_top_build_prefix 2115 2116 case $srcdir in 2117 .) # We are building in place. 2118 ac_srcdir=. 2119 ac_top_srcdir=$ac_top_builddir_sub 2120 ac_abs_top_srcdir=$ac_pwd ;; 2121 [\\/]* | ?:[\\/]* ) # Absolute name. 2122 ac_srcdir=$srcdir$ac_dir_suffix; 2123 ac_top_srcdir=$srcdir 2124 ac_abs_top_srcdir=$srcdir ;; 2125 *) # Relative name. 2126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2127 ac_top_srcdir=$ac_top_build_prefix$srcdir 2128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2129 esac 2130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2131 2132 cd "$ac_dir" || { ac_status=$?; continue; } 2133 # Check for guested configure. 2134 if test -f "$ac_srcdir/configure.gnu"; then 2135 echo && 2136 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2137 elif test -f "$ac_srcdir/configure"; then 2138 echo && 2139 $SHELL "$ac_srcdir/configure" --help=recursive 2140 else 2141 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2142 fi || ac_status=$? 2143 cd "$ac_pwd" || { ac_status=$?; break; } 2144 done 2145 fi 2146 2147 test -n "$ac_init_help" && exit $ac_status 2148 if $ac_init_version; then 2149 cat <<\_ACEOF 2150 OpenJDK configure jdk8 2151 generated by GNU Autoconf 2.69 2152 2153 Copyright (C) 2012 Free Software Foundation, Inc. 2154 This configure script is free software; the Free Software Foundation 2155 gives unlimited permission to copy, distribute and modify it. 2156 _ACEOF 2157 exit 2158 fi 2159 2160 ## ------------------------ ## 2161 ## Autoconf initialization. ## 2162 ## ------------------------ ## 2163 2164 # ac_fn_c_try_compile LINENO 2165 # -------------------------- 2166 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2167 ac_fn_c_try_compile () 2168 { 2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2170 rm -f conftest.$ac_objext 2171 if { { ac_try="$ac_compile" 2172 case "(($ac_try" in 2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2174 *) ac_try_echo=$ac_try;; 2175 esac 2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2177 $as_echo "$ac_try_echo"; } >&5 2178 (eval "$ac_compile") 2>conftest.err 2179 ac_status=$? 2180 if test -s conftest.err; then 2181 grep -v '^ *+' conftest.err >conftest.er1 2182 cat conftest.er1 >&5 2183 mv -f conftest.er1 conftest.err 2184 fi 2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2186 test $ac_status = 0; } && { 2187 test -z "$ac_c_werror_flag" || 2188 test ! -s conftest.err 2189 } && test -s conftest.$ac_objext; then : 2190 ac_retval=0 2191 else 2192 $as_echo "$as_me: failed program was:" >&5 2193 sed 's/^/| /' conftest.$ac_ext >&5 2194 2195 ac_retval=1 2196 fi 2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2198 as_fn_set_status $ac_retval 2199 2200 } # ac_fn_c_try_compile 2201 2202 # ac_fn_cxx_try_compile LINENO 2203 # ---------------------------- 2204 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2205 ac_fn_cxx_try_compile () 2206 { 2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2208 rm -f conftest.$ac_objext 2209 if { { ac_try="$ac_compile" 2210 case "(($ac_try" in 2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2212 *) ac_try_echo=$ac_try;; 2213 esac 2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2215 $as_echo "$ac_try_echo"; } >&5 2216 (eval "$ac_compile") 2>conftest.err 2217 ac_status=$? 2218 if test -s conftest.err; then 2219 grep -v '^ *+' conftest.err >conftest.er1 2220 cat conftest.er1 >&5 2221 mv -f conftest.er1 conftest.err 2222 fi 2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2224 test $ac_status = 0; } && { 2225 test -z "$ac_cxx_werror_flag" || 2226 test ! -s conftest.err 2227 } && test -s conftest.$ac_objext; then : 2228 ac_retval=0 2229 else 2230 $as_echo "$as_me: failed program was:" >&5 2231 sed 's/^/| /' conftest.$ac_ext >&5 2232 2233 ac_retval=1 2234 fi 2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2236 as_fn_set_status $ac_retval 2237 2238 } # ac_fn_cxx_try_compile 2239 2240 # ac_fn_c_try_cpp LINENO 2241 # ---------------------- 2242 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2243 ac_fn_c_try_cpp () 2244 { 2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2246 if { { ac_try="$ac_cpp conftest.$ac_ext" 2247 case "(($ac_try" in 2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2249 *) ac_try_echo=$ac_try;; 2250 esac 2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2252 $as_echo "$ac_try_echo"; } >&5 2253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2254 ac_status=$? 2255 if test -s conftest.err; then 2256 grep -v '^ *+' conftest.err >conftest.er1 2257 cat conftest.er1 >&5 2258 mv -f conftest.er1 conftest.err 2259 fi 2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2261 test $ac_status = 0; } > conftest.i && { 2262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2263 test ! -s conftest.err 2264 }; then : 2265 ac_retval=0 2266 else 2267 $as_echo "$as_me: failed program was:" >&5 2268 sed 's/^/| /' conftest.$ac_ext >&5 2269 2270 ac_retval=1 2271 fi 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 as_fn_set_status $ac_retval 2274 2275 } # ac_fn_c_try_cpp 2276 2277 # ac_fn_cxx_try_cpp LINENO 2278 # ------------------------ 2279 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2280 ac_fn_cxx_try_cpp () 2281 { 2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2283 if { { ac_try="$ac_cpp conftest.$ac_ext" 2284 case "(($ac_try" in 2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2286 *) ac_try_echo=$ac_try;; 2287 esac 2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2289 $as_echo "$ac_try_echo"; } >&5 2290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2291 ac_status=$? 2292 if test -s conftest.err; then 2293 grep -v '^ *+' conftest.err >conftest.er1 2294 cat conftest.er1 >&5 2295 mv -f conftest.er1 conftest.err 2296 fi 2297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2298 test $ac_status = 0; } > conftest.i && { 2299 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2300 test ! -s conftest.err 2301 }; then : 2302 ac_retval=0 2303 else 2304 $as_echo "$as_me: failed program was:" >&5 2305 sed 's/^/| /' conftest.$ac_ext >&5 2306 2307 ac_retval=1 2308 fi 2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2310 as_fn_set_status $ac_retval 2311 2312 } # ac_fn_cxx_try_cpp 2313 2314 # ac_fn_objc_try_compile LINENO 2315 # ----------------------------- 2316 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2317 ac_fn_objc_try_compile () 2318 { 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 rm -f conftest.$ac_objext 2321 if { { ac_try="$ac_compile" 2322 case "(($ac_try" in 2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2324 *) ac_try_echo=$ac_try;; 2325 esac 2326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2327 $as_echo "$ac_try_echo"; } >&5 2328 (eval "$ac_compile") 2>conftest.err 2329 ac_status=$? 2330 if test -s conftest.err; then 2331 grep -v '^ *+' conftest.err >conftest.er1 2332 cat conftest.er1 >&5 2333 mv -f conftest.er1 conftest.err 2334 fi 2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2336 test $ac_status = 0; } && { 2337 test -z "$ac_objc_werror_flag" || 2338 test ! -s conftest.err 2339 } && test -s conftest.$ac_objext; then : 2340 ac_retval=0 2341 else 2342 $as_echo "$as_me: failed program was:" >&5 2343 sed 's/^/| /' conftest.$ac_ext >&5 2344 2345 ac_retval=1 2346 fi 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 as_fn_set_status $ac_retval 2349 2350 } # ac_fn_objc_try_compile 2351 2352 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2353 # --------------------------------------------------------- 2354 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2355 # the include files in INCLUDES and setting the cache variable VAR 2356 # accordingly. 2357 ac_fn_cxx_check_header_mongrel () 2358 { 2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2360 if eval \${$3+:} false; then : 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2362 $as_echo_n "checking for $2... " >&6; } 2363 if eval \${$3+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365 fi 2366 eval ac_res=\$$3 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2368 $as_echo "$ac_res" >&6; } 2369 else 2370 # Is the header compilable? 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2372 $as_echo_n "checking $2 usability... " >&6; } 2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2374 /* end confdefs.h. */ 2375 $4 2376 #include <$2> 2377 _ACEOF 2378 if ac_fn_cxx_try_compile "$LINENO"; then : 2379 ac_header_compiler=yes 2380 else 2381 ac_header_compiler=no 2382 fi 2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2385 $as_echo "$ac_header_compiler" >&6; } 2386 2387 # Is the header present? 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2389 $as_echo_n "checking $2 presence... " >&6; } 2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2391 /* end confdefs.h. */ 2392 #include <$2> 2393 _ACEOF 2394 if ac_fn_cxx_try_cpp "$LINENO"; then : 2395 ac_header_preproc=yes 2396 else 2397 ac_header_preproc=no 2398 fi 2399 rm -f conftest.err conftest.i conftest.$ac_ext 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2401 $as_echo "$ac_header_preproc" >&6; } 2402 2403 # So? What about this header? 2404 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2405 yes:no: ) 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2407 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2410 ;; 2411 no:yes:* ) 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2413 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2415 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2417 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2419 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2421 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2422 ( $as_echo "## ----------------------------------------- ## 2423 ## Report this to build-dev@openjdk.java.net ## 2424 ## ----------------------------------------- ##" 2425 ) | sed "s/^/$as_me: WARNING: /" >&2 2426 ;; 2427 esac 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2429 $as_echo_n "checking for $2... " >&6; } 2430 if eval \${$3+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432 else 2433 eval "$3=\$ac_header_compiler" 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 fi 2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2440 2441 } # ac_fn_cxx_check_header_mongrel 2442 2443 # ac_fn_cxx_try_run LINENO 2444 # ------------------------ 2445 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2446 # that executables *can* be run. 2447 ac_fn_cxx_try_run () 2448 { 2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2450 if { { ac_try="$ac_link" 2451 case "(($ac_try" in 2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2453 *) ac_try_echo=$ac_try;; 2454 esac 2455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2456 $as_echo "$ac_try_echo"; } >&5 2457 (eval "$ac_link") 2>&5 2458 ac_status=$? 2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2460 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2461 { { case "(($ac_try" in 2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2463 *) ac_try_echo=$ac_try;; 2464 esac 2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2466 $as_echo "$ac_try_echo"; } >&5 2467 (eval "$ac_try") 2>&5 2468 ac_status=$? 2469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2470 test $ac_status = 0; }; }; then : 2471 ac_retval=0 2472 else 2473 $as_echo "$as_me: program exited with status $ac_status" >&5 2474 $as_echo "$as_me: failed program was:" >&5 2475 sed 's/^/| /' conftest.$ac_ext >&5 2476 2477 ac_retval=$ac_status 2478 fi 2479 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2481 as_fn_set_status $ac_retval 2482 2483 } # ac_fn_cxx_try_run 2484 2485 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2486 # --------------------------------------------------------- 2487 # Tests whether HEADER exists and can be compiled using the include files in 2488 # INCLUDES, setting the cache variable VAR accordingly. 2489 ac_fn_cxx_check_header_compile () 2490 { 2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2493 $as_echo_n "checking for $2... " >&6; } 2494 if eval \${$3+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496 else 2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2498 /* end confdefs.h. */ 2499 $4 2500 #include <$2> 2501 _ACEOF 2502 if ac_fn_cxx_try_compile "$LINENO"; then : 2503 eval "$3=yes" 2504 else 2505 eval "$3=no" 2506 fi 2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2508 fi 2509 eval ac_res=\$$3 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2511 $as_echo "$ac_res" >&6; } 2512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2513 2514 } # ac_fn_cxx_check_header_compile 2515 2516 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2517 # ---------------------------------------------- 2518 # Tries to find the compile-time value of EXPR in a program that includes 2519 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2520 # computed 2521 ac_fn_cxx_compute_int () 2522 { 2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2524 if test "$cross_compiling" = yes; then 2525 # Depending upon the size, compute the lo and hi bounds. 2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2527 /* end confdefs.h. */ 2528 $4 2529 int 2530 main () 2531 { 2532 static int test_array [1 - 2 * !(($2) >= 0)]; 2533 test_array [0] = 0; 2534 return test_array [0]; 2535 2536 ; 2537 return 0; 2538 } 2539 _ACEOF 2540 if ac_fn_cxx_try_compile "$LINENO"; then : 2541 ac_lo=0 ac_mid=0 2542 while :; do 2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2544 /* end confdefs.h. */ 2545 $4 2546 int 2547 main () 2548 { 2549 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2550 test_array [0] = 0; 2551 return test_array [0]; 2552 2553 ; 2554 return 0; 2555 } 2556 _ACEOF 2557 if ac_fn_cxx_try_compile "$LINENO"; then : 2558 ac_hi=$ac_mid; break 2559 else 2560 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2561 if test $ac_lo -le $ac_mid; then 2562 ac_lo= ac_hi= 2563 break 2564 fi 2565 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2566 fi 2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2568 done 2569 else 2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2571 /* end confdefs.h. */ 2572 $4 2573 int 2574 main () 2575 { 2576 static int test_array [1 - 2 * !(($2) < 0)]; 2577 test_array [0] = 0; 2578 return test_array [0]; 2579 2580 ; 2581 return 0; 2582 } 2583 _ACEOF 2584 if ac_fn_cxx_try_compile "$LINENO"; then : 2585 ac_hi=-1 ac_mid=-1 2586 while :; do 2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2588 /* end confdefs.h. */ 2589 $4 2590 int 2591 main () 2592 { 2593 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2594 test_array [0] = 0; 2595 return test_array [0]; 2596 2597 ; 2598 return 0; 2599 } 2600 _ACEOF 2601 if ac_fn_cxx_try_compile "$LINENO"; then : 2602 ac_lo=$ac_mid; break 2603 else 2604 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2605 if test $ac_mid -le $ac_hi; then 2606 ac_lo= ac_hi= 2607 break 2608 fi 2609 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2610 fi 2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2612 done 2613 else 2614 ac_lo= ac_hi= 2615 fi 2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2617 fi 2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2619 # Binary search between lo and hi bounds. 2620 while test "x$ac_lo" != "x$ac_hi"; do 2621 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2623 /* end confdefs.h. */ 2624 $4 2625 int 2626 main () 2627 { 2628 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2629 test_array [0] = 0; 2630 return test_array [0]; 2631 2632 ; 2633 return 0; 2634 } 2635 _ACEOF 2636 if ac_fn_cxx_try_compile "$LINENO"; then : 2637 ac_hi=$ac_mid 2638 else 2639 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2640 fi 2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2642 done 2643 case $ac_lo in #(( 2644 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2645 '') ac_retval=1 ;; 2646 esac 2647 else 2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2649 /* end confdefs.h. */ 2650 $4 2651 static long int longval () { return $2; } 2652 static unsigned long int ulongval () { return $2; } 2653 #include <stdio.h> 2654 #include <stdlib.h> 2655 int 2656 main () 2657 { 2658 2659 FILE *f = fopen ("conftest.val", "w"); 2660 if (! f) 2661 return 1; 2662 if (($2) < 0) 2663 { 2664 long int i = longval (); 2665 if (i != ($2)) 2666 return 1; 2667 fprintf (f, "%ld", i); 2668 } 2669 else 2670 { 2671 unsigned long int i = ulongval (); 2672 if (i != ($2)) 2673 return 1; 2674 fprintf (f, "%lu", i); 2675 } 2676 /* Do not output a trailing newline, as this causes \r\n confusion 2677 on some platforms. */ 2678 return ferror (f) || fclose (f) != 0; 2679 2680 ; 2681 return 0; 2682 } 2683 _ACEOF 2684 if ac_fn_cxx_try_run "$LINENO"; then : 2685 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2686 else 2687 ac_retval=1 2688 fi 2689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2690 conftest.$ac_objext conftest.beam conftest.$ac_ext 2691 rm -f conftest.val 2692 2693 fi 2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2695 as_fn_set_status $ac_retval 2696 2697 } # ac_fn_cxx_compute_int 2698 2699 # ac_fn_cxx_try_link LINENO 2700 # ------------------------- 2701 # Try to link conftest.$ac_ext, and return whether this succeeded. 2702 ac_fn_cxx_try_link () 2703 { 2704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2705 rm -f conftest.$ac_objext conftest$ac_exeext 2706 if { { ac_try="$ac_link" 2707 case "(($ac_try" in 2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2709 *) ac_try_echo=$ac_try;; 2710 esac 2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2712 $as_echo "$ac_try_echo"; } >&5 2713 (eval "$ac_link") 2>conftest.err 2714 ac_status=$? 2715 if test -s conftest.err; then 2716 grep -v '^ *+' conftest.err >conftest.er1 2717 cat conftest.er1 >&5 2718 mv -f conftest.er1 conftest.err 2719 fi 2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2721 test $ac_status = 0; } && { 2722 test -z "$ac_cxx_werror_flag" || 2723 test ! -s conftest.err 2724 } && test -s conftest$ac_exeext && { 2725 test "$cross_compiling" = yes || 2726 test -x conftest$ac_exeext 2727 }; then : 2728 ac_retval=0 2729 else 2730 $as_echo "$as_me: failed program was:" >&5 2731 sed 's/^/| /' conftest.$ac_ext >&5 2732 2733 ac_retval=1 2734 fi 2735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2737 # interfere with the next link command; also delete a directory that is 2738 # left behind by Apple's compiler. We do this before executing the actions. 2739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2741 as_fn_set_status $ac_retval 2742 2743 } # ac_fn_cxx_try_link 2744 2745 # ac_fn_cxx_check_func LINENO FUNC VAR 2746 # ------------------------------------ 2747 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2748 ac_fn_cxx_check_func () 2749 { 2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2752 $as_echo_n "checking for $2... " >&6; } 2753 if eval \${$3+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755 else 2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2757 /* end confdefs.h. */ 2758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2759 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2760 #define $2 innocuous_$2 2761 2762 /* System header to define __stub macros and hopefully few prototypes, 2763 which can conflict with char $2 (); below. 2764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2765 <limits.h> exists even on freestanding compilers. */ 2766 2767 #ifdef __STDC__ 2768 # include <limits.h> 2769 #else 2770 # include <assert.h> 2771 #endif 2772 2773 #undef $2 2774 2775 /* Override any GCC internal prototype to avoid an error. 2776 Use char because int might match the return type of a GCC 2777 builtin and then its argument prototype would still apply. */ 2778 #ifdef __cplusplus 2779 extern "C" 2780 #endif 2781 char $2 (); 2782 /* The GNU C library defines this for functions which it implements 2783 to always fail with ENOSYS. Some functions are actually named 2784 something starting with __ and the normal name is an alias. */ 2785 #if defined __stub_$2 || defined __stub___$2 2786 choke me 2787 #endif 2788 2789 int 2790 main () 2791 { 2792 return $2 (); 2793 ; 2794 return 0; 2795 } 2796 _ACEOF 2797 if ac_fn_cxx_try_link "$LINENO"; then : 2798 eval "$3=yes" 2799 else 2800 eval "$3=no" 2801 fi 2802 rm -f core conftest.err conftest.$ac_objext \ 2803 conftest$ac_exeext conftest.$ac_ext 2804 fi 2805 eval ac_res=\$$3 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2807 $as_echo "$ac_res" >&6; } 2808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2809 2810 } # ac_fn_cxx_check_func 2811 2812 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2813 # ------------------------------------------------------- 2814 # Tests whether HEADER exists and can be compiled using the include files in 2815 # INCLUDES, setting the cache variable VAR accordingly. 2816 ac_fn_c_check_header_compile () 2817 { 2818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2820 $as_echo_n "checking for $2... " >&6; } 2821 if eval \${$3+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823 else 2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2825 /* end confdefs.h. */ 2826 $4 2827 #include <$2> 2828 _ACEOF 2829 if ac_fn_c_try_compile "$LINENO"; then : 2830 eval "$3=yes" 2831 else 2832 eval "$3=no" 2833 fi 2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2835 fi 2836 eval ac_res=\$$3 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2838 $as_echo "$ac_res" >&6; } 2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2840 2841 } # ac_fn_c_check_header_compile 2842 cat >config.log <<_ACEOF 2843 This file contains any messages produced by compilers while 2844 running configure, to aid debugging if configure makes a mistake. 2845 2846 It was created by OpenJDK $as_me jdk8, which was 2847 generated by GNU Autoconf 2.69. Invocation command line was 2848 2849 $ $0 $@ 2850 2851 _ACEOF 2852 exec 5>>config.log 2853 { 2854 cat <<_ASUNAME 2855 ## --------- ## 2856 ## Platform. ## 2857 ## --------- ## 2858 2859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2860 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2861 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2862 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2863 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2864 2865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2867 2868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2875 2876 _ASUNAME 2877 2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879 for as_dir in $PATH 2880 do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 $as_echo "PATH: $as_dir" 2884 done 2885 IFS=$as_save_IFS 2886 2887 } >&5 2888 2889 cat >&5 <<_ACEOF 2890 2891 2892 ## ----------- ## 2893 ## Core tests. ## 2894 ## ----------- ## 2895 2896 _ACEOF 2897 2898 2899 # Keep a trace of the command line. 2900 # Strip out --no-create and --no-recursion so they do not pile up. 2901 # Strip out --silent because we don't want to record it for future runs. 2902 # Also quote any args containing shell meta-characters. 2903 # Make two passes to allow for proper duplicate-argument suppression. 2904 ac_configure_args= 2905 ac_configure_args0= 2906 ac_configure_args1= 2907 ac_must_keep_next=false 2908 for ac_pass in 1 2 2909 do 2910 for ac_arg 2911 do 2912 case $ac_arg in 2913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2915 | -silent | --silent | --silen | --sile | --sil) 2916 continue ;; 2917 *\'*) 2918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2919 esac 2920 case $ac_pass in 2921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2922 2) 2923 as_fn_append ac_configure_args1 " '$ac_arg'" 2924 if test $ac_must_keep_next = true; then 2925 ac_must_keep_next=false # Got value, back to normal. 2926 else 2927 case $ac_arg in 2928 *=* | --config-cache | -C | -disable-* | --disable-* \ 2929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2931 | -with-* | --with-* | -without-* | --without-* | --x) 2932 case "$ac_configure_args0 " in 2933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2934 esac 2935 ;; 2936 -* ) ac_must_keep_next=true ;; 2937 esac 2938 fi 2939 as_fn_append ac_configure_args " '$ac_arg'" 2940 ;; 2941 esac 2942 done 2943 done 2944 { ac_configure_args0=; unset ac_configure_args0;} 2945 { ac_configure_args1=; unset ac_configure_args1;} 2946 2947 # When interrupted or exit'd, cleanup temporary files, and complete 2948 # config.log. We remove comments because anyway the quotes in there 2949 # would cause problems or look ugly. 2950 # WARNING: Use '\'' to represent an apostrophe within the trap. 2951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2952 trap 'exit_status=$? 2953 # Save into config.log some information that might help in debugging. 2954 { 2955 echo 2956 2957 $as_echo "## ---------------- ## 2958 ## Cache variables. ## 2959 ## ---------------- ##" 2960 echo 2961 # The following way of writing the cache mishandles newlines in values, 2962 ( 2963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2964 eval ac_val=\$$ac_var 2965 case $ac_val in #( 2966 *${as_nl}*) 2967 case $ac_var in #( 2968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2970 esac 2971 case $ac_var in #( 2972 _ | IFS | as_nl) ;; #( 2973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2974 *) { eval $ac_var=; unset $ac_var;} ;; 2975 esac ;; 2976 esac 2977 done 2978 (set) 2>&1 | 2979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2980 *${as_nl}ac_space=\ *) 2981 sed -n \ 2982 "s/'\''/'\''\\\\'\'''\''/g; 2983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2984 ;; #( 2985 *) 2986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2987 ;; 2988 esac | 2989 sort 2990 ) 2991 echo 2992 2993 $as_echo "## ----------------- ## 2994 ## Output variables. ## 2995 ## ----------------- ##" 2996 echo 2997 for ac_var in $ac_subst_vars 2998 do 2999 eval ac_val=\$$ac_var 3000 case $ac_val in 3001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3002 esac 3003 $as_echo "$ac_var='\''$ac_val'\''" 3004 done | sort 3005 echo 3006 3007 if test -n "$ac_subst_files"; then 3008 $as_echo "## ------------------- ## 3009 ## File substitutions. ## 3010 ## ------------------- ##" 3011 echo 3012 for ac_var in $ac_subst_files 3013 do 3014 eval ac_val=\$$ac_var 3015 case $ac_val in 3016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3017 esac 3018 $as_echo "$ac_var='\''$ac_val'\''" 3019 done | sort 3020 echo 3021 fi 3022 3023 if test -s confdefs.h; then 3024 $as_echo "## ----------- ## 3025 ## confdefs.h. ## 3026 ## ----------- ##" 3027 echo 3028 cat confdefs.h 3029 echo 3030 fi 3031 test "$ac_signal" != 0 && 3032 $as_echo "$as_me: caught signal $ac_signal" 3033 $as_echo "$as_me: exit $exit_status" 3034 } >&5 3035 rm -f core *.core core.conftest.* && 3036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3037 exit $exit_status 3038 ' 0 3039 for ac_signal in 1 2 13 15; do 3040 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3041 done 3042 ac_signal=0 3043 3044 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3045 rm -f -r conftest* confdefs.h 3046 3047 $as_echo "/* confdefs.h */" > confdefs.h 3048 3049 # Predefined preprocessor variables. 3050 3051 cat >>confdefs.h <<_ACEOF 3052 #define PACKAGE_NAME "$PACKAGE_NAME" 3053 _ACEOF 3054 3055 cat >>confdefs.h <<_ACEOF 3056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3057 _ACEOF 3058 3059 cat >>confdefs.h <<_ACEOF 3060 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3061 _ACEOF 3062 3063 cat >>confdefs.h <<_ACEOF 3064 #define PACKAGE_STRING "$PACKAGE_STRING" 3065 _ACEOF 3066 3067 cat >>confdefs.h <<_ACEOF 3068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3069 _ACEOF 3070 3071 cat >>confdefs.h <<_ACEOF 3072 #define PACKAGE_URL "$PACKAGE_URL" 3073 _ACEOF 3074 3075 3076 # Let the site file select an alternate cache file if it wants to. 3077 # Prefer an explicitly selected file to automatically selected ones. 3078 ac_site_file1=NONE 3079 ac_site_file2=NONE 3080 if test -n "$CONFIG_SITE"; then 3081 # We do not want a PATH search for config.site. 3082 case $CONFIG_SITE in #(( 3083 -*) ac_site_file1=./$CONFIG_SITE;; 3084 */*) ac_site_file1=$CONFIG_SITE;; 3085 *) ac_site_file1=./$CONFIG_SITE;; 3086 esac 3087 elif test "x$prefix" != xNONE; then 3088 ac_site_file1=$prefix/share/config.site 3089 ac_site_file2=$prefix/etc/config.site 3090 else 3091 ac_site_file1=$ac_default_prefix/share/config.site 3092 ac_site_file2=$ac_default_prefix/etc/config.site 3093 fi 3094 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3095 do 3096 test "x$ac_site_file" = xNONE && continue 3097 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3099 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3100 sed 's/^/| /' "$ac_site_file" >&5 3101 . "$ac_site_file" \ 3102 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3104 as_fn_error $? "failed to load site script $ac_site_file 3105 See \`config.log' for more details" "$LINENO" 5; } 3106 fi 3107 done 3108 3109 if test -r "$cache_file"; then 3110 # Some versions of bash will fail to source /dev/null (special files 3111 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3114 $as_echo "$as_me: loading cache $cache_file" >&6;} 3115 case $cache_file in 3116 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3117 *) . "./$cache_file";; 3118 esac 3119 fi 3120 else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3122 $as_echo "$as_me: creating cache $cache_file" >&6;} 3123 >$cache_file 3124 fi 3125 3126 # Check that the precious variables saved in the cache have kept the same 3127 # value. 3128 ac_cache_corrupted=false 3129 for ac_var in $ac_precious_vars; do 3130 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3131 eval ac_new_set=\$ac_env_${ac_var}_set 3132 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3133 eval ac_new_val=\$ac_env_${ac_var}_value 3134 case $ac_old_set,$ac_new_set in 3135 set,) 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3138 ac_cache_corrupted=: ;; 3139 ,set) 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3142 ac_cache_corrupted=: ;; 3143 ,);; 3144 *) 3145 if test "x$ac_old_val" != "x$ac_new_val"; then 3146 # differences in whitespace do not lead to failure. 3147 ac_old_val_w=`echo x $ac_old_val` 3148 ac_new_val_w=`echo x $ac_new_val` 3149 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3152 ac_cache_corrupted=: 3153 else 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3156 eval $ac_var=\$ac_old_val 3157 fi 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3162 fi;; 3163 esac 3164 # Pass precious variables to config.status. 3165 if test "$ac_new_set" = set; then 3166 case $ac_new_val in 3167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3168 *) ac_arg=$ac_var=$ac_new_val ;; 3169 esac 3170 case " $ac_configure_args " in 3171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3172 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3173 esac 3174 fi 3175 done 3176 if $ac_cache_corrupted; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3182 fi 3183 ## -------------------- ## 3184 ## Main body of script. ## 3185 ## -------------------- ## 3186 3187 ac_ext=c 3188 ac_cpp='$CPP $CPPFLAGS' 3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3192 3193 3194 3195 ac_aux_dir= 3196 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3197 if test -f "$ac_dir/install-sh"; then 3198 ac_aux_dir=$ac_dir 3199 ac_install_sh="$ac_aux_dir/install-sh -c" 3200 break 3201 elif test -f "$ac_dir/install.sh"; then 3202 ac_aux_dir=$ac_dir 3203 ac_install_sh="$ac_aux_dir/install.sh -c" 3204 break 3205 elif test -f "$ac_dir/shtool"; then 3206 ac_aux_dir=$ac_dir 3207 ac_install_sh="$ac_aux_dir/shtool install -c" 3208 break 3209 fi 3210 done 3211 if test -z "$ac_aux_dir"; then 3212 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 3213 fi 3214 3215 # These three variables are undocumented and unsupported, 3216 # and are intended to be withdrawn in a future Autoconf release. 3217 # They can cause serious problems if a builder's source tree is in a directory 3218 # whose full name contains unusual characters. 3219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3222 3223 3224 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3225 3226 # 3227 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3228 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3229 # 3230 # This code is free software; you can redistribute it and/or modify it 3231 # under the terms of the GNU General Public License version 2 only, as 3232 # published by the Free Software Foundation. Oracle designates this 3233 # particular file as subject to the "Classpath" exception as provided 3234 # by Oracle in the LICENSE file that accompanied this code. 3235 # 3236 # This code is distributed in the hope that it will be useful, but WITHOUT 3237 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3238 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3239 # version 2 for more details (a copy is included in the LICENSE file that 3240 # accompanied this code). 3241 # 3242 # You should have received a copy of the GNU General Public License version 3243 # 2 along with this work; if not, write to the Free Software Foundation, 3244 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3245 # 3246 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3247 # or visit www.oracle.com if you need additional information or have any 3248 # questions. 3249 # 3250 3251 # 3252 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3253 # 3254 # This program is free software; you can redistribute it and/or modify 3255 # it under the terms of the GNU General Public License as published by 3256 # the Free Software Foundation; either version 2 of the License, or 3257 # (at your option) any later version. 3258 # 3259 # This program is distributed in the hope that it will be useful, but 3260 # WITHOUT ANY WARRANTY; without even the implied warranty of 3261 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3262 # General Public License for more details. 3263 # 3264 # You should have received a copy of the GNU General Public License 3265 # along with this program; if not, write to the Free Software 3266 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3267 # 3268 # As a special exception to the GNU General Public License, if you 3269 # distribute this file as part of a program that contains a 3270 # configuration script generated by Autoconf, you may include it under 3271 # the same distribution terms that you use for the rest of that program. 3272 3273 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3274 # ---------------------------------- 3275 # PKG_PROG_PKG_CONFIG 3276 3277 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3278 # 3279 # Check to see whether a particular set of modules exists. Similar 3280 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3281 # 3282 # 3283 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3284 # this or PKG_CHECK_MODULES is called, or make sure to call 3285 # PKG_CHECK_EXISTS manually 3286 # -------------------------------------------------------------- 3287 3288 3289 3290 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3291 # --------------------------------------------- 3292 # _PKG_CONFIG 3293 3294 # _PKG_SHORT_ERRORS_SUPPORTED 3295 # ----------------------------- 3296 # _PKG_SHORT_ERRORS_SUPPORTED 3297 3298 3299 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3300 # [ACTION-IF-NOT-FOUND]) 3301 # 3302 # 3303 # Note that if there is a possibility the first call to 3304 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3305 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3306 # 3307 # 3308 # -------------------------------------------------------------- 3309 # PKG_CHECK_MODULES 3310 3311 3312 # Include these first... 3313 # 3314 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3315 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3316 # 3317 # This code is free software; you can redistribute it and/or modify it 3318 # under the terms of the GNU General Public License version 2 only, as 3319 # published by the Free Software Foundation. Oracle designates this 3320 # particular file as subject to the "Classpath" exception as provided 3321 # by Oracle in the LICENSE file that accompanied this code. 3322 # 3323 # This code is distributed in the hope that it will be useful, but WITHOUT 3324 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3325 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3326 # version 2 for more details (a copy is included in the LICENSE file that 3327 # accompanied this code). 3328 # 3329 # You should have received a copy of the GNU General Public License version 3330 # 2 along with this work; if not, write to the Free Software Foundation, 3331 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3332 # 3333 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3334 # or visit www.oracle.com if you need additional information or have any 3335 # questions. 3336 # 3337 3338 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3339 # If so, then append $1 to $2 \ 3340 # Also set JVM_ARG_OK to true/false depending on outcome. 3341 3342 3343 # Appends a string to a path variable, only adding the : when needed. 3344 3345 3346 # Prepends a string to a path variable, only adding the : when needed. 3347 3348 3349 # This will make sure the given variable points to a full and proper 3350 # path. This means: 3351 # 1) There will be no spaces in the path. On posix platforms, 3352 # spaces in the path will result in an error. On Windows, 3353 # the path will be rewritten using short-style to be space-free. 3354 # 2) The path will be absolute, and it will be in unix-style (on 3355 # cygwin). 3356 # $1: The name of the variable to fix 3357 3358 3359 # This will make sure the given variable points to a executable 3360 # with a full and proper path. This means: 3361 # 1) There will be no spaces in the path. On posix platforms, 3362 # spaces in the path will result in an error. On Windows, 3363 # the path will be rewritten using short-style to be space-free. 3364 # 2) The path will be absolute, and it will be in unix-style (on 3365 # cygwin). 3366 # Any arguments given to the executable is preserved. 3367 # If the input variable does not have a directory specification, then 3368 # it need to be in the PATH. 3369 # $1: The name of the variable to fix 3370 3371 3372 3373 3374 # Register a --with argument but mark it as deprecated 3375 # $1: The name of the with argument to deprecate, not including --with- 3376 3377 3378 # Register a --enable argument but mark it as deprecated 3379 # $1: The name of the with argument to deprecate, not including --enable- 3380 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3381 3382 3383 3384 3385 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3386 # $1: variable to check 3387 3388 3389 # Check that there are no unprocessed overridden variables left. 3390 # If so, they are an incorrect argument and we will exit with an error. 3391 3392 3393 # Setup a tool for the given variable. If correctly specified by the user, 3394 # use that value, otherwise search for the tool using the supplied code snippet. 3395 # $1: variable to set 3396 # $2: code snippet to call to look for the tool 3397 3398 3399 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3400 # $1: variable to set 3401 # $2: executable name (or list of names) to look for 3402 3403 3404 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3405 # $1: variable to set 3406 # $2: executable name (or list of names) to look for 3407 3408 3409 # Like BASIC_PATH_PROGS but fails if no tool was found. 3410 # $1: variable to set 3411 # $2: executable name (or list of names) to look for 3412 3413 3414 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3415 # $1: variable to set 3416 # $2: autoconf macro to call to look for the special tool 3417 3418 3419 # Setup the most fundamental tools that relies on not much else to set up, 3420 # but is used by much of the early bootstrap code. 3421 3422 3423 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3424 3425 3426 # Evaluates platform specific overrides for devkit variables. 3427 # $1: Name of variable 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 #%%% Simple tools %%% 3438 3439 # Check if we have found a usable version of make 3440 # $1: the path to a potential make binary (or empty) 3441 # $2: the description on how we found this 3442 3443 3444 # Goes looking for a usable version of GNU make. 3445 3446 3447 3448 3449 3450 3451 # Check if build directory is on local disk. If not possible to determine, 3452 # we prefer to claim it's local. 3453 # Argument 1: directory to test 3454 # Argument 2: what to do if it is on local disk 3455 # Argument 3: what to do otherwise (remote disk or failure) 3456 3457 3458 # Check that source files have basic read permissions set. This might 3459 # not be the case in cygwin in certain conditions. 3460 3461 3462 3463 3464 # 3465 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3466 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3467 # 3468 # This code is free software; you can redistribute it and/or modify it 3469 # under the terms of the GNU General Public License version 2 only, as 3470 # published by the Free Software Foundation. Oracle designates this 3471 # particular file as subject to the "Classpath" exception as provided 3472 # by Oracle in the LICENSE file that accompanied this code. 3473 # 3474 # This code is distributed in the hope that it will be useful, but WITHOUT 3475 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3476 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3477 # version 2 for more details (a copy is included in the LICENSE file that 3478 # accompanied this code). 3479 # 3480 # You should have received a copy of the GNU General Public License version 3481 # 2 along with this work; if not, write to the Free Software Foundation, 3482 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3483 # 3484 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3485 # or visit www.oracle.com if you need additional information or have any 3486 # questions. 3487 # 3488 3489 3490 3491 3492 3493 # Helper function which possibly converts a path using DOS-style short mode. 3494 # If so, the updated path is stored in $new_path. 3495 # $1: The path to check 3496 3497 3498 # Helper function which possibly converts a path using DOS-style short mode. 3499 # If so, the updated path is stored in $new_path. 3500 # $1: The path to check 3501 3502 3503 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3504 # and could probably be heavily simplified. However, all changes in this 3505 # area tend to need lot of testing in different scenarios, and in lack of 3506 # proper unit testing, cleaning this up has not been deemed worth the effort 3507 # at the moment. 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3518 3519 3520 3521 3522 # 3523 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3524 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3525 # 3526 # This code is free software; you can redistribute it and/or modify it 3527 # under the terms of the GNU General Public License version 2 only, as 3528 # published by the Free Software Foundation. Oracle designates this 3529 # particular file as subject to the "Classpath" exception as provided 3530 # by Oracle in the LICENSE file that accompanied this code. 3531 # 3532 # This code is distributed in the hope that it will be useful, but WITHOUT 3533 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3534 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3535 # version 2 for more details (a copy is included in the LICENSE file that 3536 # accompanied this code). 3537 # 3538 # You should have received a copy of the GNU General Public License version 3539 # 2 along with this work; if not, write to the Free Software Foundation, 3540 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3541 # 3542 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3543 # or visit www.oracle.com if you need additional information or have any 3544 # questions. 3545 # 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 # ... then the rest 3558 # 3559 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3560 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3561 # 3562 # This code is free software; you can redistribute it and/or modify it 3563 # under the terms of the GNU General Public License version 2 only, as 3564 # published by the Free Software Foundation. Oracle designates this 3565 # particular file as subject to the "Classpath" exception as provided 3566 # by Oracle in the LICENSE file that accompanied this code. 3567 # 3568 # This code is distributed in the hope that it will be useful, but WITHOUT 3569 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3570 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3571 # version 2 for more details (a copy is included in the LICENSE file that 3572 # accompanied this code). 3573 # 3574 # You should have received a copy of the GNU General Public License version 3575 # 2 along with this work; if not, write to the Free Software Foundation, 3576 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3577 # 3578 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3579 # or visit www.oracle.com if you need additional information or have any 3580 # questions. 3581 # 3582 3583 # Execute the check given as argument, and verify the result 3584 # If the Boot JDK was previously found, do nothing 3585 # $1 A command line (typically autoconf macro) to execute 3586 3587 3588 # Test: Is bootjdk explicitely set by command line arguments? 3589 3590 3591 # Test: Is bootjdk available from builddeps? 3592 3593 3594 # Test: Is $JAVA_HOME set? 3595 3596 3597 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3598 3599 3600 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3601 3602 3603 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3604 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3605 # $1 = Path to directory containing jdk installations. 3606 # $2 = String to append to the found JDK directory to get the proper JDK home 3607 3608 3609 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3610 # environmental variable as base for where to look. 3611 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3612 3613 3614 # Test: Is there a JDK installed in default, well-known locations? 3615 3616 3617 # Check that a command-line tool in the Boot JDK is correct 3618 # $1 = name of variable to assign 3619 # $2 = name of binary 3620 3621 3622 ############################################################################### 3623 # 3624 # We need a Boot JDK to bootstrap the build. 3625 # 3626 3627 3628 3629 3630 3631 # 3632 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3633 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3634 # 3635 # This code is free software; you can redistribute it and/or modify it 3636 # under the terms of the GNU General Public License version 2 only, as 3637 # published by the Free Software Foundation. Oracle designates this 3638 # particular file as subject to the "Classpath" exception as provided 3639 # by Oracle in the LICENSE file that accompanied this code. 3640 # 3641 # This code is distributed in the hope that it will be useful, but WITHOUT 3642 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3643 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3644 # version 2 for more details (a copy is included in the LICENSE file that 3645 # accompanied this code). 3646 # 3647 # You should have received a copy of the GNU General Public License version 3648 # 2 along with this work; if not, write to the Free Software Foundation, 3649 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3650 # 3651 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3652 # or visit www.oracle.com if you need additional information or have any 3653 # questions. 3654 # 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 # 3676 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3677 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3678 # 3679 # This code is free software; you can redistribute it and/or modify it 3680 # under the terms of the GNU General Public License version 2 only, as 3681 # published by the Free Software Foundation. Oracle designates this 3682 # particular file as subject to the "Classpath" exception as provided 3683 # by Oracle in the LICENSE file that accompanied this code. 3684 # 3685 # This code is distributed in the hope that it will be useful, but WITHOUT 3686 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3687 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3688 # version 2 for more details (a copy is included in the LICENSE file that 3689 # accompanied this code). 3690 # 3691 # You should have received a copy of the GNU General Public License version 3692 # 2 along with this work; if not, write to the Free Software Foundation, 3693 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3694 # 3695 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3696 # or visit www.oracle.com if you need additional information or have any 3697 # questions. 3698 # 3699 3700 3701 3702 3703 3704 # Documentation on common flags used for solstudio in HIGHEST. 3705 # 3706 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3707 # done with care, there are some assumptions below that need to 3708 # be understood about the use of pointers, and IEEE behavior. 3709 # 3710 # -fns: Use non-standard floating point mode (not IEEE 754) 3711 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3712 # -fsingle: Use single precision floating point with 'float' 3713 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3714 # (Source with excessing pointer casting and data access with mixed 3715 # pointer types are not recommended) 3716 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3717 # (If you expect perfect errno behavior, do not use this) 3718 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3719 # -xrestrict: Pointer parameters to functions do not overlap 3720 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3721 # If you pass in multiple pointers to the same data, do not use this) 3722 # -xlibmil: Inline some library routines 3723 # (If you expect perfect errno behavior, do not use this) 3724 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3725 # (If you expect perfect errno behavior, do not use this) 3726 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3727 3728 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3729 # Bug? 3730 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3731 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3732 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3733 #fi 3734 3735 3736 3737 3738 3739 3740 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3741 # [RUN-IF-FALSE]) 3742 # ------------------------------------------------------------ 3743 # Check that the C compiler supports an argument 3744 3745 3746 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3747 # [RUN-IF-FALSE]) 3748 # ------------------------------------------------------------ 3749 # Check that the C++ compiler supports an argument 3750 3751 3752 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3753 # [RUN-IF-FALSE]) 3754 # ------------------------------------------------------------ 3755 # Check that the C and C++ compilers support an argument 3756 3757 3758 3759 3760 3761 3762 3763 # 3764 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3765 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3766 # 3767 # This code is free software; you can redistribute it and/or modify it 3768 # under the terms of the GNU General Public License version 2 only, as 3769 # published by the Free Software Foundation. Oracle designates this 3770 # particular file as subject to the "Classpath" exception as provided 3771 # by Oracle in the LICENSE file that accompanied this code. 3772 # 3773 # This code is distributed in the hope that it will be useful, but WITHOUT 3774 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3775 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3776 # version 2 for more details (a copy is included in the LICENSE file that 3777 # accompanied this code). 3778 # 3779 # You should have received a copy of the GNU General Public License version 3780 # 2 along with this work; if not, write to the Free Software Foundation, 3781 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3782 # 3783 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3784 # or visit www.oracle.com if you need additional information or have any 3785 # questions. 3786 # 3787 3788 3789 3790 3791 3792 cygwin_help() { 3793 case $1 in 3794 unzip) 3795 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3796 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3797 ;; 3798 zip) 3799 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3800 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3801 ;; 3802 make) 3803 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3804 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3805 ;; 3806 freetype) 3807 HELP_MSG=" 3808 The freetype library can now be build during the configure process. 3809 Download the freetype sources and unpack them into an arbitrary directory: 3810 3811 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3812 tar -xzf freetype-2.5.3.tar.gz 3813 3814 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3815 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3816 builds or into '<freetype_src>/lib32' for 32-bit builds. 3817 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3818 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3819 ;; 3820 esac 3821 } 3822 3823 msys_help() { 3824 PKGHANDLER_COMMAND="" 3825 } 3826 3827 apt_help() { 3828 case $1 in 3829 devkit) 3830 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3831 openjdk) 3832 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3833 alsa) 3834 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3835 cups) 3836 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3837 fontconfig) 3838 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 3839 freetype) 3840 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3841 pulse) 3842 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3843 x11) 3844 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3845 ccache) 3846 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3847 esac 3848 } 3849 3850 yum_help() { 3851 case $1 in 3852 devkit) 3853 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3854 openjdk) 3855 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3856 alsa) 3857 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3858 cups) 3859 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3860 fontconfig) 3861 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 3862 freetype) 3863 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3864 pulse) 3865 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3866 x11) 3867 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3868 ccache) 3869 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3870 esac 3871 } 3872 3873 port_help() { 3874 PKGHANDLER_COMMAND="" 3875 } 3876 3877 pkgutil_help() { 3878 PKGHANDLER_COMMAND="" 3879 } 3880 3881 pkgadd_help() { 3882 PKGHANDLER_COMMAND="" 3883 } 3884 3885 # This function will check if we're called from the "configure" wrapper while 3886 # printing --help. If so, we will print out additional information that can 3887 # only be extracted within the autoconf script, and then exit. This must be 3888 # called at the very beginning in configure.ac. 3889 3890 3891 3892 3893 # 3894 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3895 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3896 # 3897 # This code is free software; you can redistribute it and/or modify it 3898 # under the terms of the GNU General Public License version 2 only, as 3899 # published by the Free Software Foundation. Oracle designates this 3900 # particular file as subject to the "Classpath" exception as provided 3901 # by Oracle in the LICENSE file that accompanied this code. 3902 # 3903 # This code is distributed in the hope that it will be useful, but WITHOUT 3904 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3905 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3906 # version 2 for more details (a copy is included in the LICENSE file that 3907 # accompanied this code). 3908 # 3909 # You should have received a copy of the GNU General Public License version 3910 # 2 along with this work; if not, write to the Free Software Foundation, 3911 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3912 # 3913 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3914 # or visit www.oracle.com if you need additional information or have any 3915 # questions. 3916 # 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 ############################################################################### 3928 # 3929 # Should we build only OpenJDK even if closed sources are present? 3930 # 3931 3932 3933 3934 3935 ############################################################################### 3936 # 3937 # Setup version numbers 3938 # 3939 3940 3941 3942 3943 3944 3945 # Support for customization of the build process. Some build files 3946 # will include counterparts from this location, if they exist. This allows 3947 # for a degree of customization of the build targets and the rules/recipes 3948 # to create them 3949 3950 # Check whether --with-custom-make-dir was given. 3951 if test "${with_custom_make_dir+set}" = set; then : 3952 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3953 fi 3954 3955 3956 3957 # 3958 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3959 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3960 # 3961 # This code is free software; you can redistribute it and/or modify it 3962 # under the terms of the GNU General Public License version 2 only, as 3963 # published by the Free Software Foundation. Oracle designates this 3964 # particular file as subject to the "Classpath" exception as provided 3965 # by Oracle in the LICENSE file that accompanied this code. 3966 # 3967 # This code is distributed in the hope that it will be useful, but WITHOUT 3968 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3969 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3970 # version 2 for more details (a copy is included in the LICENSE file that 3971 # accompanied this code). 3972 # 3973 # You should have received a copy of the GNU General Public License version 3974 # 2 along with this work; if not, write to the Free Software Foundation, 3975 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3976 # 3977 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3978 # or visit www.oracle.com if you need additional information or have any 3979 # questions. 3980 # 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 ################################################################################ 3997 # Setup fontconfig 3998 ################################################################################ 3999 4000 4001 4002 4003 4004 4005 4006 4007 # 4008 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4009 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4010 # 4011 # This code is free software; you can redistribute it and/or modify it 4012 # under the terms of the GNU General Public License version 2 only, as 4013 # published by the Free Software Foundation. Oracle designates this 4014 # particular file as subject to the "Classpath" exception as provided 4015 # by Oracle in the LICENSE file that accompanied this code. 4016 # 4017 # This code is distributed in the hope that it will be useful, but WITHOUT 4018 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4019 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4020 # version 2 for more details (a copy is included in the LICENSE file that 4021 # accompanied this code). 4022 # 4023 # You should have received a copy of the GNU General Public License version 4024 # 2 along with this work; if not, write to the Free Software Foundation, 4025 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4026 # 4027 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4028 # or visit www.oracle.com if you need additional information or have any 4029 # questions. 4030 # 4031 4032 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4033 # Converts autoconf style CPU name to OpenJDK style, into 4034 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4035 4036 4037 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4038 # Converts autoconf style OS name to OpenJDK style, into 4039 # VAR_OS and VAR_OS_API. 4040 4041 4042 # Expects $host_os $host_cpu $build_os and $build_cpu 4043 # and $with_target_bits to have been setup! 4044 # 4045 # Translate the standard triplet(quadruplet) definition 4046 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4047 # OPENJDK_BUILD_OS, etc. 4048 4049 4050 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4051 # accordingly. Must be done after setting up build and target system, but before 4052 # doing anything else with these values. 4053 4054 4055 # Setup the legacy variables, for controlling the old makefiles. 4056 # 4057 4058 4059 4060 4061 #%%% Build and target systems %%% 4062 4063 4064 4065 4066 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4067 # Add -mX to various FLAGS variables. 4068 4069 4070 4071 4072 4073 4074 # 4075 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4076 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4077 # 4078 # This code is free software; you can redistribute it and/or modify it 4079 # under the terms of the GNU General Public License version 2 only, as 4080 # published by the Free Software Foundation. Oracle designates this 4081 # particular file as subject to the "Classpath" exception as provided 4082 # by Oracle in the LICENSE file that accompanied this code. 4083 # 4084 # This code is distributed in the hope that it will be useful, but WITHOUT 4085 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4086 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4087 # version 2 for more details (a copy is included in the LICENSE file that 4088 # accompanied this code). 4089 # 4090 # You should have received a copy of the GNU General Public License version 4091 # 2 along with this work; if not, write to the Free Software Foundation, 4092 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4093 # 4094 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4095 # or visit www.oracle.com if you need additional information or have any 4096 # questions. 4097 # 4098 4099 4100 4101 4102 4103 4104 4105 4106 # 4107 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4108 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4109 # 4110 # This code is free software; you can redistribute it and/or modify it 4111 # under the terms of the GNU General Public License version 2 only, as 4112 # published by the Free Software Foundation. Oracle designates this 4113 # particular file as subject to the "Classpath" exception as provided 4114 # by Oracle in the LICENSE file that accompanied this code. 4115 # 4116 # This code is distributed in the hope that it will be useful, but WITHOUT 4117 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4118 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4119 # version 2 for more details (a copy is included in the LICENSE file that 4120 # accompanied this code). 4121 # 4122 # You should have received a copy of the GNU General Public License version 4123 # 2 along with this work; if not, write to the Free Software Foundation, 4124 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4125 # 4126 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4127 # or visit www.oracle.com if you need additional information or have any 4128 # questions. 4129 # 4130 4131 ######################################################################## 4132 # This file is responsible for detecting, verifying and setting up the 4133 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4134 # proper paths to the binaries, but it will not setup any flags. 4135 # 4136 # The binaries used is determined by the toolchain type, which is the family of 4137 # compilers and related tools that are used. 4138 ######################################################################## 4139 4140 4141 # All valid toolchains, regardless of platform (used by help.m4) 4142 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4143 4144 # These toolchains are valid on different platforms 4145 VALID_TOOLCHAINS_linux="gcc clang" 4146 VALID_TOOLCHAINS_solaris="solstudio" 4147 VALID_TOOLCHAINS_macosx="gcc clang" 4148 VALID_TOOLCHAINS_aix="xlc" 4149 VALID_TOOLCHAINS_windows="microsoft" 4150 4151 # Toolchain descriptions 4152 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4153 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4154 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4155 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4156 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4157 4158 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4159 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4160 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4161 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4162 4163 4164 # Check if the configured compiler (C and C++) is of a specific version or 4165 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4166 # 4167 # Arguments: 4168 # $1: The version string to check against the found version 4169 # $2: block to run if the compiler is at least this version (>=) 4170 # $3: block to run if the compiler is older than this version (<) 4171 4172 4173 4174 # Setup a number of variables describing how native output files are 4175 # named on this platform/toolchain. 4176 4177 4178 # Determine which toolchain type to use, and make sure it is valid for this 4179 # platform. Setup various information about the selected toolchain. 4180 4181 4182 # Before we start detecting the toolchain executables, we might need some 4183 # special setup, e.g. additional paths etc. 4184 4185 4186 # Restore path, etc 4187 4188 4189 # Check if a compiler is of the toolchain type we expect, and save the version 4190 # information from it. If the compiler does not match the expected type, 4191 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4192 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4193 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4194 # 4195 # $1 = compiler to test (CC or CXX) 4196 # $2 = human readable name of compiler (C or C++) 4197 4198 4199 4200 # Try to locate the given C or C++ compiler in the path, or otherwise. 4201 # 4202 # $1 = compiler to test (CC or CXX) 4203 # $2 = human readable name of compiler (C or C++) 4204 # $3 = list of compiler names to search for 4205 4206 4207 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4208 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4209 # archiver (AR). Verify that the compilers are correct according to the 4210 # toolchain type. 4211 4212 4213 # Setup additional tools that is considered a part of the toolchain, but not the 4214 # core part. Many of these are highly platform-specific and do not exist, 4215 # and/or are not needed on all platforms. 4216 4217 4218 # Setup the build tools (i.e, the compiler and linker used to build programs 4219 # that should be run on the build platform, not the target platform, as a build 4220 # helper). Since the non-cross-compile case uses the normal, target compilers 4221 # for this, we can only do this after these have been setup. 4222 4223 4224 # Setup legacy variables that are still needed as alternative ways to refer to 4225 # parts of the toolchain. 4226 4227 4228 # Do some additional checks on the detected tools. 4229 4230 4231 # Setup the JTReg Regression Test Harness. 4232 4233 4234 4235 # 4236 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4237 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4238 # 4239 # This code is free software; you can redistribute it and/or modify it 4240 # under the terms of the GNU General Public License version 2 only, as 4241 # published by the Free Software Foundation. Oracle designates this 4242 # particular file as subject to the "Classpath" exception as provided 4243 # by Oracle in the LICENSE file that accompanied this code. 4244 # 4245 # This code is distributed in the hope that it will be useful, but WITHOUT 4246 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4247 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4248 # version 2 for more details (a copy is included in the LICENSE file that 4249 # accompanied this code). 4250 # 4251 # You should have received a copy of the GNU General Public License version 4252 # 2 along with this work; if not, write to the Free Software Foundation, 4253 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4254 # 4255 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4256 # or visit www.oracle.com if you need additional information or have any 4257 # questions. 4258 # 4259 4260 ################################################################################ 4261 # The order of these defines the priority by which we try to find them. 4262 VALID_VS_VERSIONS="2010 2012 2013 2015 2017" 4263 4264 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4265 VS_VERSION_INTERNAL_2010=100 4266 VS_MSVCR_2010=msvcr100.dll 4267 # We don't use msvcp on Visual Studio 2010 4268 #VS_MSVCP_2010=msvcp100.dll 4269 VS_ENVVAR_2010="VS100COMNTOOLS" 4270 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4271 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4272 VS_VS_PLATFORM_NAME_2010="v100" 4273 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4274 4275 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4276 VS_VERSION_INTERNAL_2012=110 4277 VS_MSVCR_2012=msvcr110.dll 4278 VS_MSVCP_2012=msvcp110.dll 4279 VS_ENVVAR_2012="VS110COMNTOOLS" 4280 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4281 VS_SDK_INSTALLDIR_2012= 4282 VS_VS_PLATFORM_NAME_2012="v110" 4283 VS_SDK_PLATFORM_NAME_2012= 4284 4285 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4286 VS_VERSION_INTERNAL_2013=120 4287 VS_MSVCR_2013=msvcr120.dll 4288 VS_MSVCP_2013=msvcp120.dll 4289 VS_ENVVAR_2013="VS120COMNTOOLS" 4290 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4291 VS_SDK_INSTALLDIR_2013= 4292 VS_VS_PLATFORM_NAME_2013="v120" 4293 VS_SDK_PLATFORM_NAME_2013= 4294 4295 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING" 4296 VS_VERSION_INTERNAL_2015=140 4297 VS_MSVCR_2015=vcruntime140.dll 4298 VS_MSVCP_2015=msvcp140.dll 4299 VS_ENVVAR_2015="VS140COMNTOOLS" 4300 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0" 4301 VS_SDK_INSTALLDIR_2015= 4302 VS_VS_PLATFORM_NAME_2015="v140" 4303 VS_SDK_PLATFORM_NAME_2015= 4304 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by 4305 # explicitly specifying Windows Kit 8.1 to be used. 4306 VS_ENV_ARGS_2015="8.1" 4307 4308 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING" 4309 VS_VERSION_INTERNAL_2017=141 4310 VS_MSVCR_2017=vcruntime140.dll 4311 VS_MSVCP_2017=msvcp140.dll 4312 VS_ENVVAR_2017="VS150COMNTOOLS" 4313 VS_USE_UCRT_2017="true" 4314 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" 4315 VS_EDITIONS_2017="Community Professional Enterprise" 4316 VS_SDK_INSTALLDIR_2017= 4317 VS_VS_PLATFORM_NAME_2017="v141" 4318 VS_SDK_PLATFORM_NAME_2017= 4319 4320 ################################################################################ 4321 4322 4323 4324 ################################################################################ 4325 4326 4327 4328 ################################################################################ 4329 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4330 # build environment and assigns it to VS_ENV_CMD 4331 4332 4333 ################################################################################ 4334 4335 4336 4337 ################################################################################ 4338 # Check if the VS env variables were setup prior to running configure. 4339 # If not, then find vcvarsall.bat and run it automatically, and integrate 4340 # the set env variables into the spec file. 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 # This line needs to be here, verbatim, after all includes and the dummy hook 4356 # definitions. It is replaced with custom functionality when building 4357 # custom sources. 4358 #CUSTOM_AUTOCONF_INCLUDE 4359 4360 # Do not change or remove the following line, it is needed for consistency checks: 4361 DATE_WHEN_GENERATED=1551441508 4362 4363 ############################################################################### 4364 # 4365 # Initialization / Boot-strapping 4366 # 4367 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4368 # thus it jumps back and forth, each time gaining something needed later on. 4369 # 4370 ############################################################################### 4371 4372 # If we are requested to print additional help, do that and then exit. 4373 # This must be the very first call. 4374 4375 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4376 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4377 $PRINTF "Which are valid to use depends on the build platform.\n" 4378 for toolchain in $VALID_TOOLCHAINS_all; do 4379 # Use indirect variable referencing 4380 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4381 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4382 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4383 done 4384 4385 # And now exit directly 4386 exit 0 4387 fi 4388 4389 4390 # Basic initialization that must happen first of all in the normal process. 4391 4392 # Save the original command line. This is passed to us by the wrapper configure script. 4393 4394 DATE_WHEN_CONFIGURED=`LANG=C date` 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4397 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4399 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4400 4401 4402 # Start with tools that do not need have cross compilation support 4403 # and can be expected to be found in the default PATH. These tools are 4404 # used by configure. Nor are these tools expected to be found in the 4405 # devkit from the builddeps server either, since they are 4406 # needed to download the devkit. 4407 4408 # First are all the simple required tools. 4409 4410 4411 4412 # Publish this variable in the help. 4413 4414 4415 if test "x$BASENAME" = x; then 4416 # The variable is not set by user, try to locate tool using the code snippet 4417 for ac_prog in basename 4418 do 4419 # Extract the first word of "$ac_prog", so it can be a program name with args. 4420 set dummy $ac_prog; ac_word=$2 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4422 $as_echo_n "checking for $ac_word... " >&6; } 4423 if ${ac_cv_path_BASENAME+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425 else 4426 case $BASENAME in 4427 [\\/]* | ?:[\\/]*) 4428 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4429 ;; 4430 *) 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432 for as_dir in $PATH 4433 do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_exec_ext in '' $ac_executable_extensions; do 4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4438 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4440 break 2 4441 fi 4442 done 4443 done 4444 IFS=$as_save_IFS 4445 4446 ;; 4447 esac 4448 fi 4449 BASENAME=$ac_cv_path_BASENAME 4450 if test -n "$BASENAME"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4452 $as_echo "$BASENAME" >&6; } 4453 else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455 $as_echo "no" >&6; } 4456 fi 4457 4458 4459 test -n "$BASENAME" && break 4460 done 4461 4462 else 4463 # The variable is set, but is it from the command line or the environment? 4464 4465 # Try to remove the string !BASENAME! from our list. 4466 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4467 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4468 # If it failed, the variable was not from the command line. Ignore it, 4469 # but warn the user (except for BASH, which is always set by the calling BASH). 4470 if test "xBASENAME" != xBASH; then 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4472 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4473 fi 4474 # Try to locate tool using the code snippet 4475 for ac_prog in basename 4476 do 4477 # Extract the first word of "$ac_prog", so it can be a program name with args. 4478 set dummy $ac_prog; ac_word=$2 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4480 $as_echo_n "checking for $ac_word... " >&6; } 4481 if ${ac_cv_path_BASENAME+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483 else 4484 case $BASENAME in 4485 [\\/]* | ?:[\\/]*) 4486 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4487 ;; 4488 *) 4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4490 for as_dir in $PATH 4491 do 4492 IFS=$as_save_IFS 4493 test -z "$as_dir" && as_dir=. 4494 for ac_exec_ext in '' $ac_executable_extensions; do 4495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4496 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4498 break 2 4499 fi 4500 done 4501 done 4502 IFS=$as_save_IFS 4503 4504 ;; 4505 esac 4506 fi 4507 BASENAME=$ac_cv_path_BASENAME 4508 if test -n "$BASENAME"; then 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4510 $as_echo "$BASENAME" >&6; } 4511 else 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4513 $as_echo "no" >&6; } 4514 fi 4515 4516 4517 test -n "$BASENAME" && break 4518 done 4519 4520 else 4521 # If it succeeded, then it was overridden by the user. We will use it 4522 # for the tool. 4523 4524 # First remove it from the list of overridden variables, so we can test 4525 # for unknown variables in the end. 4526 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4527 4528 # Check if the provided tool contains a complete path. 4529 tool_specified="$BASENAME" 4530 tool_basename="${tool_specified##*/}" 4531 if test "x$tool_basename" = "x$tool_specified"; then 4532 # A command without a complete path is provided, search $PATH. 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4534 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4535 # Extract the first word of "$tool_basename", so it can be a program name with args. 4536 set dummy $tool_basename; ac_word=$2 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538 $as_echo_n "checking for $ac_word... " >&6; } 4539 if ${ac_cv_path_BASENAME+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541 else 4542 case $BASENAME in 4543 [\\/]* | ?:[\\/]*) 4544 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4545 ;; 4546 *) 4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548 for as_dir in $PATH 4549 do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4554 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4556 break 2 4557 fi 4558 done 4559 done 4560 IFS=$as_save_IFS 4561 4562 ;; 4563 esac 4564 fi 4565 BASENAME=$ac_cv_path_BASENAME 4566 if test -n "$BASENAME"; then 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4568 $as_echo "$BASENAME" >&6; } 4569 else 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571 $as_echo "no" >&6; } 4572 fi 4573 4574 4575 if test "x$BASENAME" = x; then 4576 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4577 fi 4578 else 4579 # Otherwise we believe it is a complete path. Use it as it is. 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4581 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4583 $as_echo_n "checking for BASENAME... " >&6; } 4584 if test ! -x "$tool_specified"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4586 $as_echo "not found" >&6; } 4587 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4588 fi 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4590 $as_echo "$tool_specified" >&6; } 4591 fi 4592 fi 4593 fi 4594 4595 4596 4597 if test "x$BASENAME" = x; then 4598 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4599 fi 4600 4601 4602 4603 4604 4605 # Publish this variable in the help. 4606 4607 4608 if test "x$BASH" = x; then 4609 # The variable is not set by user, try to locate tool using the code snippet 4610 for ac_prog in bash 4611 do 4612 # Extract the first word of "$ac_prog", so it can be a program name with args. 4613 set dummy $ac_prog; ac_word=$2 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4615 $as_echo_n "checking for $ac_word... " >&6; } 4616 if ${ac_cv_path_BASH+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618 else 4619 case $BASH in 4620 [\\/]* | ?:[\\/]*) 4621 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4622 ;; 4623 *) 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625 for as_dir in $PATH 4626 do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635 done 4636 done 4637 IFS=$as_save_IFS 4638 4639 ;; 4640 esac 4641 fi 4642 BASH=$ac_cv_path_BASH 4643 if test -n "$BASH"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4645 $as_echo "$BASH" >&6; } 4646 else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648 $as_echo "no" >&6; } 4649 fi 4650 4651 4652 test -n "$BASH" && break 4653 done 4654 4655 else 4656 # The variable is set, but is it from the command line or the environment? 4657 4658 # Try to remove the string !BASH! from our list. 4659 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4660 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4661 # If it failed, the variable was not from the command line. Ignore it, 4662 # but warn the user (except for BASH, which is always set by the calling BASH). 4663 if test "xBASH" != xBASH; then 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4665 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4666 fi 4667 # Try to locate tool using the code snippet 4668 for ac_prog in bash 4669 do 4670 # Extract the first word of "$ac_prog", so it can be a program name with args. 4671 set dummy $ac_prog; ac_word=$2 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4673 $as_echo_n "checking for $ac_word... " >&6; } 4674 if ${ac_cv_path_BASH+:} false; then : 4675 $as_echo_n "(cached) " >&6 4676 else 4677 case $BASH in 4678 [\\/]* | ?:[\\/]*) 4679 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4680 ;; 4681 *) 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4683 for as_dir in $PATH 4684 do 4685 IFS=$as_save_IFS 4686 test -z "$as_dir" && as_dir=. 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4689 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693 done 4694 done 4695 IFS=$as_save_IFS 4696 4697 ;; 4698 esac 4699 fi 4700 BASH=$ac_cv_path_BASH 4701 if test -n "$BASH"; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4703 $as_echo "$BASH" >&6; } 4704 else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706 $as_echo "no" >&6; } 4707 fi 4708 4709 4710 test -n "$BASH" && break 4711 done 4712 4713 else 4714 # If it succeeded, then it was overridden by the user. We will use it 4715 # for the tool. 4716 4717 # First remove it from the list of overridden variables, so we can test 4718 # for unknown variables in the end. 4719 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4720 4721 # Check if the provided tool contains a complete path. 4722 tool_specified="$BASH" 4723 tool_basename="${tool_specified##*/}" 4724 if test "x$tool_basename" = "x$tool_specified"; then 4725 # A command without a complete path is provided, search $PATH. 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4727 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4728 # Extract the first word of "$tool_basename", so it can be a program name with args. 4729 set dummy $tool_basename; ac_word=$2 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4731 $as_echo_n "checking for $ac_word... " >&6; } 4732 if ${ac_cv_path_BASH+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734 else 4735 case $BASH in 4736 [\\/]* | ?:[\\/]*) 4737 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4738 ;; 4739 *) 4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741 for as_dir in $PATH 4742 do 4743 IFS=$as_save_IFS 4744 test -z "$as_dir" && as_dir=. 4745 for ac_exec_ext in '' $ac_executable_extensions; do 4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4747 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4749 break 2 4750 fi 4751 done 4752 done 4753 IFS=$as_save_IFS 4754 4755 ;; 4756 esac 4757 fi 4758 BASH=$ac_cv_path_BASH 4759 if test -n "$BASH"; then 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4761 $as_echo "$BASH" >&6; } 4762 else 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4764 $as_echo "no" >&6; } 4765 fi 4766 4767 4768 if test "x$BASH" = x; then 4769 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4770 fi 4771 else 4772 # Otherwise we believe it is a complete path. Use it as it is. 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4774 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4776 $as_echo_n "checking for BASH... " >&6; } 4777 if test ! -x "$tool_specified"; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4779 $as_echo "not found" >&6; } 4780 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4781 fi 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4783 $as_echo "$tool_specified" >&6; } 4784 fi 4785 fi 4786 fi 4787 4788 4789 4790 if test "x$BASH" = x; then 4791 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4792 fi 4793 4794 4795 4796 4797 4798 # Publish this variable in the help. 4799 4800 4801 if test "x$CAT" = x; then 4802 # The variable is not set by user, try to locate tool using the code snippet 4803 for ac_prog in cat 4804 do 4805 # Extract the first word of "$ac_prog", so it can be a program name with args. 4806 set dummy $ac_prog; ac_word=$2 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808 $as_echo_n "checking for $ac_word... " >&6; } 4809 if ${ac_cv_path_CAT+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811 else 4812 case $CAT in 4813 [\\/]* | ?:[\\/]*) 4814 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4815 ;; 4816 *) 4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818 for as_dir in $PATH 4819 do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828 done 4829 done 4830 IFS=$as_save_IFS 4831 4832 ;; 4833 esac 4834 fi 4835 CAT=$ac_cv_path_CAT 4836 if test -n "$CAT"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4838 $as_echo "$CAT" >&6; } 4839 else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841 $as_echo "no" >&6; } 4842 fi 4843 4844 4845 test -n "$CAT" && break 4846 done 4847 4848 else 4849 # The variable is set, but is it from the command line or the environment? 4850 4851 # Try to remove the string !CAT! from our list. 4852 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4853 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4854 # If it failed, the variable was not from the command line. Ignore it, 4855 # but warn the user (except for BASH, which is always set by the calling BASH). 4856 if test "xCAT" != xBASH; then 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4858 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4859 fi 4860 # Try to locate tool using the code snippet 4861 for ac_prog in cat 4862 do 4863 # Extract the first word of "$ac_prog", so it can be a program name with args. 4864 set dummy $ac_prog; ac_word=$2 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4866 $as_echo_n "checking for $ac_word... " >&6; } 4867 if ${ac_cv_path_CAT+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869 else 4870 case $CAT in 4871 [\\/]* | ?:[\\/]*) 4872 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4873 ;; 4874 *) 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876 for as_dir in $PATH 4877 do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886 done 4887 done 4888 IFS=$as_save_IFS 4889 4890 ;; 4891 esac 4892 fi 4893 CAT=$ac_cv_path_CAT 4894 if test -n "$CAT"; then 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4896 $as_echo "$CAT" >&6; } 4897 else 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4899 $as_echo "no" >&6; } 4900 fi 4901 4902 4903 test -n "$CAT" && break 4904 done 4905 4906 else 4907 # If it succeeded, then it was overridden by the user. We will use it 4908 # for the tool. 4909 4910 # First remove it from the list of overridden variables, so we can test 4911 # for unknown variables in the end. 4912 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4913 4914 # Check if the provided tool contains a complete path. 4915 tool_specified="$CAT" 4916 tool_basename="${tool_specified##*/}" 4917 if test "x$tool_basename" = "x$tool_specified"; then 4918 # A command without a complete path is provided, search $PATH. 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4920 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4921 # Extract the first word of "$tool_basename", so it can be a program name with args. 4922 set dummy $tool_basename; ac_word=$2 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4924 $as_echo_n "checking for $ac_word... " >&6; } 4925 if ${ac_cv_path_CAT+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927 else 4928 case $CAT in 4929 [\\/]* | ?:[\\/]*) 4930 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4931 ;; 4932 *) 4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4934 for as_dir in $PATH 4935 do 4936 IFS=$as_save_IFS 4937 test -z "$as_dir" && as_dir=. 4938 for ac_exec_ext in '' $ac_executable_extensions; do 4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4940 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4942 break 2 4943 fi 4944 done 4945 done 4946 IFS=$as_save_IFS 4947 4948 ;; 4949 esac 4950 fi 4951 CAT=$ac_cv_path_CAT 4952 if test -n "$CAT"; then 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4954 $as_echo "$CAT" >&6; } 4955 else 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4957 $as_echo "no" >&6; } 4958 fi 4959 4960 4961 if test "x$CAT" = x; then 4962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4963 fi 4964 else 4965 # Otherwise we believe it is a complete path. Use it as it is. 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4967 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4969 $as_echo_n "checking for CAT... " >&6; } 4970 if test ! -x "$tool_specified"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4972 $as_echo "not found" >&6; } 4973 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4974 fi 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4976 $as_echo "$tool_specified" >&6; } 4977 fi 4978 fi 4979 fi 4980 4981 4982 4983 if test "x$CAT" = x; then 4984 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4985 fi 4986 4987 4988 4989 4990 4991 # Publish this variable in the help. 4992 4993 4994 if test "x$CHMOD" = x; then 4995 # The variable is not set by user, try to locate tool using the code snippet 4996 for ac_prog in chmod 4997 do 4998 # Extract the first word of "$ac_prog", so it can be a program name with args. 4999 set dummy $ac_prog; ac_word=$2 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5001 $as_echo_n "checking for $ac_word... " >&6; } 5002 if ${ac_cv_path_CHMOD+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004 else 5005 case $CHMOD in 5006 [\\/]* | ?:[\\/]*) 5007 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5008 ;; 5009 *) 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011 for as_dir in $PATH 5012 do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 5025 ;; 5026 esac 5027 fi 5028 CHMOD=$ac_cv_path_CHMOD 5029 if test -n "$CHMOD"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5031 $as_echo "$CHMOD" >&6; } 5032 else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034 $as_echo "no" >&6; } 5035 fi 5036 5037 5038 test -n "$CHMOD" && break 5039 done 5040 5041 else 5042 # The variable is set, but is it from the command line or the environment? 5043 5044 # Try to remove the string !CHMOD! from our list. 5045 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5046 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5047 # If it failed, the variable was not from the command line. Ignore it, 5048 # but warn the user (except for BASH, which is always set by the calling BASH). 5049 if test "xCHMOD" != xBASH; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5051 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5052 fi 5053 # Try to locate tool using the code snippet 5054 for ac_prog in chmod 5055 do 5056 # Extract the first word of "$ac_prog", so it can be a program name with args. 5057 set dummy $ac_prog; ac_word=$2 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5059 $as_echo_n "checking for $ac_word... " >&6; } 5060 if ${ac_cv_path_CHMOD+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062 else 5063 case $CHMOD in 5064 [\\/]* | ?:[\\/]*) 5065 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5066 ;; 5067 *) 5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069 for as_dir in $PATH 5070 do 5071 IFS=$as_save_IFS 5072 test -z "$as_dir" && as_dir=. 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5075 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079 done 5080 done 5081 IFS=$as_save_IFS 5082 5083 ;; 5084 esac 5085 fi 5086 CHMOD=$ac_cv_path_CHMOD 5087 if test -n "$CHMOD"; then 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5089 $as_echo "$CHMOD" >&6; } 5090 else 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5092 $as_echo "no" >&6; } 5093 fi 5094 5095 5096 test -n "$CHMOD" && break 5097 done 5098 5099 else 5100 # If it succeeded, then it was overridden by the user. We will use it 5101 # for the tool. 5102 5103 # First remove it from the list of overridden variables, so we can test 5104 # for unknown variables in the end. 5105 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5106 5107 # Check if the provided tool contains a complete path. 5108 tool_specified="$CHMOD" 5109 tool_basename="${tool_specified##*/}" 5110 if test "x$tool_basename" = "x$tool_specified"; then 5111 # A command without a complete path is provided, search $PATH. 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5113 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5114 # Extract the first word of "$tool_basename", so it can be a program name with args. 5115 set dummy $tool_basename; ac_word=$2 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117 $as_echo_n "checking for $ac_word... " >&6; } 5118 if ${ac_cv_path_CHMOD+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120 else 5121 case $CHMOD in 5122 [\\/]* | ?:[\\/]*) 5123 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5124 ;; 5125 *) 5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127 for as_dir in $PATH 5128 do 5129 IFS=$as_save_IFS 5130 test -z "$as_dir" && as_dir=. 5131 for ac_exec_ext in '' $ac_executable_extensions; do 5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5133 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5135 break 2 5136 fi 5137 done 5138 done 5139 IFS=$as_save_IFS 5140 5141 ;; 5142 esac 5143 fi 5144 CHMOD=$ac_cv_path_CHMOD 5145 if test -n "$CHMOD"; then 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5147 $as_echo "$CHMOD" >&6; } 5148 else 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5150 $as_echo "no" >&6; } 5151 fi 5152 5153 5154 if test "x$CHMOD" = x; then 5155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5156 fi 5157 else 5158 # Otherwise we believe it is a complete path. Use it as it is. 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5160 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5162 $as_echo_n "checking for CHMOD... " >&6; } 5163 if test ! -x "$tool_specified"; then 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5165 $as_echo "not found" >&6; } 5166 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5167 fi 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5169 $as_echo "$tool_specified" >&6; } 5170 fi 5171 fi 5172 fi 5173 5174 5175 5176 if test "x$CHMOD" = x; then 5177 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5178 fi 5179 5180 5181 5182 5183 5184 # Publish this variable in the help. 5185 5186 5187 if test "x$CMP" = x; then 5188 # The variable is not set by user, try to locate tool using the code snippet 5189 for ac_prog in cmp 5190 do 5191 # Extract the first word of "$ac_prog", so it can be a program name with args. 5192 set dummy $ac_prog; ac_word=$2 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5194 $as_echo_n "checking for $ac_word... " >&6; } 5195 if ${ac_cv_path_CMP+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197 else 5198 case $CMP in 5199 [\\/]* | ?:[\\/]*) 5200 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5201 ;; 5202 *) 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204 for as_dir in $PATH 5205 do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_exec_ext in '' $ac_executable_extensions; do 5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5210 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5212 break 2 5213 fi 5214 done 5215 done 5216 IFS=$as_save_IFS 5217 5218 ;; 5219 esac 5220 fi 5221 CMP=$ac_cv_path_CMP 5222 if test -n "$CMP"; then 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5224 $as_echo "$CMP" >&6; } 5225 else 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5227 $as_echo "no" >&6; } 5228 fi 5229 5230 5231 test -n "$CMP" && break 5232 done 5233 5234 else 5235 # The variable is set, but is it from the command line or the environment? 5236 5237 # Try to remove the string !CMP! from our list. 5238 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5239 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5240 # If it failed, the variable was not from the command line. Ignore it, 5241 # but warn the user (except for BASH, which is always set by the calling BASH). 5242 if test "xCMP" != xBASH; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5244 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5245 fi 5246 # Try to locate tool using the code snippet 5247 for ac_prog in cmp 5248 do 5249 # Extract the first word of "$ac_prog", so it can be a program name with args. 5250 set dummy $ac_prog; ac_word=$2 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5252 $as_echo_n "checking for $ac_word... " >&6; } 5253 if ${ac_cv_path_CMP+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255 else 5256 case $CMP in 5257 [\\/]* | ?:[\\/]*) 5258 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5259 ;; 5260 *) 5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262 for as_dir in $PATH 5263 do 5264 IFS=$as_save_IFS 5265 test -z "$as_dir" && as_dir=. 5266 for ac_exec_ext in '' $ac_executable_extensions; do 5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5268 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5270 break 2 5271 fi 5272 done 5273 done 5274 IFS=$as_save_IFS 5275 5276 ;; 5277 esac 5278 fi 5279 CMP=$ac_cv_path_CMP 5280 if test -n "$CMP"; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5282 $as_echo "$CMP" >&6; } 5283 else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285 $as_echo "no" >&6; } 5286 fi 5287 5288 5289 test -n "$CMP" && break 5290 done 5291 5292 else 5293 # If it succeeded, then it was overridden by the user. We will use it 5294 # for the tool. 5295 5296 # First remove it from the list of overridden variables, so we can test 5297 # for unknown variables in the end. 5298 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5299 5300 # Check if the provided tool contains a complete path. 5301 tool_specified="$CMP" 5302 tool_basename="${tool_specified##*/}" 5303 if test "x$tool_basename" = "x$tool_specified"; then 5304 # A command without a complete path is provided, search $PATH. 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5306 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5307 # Extract the first word of "$tool_basename", so it can be a program name with args. 5308 set dummy $tool_basename; ac_word=$2 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310 $as_echo_n "checking for $ac_word... " >&6; } 5311 if ${ac_cv_path_CMP+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313 else 5314 case $CMP in 5315 [\\/]* | ?:[\\/]*) 5316 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5317 ;; 5318 *) 5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320 for as_dir in $PATH 5321 do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5326 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330 done 5331 done 5332 IFS=$as_save_IFS 5333 5334 ;; 5335 esac 5336 fi 5337 CMP=$ac_cv_path_CMP 5338 if test -n "$CMP"; then 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5340 $as_echo "$CMP" >&6; } 5341 else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343 $as_echo "no" >&6; } 5344 fi 5345 5346 5347 if test "x$CMP" = x; then 5348 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5349 fi 5350 else 5351 # Otherwise we believe it is a complete path. Use it as it is. 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5353 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5355 $as_echo_n "checking for CMP... " >&6; } 5356 if test ! -x "$tool_specified"; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5358 $as_echo "not found" >&6; } 5359 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5360 fi 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5362 $as_echo "$tool_specified" >&6; } 5363 fi 5364 fi 5365 fi 5366 5367 5368 5369 if test "x$CMP" = x; then 5370 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5371 fi 5372 5373 5374 5375 5376 5377 # Publish this variable in the help. 5378 5379 5380 if test "x$COMM" = x; then 5381 # The variable is not set by user, try to locate tool using the code snippet 5382 for ac_prog in comm 5383 do 5384 # Extract the first word of "$ac_prog", so it can be a program name with args. 5385 set dummy $ac_prog; ac_word=$2 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5387 $as_echo_n "checking for $ac_word... " >&6; } 5388 if ${ac_cv_path_COMM+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390 else 5391 case $COMM in 5392 [\\/]* | ?:[\\/]*) 5393 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5394 ;; 5395 *) 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397 for as_dir in $PATH 5398 do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5403 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407 done 5408 done 5409 IFS=$as_save_IFS 5410 5411 ;; 5412 esac 5413 fi 5414 COMM=$ac_cv_path_COMM 5415 if test -n "$COMM"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5417 $as_echo "$COMM" >&6; } 5418 else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420 $as_echo "no" >&6; } 5421 fi 5422 5423 5424 test -n "$COMM" && break 5425 done 5426 5427 else 5428 # The variable is set, but is it from the command line or the environment? 5429 5430 # Try to remove the string !COMM! from our list. 5431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5433 # If it failed, the variable was not from the command line. Ignore it, 5434 # but warn the user (except for BASH, which is always set by the calling BASH). 5435 if test "xCOMM" != xBASH; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5437 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5438 fi 5439 # Try to locate tool using the code snippet 5440 for ac_prog in comm 5441 do 5442 # Extract the first word of "$ac_prog", so it can be a program name with args. 5443 set dummy $ac_prog; ac_word=$2 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5445 $as_echo_n "checking for $ac_word... " >&6; } 5446 if ${ac_cv_path_COMM+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448 else 5449 case $COMM in 5450 [\\/]* | ?:[\\/]*) 5451 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5452 ;; 5453 *) 5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455 for as_dir in $PATH 5456 do 5457 IFS=$as_save_IFS 5458 test -z "$as_dir" && as_dir=. 5459 for ac_exec_ext in '' $ac_executable_extensions; do 5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5461 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5463 break 2 5464 fi 5465 done 5466 done 5467 IFS=$as_save_IFS 5468 5469 ;; 5470 esac 5471 fi 5472 COMM=$ac_cv_path_COMM 5473 if test -n "$COMM"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5475 $as_echo "$COMM" >&6; } 5476 else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478 $as_echo "no" >&6; } 5479 fi 5480 5481 5482 test -n "$COMM" && break 5483 done 5484 5485 else 5486 # If it succeeded, then it was overridden by the user. We will use it 5487 # for the tool. 5488 5489 # First remove it from the list of overridden variables, so we can test 5490 # for unknown variables in the end. 5491 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5492 5493 # Check if the provided tool contains a complete path. 5494 tool_specified="$COMM" 5495 tool_basename="${tool_specified##*/}" 5496 if test "x$tool_basename" = "x$tool_specified"; then 5497 # A command without a complete path is provided, search $PATH. 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5499 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5500 # Extract the first word of "$tool_basename", so it can be a program name with args. 5501 set dummy $tool_basename; ac_word=$2 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5503 $as_echo_n "checking for $ac_word... " >&6; } 5504 if ${ac_cv_path_COMM+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506 else 5507 case $COMM in 5508 [\\/]* | ?:[\\/]*) 5509 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5510 ;; 5511 *) 5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5513 for as_dir in $PATH 5514 do 5515 IFS=$as_save_IFS 5516 test -z "$as_dir" && as_dir=. 5517 for ac_exec_ext in '' $ac_executable_extensions; do 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5519 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5521 break 2 5522 fi 5523 done 5524 done 5525 IFS=$as_save_IFS 5526 5527 ;; 5528 esac 5529 fi 5530 COMM=$ac_cv_path_COMM 5531 if test -n "$COMM"; then 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5533 $as_echo "$COMM" >&6; } 5534 else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536 $as_echo "no" >&6; } 5537 fi 5538 5539 5540 if test "x$COMM" = x; then 5541 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5542 fi 5543 else 5544 # Otherwise we believe it is a complete path. Use it as it is. 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5546 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5548 $as_echo_n "checking for COMM... " >&6; } 5549 if test ! -x "$tool_specified"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5551 $as_echo "not found" >&6; } 5552 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5553 fi 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5555 $as_echo "$tool_specified" >&6; } 5556 fi 5557 fi 5558 fi 5559 5560 5561 5562 if test "x$COMM" = x; then 5563 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5564 fi 5565 5566 5567 5568 5569 5570 # Publish this variable in the help. 5571 5572 5573 if test "x$CP" = x; then 5574 # The variable is not set by user, try to locate tool using the code snippet 5575 for ac_prog in cp 5576 do 5577 # Extract the first word of "$ac_prog", so it can be a program name with args. 5578 set dummy $ac_prog; ac_word=$2 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580 $as_echo_n "checking for $ac_word... " >&6; } 5581 if ${ac_cv_path_CP+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 case $CP in 5585 [\\/]* | ?:[\\/]*) 5586 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5587 ;; 5588 *) 5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590 for as_dir in $PATH 5591 do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5596 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600 done 5601 done 5602 IFS=$as_save_IFS 5603 5604 ;; 5605 esac 5606 fi 5607 CP=$ac_cv_path_CP 5608 if test -n "$CP"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5610 $as_echo "$CP" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 $as_echo "no" >&6; } 5614 fi 5615 5616 5617 test -n "$CP" && break 5618 done 5619 5620 else 5621 # The variable is set, but is it from the command line or the environment? 5622 5623 # Try to remove the string !CP! from our list. 5624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5626 # If it failed, the variable was not from the command line. Ignore it, 5627 # but warn the user (except for BASH, which is always set by the calling BASH). 5628 if test "xCP" != xBASH; then 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5630 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5631 fi 5632 # Try to locate tool using the code snippet 5633 for ac_prog in cp 5634 do 5635 # Extract the first word of "$ac_prog", so it can be a program name with args. 5636 set dummy $ac_prog; ac_word=$2 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5638 $as_echo_n "checking for $ac_word... " >&6; } 5639 if ${ac_cv_path_CP+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641 else 5642 case $CP in 5643 [\\/]* | ?:[\\/]*) 5644 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5645 ;; 5646 *) 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648 for as_dir in $PATH 5649 do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658 done 5659 done 5660 IFS=$as_save_IFS 5661 5662 ;; 5663 esac 5664 fi 5665 CP=$ac_cv_path_CP 5666 if test -n "$CP"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5668 $as_echo "$CP" >&6; } 5669 else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671 $as_echo "no" >&6; } 5672 fi 5673 5674 5675 test -n "$CP" && break 5676 done 5677 5678 else 5679 # If it succeeded, then it was overridden by the user. We will use it 5680 # for the tool. 5681 5682 # First remove it from the list of overridden variables, so we can test 5683 # for unknown variables in the end. 5684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5685 5686 # Check if the provided tool contains a complete path. 5687 tool_specified="$CP" 5688 tool_basename="${tool_specified##*/}" 5689 if test "x$tool_basename" = "x$tool_specified"; then 5690 # A command without a complete path is provided, search $PATH. 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5692 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5693 # Extract the first word of "$tool_basename", so it can be a program name with args. 5694 set dummy $tool_basename; ac_word=$2 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5696 $as_echo_n "checking for $ac_word... " >&6; } 5697 if ${ac_cv_path_CP+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699 else 5700 case $CP in 5701 [\\/]* | ?:[\\/]*) 5702 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5703 ;; 5704 *) 5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5706 for as_dir in $PATH 5707 do 5708 IFS=$as_save_IFS 5709 test -z "$as_dir" && as_dir=. 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5712 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5714 break 2 5715 fi 5716 done 5717 done 5718 IFS=$as_save_IFS 5719 5720 ;; 5721 esac 5722 fi 5723 CP=$ac_cv_path_CP 5724 if test -n "$CP"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5726 $as_echo "$CP" >&6; } 5727 else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729 $as_echo "no" >&6; } 5730 fi 5731 5732 5733 if test "x$CP" = x; then 5734 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5735 fi 5736 else 5737 # Otherwise we believe it is a complete path. Use it as it is. 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5739 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5741 $as_echo_n "checking for CP... " >&6; } 5742 if test ! -x "$tool_specified"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5744 $as_echo "not found" >&6; } 5745 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5746 fi 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5748 $as_echo "$tool_specified" >&6; } 5749 fi 5750 fi 5751 fi 5752 5753 5754 5755 if test "x$CP" = x; then 5756 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5757 fi 5758 5759 5760 5761 5762 5763 # Publish this variable in the help. 5764 5765 5766 if test "x$CUT" = x; then 5767 # The variable is not set by user, try to locate tool using the code snippet 5768 for ac_prog in cut 5769 do 5770 # Extract the first word of "$ac_prog", so it can be a program name with args. 5771 set dummy $ac_prog; ac_word=$2 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773 $as_echo_n "checking for $ac_word... " >&6; } 5774 if ${ac_cv_path_CUT+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776 else 5777 case $CUT in 5778 [\\/]* | ?:[\\/]*) 5779 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5780 ;; 5781 *) 5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783 for as_dir in $PATH 5784 do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793 done 5794 done 5795 IFS=$as_save_IFS 5796 5797 ;; 5798 esac 5799 fi 5800 CUT=$ac_cv_path_CUT 5801 if test -n "$CUT"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5803 $as_echo "$CUT" >&6; } 5804 else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806 $as_echo "no" >&6; } 5807 fi 5808 5809 5810 test -n "$CUT" && break 5811 done 5812 5813 else 5814 # The variable is set, but is it from the command line or the environment? 5815 5816 # Try to remove the string !CUT! from our list. 5817 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5818 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5819 # If it failed, the variable was not from the command line. Ignore it, 5820 # but warn the user (except for BASH, which is always set by the calling BASH). 5821 if test "xCUT" != xBASH; then 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5823 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5824 fi 5825 # Try to locate tool using the code snippet 5826 for ac_prog in cut 5827 do 5828 # Extract the first word of "$ac_prog", so it can be a program name with args. 5829 set dummy $ac_prog; ac_word=$2 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5831 $as_echo_n "checking for $ac_word... " >&6; } 5832 if ${ac_cv_path_CUT+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834 else 5835 case $CUT in 5836 [\\/]* | ?:[\\/]*) 5837 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5838 ;; 5839 *) 5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5841 for as_dir in $PATH 5842 do 5843 IFS=$as_save_IFS 5844 test -z "$as_dir" && as_dir=. 5845 for ac_exec_ext in '' $ac_executable_extensions; do 5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5847 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5849 break 2 5850 fi 5851 done 5852 done 5853 IFS=$as_save_IFS 5854 5855 ;; 5856 esac 5857 fi 5858 CUT=$ac_cv_path_CUT 5859 if test -n "$CUT"; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5861 $as_echo "$CUT" >&6; } 5862 else 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5864 $as_echo "no" >&6; } 5865 fi 5866 5867 5868 test -n "$CUT" && break 5869 done 5870 5871 else 5872 # If it succeeded, then it was overridden by the user. We will use it 5873 # for the tool. 5874 5875 # First remove it from the list of overridden variables, so we can test 5876 # for unknown variables in the end. 5877 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5878 5879 # Check if the provided tool contains a complete path. 5880 tool_specified="$CUT" 5881 tool_basename="${tool_specified##*/}" 5882 if test "x$tool_basename" = "x$tool_specified"; then 5883 # A command without a complete path is provided, search $PATH. 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5885 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5886 # Extract the first word of "$tool_basename", so it can be a program name with args. 5887 set dummy $tool_basename; ac_word=$2 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889 $as_echo_n "checking for $ac_word... " >&6; } 5890 if ${ac_cv_path_CUT+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892 else 5893 case $CUT in 5894 [\\/]* | ?:[\\/]*) 5895 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5896 ;; 5897 *) 5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899 for as_dir in $PATH 5900 do 5901 IFS=$as_save_IFS 5902 test -z "$as_dir" && as_dir=. 5903 for ac_exec_ext in '' $ac_executable_extensions; do 5904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5905 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5907 break 2 5908 fi 5909 done 5910 done 5911 IFS=$as_save_IFS 5912 5913 ;; 5914 esac 5915 fi 5916 CUT=$ac_cv_path_CUT 5917 if test -n "$CUT"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5919 $as_echo "$CUT" >&6; } 5920 else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922 $as_echo "no" >&6; } 5923 fi 5924 5925 5926 if test "x$CUT" = x; then 5927 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5928 fi 5929 else 5930 # Otherwise we believe it is a complete path. Use it as it is. 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5932 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5934 $as_echo_n "checking for CUT... " >&6; } 5935 if test ! -x "$tool_specified"; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5937 $as_echo "not found" >&6; } 5938 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5939 fi 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5941 $as_echo "$tool_specified" >&6; } 5942 fi 5943 fi 5944 fi 5945 5946 5947 5948 if test "x$CUT" = x; then 5949 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5950 fi 5951 5952 5953 5954 5955 5956 # Publish this variable in the help. 5957 5958 5959 if test "x$DATE" = x; then 5960 # The variable is not set by user, try to locate tool using the code snippet 5961 for ac_prog in date 5962 do 5963 # Extract the first word of "$ac_prog", so it can be a program name with args. 5964 set dummy $ac_prog; ac_word=$2 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966 $as_echo_n "checking for $ac_word... " >&6; } 5967 if ${ac_cv_path_DATE+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969 else 5970 case $DATE in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH 5977 do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986 done 5987 done 5988 IFS=$as_save_IFS 5989 5990 ;; 5991 esac 5992 fi 5993 DATE=$ac_cv_path_DATE 5994 if test -n "$DATE"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5996 $as_echo "$DATE" >&6; } 5997 else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999 $as_echo "no" >&6; } 6000 fi 6001 6002 6003 test -n "$DATE" && break 6004 done 6005 6006 else 6007 # The variable is set, but is it from the command line or the environment? 6008 6009 # Try to remove the string !DATE! from our list. 6010 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6011 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6012 # If it failed, the variable was not from the command line. Ignore it, 6013 # but warn the user (except for BASH, which is always set by the calling BASH). 6014 if test "xDATE" != xBASH; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6016 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6017 fi 6018 # Try to locate tool using the code snippet 6019 for ac_prog in date 6020 do 6021 # Extract the first word of "$ac_prog", so it can be a program name with args. 6022 set dummy $ac_prog; ac_word=$2 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024 $as_echo_n "checking for $ac_word... " >&6; } 6025 if ${ac_cv_path_DATE+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027 else 6028 case $DATE in 6029 [\\/]* | ?:[\\/]*) 6030 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6031 ;; 6032 *) 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 ;; 6049 esac 6050 fi 6051 DATE=$ac_cv_path_DATE 6052 if test -n "$DATE"; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6054 $as_echo "$DATE" >&6; } 6055 else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6057 $as_echo "no" >&6; } 6058 fi 6059 6060 6061 test -n "$DATE" && break 6062 done 6063 6064 else 6065 # If it succeeded, then it was overridden by the user. We will use it 6066 # for the tool. 6067 6068 # First remove it from the list of overridden variables, so we can test 6069 # for unknown variables in the end. 6070 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6071 6072 # Check if the provided tool contains a complete path. 6073 tool_specified="$DATE" 6074 tool_basename="${tool_specified##*/}" 6075 if test "x$tool_basename" = "x$tool_specified"; then 6076 # A command without a complete path is provided, search $PATH. 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6078 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6079 # Extract the first word of "$tool_basename", so it can be a program name with args. 6080 set dummy $tool_basename; ac_word=$2 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6082 $as_echo_n "checking for $ac_word... " >&6; } 6083 if ${ac_cv_path_DATE+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085 else 6086 case $DATE in 6087 [\\/]* | ?:[\\/]*) 6088 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6089 ;; 6090 *) 6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092 for as_dir in $PATH 6093 do 6094 IFS=$as_save_IFS 6095 test -z "$as_dir" && as_dir=. 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6098 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6100 break 2 6101 fi 6102 done 6103 done 6104 IFS=$as_save_IFS 6105 6106 ;; 6107 esac 6108 fi 6109 DATE=$ac_cv_path_DATE 6110 if test -n "$DATE"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6112 $as_echo "$DATE" >&6; } 6113 else 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115 $as_echo "no" >&6; } 6116 fi 6117 6118 6119 if test "x$DATE" = x; then 6120 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6121 fi 6122 else 6123 # Otherwise we believe it is a complete path. Use it as it is. 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6125 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6127 $as_echo_n "checking for DATE... " >&6; } 6128 if test ! -x "$tool_specified"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6130 $as_echo "not found" >&6; } 6131 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6132 fi 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6134 $as_echo "$tool_specified" >&6; } 6135 fi 6136 fi 6137 fi 6138 6139 6140 6141 if test "x$DATE" = x; then 6142 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6143 fi 6144 6145 6146 6147 6148 6149 # Publish this variable in the help. 6150 6151 6152 if test "x$DIFF" = x; then 6153 # The variable is not set by user, try to locate tool using the code snippet 6154 for ac_prog in gdiff diff 6155 do 6156 # Extract the first word of "$ac_prog", so it can be a program name with args. 6157 set dummy $ac_prog; ac_word=$2 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159 $as_echo_n "checking for $ac_word... " >&6; } 6160 if ${ac_cv_path_DIFF+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162 else 6163 case $DIFF in 6164 [\\/]* | ?:[\\/]*) 6165 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6166 ;; 6167 *) 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169 for as_dir in $PATH 6170 do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6175 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179 done 6180 done 6181 IFS=$as_save_IFS 6182 6183 ;; 6184 esac 6185 fi 6186 DIFF=$ac_cv_path_DIFF 6187 if test -n "$DIFF"; then 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6189 $as_echo "$DIFF" >&6; } 6190 else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6192 $as_echo "no" >&6; } 6193 fi 6194 6195 6196 test -n "$DIFF" && break 6197 done 6198 6199 else 6200 # The variable is set, but is it from the command line or the environment? 6201 6202 # Try to remove the string !DIFF! from our list. 6203 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6204 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6205 # If it failed, the variable was not from the command line. Ignore it, 6206 # but warn the user (except for BASH, which is always set by the calling BASH). 6207 if test "xDIFF" != xBASH; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6209 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6210 fi 6211 # Try to locate tool using the code snippet 6212 for ac_prog in gdiff diff 6213 do 6214 # Extract the first word of "$ac_prog", so it can be a program name with args. 6215 set dummy $ac_prog; ac_word=$2 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6217 $as_echo_n "checking for $ac_word... " >&6; } 6218 if ${ac_cv_path_DIFF+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220 else 6221 case $DIFF in 6222 [\\/]* | ?:[\\/]*) 6223 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6224 ;; 6225 *) 6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6227 for as_dir in $PATH 6228 do 6229 IFS=$as_save_IFS 6230 test -z "$as_dir" && as_dir=. 6231 for ac_exec_ext in '' $ac_executable_extensions; do 6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6233 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6235 break 2 6236 fi 6237 done 6238 done 6239 IFS=$as_save_IFS 6240 6241 ;; 6242 esac 6243 fi 6244 DIFF=$ac_cv_path_DIFF 6245 if test -n "$DIFF"; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6247 $as_echo "$DIFF" >&6; } 6248 else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6250 $as_echo "no" >&6; } 6251 fi 6252 6253 6254 test -n "$DIFF" && break 6255 done 6256 6257 else 6258 # If it succeeded, then it was overridden by the user. We will use it 6259 # for the tool. 6260 6261 # First remove it from the list of overridden variables, so we can test 6262 # for unknown variables in the end. 6263 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6264 6265 # Check if the provided tool contains a complete path. 6266 tool_specified="$DIFF" 6267 tool_basename="${tool_specified##*/}" 6268 if test "x$tool_basename" = "x$tool_specified"; then 6269 # A command without a complete path is provided, search $PATH. 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6271 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6272 # Extract the first word of "$tool_basename", so it can be a program name with args. 6273 set dummy $tool_basename; ac_word=$2 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6275 $as_echo_n "checking for $ac_word... " >&6; } 6276 if ${ac_cv_path_DIFF+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278 else 6279 case $DIFF in 6280 [\\/]* | ?:[\\/]*) 6281 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6282 ;; 6283 *) 6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6285 for as_dir in $PATH 6286 do 6287 IFS=$as_save_IFS 6288 test -z "$as_dir" && as_dir=. 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6291 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295 done 6296 done 6297 IFS=$as_save_IFS 6298 6299 ;; 6300 esac 6301 fi 6302 DIFF=$ac_cv_path_DIFF 6303 if test -n "$DIFF"; then 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6305 $as_echo "$DIFF" >&6; } 6306 else 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6308 $as_echo "no" >&6; } 6309 fi 6310 6311 6312 if test "x$DIFF" = x; then 6313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6314 fi 6315 else 6316 # Otherwise we believe it is a complete path. Use it as it is. 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6318 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6320 $as_echo_n "checking for DIFF... " >&6; } 6321 if test ! -x "$tool_specified"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6323 $as_echo "not found" >&6; } 6324 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6325 fi 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6327 $as_echo "$tool_specified" >&6; } 6328 fi 6329 fi 6330 fi 6331 6332 6333 6334 if test "x$DIFF" = x; then 6335 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6336 fi 6337 6338 6339 6340 6341 6342 # Publish this variable in the help. 6343 6344 6345 if test "x$DIRNAME" = x; then 6346 # The variable is not set by user, try to locate tool using the code snippet 6347 for ac_prog in dirname 6348 do 6349 # Extract the first word of "$ac_prog", so it can be a program name with args. 6350 set dummy $ac_prog; ac_word=$2 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352 $as_echo_n "checking for $ac_word... " >&6; } 6353 if ${ac_cv_path_DIRNAME+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355 else 6356 case $DIRNAME in 6357 [\\/]* | ?:[\\/]*) 6358 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6359 ;; 6360 *) 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6368 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372 done 6373 done 6374 IFS=$as_save_IFS 6375 6376 ;; 6377 esac 6378 fi 6379 DIRNAME=$ac_cv_path_DIRNAME 6380 if test -n "$DIRNAME"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6382 $as_echo "$DIRNAME" >&6; } 6383 else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385 $as_echo "no" >&6; } 6386 fi 6387 6388 6389 test -n "$DIRNAME" && break 6390 done 6391 6392 else 6393 # The variable is set, but is it from the command line or the environment? 6394 6395 # Try to remove the string !DIRNAME! from our list. 6396 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6397 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6398 # If it failed, the variable was not from the command line. Ignore it, 6399 # but warn the user (except for BASH, which is always set by the calling BASH). 6400 if test "xDIRNAME" != xBASH; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6402 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6403 fi 6404 # Try to locate tool using the code snippet 6405 for ac_prog in dirname 6406 do 6407 # Extract the first word of "$ac_prog", so it can be a program name with args. 6408 set dummy $ac_prog; ac_word=$2 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6410 $as_echo_n "checking for $ac_word... " >&6; } 6411 if ${ac_cv_path_DIRNAME+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413 else 6414 case $DIRNAME in 6415 [\\/]* | ?:[\\/]*) 6416 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6417 ;; 6418 *) 6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420 for as_dir in $PATH 6421 do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6426 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430 done 6431 done 6432 IFS=$as_save_IFS 6433 6434 ;; 6435 esac 6436 fi 6437 DIRNAME=$ac_cv_path_DIRNAME 6438 if test -n "$DIRNAME"; then 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6440 $as_echo "$DIRNAME" >&6; } 6441 else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6443 $as_echo "no" >&6; } 6444 fi 6445 6446 6447 test -n "$DIRNAME" && break 6448 done 6449 6450 else 6451 # If it succeeded, then it was overridden by the user. We will use it 6452 # for the tool. 6453 6454 # First remove it from the list of overridden variables, so we can test 6455 # for unknown variables in the end. 6456 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6457 6458 # Check if the provided tool contains a complete path. 6459 tool_specified="$DIRNAME" 6460 tool_basename="${tool_specified##*/}" 6461 if test "x$tool_basename" = "x$tool_specified"; then 6462 # A command without a complete path is provided, search $PATH. 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6464 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6465 # Extract the first word of "$tool_basename", so it can be a program name with args. 6466 set dummy $tool_basename; ac_word=$2 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6468 $as_echo_n "checking for $ac_word... " >&6; } 6469 if ${ac_cv_path_DIRNAME+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471 else 6472 case $DIRNAME in 6473 [\\/]* | ?:[\\/]*) 6474 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6475 ;; 6476 *) 6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478 for as_dir in $PATH 6479 do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6484 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488 done 6489 done 6490 IFS=$as_save_IFS 6491 6492 ;; 6493 esac 6494 fi 6495 DIRNAME=$ac_cv_path_DIRNAME 6496 if test -n "$DIRNAME"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6498 $as_echo "$DIRNAME" >&6; } 6499 else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501 $as_echo "no" >&6; } 6502 fi 6503 6504 6505 if test "x$DIRNAME" = x; then 6506 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6507 fi 6508 else 6509 # Otherwise we believe it is a complete path. Use it as it is. 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6511 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6513 $as_echo_n "checking for DIRNAME... " >&6; } 6514 if test ! -x "$tool_specified"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6516 $as_echo "not found" >&6; } 6517 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6518 fi 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6520 $as_echo "$tool_specified" >&6; } 6521 fi 6522 fi 6523 fi 6524 6525 6526 6527 if test "x$DIRNAME" = x; then 6528 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6529 fi 6530 6531 6532 6533 6534 6535 # Publish this variable in the help. 6536 6537 6538 if test "x$ECHO" = x; then 6539 # The variable is not set by user, try to locate tool using the code snippet 6540 for ac_prog in echo 6541 do 6542 # Extract the first word of "$ac_prog", so it can be a program name with args. 6543 set dummy $ac_prog; ac_word=$2 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6545 $as_echo_n "checking for $ac_word... " >&6; } 6546 if ${ac_cv_path_ECHO+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548 else 6549 case $ECHO in 6550 [\\/]* | ?:[\\/]*) 6551 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6552 ;; 6553 *) 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555 for as_dir in $PATH 6556 do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565 done 6566 done 6567 IFS=$as_save_IFS 6568 6569 ;; 6570 esac 6571 fi 6572 ECHO=$ac_cv_path_ECHO 6573 if test -n "$ECHO"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6575 $as_echo "$ECHO" >&6; } 6576 else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578 $as_echo "no" >&6; } 6579 fi 6580 6581 6582 test -n "$ECHO" && break 6583 done 6584 6585 else 6586 # The variable is set, but is it from the command line or the environment? 6587 6588 # Try to remove the string !ECHO! from our list. 6589 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6590 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6591 # If it failed, the variable was not from the command line. Ignore it, 6592 # but warn the user (except for BASH, which is always set by the calling BASH). 6593 if test "xECHO" != xBASH; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6595 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6596 fi 6597 # Try to locate tool using the code snippet 6598 for ac_prog in echo 6599 do 6600 # Extract the first word of "$ac_prog", so it can be a program name with args. 6601 set dummy $ac_prog; ac_word=$2 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6603 $as_echo_n "checking for $ac_word... " >&6; } 6604 if ${ac_cv_path_ECHO+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606 else 6607 case $ECHO in 6608 [\\/]* | ?:[\\/]*) 6609 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6610 ;; 6611 *) 6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613 for as_dir in $PATH 6614 do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6619 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623 done 6624 done 6625 IFS=$as_save_IFS 6626 6627 ;; 6628 esac 6629 fi 6630 ECHO=$ac_cv_path_ECHO 6631 if test -n "$ECHO"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6633 $as_echo "$ECHO" >&6; } 6634 else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636 $as_echo "no" >&6; } 6637 fi 6638 6639 6640 test -n "$ECHO" && break 6641 done 6642 6643 else 6644 # If it succeeded, then it was overridden by the user. We will use it 6645 # for the tool. 6646 6647 # First remove it from the list of overridden variables, so we can test 6648 # for unknown variables in the end. 6649 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6650 6651 # Check if the provided tool contains a complete path. 6652 tool_specified="$ECHO" 6653 tool_basename="${tool_specified##*/}" 6654 if test "x$tool_basename" = "x$tool_specified"; then 6655 # A command without a complete path is provided, search $PATH. 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6657 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6658 # Extract the first word of "$tool_basename", so it can be a program name with args. 6659 set dummy $tool_basename; ac_word=$2 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6661 $as_echo_n "checking for $ac_word... " >&6; } 6662 if ${ac_cv_path_ECHO+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664 else 6665 case $ECHO in 6666 [\\/]* | ?:[\\/]*) 6667 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6668 ;; 6669 *) 6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671 for as_dir in $PATH 6672 do 6673 IFS=$as_save_IFS 6674 test -z "$as_dir" && as_dir=. 6675 for ac_exec_ext in '' $ac_executable_extensions; do 6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6677 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6679 break 2 6680 fi 6681 done 6682 done 6683 IFS=$as_save_IFS 6684 6685 ;; 6686 esac 6687 fi 6688 ECHO=$ac_cv_path_ECHO 6689 if test -n "$ECHO"; then 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6691 $as_echo "$ECHO" >&6; } 6692 else 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6694 $as_echo "no" >&6; } 6695 fi 6696 6697 6698 if test "x$ECHO" = x; then 6699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6700 fi 6701 else 6702 # Otherwise we believe it is a complete path. Use it as it is. 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6704 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6706 $as_echo_n "checking for ECHO... " >&6; } 6707 if test ! -x "$tool_specified"; then 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6709 $as_echo "not found" >&6; } 6710 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6711 fi 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6713 $as_echo "$tool_specified" >&6; } 6714 fi 6715 fi 6716 fi 6717 6718 6719 6720 if test "x$ECHO" = x; then 6721 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6722 fi 6723 6724 6725 6726 6727 6728 # Publish this variable in the help. 6729 6730 6731 if test "x$EXPR" = x; then 6732 # The variable is not set by user, try to locate tool using the code snippet 6733 for ac_prog in expr 6734 do 6735 # Extract the first word of "$ac_prog", so it can be a program name with args. 6736 set dummy $ac_prog; ac_word=$2 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738 $as_echo_n "checking for $ac_word... " >&6; } 6739 if ${ac_cv_path_EXPR+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741 else 6742 case $EXPR in 6743 [\\/]* | ?:[\\/]*) 6744 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6745 ;; 6746 *) 6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748 for as_dir in $PATH 6749 do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758 done 6759 done 6760 IFS=$as_save_IFS 6761 6762 ;; 6763 esac 6764 fi 6765 EXPR=$ac_cv_path_EXPR 6766 if test -n "$EXPR"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6768 $as_echo "$EXPR" >&6; } 6769 else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771 $as_echo "no" >&6; } 6772 fi 6773 6774 6775 test -n "$EXPR" && break 6776 done 6777 6778 else 6779 # The variable is set, but is it from the command line or the environment? 6780 6781 # Try to remove the string !EXPR! from our list. 6782 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6783 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6784 # If it failed, the variable was not from the command line. Ignore it, 6785 # but warn the user (except for BASH, which is always set by the calling BASH). 6786 if test "xEXPR" != xBASH; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6788 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6789 fi 6790 # Try to locate tool using the code snippet 6791 for ac_prog in expr 6792 do 6793 # Extract the first word of "$ac_prog", so it can be a program name with args. 6794 set dummy $ac_prog; ac_word=$2 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6796 $as_echo_n "checking for $ac_word... " >&6; } 6797 if ${ac_cv_path_EXPR+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799 else 6800 case $EXPR in 6801 [\\/]* | ?:[\\/]*) 6802 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6803 ;; 6804 *) 6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806 for as_dir in $PATH 6807 do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6812 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816 done 6817 done 6818 IFS=$as_save_IFS 6819 6820 ;; 6821 esac 6822 fi 6823 EXPR=$ac_cv_path_EXPR 6824 if test -n "$EXPR"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6826 $as_echo "$EXPR" >&6; } 6827 else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829 $as_echo "no" >&6; } 6830 fi 6831 6832 6833 test -n "$EXPR" && break 6834 done 6835 6836 else 6837 # If it succeeded, then it was overridden by the user. We will use it 6838 # for the tool. 6839 6840 # First remove it from the list of overridden variables, so we can test 6841 # for unknown variables in the end. 6842 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6843 6844 # Check if the provided tool contains a complete path. 6845 tool_specified="$EXPR" 6846 tool_basename="${tool_specified##*/}" 6847 if test "x$tool_basename" = "x$tool_specified"; then 6848 # A command without a complete path is provided, search $PATH. 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6850 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6851 # Extract the first word of "$tool_basename", so it can be a program name with args. 6852 set dummy $tool_basename; ac_word=$2 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854 $as_echo_n "checking for $ac_word... " >&6; } 6855 if ${ac_cv_path_EXPR+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857 else 6858 case $EXPR in 6859 [\\/]* | ?:[\\/]*) 6860 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6861 ;; 6862 *) 6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864 for as_dir in $PATH 6865 do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6870 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874 done 6875 done 6876 IFS=$as_save_IFS 6877 6878 ;; 6879 esac 6880 fi 6881 EXPR=$ac_cv_path_EXPR 6882 if test -n "$EXPR"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6884 $as_echo "$EXPR" >&6; } 6885 else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887 $as_echo "no" >&6; } 6888 fi 6889 6890 6891 if test "x$EXPR" = x; then 6892 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6893 fi 6894 else 6895 # Otherwise we believe it is a complete path. Use it as it is. 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6897 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6899 $as_echo_n "checking for EXPR... " >&6; } 6900 if test ! -x "$tool_specified"; then 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6902 $as_echo "not found" >&6; } 6903 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6904 fi 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6906 $as_echo "$tool_specified" >&6; } 6907 fi 6908 fi 6909 fi 6910 6911 6912 6913 if test "x$EXPR" = x; then 6914 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6915 fi 6916 6917 6918 6919 6920 6921 # Publish this variable in the help. 6922 6923 6924 if test "x$FILE" = x; then 6925 # The variable is not set by user, try to locate tool using the code snippet 6926 for ac_prog in file 6927 do 6928 # Extract the first word of "$ac_prog", so it can be a program name with args. 6929 set dummy $ac_prog; ac_word=$2 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6931 $as_echo_n "checking for $ac_word... " >&6; } 6932 if ${ac_cv_path_FILE+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934 else 6935 case $FILE in 6936 [\\/]* | ?:[\\/]*) 6937 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6938 ;; 6939 *) 6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941 for as_dir in $PATH 6942 do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951 done 6952 done 6953 IFS=$as_save_IFS 6954 6955 ;; 6956 esac 6957 fi 6958 FILE=$ac_cv_path_FILE 6959 if test -n "$FILE"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6961 $as_echo "$FILE" >&6; } 6962 else 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6964 $as_echo "no" >&6; } 6965 fi 6966 6967 6968 test -n "$FILE" && break 6969 done 6970 6971 else 6972 # The variable is set, but is it from the command line or the environment? 6973 6974 # Try to remove the string !FILE! from our list. 6975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6977 # If it failed, the variable was not from the command line. Ignore it, 6978 # but warn the user (except for BASH, which is always set by the calling BASH). 6979 if test "xFILE" != xBASH; then 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6981 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6982 fi 6983 # Try to locate tool using the code snippet 6984 for ac_prog in file 6985 do 6986 # Extract the first word of "$ac_prog", so it can be a program name with args. 6987 set dummy $ac_prog; ac_word=$2 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989 $as_echo_n "checking for $ac_word... " >&6; } 6990 if ${ac_cv_path_FILE+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992 else 6993 case $FILE in 6994 [\\/]* | ?:[\\/]*) 6995 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6996 ;; 6997 *) 6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999 for as_dir in $PATH 7000 do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7005 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009 done 7010 done 7011 IFS=$as_save_IFS 7012 7013 ;; 7014 esac 7015 fi 7016 FILE=$ac_cv_path_FILE 7017 if test -n "$FILE"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7019 $as_echo "$FILE" >&6; } 7020 else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022 $as_echo "no" >&6; } 7023 fi 7024 7025 7026 test -n "$FILE" && break 7027 done 7028 7029 else 7030 # If it succeeded, then it was overridden by the user. We will use it 7031 # for the tool. 7032 7033 # First remove it from the list of overridden variables, so we can test 7034 # for unknown variables in the end. 7035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7036 7037 # Check if the provided tool contains a complete path. 7038 tool_specified="$FILE" 7039 tool_basename="${tool_specified##*/}" 7040 if test "x$tool_basename" = "x$tool_specified"; then 7041 # A command without a complete path is provided, search $PATH. 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7043 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7044 # Extract the first word of "$tool_basename", so it can be a program name with args. 7045 set dummy $tool_basename; ac_word=$2 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7047 $as_echo_n "checking for $ac_word... " >&6; } 7048 if ${ac_cv_path_FILE+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050 else 7051 case $FILE in 7052 [\\/]* | ?:[\\/]*) 7053 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7054 ;; 7055 *) 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057 for as_dir in $PATH 7058 do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7063 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067 done 7068 done 7069 IFS=$as_save_IFS 7070 7071 ;; 7072 esac 7073 fi 7074 FILE=$ac_cv_path_FILE 7075 if test -n "$FILE"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7077 $as_echo "$FILE" >&6; } 7078 else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080 $as_echo "no" >&6; } 7081 fi 7082 7083 7084 if test "x$FILE" = x; then 7085 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7086 fi 7087 else 7088 # Otherwise we believe it is a complete path. Use it as it is. 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7090 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7092 $as_echo_n "checking for FILE... " >&6; } 7093 if test ! -x "$tool_specified"; then 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7095 $as_echo "not found" >&6; } 7096 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7097 fi 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7099 $as_echo "$tool_specified" >&6; } 7100 fi 7101 fi 7102 fi 7103 7104 7105 7106 if test "x$FILE" = x; then 7107 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7108 fi 7109 7110 7111 7112 7113 7114 # Publish this variable in the help. 7115 7116 7117 if test "x$FIND" = x; then 7118 # The variable is not set by user, try to locate tool using the code snippet 7119 for ac_prog in find 7120 do 7121 # Extract the first word of "$ac_prog", so it can be a program name with args. 7122 set dummy $ac_prog; ac_word=$2 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124 $as_echo_n "checking for $ac_word... " >&6; } 7125 if ${ac_cv_path_FIND+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127 else 7128 case $FIND in 7129 [\\/]* | ?:[\\/]*) 7130 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7131 ;; 7132 *) 7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134 for as_dir in $PATH 7135 do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7140 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144 done 7145 done 7146 IFS=$as_save_IFS 7147 7148 ;; 7149 esac 7150 fi 7151 FIND=$ac_cv_path_FIND 7152 if test -n "$FIND"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7154 $as_echo "$FIND" >&6; } 7155 else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157 $as_echo "no" >&6; } 7158 fi 7159 7160 7161 test -n "$FIND" && break 7162 done 7163 7164 else 7165 # The variable is set, but is it from the command line or the environment? 7166 7167 # Try to remove the string !FIND! from our list. 7168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7170 # If it failed, the variable was not from the command line. Ignore it, 7171 # but warn the user (except for BASH, which is always set by the calling BASH). 7172 if test "xFIND" != xBASH; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7174 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7175 fi 7176 # Try to locate tool using the code snippet 7177 for ac_prog in find 7178 do 7179 # Extract the first word of "$ac_prog", so it can be a program name with args. 7180 set dummy $ac_prog; ac_word=$2 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182 $as_echo_n "checking for $ac_word... " >&6; } 7183 if ${ac_cv_path_FIND+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185 else 7186 case $FIND in 7187 [\\/]* | ?:[\\/]*) 7188 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7189 ;; 7190 *) 7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192 for as_dir in $PATH 7193 do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202 done 7203 done 7204 IFS=$as_save_IFS 7205 7206 ;; 7207 esac 7208 fi 7209 FIND=$ac_cv_path_FIND 7210 if test -n "$FIND"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7212 $as_echo "$FIND" >&6; } 7213 else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215 $as_echo "no" >&6; } 7216 fi 7217 7218 7219 test -n "$FIND" && break 7220 done 7221 7222 else 7223 # If it succeeded, then it was overridden by the user. We will use it 7224 # for the tool. 7225 7226 # First remove it from the list of overridden variables, so we can test 7227 # for unknown variables in the end. 7228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7229 7230 # Check if the provided tool contains a complete path. 7231 tool_specified="$FIND" 7232 tool_basename="${tool_specified##*/}" 7233 if test "x$tool_basename" = "x$tool_specified"; then 7234 # A command without a complete path is provided, search $PATH. 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7236 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7237 # Extract the first word of "$tool_basename", so it can be a program name with args. 7238 set dummy $tool_basename; ac_word=$2 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7240 $as_echo_n "checking for $ac_word... " >&6; } 7241 if ${ac_cv_path_FIND+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243 else 7244 case $FIND in 7245 [\\/]* | ?:[\\/]*) 7246 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7247 ;; 7248 *) 7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250 for as_dir in $PATH 7251 do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7256 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260 done 7261 done 7262 IFS=$as_save_IFS 7263 7264 ;; 7265 esac 7266 fi 7267 FIND=$ac_cv_path_FIND 7268 if test -n "$FIND"; then 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7270 $as_echo "$FIND" >&6; } 7271 else 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7273 $as_echo "no" >&6; } 7274 fi 7275 7276 7277 if test "x$FIND" = x; then 7278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7279 fi 7280 else 7281 # Otherwise we believe it is a complete path. Use it as it is. 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7283 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7285 $as_echo_n "checking for FIND... " >&6; } 7286 if test ! -x "$tool_specified"; then 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7288 $as_echo "not found" >&6; } 7289 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7290 fi 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7292 $as_echo "$tool_specified" >&6; } 7293 fi 7294 fi 7295 fi 7296 7297 7298 7299 if test "x$FIND" = x; then 7300 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7301 fi 7302 7303 7304 7305 7306 7307 # Publish this variable in the help. 7308 7309 7310 if test "x$HEAD" = x; then 7311 # The variable is not set by user, try to locate tool using the code snippet 7312 for ac_prog in head 7313 do 7314 # Extract the first word of "$ac_prog", so it can be a program name with args. 7315 set dummy $ac_prog; ac_word=$2 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317 $as_echo_n "checking for $ac_word... " >&6; } 7318 if ${ac_cv_path_HEAD+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320 else 7321 case $HEAD in 7322 [\\/]* | ?:[\\/]*) 7323 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7324 ;; 7325 *) 7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327 for as_dir in $PATH 7328 do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337 done 7338 done 7339 IFS=$as_save_IFS 7340 7341 ;; 7342 esac 7343 fi 7344 HEAD=$ac_cv_path_HEAD 7345 if test -n "$HEAD"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7347 $as_echo "$HEAD" >&6; } 7348 else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350 $as_echo "no" >&6; } 7351 fi 7352 7353 7354 test -n "$HEAD" && break 7355 done 7356 7357 else 7358 # The variable is set, but is it from the command line or the environment? 7359 7360 # Try to remove the string !HEAD! from our list. 7361 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7362 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7363 # If it failed, the variable was not from the command line. Ignore it, 7364 # but warn the user (except for BASH, which is always set by the calling BASH). 7365 if test "xHEAD" != xBASH; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7367 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7368 fi 7369 # Try to locate tool using the code snippet 7370 for ac_prog in head 7371 do 7372 # Extract the first word of "$ac_prog", so it can be a program name with args. 7373 set dummy $ac_prog; ac_word=$2 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7375 $as_echo_n "checking for $ac_word... " >&6; } 7376 if ${ac_cv_path_HEAD+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378 else 7379 case $HEAD in 7380 [\\/]* | ?:[\\/]*) 7381 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7382 ;; 7383 *) 7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7385 for as_dir in $PATH 7386 do 7387 IFS=$as_save_IFS 7388 test -z "$as_dir" && as_dir=. 7389 for ac_exec_ext in '' $ac_executable_extensions; do 7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7391 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7393 break 2 7394 fi 7395 done 7396 done 7397 IFS=$as_save_IFS 7398 7399 ;; 7400 esac 7401 fi 7402 HEAD=$ac_cv_path_HEAD 7403 if test -n "$HEAD"; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7405 $as_echo "$HEAD" >&6; } 7406 else 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7408 $as_echo "no" >&6; } 7409 fi 7410 7411 7412 test -n "$HEAD" && break 7413 done 7414 7415 else 7416 # If it succeeded, then it was overridden by the user. We will use it 7417 # for the tool. 7418 7419 # First remove it from the list of overridden variables, so we can test 7420 # for unknown variables in the end. 7421 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7422 7423 # Check if the provided tool contains a complete path. 7424 tool_specified="$HEAD" 7425 tool_basename="${tool_specified##*/}" 7426 if test "x$tool_basename" = "x$tool_specified"; then 7427 # A command without a complete path is provided, search $PATH. 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7429 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7430 # Extract the first word of "$tool_basename", so it can be a program name with args. 7431 set dummy $tool_basename; ac_word=$2 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7433 $as_echo_n "checking for $ac_word... " >&6; } 7434 if ${ac_cv_path_HEAD+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436 else 7437 case $HEAD in 7438 [\\/]* | ?:[\\/]*) 7439 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7440 ;; 7441 *) 7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7443 for as_dir in $PATH 7444 do 7445 IFS=$as_save_IFS 7446 test -z "$as_dir" && as_dir=. 7447 for ac_exec_ext in '' $ac_executable_extensions; do 7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7449 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7451 break 2 7452 fi 7453 done 7454 done 7455 IFS=$as_save_IFS 7456 7457 ;; 7458 esac 7459 fi 7460 HEAD=$ac_cv_path_HEAD 7461 if test -n "$HEAD"; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7463 $as_echo "$HEAD" >&6; } 7464 else 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7466 $as_echo "no" >&6; } 7467 fi 7468 7469 7470 if test "x$HEAD" = x; then 7471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7472 fi 7473 else 7474 # Otherwise we believe it is a complete path. Use it as it is. 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7476 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7478 $as_echo_n "checking for HEAD... " >&6; } 7479 if test ! -x "$tool_specified"; then 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7481 $as_echo "not found" >&6; } 7482 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7483 fi 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7485 $as_echo "$tool_specified" >&6; } 7486 fi 7487 fi 7488 fi 7489 7490 7491 7492 if test "x$HEAD" = x; then 7493 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7494 fi 7495 7496 7497 7498 7499 7500 # Publish this variable in the help. 7501 7502 7503 if test "x$LN" = x; then 7504 # The variable is not set by user, try to locate tool using the code snippet 7505 for ac_prog in ln 7506 do 7507 # Extract the first word of "$ac_prog", so it can be a program name with args. 7508 set dummy $ac_prog; ac_word=$2 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510 $as_echo_n "checking for $ac_word... " >&6; } 7511 if ${ac_cv_path_LN+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513 else 7514 case $LN in 7515 [\\/]* | ?:[\\/]*) 7516 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7517 ;; 7518 *) 7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520 for as_dir in $PATH 7521 do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7526 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530 done 7531 done 7532 IFS=$as_save_IFS 7533 7534 ;; 7535 esac 7536 fi 7537 LN=$ac_cv_path_LN 7538 if test -n "$LN"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7540 $as_echo "$LN" >&6; } 7541 else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543 $as_echo "no" >&6; } 7544 fi 7545 7546 7547 test -n "$LN" && break 7548 done 7549 7550 else 7551 # The variable is set, but is it from the command line or the environment? 7552 7553 # Try to remove the string !LN! from our list. 7554 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7555 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7556 # If it failed, the variable was not from the command line. Ignore it, 7557 # but warn the user (except for BASH, which is always set by the calling BASH). 7558 if test "xLN" != xBASH; then 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7560 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7561 fi 7562 # Try to locate tool using the code snippet 7563 for ac_prog in ln 7564 do 7565 # Extract the first word of "$ac_prog", so it can be a program name with args. 7566 set dummy $ac_prog; ac_word=$2 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7568 $as_echo_n "checking for $ac_word... " >&6; } 7569 if ${ac_cv_path_LN+:} false; then : 7570 $as_echo_n "(cached) " >&6 7571 else 7572 case $LN in 7573 [\\/]* | ?:[\\/]*) 7574 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7575 ;; 7576 *) 7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7578 for as_dir in $PATH 7579 do 7580 IFS=$as_save_IFS 7581 test -z "$as_dir" && as_dir=. 7582 for ac_exec_ext in '' $ac_executable_extensions; do 7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7584 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7586 break 2 7587 fi 7588 done 7589 done 7590 IFS=$as_save_IFS 7591 7592 ;; 7593 esac 7594 fi 7595 LN=$ac_cv_path_LN 7596 if test -n "$LN"; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7598 $as_echo "$LN" >&6; } 7599 else 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7601 $as_echo "no" >&6; } 7602 fi 7603 7604 7605 test -n "$LN" && break 7606 done 7607 7608 else 7609 # If it succeeded, then it was overridden by the user. We will use it 7610 # for the tool. 7611 7612 # First remove it from the list of overridden variables, so we can test 7613 # for unknown variables in the end. 7614 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7615 7616 # Check if the provided tool contains a complete path. 7617 tool_specified="$LN" 7618 tool_basename="${tool_specified##*/}" 7619 if test "x$tool_basename" = "x$tool_specified"; then 7620 # A command without a complete path is provided, search $PATH. 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7622 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7623 # Extract the first word of "$tool_basename", so it can be a program name with args. 7624 set dummy $tool_basename; ac_word=$2 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626 $as_echo_n "checking for $ac_word... " >&6; } 7627 if ${ac_cv_path_LN+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629 else 7630 case $LN in 7631 [\\/]* | ?:[\\/]*) 7632 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7633 ;; 7634 *) 7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636 for as_dir in $PATH 7637 do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7642 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646 done 7647 done 7648 IFS=$as_save_IFS 7649 7650 ;; 7651 esac 7652 fi 7653 LN=$ac_cv_path_LN 7654 if test -n "$LN"; then 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7656 $as_echo "$LN" >&6; } 7657 else 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659 $as_echo "no" >&6; } 7660 fi 7661 7662 7663 if test "x$LN" = x; then 7664 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7665 fi 7666 else 7667 # Otherwise we believe it is a complete path. Use it as it is. 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7669 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7671 $as_echo_n "checking for LN... " >&6; } 7672 if test ! -x "$tool_specified"; then 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7674 $as_echo "not found" >&6; } 7675 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7676 fi 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7678 $as_echo "$tool_specified" >&6; } 7679 fi 7680 fi 7681 fi 7682 7683 7684 7685 if test "x$LN" = x; then 7686 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7687 fi 7688 7689 7690 7691 7692 7693 # Publish this variable in the help. 7694 7695 7696 if test "x$LS" = x; then 7697 # The variable is not set by user, try to locate tool using the code snippet 7698 for ac_prog in ls 7699 do 7700 # Extract the first word of "$ac_prog", so it can be a program name with args. 7701 set dummy $ac_prog; ac_word=$2 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7703 $as_echo_n "checking for $ac_word... " >&6; } 7704 if ${ac_cv_path_LS+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706 else 7707 case $LS in 7708 [\\/]* | ?:[\\/]*) 7709 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7710 ;; 7711 *) 7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7713 for as_dir in $PATH 7714 do 7715 IFS=$as_save_IFS 7716 test -z "$as_dir" && as_dir=. 7717 for ac_exec_ext in '' $ac_executable_extensions; do 7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7719 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7721 break 2 7722 fi 7723 done 7724 done 7725 IFS=$as_save_IFS 7726 7727 ;; 7728 esac 7729 fi 7730 LS=$ac_cv_path_LS 7731 if test -n "$LS"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7733 $as_echo "$LS" >&6; } 7734 else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736 $as_echo "no" >&6; } 7737 fi 7738 7739 7740 test -n "$LS" && break 7741 done 7742 7743 else 7744 # The variable is set, but is it from the command line or the environment? 7745 7746 # Try to remove the string !LS! from our list. 7747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7749 # If it failed, the variable was not from the command line. Ignore it, 7750 # but warn the user (except for BASH, which is always set by the calling BASH). 7751 if test "xLS" != xBASH; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7753 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7754 fi 7755 # Try to locate tool using the code snippet 7756 for ac_prog in ls 7757 do 7758 # Extract the first word of "$ac_prog", so it can be a program name with args. 7759 set dummy $ac_prog; ac_word=$2 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7761 $as_echo_n "checking for $ac_word... " >&6; } 7762 if ${ac_cv_path_LS+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764 else 7765 case $LS in 7766 [\\/]* | ?:[\\/]*) 7767 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7768 ;; 7769 *) 7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7771 for as_dir in $PATH 7772 do 7773 IFS=$as_save_IFS 7774 test -z "$as_dir" && as_dir=. 7775 for ac_exec_ext in '' $ac_executable_extensions; do 7776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7777 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7779 break 2 7780 fi 7781 done 7782 done 7783 IFS=$as_save_IFS 7784 7785 ;; 7786 esac 7787 fi 7788 LS=$ac_cv_path_LS 7789 if test -n "$LS"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7791 $as_echo "$LS" >&6; } 7792 else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794 $as_echo "no" >&6; } 7795 fi 7796 7797 7798 test -n "$LS" && break 7799 done 7800 7801 else 7802 # If it succeeded, then it was overridden by the user. We will use it 7803 # for the tool. 7804 7805 # First remove it from the list of overridden variables, so we can test 7806 # for unknown variables in the end. 7807 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7808 7809 # Check if the provided tool contains a complete path. 7810 tool_specified="$LS" 7811 tool_basename="${tool_specified##*/}" 7812 if test "x$tool_basename" = "x$tool_specified"; then 7813 # A command without a complete path is provided, search $PATH. 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7815 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7816 # Extract the first word of "$tool_basename", so it can be a program name with args. 7817 set dummy $tool_basename; ac_word=$2 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7819 $as_echo_n "checking for $ac_word... " >&6; } 7820 if ${ac_cv_path_LS+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822 else 7823 case $LS in 7824 [\\/]* | ?:[\\/]*) 7825 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7826 ;; 7827 *) 7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829 for as_dir in $PATH 7830 do 7831 IFS=$as_save_IFS 7832 test -z "$as_dir" && as_dir=. 7833 for ac_exec_ext in '' $ac_executable_extensions; do 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7835 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7837 break 2 7838 fi 7839 done 7840 done 7841 IFS=$as_save_IFS 7842 7843 ;; 7844 esac 7845 fi 7846 LS=$ac_cv_path_LS 7847 if test -n "$LS"; then 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7849 $as_echo "$LS" >&6; } 7850 else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852 $as_echo "no" >&6; } 7853 fi 7854 7855 7856 if test "x$LS" = x; then 7857 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7858 fi 7859 else 7860 # Otherwise we believe it is a complete path. Use it as it is. 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7862 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7864 $as_echo_n "checking for LS... " >&6; } 7865 if test ! -x "$tool_specified"; then 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7867 $as_echo "not found" >&6; } 7868 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7869 fi 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7871 $as_echo "$tool_specified" >&6; } 7872 fi 7873 fi 7874 fi 7875 7876 7877 7878 if test "x$LS" = x; then 7879 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7880 fi 7881 7882 7883 7884 7885 7886 # Publish this variable in the help. 7887 7888 7889 if test "x$MKDIR" = x; then 7890 # The variable is not set by user, try to locate tool using the code snippet 7891 for ac_prog in mkdir 7892 do 7893 # Extract the first word of "$ac_prog", so it can be a program name with args. 7894 set dummy $ac_prog; ac_word=$2 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896 $as_echo_n "checking for $ac_word... " >&6; } 7897 if ${ac_cv_path_MKDIR+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899 else 7900 case $MKDIR in 7901 [\\/]* | ?:[\\/]*) 7902 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7903 ;; 7904 *) 7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906 for as_dir in $PATH 7907 do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7912 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916 done 7917 done 7918 IFS=$as_save_IFS 7919 7920 ;; 7921 esac 7922 fi 7923 MKDIR=$ac_cv_path_MKDIR 7924 if test -n "$MKDIR"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7926 $as_echo "$MKDIR" >&6; } 7927 else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929 $as_echo "no" >&6; } 7930 fi 7931 7932 7933 test -n "$MKDIR" && break 7934 done 7935 7936 else 7937 # The variable is set, but is it from the command line or the environment? 7938 7939 # Try to remove the string !MKDIR! from our list. 7940 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7941 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7942 # If it failed, the variable was not from the command line. Ignore it, 7943 # but warn the user (except for BASH, which is always set by the calling BASH). 7944 if test "xMKDIR" != xBASH; then 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7946 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7947 fi 7948 # Try to locate tool using the code snippet 7949 for ac_prog in mkdir 7950 do 7951 # Extract the first word of "$ac_prog", so it can be a program name with args. 7952 set dummy $ac_prog; ac_word=$2 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954 $as_echo_n "checking for $ac_word... " >&6; } 7955 if ${ac_cv_path_MKDIR+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957 else 7958 case $MKDIR in 7959 [\\/]* | ?:[\\/]*) 7960 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7961 ;; 7962 *) 7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7964 for as_dir in $PATH 7965 do 7966 IFS=$as_save_IFS 7967 test -z "$as_dir" && as_dir=. 7968 for ac_exec_ext in '' $ac_executable_extensions; do 7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7970 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7972 break 2 7973 fi 7974 done 7975 done 7976 IFS=$as_save_IFS 7977 7978 ;; 7979 esac 7980 fi 7981 MKDIR=$ac_cv_path_MKDIR 7982 if test -n "$MKDIR"; then 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7984 $as_echo "$MKDIR" >&6; } 7985 else 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7987 $as_echo "no" >&6; } 7988 fi 7989 7990 7991 test -n "$MKDIR" && break 7992 done 7993 7994 else 7995 # If it succeeded, then it was overridden by the user. We will use it 7996 # for the tool. 7997 7998 # First remove it from the list of overridden variables, so we can test 7999 # for unknown variables in the end. 8000 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8001 8002 # Check if the provided tool contains a complete path. 8003 tool_specified="$MKDIR" 8004 tool_basename="${tool_specified##*/}" 8005 if test "x$tool_basename" = "x$tool_specified"; then 8006 # A command without a complete path is provided, search $PATH. 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8008 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8009 # Extract the first word of "$tool_basename", so it can be a program name with args. 8010 set dummy $tool_basename; ac_word=$2 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8012 $as_echo_n "checking for $ac_word... " >&6; } 8013 if ${ac_cv_path_MKDIR+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015 else 8016 case $MKDIR in 8017 [\\/]* | ?:[\\/]*) 8018 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8019 ;; 8020 *) 8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8022 for as_dir in $PATH 8023 do 8024 IFS=$as_save_IFS 8025 test -z "$as_dir" && as_dir=. 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8028 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032 done 8033 done 8034 IFS=$as_save_IFS 8035 8036 ;; 8037 esac 8038 fi 8039 MKDIR=$ac_cv_path_MKDIR 8040 if test -n "$MKDIR"; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8042 $as_echo "$MKDIR" >&6; } 8043 else 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8045 $as_echo "no" >&6; } 8046 fi 8047 8048 8049 if test "x$MKDIR" = x; then 8050 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8051 fi 8052 else 8053 # Otherwise we believe it is a complete path. Use it as it is. 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8055 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8057 $as_echo_n "checking for MKDIR... " >&6; } 8058 if test ! -x "$tool_specified"; then 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8060 $as_echo "not found" >&6; } 8061 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8062 fi 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8064 $as_echo "$tool_specified" >&6; } 8065 fi 8066 fi 8067 fi 8068 8069 8070 8071 if test "x$MKDIR" = x; then 8072 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8073 fi 8074 8075 8076 8077 8078 8079 # Publish this variable in the help. 8080 8081 8082 if test "x$MKTEMP" = x; then 8083 # The variable is not set by user, try to locate tool using the code snippet 8084 for ac_prog in mktemp 8085 do 8086 # Extract the first word of "$ac_prog", so it can be a program name with args. 8087 set dummy $ac_prog; ac_word=$2 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8089 $as_echo_n "checking for $ac_word... " >&6; } 8090 if ${ac_cv_path_MKTEMP+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092 else 8093 case $MKTEMP in 8094 [\\/]* | ?:[\\/]*) 8095 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8096 ;; 8097 *) 8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8099 for as_dir in $PATH 8100 do 8101 IFS=$as_save_IFS 8102 test -z "$as_dir" && as_dir=. 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8105 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109 done 8110 done 8111 IFS=$as_save_IFS 8112 8113 ;; 8114 esac 8115 fi 8116 MKTEMP=$ac_cv_path_MKTEMP 8117 if test -n "$MKTEMP"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8119 $as_echo "$MKTEMP" >&6; } 8120 else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122 $as_echo "no" >&6; } 8123 fi 8124 8125 8126 test -n "$MKTEMP" && break 8127 done 8128 8129 else 8130 # The variable is set, but is it from the command line or the environment? 8131 8132 # Try to remove the string !MKTEMP! from our list. 8133 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8134 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8135 # If it failed, the variable was not from the command line. Ignore it, 8136 # but warn the user (except for BASH, which is always set by the calling BASH). 8137 if test "xMKTEMP" != xBASH; then 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8139 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8140 fi 8141 # Try to locate tool using the code snippet 8142 for ac_prog in mktemp 8143 do 8144 # Extract the first word of "$ac_prog", so it can be a program name with args. 8145 set dummy $ac_prog; ac_word=$2 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8147 $as_echo_n "checking for $ac_word... " >&6; } 8148 if ${ac_cv_path_MKTEMP+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150 else 8151 case $MKTEMP in 8152 [\\/]* | ?:[\\/]*) 8153 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8154 ;; 8155 *) 8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8157 for as_dir in $PATH 8158 do 8159 IFS=$as_save_IFS 8160 test -z "$as_dir" && as_dir=. 8161 for ac_exec_ext in '' $ac_executable_extensions; do 8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8163 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8165 break 2 8166 fi 8167 done 8168 done 8169 IFS=$as_save_IFS 8170 8171 ;; 8172 esac 8173 fi 8174 MKTEMP=$ac_cv_path_MKTEMP 8175 if test -n "$MKTEMP"; then 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8177 $as_echo "$MKTEMP" >&6; } 8178 else 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8180 $as_echo "no" >&6; } 8181 fi 8182 8183 8184 test -n "$MKTEMP" && break 8185 done 8186 8187 else 8188 # If it succeeded, then it was overridden by the user. We will use it 8189 # for the tool. 8190 8191 # First remove it from the list of overridden variables, so we can test 8192 # for unknown variables in the end. 8193 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8194 8195 # Check if the provided tool contains a complete path. 8196 tool_specified="$MKTEMP" 8197 tool_basename="${tool_specified##*/}" 8198 if test "x$tool_basename" = "x$tool_specified"; then 8199 # A command without a complete path is provided, search $PATH. 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8201 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8202 # Extract the first word of "$tool_basename", so it can be a program name with args. 8203 set dummy $tool_basename; ac_word=$2 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8205 $as_echo_n "checking for $ac_word... " >&6; } 8206 if ${ac_cv_path_MKTEMP+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208 else 8209 case $MKTEMP in 8210 [\\/]* | ?:[\\/]*) 8211 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8212 ;; 8213 *) 8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8215 for as_dir in $PATH 8216 do 8217 IFS=$as_save_IFS 8218 test -z "$as_dir" && as_dir=. 8219 for ac_exec_ext in '' $ac_executable_extensions; do 8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8221 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8223 break 2 8224 fi 8225 done 8226 done 8227 IFS=$as_save_IFS 8228 8229 ;; 8230 esac 8231 fi 8232 MKTEMP=$ac_cv_path_MKTEMP 8233 if test -n "$MKTEMP"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8235 $as_echo "$MKTEMP" >&6; } 8236 else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238 $as_echo "no" >&6; } 8239 fi 8240 8241 8242 if test "x$MKTEMP" = x; then 8243 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8244 fi 8245 else 8246 # Otherwise we believe it is a complete path. Use it as it is. 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8248 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8250 $as_echo_n "checking for MKTEMP... " >&6; } 8251 if test ! -x "$tool_specified"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8253 $as_echo "not found" >&6; } 8254 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8255 fi 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8257 $as_echo "$tool_specified" >&6; } 8258 fi 8259 fi 8260 fi 8261 8262 8263 8264 if test "x$MKTEMP" = x; then 8265 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8266 fi 8267 8268 8269 8270 8271 8272 # Publish this variable in the help. 8273 8274 8275 if test "x$MV" = x; then 8276 # The variable is not set by user, try to locate tool using the code snippet 8277 for ac_prog in mv 8278 do 8279 # Extract the first word of "$ac_prog", so it can be a program name with args. 8280 set dummy $ac_prog; ac_word=$2 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8282 $as_echo_n "checking for $ac_word... " >&6; } 8283 if ${ac_cv_path_MV+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285 else 8286 case $MV in 8287 [\\/]* | ?:[\\/]*) 8288 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8289 ;; 8290 *) 8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8292 for as_dir in $PATH 8293 do 8294 IFS=$as_save_IFS 8295 test -z "$as_dir" && as_dir=. 8296 for ac_exec_ext in '' $ac_executable_extensions; do 8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8298 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8300 break 2 8301 fi 8302 done 8303 done 8304 IFS=$as_save_IFS 8305 8306 ;; 8307 esac 8308 fi 8309 MV=$ac_cv_path_MV 8310 if test -n "$MV"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8312 $as_echo "$MV" >&6; } 8313 else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315 $as_echo "no" >&6; } 8316 fi 8317 8318 8319 test -n "$MV" && break 8320 done 8321 8322 else 8323 # The variable is set, but is it from the command line or the environment? 8324 8325 # Try to remove the string !MV! from our list. 8326 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8327 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8328 # If it failed, the variable was not from the command line. Ignore it, 8329 # but warn the user (except for BASH, which is always set by the calling BASH). 8330 if test "xMV" != xBASH; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8332 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8333 fi 8334 # Try to locate tool using the code snippet 8335 for ac_prog in mv 8336 do 8337 # Extract the first word of "$ac_prog", so it can be a program name with args. 8338 set dummy $ac_prog; ac_word=$2 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8340 $as_echo_n "checking for $ac_word... " >&6; } 8341 if ${ac_cv_path_MV+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343 else 8344 case $MV in 8345 [\\/]* | ?:[\\/]*) 8346 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8347 ;; 8348 *) 8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8350 for as_dir in $PATH 8351 do 8352 IFS=$as_save_IFS 8353 test -z "$as_dir" && as_dir=. 8354 for ac_exec_ext in '' $ac_executable_extensions; do 8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8356 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8358 break 2 8359 fi 8360 done 8361 done 8362 IFS=$as_save_IFS 8363 8364 ;; 8365 esac 8366 fi 8367 MV=$ac_cv_path_MV 8368 if test -n "$MV"; then 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8370 $as_echo "$MV" >&6; } 8371 else 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8373 $as_echo "no" >&6; } 8374 fi 8375 8376 8377 test -n "$MV" && break 8378 done 8379 8380 else 8381 # If it succeeded, then it was overridden by the user. We will use it 8382 # for the tool. 8383 8384 # First remove it from the list of overridden variables, so we can test 8385 # for unknown variables in the end. 8386 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8387 8388 # Check if the provided tool contains a complete path. 8389 tool_specified="$MV" 8390 tool_basename="${tool_specified##*/}" 8391 if test "x$tool_basename" = "x$tool_specified"; then 8392 # A command without a complete path is provided, search $PATH. 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8394 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8395 # Extract the first word of "$tool_basename", so it can be a program name with args. 8396 set dummy $tool_basename; ac_word=$2 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398 $as_echo_n "checking for $ac_word... " >&6; } 8399 if ${ac_cv_path_MV+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401 else 8402 case $MV in 8403 [\\/]* | ?:[\\/]*) 8404 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8405 ;; 8406 *) 8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408 for as_dir in $PATH 8409 do 8410 IFS=$as_save_IFS 8411 test -z "$as_dir" && as_dir=. 8412 for ac_exec_ext in '' $ac_executable_extensions; do 8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8414 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8416 break 2 8417 fi 8418 done 8419 done 8420 IFS=$as_save_IFS 8421 8422 ;; 8423 esac 8424 fi 8425 MV=$ac_cv_path_MV 8426 if test -n "$MV"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8428 $as_echo "$MV" >&6; } 8429 else 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431 $as_echo "no" >&6; } 8432 fi 8433 8434 8435 if test "x$MV" = x; then 8436 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8437 fi 8438 else 8439 # Otherwise we believe it is a complete path. Use it as it is. 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8441 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8443 $as_echo_n "checking for MV... " >&6; } 8444 if test ! -x "$tool_specified"; then 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8446 $as_echo "not found" >&6; } 8447 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8448 fi 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8450 $as_echo "$tool_specified" >&6; } 8451 fi 8452 fi 8453 fi 8454 8455 8456 8457 if test "x$MV" = x; then 8458 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8459 fi 8460 8461 8462 8463 8464 8465 # Publish this variable in the help. 8466 8467 8468 if test "x$NAWK" = x; then 8469 # The variable is not set by user, try to locate tool using the code snippet 8470 for ac_prog in nawk gawk awk 8471 do 8472 # Extract the first word of "$ac_prog", so it can be a program name with args. 8473 set dummy $ac_prog; ac_word=$2 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8475 $as_echo_n "checking for $ac_word... " >&6; } 8476 if ${ac_cv_path_NAWK+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478 else 8479 case $NAWK in 8480 [\\/]* | ?:[\\/]*) 8481 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8482 ;; 8483 *) 8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8485 for as_dir in $PATH 8486 do 8487 IFS=$as_save_IFS 8488 test -z "$as_dir" && as_dir=. 8489 for ac_exec_ext in '' $ac_executable_extensions; do 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8491 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8493 break 2 8494 fi 8495 done 8496 done 8497 IFS=$as_save_IFS 8498 8499 ;; 8500 esac 8501 fi 8502 NAWK=$ac_cv_path_NAWK 8503 if test -n "$NAWK"; then 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8505 $as_echo "$NAWK" >&6; } 8506 else 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8508 $as_echo "no" >&6; } 8509 fi 8510 8511 8512 test -n "$NAWK" && break 8513 done 8514 8515 else 8516 # The variable is set, but is it from the command line or the environment? 8517 8518 # Try to remove the string !NAWK! from our list. 8519 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8520 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8521 # If it failed, the variable was not from the command line. Ignore it, 8522 # but warn the user (except for BASH, which is always set by the calling BASH). 8523 if test "xNAWK" != xBASH; then 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8525 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8526 fi 8527 # Try to locate tool using the code snippet 8528 for ac_prog in nawk gawk awk 8529 do 8530 # Extract the first word of "$ac_prog", so it can be a program name with args. 8531 set dummy $ac_prog; ac_word=$2 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8533 $as_echo_n "checking for $ac_word... " >&6; } 8534 if ${ac_cv_path_NAWK+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536 else 8537 case $NAWK in 8538 [\\/]* | ?:[\\/]*) 8539 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8540 ;; 8541 *) 8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8543 for as_dir in $PATH 8544 do 8545 IFS=$as_save_IFS 8546 test -z "$as_dir" && as_dir=. 8547 for ac_exec_ext in '' $ac_executable_extensions; do 8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8549 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8551 break 2 8552 fi 8553 done 8554 done 8555 IFS=$as_save_IFS 8556 8557 ;; 8558 esac 8559 fi 8560 NAWK=$ac_cv_path_NAWK 8561 if test -n "$NAWK"; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8563 $as_echo "$NAWK" >&6; } 8564 else 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8566 $as_echo "no" >&6; } 8567 fi 8568 8569 8570 test -n "$NAWK" && break 8571 done 8572 8573 else 8574 # If it succeeded, then it was overridden by the user. We will use it 8575 # for the tool. 8576 8577 # First remove it from the list of overridden variables, so we can test 8578 # for unknown variables in the end. 8579 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8580 8581 # Check if the provided tool contains a complete path. 8582 tool_specified="$NAWK" 8583 tool_basename="${tool_specified##*/}" 8584 if test "x$tool_basename" = "x$tool_specified"; then 8585 # A command without a complete path is provided, search $PATH. 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8587 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8588 # Extract the first word of "$tool_basename", so it can be a program name with args. 8589 set dummy $tool_basename; ac_word=$2 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8591 $as_echo_n "checking for $ac_word... " >&6; } 8592 if ${ac_cv_path_NAWK+:} false; then : 8593 $as_echo_n "(cached) " >&6 8594 else 8595 case $NAWK in 8596 [\\/]* | ?:[\\/]*) 8597 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8598 ;; 8599 *) 8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8601 for as_dir in $PATH 8602 do 8603 IFS=$as_save_IFS 8604 test -z "$as_dir" && as_dir=. 8605 for ac_exec_ext in '' $ac_executable_extensions; do 8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8607 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8609 break 2 8610 fi 8611 done 8612 done 8613 IFS=$as_save_IFS 8614 8615 ;; 8616 esac 8617 fi 8618 NAWK=$ac_cv_path_NAWK 8619 if test -n "$NAWK"; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8621 $as_echo "$NAWK" >&6; } 8622 else 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8624 $as_echo "no" >&6; } 8625 fi 8626 8627 8628 if test "x$NAWK" = x; then 8629 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8630 fi 8631 else 8632 # Otherwise we believe it is a complete path. Use it as it is. 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8634 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8636 $as_echo_n "checking for NAWK... " >&6; } 8637 if test ! -x "$tool_specified"; then 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8639 $as_echo "not found" >&6; } 8640 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8641 fi 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8643 $as_echo "$tool_specified" >&6; } 8644 fi 8645 fi 8646 fi 8647 8648 8649 8650 if test "x$NAWK" = x; then 8651 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8652 fi 8653 8654 8655 8656 8657 8658 # Publish this variable in the help. 8659 8660 8661 if test "x$PRINTF" = x; then 8662 # The variable is not set by user, try to locate tool using the code snippet 8663 for ac_prog in printf 8664 do 8665 # Extract the first word of "$ac_prog", so it can be a program name with args. 8666 set dummy $ac_prog; ac_word=$2 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8668 $as_echo_n "checking for $ac_word... " >&6; } 8669 if ${ac_cv_path_PRINTF+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671 else 8672 case $PRINTF in 8673 [\\/]* | ?:[\\/]*) 8674 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8675 ;; 8676 *) 8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678 for as_dir in $PATH 8679 do 8680 IFS=$as_save_IFS 8681 test -z "$as_dir" && as_dir=. 8682 for ac_exec_ext in '' $ac_executable_extensions; do 8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8684 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8686 break 2 8687 fi 8688 done 8689 done 8690 IFS=$as_save_IFS 8691 8692 ;; 8693 esac 8694 fi 8695 PRINTF=$ac_cv_path_PRINTF 8696 if test -n "$PRINTF"; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8698 $as_echo "$PRINTF" >&6; } 8699 else 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701 $as_echo "no" >&6; } 8702 fi 8703 8704 8705 test -n "$PRINTF" && break 8706 done 8707 8708 else 8709 # The variable is set, but is it from the command line or the environment? 8710 8711 # Try to remove the string !PRINTF! from our list. 8712 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8713 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8714 # If it failed, the variable was not from the command line. Ignore it, 8715 # but warn the user (except for BASH, which is always set by the calling BASH). 8716 if test "xPRINTF" != xBASH; then 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8718 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8719 fi 8720 # Try to locate tool using the code snippet 8721 for ac_prog in printf 8722 do 8723 # Extract the first word of "$ac_prog", so it can be a program name with args. 8724 set dummy $ac_prog; ac_word=$2 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8726 $as_echo_n "checking for $ac_word... " >&6; } 8727 if ${ac_cv_path_PRINTF+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729 else 8730 case $PRINTF in 8731 [\\/]* | ?:[\\/]*) 8732 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8733 ;; 8734 *) 8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8736 for as_dir in $PATH 8737 do 8738 IFS=$as_save_IFS 8739 test -z "$as_dir" && as_dir=. 8740 for ac_exec_ext in '' $ac_executable_extensions; do 8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8742 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8744 break 2 8745 fi 8746 done 8747 done 8748 IFS=$as_save_IFS 8749 8750 ;; 8751 esac 8752 fi 8753 PRINTF=$ac_cv_path_PRINTF 8754 if test -n "$PRINTF"; then 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8756 $as_echo "$PRINTF" >&6; } 8757 else 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8759 $as_echo "no" >&6; } 8760 fi 8761 8762 8763 test -n "$PRINTF" && break 8764 done 8765 8766 else 8767 # If it succeeded, then it was overridden by the user. We will use it 8768 # for the tool. 8769 8770 # First remove it from the list of overridden variables, so we can test 8771 # for unknown variables in the end. 8772 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8773 8774 # Check if the provided tool contains a complete path. 8775 tool_specified="$PRINTF" 8776 tool_basename="${tool_specified##*/}" 8777 if test "x$tool_basename" = "x$tool_specified"; then 8778 # A command without a complete path is provided, search $PATH. 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8780 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8781 # Extract the first word of "$tool_basename", so it can be a program name with args. 8782 set dummy $tool_basename; ac_word=$2 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8784 $as_echo_n "checking for $ac_word... " >&6; } 8785 if ${ac_cv_path_PRINTF+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787 else 8788 case $PRINTF in 8789 [\\/]* | ?:[\\/]*) 8790 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8791 ;; 8792 *) 8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8794 for as_dir in $PATH 8795 do 8796 IFS=$as_save_IFS 8797 test -z "$as_dir" && as_dir=. 8798 for ac_exec_ext in '' $ac_executable_extensions; do 8799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8800 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8802 break 2 8803 fi 8804 done 8805 done 8806 IFS=$as_save_IFS 8807 8808 ;; 8809 esac 8810 fi 8811 PRINTF=$ac_cv_path_PRINTF 8812 if test -n "$PRINTF"; then 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8814 $as_echo "$PRINTF" >&6; } 8815 else 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8817 $as_echo "no" >&6; } 8818 fi 8819 8820 8821 if test "x$PRINTF" = x; then 8822 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8823 fi 8824 else 8825 # Otherwise we believe it is a complete path. Use it as it is. 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8827 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8829 $as_echo_n "checking for PRINTF... " >&6; } 8830 if test ! -x "$tool_specified"; then 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8832 $as_echo "not found" >&6; } 8833 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8834 fi 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8836 $as_echo "$tool_specified" >&6; } 8837 fi 8838 fi 8839 fi 8840 8841 8842 8843 if test "x$PRINTF" = x; then 8844 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8845 fi 8846 8847 8848 8849 8850 8851 # Publish this variable in the help. 8852 8853 8854 if test "x$RM" = x; then 8855 # The variable is not set by user, try to locate tool using the code snippet 8856 for ac_prog in rm 8857 do 8858 # Extract the first word of "$ac_prog", so it can be a program name with args. 8859 set dummy $ac_prog; ac_word=$2 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861 $as_echo_n "checking for $ac_word... " >&6; } 8862 if ${ac_cv_path_RM+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864 else 8865 case $RM in 8866 [\\/]* | ?:[\\/]*) 8867 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8868 ;; 8869 *) 8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8871 for as_dir in $PATH 8872 do 8873 IFS=$as_save_IFS 8874 test -z "$as_dir" && as_dir=. 8875 for ac_exec_ext in '' $ac_executable_extensions; do 8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8877 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8879 break 2 8880 fi 8881 done 8882 done 8883 IFS=$as_save_IFS 8884 8885 ;; 8886 esac 8887 fi 8888 RM=$ac_cv_path_RM 8889 if test -n "$RM"; then 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8891 $as_echo "$RM" >&6; } 8892 else 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8894 $as_echo "no" >&6; } 8895 fi 8896 8897 8898 test -n "$RM" && break 8899 done 8900 8901 else 8902 # The variable is set, but is it from the command line or the environment? 8903 8904 # Try to remove the string !RM! from our list. 8905 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8906 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8907 # If it failed, the variable was not from the command line. Ignore it, 8908 # but warn the user (except for BASH, which is always set by the calling BASH). 8909 if test "xRM" != xBASH; then 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8911 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8912 fi 8913 # Try to locate tool using the code snippet 8914 for ac_prog in rm 8915 do 8916 # Extract the first word of "$ac_prog", so it can be a program name with args. 8917 set dummy $ac_prog; ac_word=$2 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8919 $as_echo_n "checking for $ac_word... " >&6; } 8920 if ${ac_cv_path_RM+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922 else 8923 case $RM in 8924 [\\/]* | ?:[\\/]*) 8925 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8926 ;; 8927 *) 8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8929 for as_dir in $PATH 8930 do 8931 IFS=$as_save_IFS 8932 test -z "$as_dir" && as_dir=. 8933 for ac_exec_ext in '' $ac_executable_extensions; do 8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8935 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8937 break 2 8938 fi 8939 done 8940 done 8941 IFS=$as_save_IFS 8942 8943 ;; 8944 esac 8945 fi 8946 RM=$ac_cv_path_RM 8947 if test -n "$RM"; then 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8949 $as_echo "$RM" >&6; } 8950 else 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8952 $as_echo "no" >&6; } 8953 fi 8954 8955 8956 test -n "$RM" && break 8957 done 8958 8959 else 8960 # If it succeeded, then it was overridden by the user. We will use it 8961 # for the tool. 8962 8963 # First remove it from the list of overridden variables, so we can test 8964 # for unknown variables in the end. 8965 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8966 8967 # Check if the provided tool contains a complete path. 8968 tool_specified="$RM" 8969 tool_basename="${tool_specified##*/}" 8970 if test "x$tool_basename" = "x$tool_specified"; then 8971 # A command without a complete path is provided, search $PATH. 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8973 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8974 # Extract the first word of "$tool_basename", so it can be a program name with args. 8975 set dummy $tool_basename; ac_word=$2 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8977 $as_echo_n "checking for $ac_word... " >&6; } 8978 if ${ac_cv_path_RM+:} false; then : 8979 $as_echo_n "(cached) " >&6 8980 else 8981 case $RM in 8982 [\\/]* | ?:[\\/]*) 8983 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8984 ;; 8985 *) 8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8987 for as_dir in $PATH 8988 do 8989 IFS=$as_save_IFS 8990 test -z "$as_dir" && as_dir=. 8991 for ac_exec_ext in '' $ac_executable_extensions; do 8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8993 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8995 break 2 8996 fi 8997 done 8998 done 8999 IFS=$as_save_IFS 9000 9001 ;; 9002 esac 9003 fi 9004 RM=$ac_cv_path_RM 9005 if test -n "$RM"; then 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9007 $as_echo "$RM" >&6; } 9008 else 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010 $as_echo "no" >&6; } 9011 fi 9012 9013 9014 if test "x$RM" = x; then 9015 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9016 fi 9017 else 9018 # Otherwise we believe it is a complete path. Use it as it is. 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9020 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9022 $as_echo_n "checking for RM... " >&6; } 9023 if test ! -x "$tool_specified"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9025 $as_echo "not found" >&6; } 9026 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9027 fi 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9029 $as_echo "$tool_specified" >&6; } 9030 fi 9031 fi 9032 fi 9033 9034 9035 9036 if test "x$RM" = x; then 9037 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9038 fi 9039 9040 9041 9042 9043 9044 # Publish this variable in the help. 9045 9046 9047 if test "x$SH" = x; then 9048 # The variable is not set by user, try to locate tool using the code snippet 9049 for ac_prog in sh 9050 do 9051 # Extract the first word of "$ac_prog", so it can be a program name with args. 9052 set dummy $ac_prog; ac_word=$2 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9054 $as_echo_n "checking for $ac_word... " >&6; } 9055 if ${ac_cv_path_SH+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057 else 9058 case $SH in 9059 [\\/]* | ?:[\\/]*) 9060 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9061 ;; 9062 *) 9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9064 for as_dir in $PATH 9065 do 9066 IFS=$as_save_IFS 9067 test -z "$as_dir" && as_dir=. 9068 for ac_exec_ext in '' $ac_executable_extensions; do 9069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9070 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9072 break 2 9073 fi 9074 done 9075 done 9076 IFS=$as_save_IFS 9077 9078 ;; 9079 esac 9080 fi 9081 SH=$ac_cv_path_SH 9082 if test -n "$SH"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9084 $as_echo "$SH" >&6; } 9085 else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087 $as_echo "no" >&6; } 9088 fi 9089 9090 9091 test -n "$SH" && break 9092 done 9093 9094 else 9095 # The variable is set, but is it from the command line or the environment? 9096 9097 # Try to remove the string !SH! from our list. 9098 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9099 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9100 # If it failed, the variable was not from the command line. Ignore it, 9101 # but warn the user (except for BASH, which is always set by the calling BASH). 9102 if test "xSH" != xBASH; then 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9104 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9105 fi 9106 # Try to locate tool using the code snippet 9107 for ac_prog in sh 9108 do 9109 # Extract the first word of "$ac_prog", so it can be a program name with args. 9110 set dummy $ac_prog; ac_word=$2 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9112 $as_echo_n "checking for $ac_word... " >&6; } 9113 if ${ac_cv_path_SH+:} false; then : 9114 $as_echo_n "(cached) " >&6 9115 else 9116 case $SH in 9117 [\\/]* | ?:[\\/]*) 9118 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9119 ;; 9120 *) 9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9122 for as_dir in $PATH 9123 do 9124 IFS=$as_save_IFS 9125 test -z "$as_dir" && as_dir=. 9126 for ac_exec_ext in '' $ac_executable_extensions; do 9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9128 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9130 break 2 9131 fi 9132 done 9133 done 9134 IFS=$as_save_IFS 9135 9136 ;; 9137 esac 9138 fi 9139 SH=$ac_cv_path_SH 9140 if test -n "$SH"; then 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9142 $as_echo "$SH" >&6; } 9143 else 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9145 $as_echo "no" >&6; } 9146 fi 9147 9148 9149 test -n "$SH" && break 9150 done 9151 9152 else 9153 # If it succeeded, then it was overridden by the user. We will use it 9154 # for the tool. 9155 9156 # First remove it from the list of overridden variables, so we can test 9157 # for unknown variables in the end. 9158 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9159 9160 # Check if the provided tool contains a complete path. 9161 tool_specified="$SH" 9162 tool_basename="${tool_specified##*/}" 9163 if test "x$tool_basename" = "x$tool_specified"; then 9164 # A command without a complete path is provided, search $PATH. 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9166 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9167 # Extract the first word of "$tool_basename", so it can be a program name with args. 9168 set dummy $tool_basename; ac_word=$2 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9170 $as_echo_n "checking for $ac_word... " >&6; } 9171 if ${ac_cv_path_SH+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173 else 9174 case $SH in 9175 [\\/]* | ?:[\\/]*) 9176 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9177 ;; 9178 *) 9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9180 for as_dir in $PATH 9181 do 9182 IFS=$as_save_IFS 9183 test -z "$as_dir" && as_dir=. 9184 for ac_exec_ext in '' $ac_executable_extensions; do 9185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9186 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9188 break 2 9189 fi 9190 done 9191 done 9192 IFS=$as_save_IFS 9193 9194 ;; 9195 esac 9196 fi 9197 SH=$ac_cv_path_SH 9198 if test -n "$SH"; then 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9200 $as_echo "$SH" >&6; } 9201 else 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9203 $as_echo "no" >&6; } 9204 fi 9205 9206 9207 if test "x$SH" = x; then 9208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9209 fi 9210 else 9211 # Otherwise we believe it is a complete path. Use it as it is. 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9213 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9215 $as_echo_n "checking for SH... " >&6; } 9216 if test ! -x "$tool_specified"; then 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9218 $as_echo "not found" >&6; } 9219 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9220 fi 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9222 $as_echo "$tool_specified" >&6; } 9223 fi 9224 fi 9225 fi 9226 9227 9228 9229 if test "x$SH" = x; then 9230 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9231 fi 9232 9233 9234 9235 9236 9237 # Publish this variable in the help. 9238 9239 9240 if test "x$SORT" = x; then 9241 # The variable is not set by user, try to locate tool using the code snippet 9242 for ac_prog in sort 9243 do 9244 # Extract the first word of "$ac_prog", so it can be a program name with args. 9245 set dummy $ac_prog; ac_word=$2 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9247 $as_echo_n "checking for $ac_word... " >&6; } 9248 if ${ac_cv_path_SORT+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250 else 9251 case $SORT in 9252 [\\/]* | ?:[\\/]*) 9253 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9254 ;; 9255 *) 9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257 for as_dir in $PATH 9258 do 9259 IFS=$as_save_IFS 9260 test -z "$as_dir" && as_dir=. 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9263 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267 done 9268 done 9269 IFS=$as_save_IFS 9270 9271 ;; 9272 esac 9273 fi 9274 SORT=$ac_cv_path_SORT 9275 if test -n "$SORT"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9277 $as_echo "$SORT" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 test -n "$SORT" && break 9285 done 9286 9287 else 9288 # The variable is set, but is it from the command line or the environment? 9289 9290 # Try to remove the string !SORT! from our list. 9291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9293 # If it failed, the variable was not from the command line. Ignore it, 9294 # but warn the user (except for BASH, which is always set by the calling BASH). 9295 if test "xSORT" != xBASH; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9297 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9298 fi 9299 # Try to locate tool using the code snippet 9300 for ac_prog in sort 9301 do 9302 # Extract the first word of "$ac_prog", so it can be a program name with args. 9303 set dummy $ac_prog; ac_word=$2 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9305 $as_echo_n "checking for $ac_word... " >&6; } 9306 if ${ac_cv_path_SORT+:} false; then : 9307 $as_echo_n "(cached) " >&6 9308 else 9309 case $SORT in 9310 [\\/]* | ?:[\\/]*) 9311 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9312 ;; 9313 *) 9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9315 for as_dir in $PATH 9316 do 9317 IFS=$as_save_IFS 9318 test -z "$as_dir" && as_dir=. 9319 for ac_exec_ext in '' $ac_executable_extensions; do 9320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9321 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9323 break 2 9324 fi 9325 done 9326 done 9327 IFS=$as_save_IFS 9328 9329 ;; 9330 esac 9331 fi 9332 SORT=$ac_cv_path_SORT 9333 if test -n "$SORT"; then 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9335 $as_echo "$SORT" >&6; } 9336 else 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9338 $as_echo "no" >&6; } 9339 fi 9340 9341 9342 test -n "$SORT" && break 9343 done 9344 9345 else 9346 # If it succeeded, then it was overridden by the user. We will use it 9347 # for the tool. 9348 9349 # First remove it from the list of overridden variables, so we can test 9350 # for unknown variables in the end. 9351 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9352 9353 # Check if the provided tool contains a complete path. 9354 tool_specified="$SORT" 9355 tool_basename="${tool_specified##*/}" 9356 if test "x$tool_basename" = "x$tool_specified"; then 9357 # A command without a complete path is provided, search $PATH. 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9359 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9360 # Extract the first word of "$tool_basename", so it can be a program name with args. 9361 set dummy $tool_basename; ac_word=$2 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9363 $as_echo_n "checking for $ac_word... " >&6; } 9364 if ${ac_cv_path_SORT+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366 else 9367 case $SORT in 9368 [\\/]* | ?:[\\/]*) 9369 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9370 ;; 9371 *) 9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9373 for as_dir in $PATH 9374 do 9375 IFS=$as_save_IFS 9376 test -z "$as_dir" && as_dir=. 9377 for ac_exec_ext in '' $ac_executable_extensions; do 9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9379 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9381 break 2 9382 fi 9383 done 9384 done 9385 IFS=$as_save_IFS 9386 9387 ;; 9388 esac 9389 fi 9390 SORT=$ac_cv_path_SORT 9391 if test -n "$SORT"; then 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9393 $as_echo "$SORT" >&6; } 9394 else 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9396 $as_echo "no" >&6; } 9397 fi 9398 9399 9400 if test "x$SORT" = x; then 9401 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9402 fi 9403 else 9404 # Otherwise we believe it is a complete path. Use it as it is. 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9406 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9408 $as_echo_n "checking for SORT... " >&6; } 9409 if test ! -x "$tool_specified"; then 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9411 $as_echo "not found" >&6; } 9412 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9413 fi 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9415 $as_echo "$tool_specified" >&6; } 9416 fi 9417 fi 9418 fi 9419 9420 9421 9422 if test "x$SORT" = x; then 9423 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9424 fi 9425 9426 9427 9428 9429 9430 # Publish this variable in the help. 9431 9432 9433 if test "x$TAIL" = x; then 9434 # The variable is not set by user, try to locate tool using the code snippet 9435 for ac_prog in tail 9436 do 9437 # Extract the first word of "$ac_prog", so it can be a program name with args. 9438 set dummy $ac_prog; ac_word=$2 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9440 $as_echo_n "checking for $ac_word... " >&6; } 9441 if ${ac_cv_path_TAIL+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443 else 9444 case $TAIL in 9445 [\\/]* | ?:[\\/]*) 9446 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9447 ;; 9448 *) 9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9450 for as_dir in $PATH 9451 do 9452 IFS=$as_save_IFS 9453 test -z "$as_dir" && as_dir=. 9454 for ac_exec_ext in '' $ac_executable_extensions; do 9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9456 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9458 break 2 9459 fi 9460 done 9461 done 9462 IFS=$as_save_IFS 9463 9464 ;; 9465 esac 9466 fi 9467 TAIL=$ac_cv_path_TAIL 9468 if test -n "$TAIL"; then 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9470 $as_echo "$TAIL" >&6; } 9471 else 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9473 $as_echo "no" >&6; } 9474 fi 9475 9476 9477 test -n "$TAIL" && break 9478 done 9479 9480 else 9481 # The variable is set, but is it from the command line or the environment? 9482 9483 # Try to remove the string !TAIL! from our list. 9484 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9485 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9486 # If it failed, the variable was not from the command line. Ignore it, 9487 # but warn the user (except for BASH, which is always set by the calling BASH). 9488 if test "xTAIL" != xBASH; then 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9490 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9491 fi 9492 # Try to locate tool using the code snippet 9493 for ac_prog in tail 9494 do 9495 # Extract the first word of "$ac_prog", so it can be a program name with args. 9496 set dummy $ac_prog; ac_word=$2 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9498 $as_echo_n "checking for $ac_word... " >&6; } 9499 if ${ac_cv_path_TAIL+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501 else 9502 case $TAIL in 9503 [\\/]* | ?:[\\/]*) 9504 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9505 ;; 9506 *) 9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9508 for as_dir in $PATH 9509 do 9510 IFS=$as_save_IFS 9511 test -z "$as_dir" && as_dir=. 9512 for ac_exec_ext in '' $ac_executable_extensions; do 9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9514 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9516 break 2 9517 fi 9518 done 9519 done 9520 IFS=$as_save_IFS 9521 9522 ;; 9523 esac 9524 fi 9525 TAIL=$ac_cv_path_TAIL 9526 if test -n "$TAIL"; then 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9528 $as_echo "$TAIL" >&6; } 9529 else 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9531 $as_echo "no" >&6; } 9532 fi 9533 9534 9535 test -n "$TAIL" && break 9536 done 9537 9538 else 9539 # If it succeeded, then it was overridden by the user. We will use it 9540 # for the tool. 9541 9542 # First remove it from the list of overridden variables, so we can test 9543 # for unknown variables in the end. 9544 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9545 9546 # Check if the provided tool contains a complete path. 9547 tool_specified="$TAIL" 9548 tool_basename="${tool_specified##*/}" 9549 if test "x$tool_basename" = "x$tool_specified"; then 9550 # A command without a complete path is provided, search $PATH. 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9552 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9553 # Extract the first word of "$tool_basename", so it can be a program name with args. 9554 set dummy $tool_basename; ac_word=$2 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9556 $as_echo_n "checking for $ac_word... " >&6; } 9557 if ${ac_cv_path_TAIL+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559 else 9560 case $TAIL in 9561 [\\/]* | ?:[\\/]*) 9562 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9563 ;; 9564 *) 9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9566 for as_dir in $PATH 9567 do 9568 IFS=$as_save_IFS 9569 test -z "$as_dir" && as_dir=. 9570 for ac_exec_ext in '' $ac_executable_extensions; do 9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9572 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9574 break 2 9575 fi 9576 done 9577 done 9578 IFS=$as_save_IFS 9579 9580 ;; 9581 esac 9582 fi 9583 TAIL=$ac_cv_path_TAIL 9584 if test -n "$TAIL"; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9586 $as_echo "$TAIL" >&6; } 9587 else 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9589 $as_echo "no" >&6; } 9590 fi 9591 9592 9593 if test "x$TAIL" = x; then 9594 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9595 fi 9596 else 9597 # Otherwise we believe it is a complete path. Use it as it is. 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9599 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9601 $as_echo_n "checking for TAIL... " >&6; } 9602 if test ! -x "$tool_specified"; then 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9604 $as_echo "not found" >&6; } 9605 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9606 fi 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9608 $as_echo "$tool_specified" >&6; } 9609 fi 9610 fi 9611 fi 9612 9613 9614 9615 if test "x$TAIL" = x; then 9616 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9617 fi 9618 9619 9620 9621 9622 9623 # Publish this variable in the help. 9624 9625 9626 if test "x$TAR" = x; then 9627 # The variable is not set by user, try to locate tool using the code snippet 9628 for ac_prog in tar 9629 do 9630 # Extract the first word of "$ac_prog", so it can be a program name with args. 9631 set dummy $ac_prog; ac_word=$2 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9633 $as_echo_n "checking for $ac_word... " >&6; } 9634 if ${ac_cv_path_TAR+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636 else 9637 case $TAR in 9638 [\\/]* | ?:[\\/]*) 9639 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9640 ;; 9641 *) 9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9643 for as_dir in $PATH 9644 do 9645 IFS=$as_save_IFS 9646 test -z "$as_dir" && as_dir=. 9647 for ac_exec_ext in '' $ac_executable_extensions; do 9648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9649 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9651 break 2 9652 fi 9653 done 9654 done 9655 IFS=$as_save_IFS 9656 9657 ;; 9658 esac 9659 fi 9660 TAR=$ac_cv_path_TAR 9661 if test -n "$TAR"; then 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9663 $as_echo "$TAR" >&6; } 9664 else 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9666 $as_echo "no" >&6; } 9667 fi 9668 9669 9670 test -n "$TAR" && break 9671 done 9672 9673 else 9674 # The variable is set, but is it from the command line or the environment? 9675 9676 # Try to remove the string !TAR! from our list. 9677 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9678 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9679 # If it failed, the variable was not from the command line. Ignore it, 9680 # but warn the user (except for BASH, which is always set by the calling BASH). 9681 if test "xTAR" != xBASH; then 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9683 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9684 fi 9685 # Try to locate tool using the code snippet 9686 for ac_prog in tar 9687 do 9688 # Extract the first word of "$ac_prog", so it can be a program name with args. 9689 set dummy $ac_prog; ac_word=$2 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9691 $as_echo_n "checking for $ac_word... " >&6; } 9692 if ${ac_cv_path_TAR+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694 else 9695 case $TAR in 9696 [\\/]* | ?:[\\/]*) 9697 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9698 ;; 9699 *) 9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9701 for as_dir in $PATH 9702 do 9703 IFS=$as_save_IFS 9704 test -z "$as_dir" && as_dir=. 9705 for ac_exec_ext in '' $ac_executable_extensions; do 9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9707 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9709 break 2 9710 fi 9711 done 9712 done 9713 IFS=$as_save_IFS 9714 9715 ;; 9716 esac 9717 fi 9718 TAR=$ac_cv_path_TAR 9719 if test -n "$TAR"; then 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9721 $as_echo "$TAR" >&6; } 9722 else 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9724 $as_echo "no" >&6; } 9725 fi 9726 9727 9728 test -n "$TAR" && break 9729 done 9730 9731 else 9732 # If it succeeded, then it was overridden by the user. We will use it 9733 # for the tool. 9734 9735 # First remove it from the list of overridden variables, so we can test 9736 # for unknown variables in the end. 9737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9738 9739 # Check if the provided tool contains a complete path. 9740 tool_specified="$TAR" 9741 tool_basename="${tool_specified##*/}" 9742 if test "x$tool_basename" = "x$tool_specified"; then 9743 # A command without a complete path is provided, search $PATH. 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9745 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9746 # Extract the first word of "$tool_basename", so it can be a program name with args. 9747 set dummy $tool_basename; ac_word=$2 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9749 $as_echo_n "checking for $ac_word... " >&6; } 9750 if ${ac_cv_path_TAR+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752 else 9753 case $TAR in 9754 [\\/]* | ?:[\\/]*) 9755 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9756 ;; 9757 *) 9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9759 for as_dir in $PATH 9760 do 9761 IFS=$as_save_IFS 9762 test -z "$as_dir" && as_dir=. 9763 for ac_exec_ext in '' $ac_executable_extensions; do 9764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9765 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9767 break 2 9768 fi 9769 done 9770 done 9771 IFS=$as_save_IFS 9772 9773 ;; 9774 esac 9775 fi 9776 TAR=$ac_cv_path_TAR 9777 if test -n "$TAR"; then 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9779 $as_echo "$TAR" >&6; } 9780 else 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9782 $as_echo "no" >&6; } 9783 fi 9784 9785 9786 if test "x$TAR" = x; then 9787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9788 fi 9789 else 9790 # Otherwise we believe it is a complete path. Use it as it is. 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9792 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9794 $as_echo_n "checking for TAR... " >&6; } 9795 if test ! -x "$tool_specified"; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9797 $as_echo "not found" >&6; } 9798 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9799 fi 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9801 $as_echo "$tool_specified" >&6; } 9802 fi 9803 fi 9804 fi 9805 9806 9807 9808 if test "x$TAR" = x; then 9809 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9810 fi 9811 9812 9813 9814 9815 9816 # Publish this variable in the help. 9817 9818 9819 if test "x$TEE" = x; then 9820 # The variable is not set by user, try to locate tool using the code snippet 9821 for ac_prog in tee 9822 do 9823 # Extract the first word of "$ac_prog", so it can be a program name with args. 9824 set dummy $ac_prog; ac_word=$2 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9826 $as_echo_n "checking for $ac_word... " >&6; } 9827 if ${ac_cv_path_TEE+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829 else 9830 case $TEE in 9831 [\\/]* | ?:[\\/]*) 9832 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9833 ;; 9834 *) 9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9836 for as_dir in $PATH 9837 do 9838 IFS=$as_save_IFS 9839 test -z "$as_dir" && as_dir=. 9840 for ac_exec_ext in '' $ac_executable_extensions; do 9841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9842 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9844 break 2 9845 fi 9846 done 9847 done 9848 IFS=$as_save_IFS 9849 9850 ;; 9851 esac 9852 fi 9853 TEE=$ac_cv_path_TEE 9854 if test -n "$TEE"; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9856 $as_echo "$TEE" >&6; } 9857 else 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9859 $as_echo "no" >&6; } 9860 fi 9861 9862 9863 test -n "$TEE" && break 9864 done 9865 9866 else 9867 # The variable is set, but is it from the command line or the environment? 9868 9869 # Try to remove the string !TEE! from our list. 9870 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9871 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9872 # If it failed, the variable was not from the command line. Ignore it, 9873 # but warn the user (except for BASH, which is always set by the calling BASH). 9874 if test "xTEE" != xBASH; then 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9876 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9877 fi 9878 # Try to locate tool using the code snippet 9879 for ac_prog in tee 9880 do 9881 # Extract the first word of "$ac_prog", so it can be a program name with args. 9882 set dummy $ac_prog; ac_word=$2 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9884 $as_echo_n "checking for $ac_word... " >&6; } 9885 if ${ac_cv_path_TEE+:} false; then : 9886 $as_echo_n "(cached) " >&6 9887 else 9888 case $TEE in 9889 [\\/]* | ?:[\\/]*) 9890 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9891 ;; 9892 *) 9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9894 for as_dir in $PATH 9895 do 9896 IFS=$as_save_IFS 9897 test -z "$as_dir" && as_dir=. 9898 for ac_exec_ext in '' $ac_executable_extensions; do 9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9900 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9902 break 2 9903 fi 9904 done 9905 done 9906 IFS=$as_save_IFS 9907 9908 ;; 9909 esac 9910 fi 9911 TEE=$ac_cv_path_TEE 9912 if test -n "$TEE"; then 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9914 $as_echo "$TEE" >&6; } 9915 else 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9917 $as_echo "no" >&6; } 9918 fi 9919 9920 9921 test -n "$TEE" && break 9922 done 9923 9924 else 9925 # If it succeeded, then it was overridden by the user. We will use it 9926 # for the tool. 9927 9928 # First remove it from the list of overridden variables, so we can test 9929 # for unknown variables in the end. 9930 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9931 9932 # Check if the provided tool contains a complete path. 9933 tool_specified="$TEE" 9934 tool_basename="${tool_specified##*/}" 9935 if test "x$tool_basename" = "x$tool_specified"; then 9936 # A command without a complete path is provided, search $PATH. 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9938 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9939 # Extract the first word of "$tool_basename", so it can be a program name with args. 9940 set dummy $tool_basename; ac_word=$2 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9942 $as_echo_n "checking for $ac_word... " >&6; } 9943 if ${ac_cv_path_TEE+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945 else 9946 case $TEE in 9947 [\\/]* | ?:[\\/]*) 9948 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9949 ;; 9950 *) 9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9952 for as_dir in $PATH 9953 do 9954 IFS=$as_save_IFS 9955 test -z "$as_dir" && as_dir=. 9956 for ac_exec_ext in '' $ac_executable_extensions; do 9957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9958 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9960 break 2 9961 fi 9962 done 9963 done 9964 IFS=$as_save_IFS 9965 9966 ;; 9967 esac 9968 fi 9969 TEE=$ac_cv_path_TEE 9970 if test -n "$TEE"; then 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9972 $as_echo "$TEE" >&6; } 9973 else 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9975 $as_echo "no" >&6; } 9976 fi 9977 9978 9979 if test "x$TEE" = x; then 9980 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9981 fi 9982 else 9983 # Otherwise we believe it is a complete path. Use it as it is. 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9985 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9987 $as_echo_n "checking for TEE... " >&6; } 9988 if test ! -x "$tool_specified"; then 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9990 $as_echo "not found" >&6; } 9991 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9992 fi 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9994 $as_echo "$tool_specified" >&6; } 9995 fi 9996 fi 9997 fi 9998 9999 10000 10001 if test "x$TEE" = x; then 10002 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10003 fi 10004 10005 10006 10007 10008 10009 # Publish this variable in the help. 10010 10011 10012 if test "x$TOUCH" = x; then 10013 # The variable is not set by user, try to locate tool using the code snippet 10014 for ac_prog in touch 10015 do 10016 # Extract the first word of "$ac_prog", so it can be a program name with args. 10017 set dummy $ac_prog; ac_word=$2 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10019 $as_echo_n "checking for $ac_word... " >&6; } 10020 if ${ac_cv_path_TOUCH+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022 else 10023 case $TOUCH in 10024 [\\/]* | ?:[\\/]*) 10025 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10026 ;; 10027 *) 10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10029 for as_dir in $PATH 10030 do 10031 IFS=$as_save_IFS 10032 test -z "$as_dir" && as_dir=. 10033 for ac_exec_ext in '' $ac_executable_extensions; do 10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10035 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10037 break 2 10038 fi 10039 done 10040 done 10041 IFS=$as_save_IFS 10042 10043 ;; 10044 esac 10045 fi 10046 TOUCH=$ac_cv_path_TOUCH 10047 if test -n "$TOUCH"; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10049 $as_echo "$TOUCH" >&6; } 10050 else 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10052 $as_echo "no" >&6; } 10053 fi 10054 10055 10056 test -n "$TOUCH" && break 10057 done 10058 10059 else 10060 # The variable is set, but is it from the command line or the environment? 10061 10062 # Try to remove the string !TOUCH! from our list. 10063 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10064 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10065 # If it failed, the variable was not from the command line. Ignore it, 10066 # but warn the user (except for BASH, which is always set by the calling BASH). 10067 if test "xTOUCH" != xBASH; then 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10069 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10070 fi 10071 # Try to locate tool using the code snippet 10072 for ac_prog in touch 10073 do 10074 # Extract the first word of "$ac_prog", so it can be a program name with args. 10075 set dummy $ac_prog; ac_word=$2 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10077 $as_echo_n "checking for $ac_word... " >&6; } 10078 if ${ac_cv_path_TOUCH+:} false; then : 10079 $as_echo_n "(cached) " >&6 10080 else 10081 case $TOUCH in 10082 [\\/]* | ?:[\\/]*) 10083 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10084 ;; 10085 *) 10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10087 for as_dir in $PATH 10088 do 10089 IFS=$as_save_IFS 10090 test -z "$as_dir" && as_dir=. 10091 for ac_exec_ext in '' $ac_executable_extensions; do 10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10093 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10095 break 2 10096 fi 10097 done 10098 done 10099 IFS=$as_save_IFS 10100 10101 ;; 10102 esac 10103 fi 10104 TOUCH=$ac_cv_path_TOUCH 10105 if test -n "$TOUCH"; then 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10107 $as_echo "$TOUCH" >&6; } 10108 else 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10110 $as_echo "no" >&6; } 10111 fi 10112 10113 10114 test -n "$TOUCH" && break 10115 done 10116 10117 else 10118 # If it succeeded, then it was overridden by the user. We will use it 10119 # for the tool. 10120 10121 # First remove it from the list of overridden variables, so we can test 10122 # for unknown variables in the end. 10123 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10124 10125 # Check if the provided tool contains a complete path. 10126 tool_specified="$TOUCH" 10127 tool_basename="${tool_specified##*/}" 10128 if test "x$tool_basename" = "x$tool_specified"; then 10129 # A command without a complete path is provided, search $PATH. 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10131 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10132 # Extract the first word of "$tool_basename", so it can be a program name with args. 10133 set dummy $tool_basename; ac_word=$2 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10135 $as_echo_n "checking for $ac_word... " >&6; } 10136 if ${ac_cv_path_TOUCH+:} false; then : 10137 $as_echo_n "(cached) " >&6 10138 else 10139 case $TOUCH in 10140 [\\/]* | ?:[\\/]*) 10141 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10142 ;; 10143 *) 10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10145 for as_dir in $PATH 10146 do 10147 IFS=$as_save_IFS 10148 test -z "$as_dir" && as_dir=. 10149 for ac_exec_ext in '' $ac_executable_extensions; do 10150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10151 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10153 break 2 10154 fi 10155 done 10156 done 10157 IFS=$as_save_IFS 10158 10159 ;; 10160 esac 10161 fi 10162 TOUCH=$ac_cv_path_TOUCH 10163 if test -n "$TOUCH"; then 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10165 $as_echo "$TOUCH" >&6; } 10166 else 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10168 $as_echo "no" >&6; } 10169 fi 10170 10171 10172 if test "x$TOUCH" = x; then 10173 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10174 fi 10175 else 10176 # Otherwise we believe it is a complete path. Use it as it is. 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10178 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10180 $as_echo_n "checking for TOUCH... " >&6; } 10181 if test ! -x "$tool_specified"; then 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10183 $as_echo "not found" >&6; } 10184 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10185 fi 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10187 $as_echo "$tool_specified" >&6; } 10188 fi 10189 fi 10190 fi 10191 10192 10193 10194 if test "x$TOUCH" = x; then 10195 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10196 fi 10197 10198 10199 10200 10201 10202 # Publish this variable in the help. 10203 10204 10205 if test "x$TR" = x; then 10206 # The variable is not set by user, try to locate tool using the code snippet 10207 for ac_prog in tr 10208 do 10209 # Extract the first word of "$ac_prog", so it can be a program name with args. 10210 set dummy $ac_prog; ac_word=$2 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10212 $as_echo_n "checking for $ac_word... " >&6; } 10213 if ${ac_cv_path_TR+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215 else 10216 case $TR in 10217 [\\/]* | ?:[\\/]*) 10218 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10219 ;; 10220 *) 10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10222 for as_dir in $PATH 10223 do 10224 IFS=$as_save_IFS 10225 test -z "$as_dir" && as_dir=. 10226 for ac_exec_ext in '' $ac_executable_extensions; do 10227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10228 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10230 break 2 10231 fi 10232 done 10233 done 10234 IFS=$as_save_IFS 10235 10236 ;; 10237 esac 10238 fi 10239 TR=$ac_cv_path_TR 10240 if test -n "$TR"; then 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10242 $as_echo "$TR" >&6; } 10243 else 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10245 $as_echo "no" >&6; } 10246 fi 10247 10248 10249 test -n "$TR" && break 10250 done 10251 10252 else 10253 # The variable is set, but is it from the command line or the environment? 10254 10255 # Try to remove the string !TR! from our list. 10256 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10257 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10258 # If it failed, the variable was not from the command line. Ignore it, 10259 # but warn the user (except for BASH, which is always set by the calling BASH). 10260 if test "xTR" != xBASH; then 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10262 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10263 fi 10264 # Try to locate tool using the code snippet 10265 for ac_prog in tr 10266 do 10267 # Extract the first word of "$ac_prog", so it can be a program name with args. 10268 set dummy $ac_prog; ac_word=$2 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10270 $as_echo_n "checking for $ac_word... " >&6; } 10271 if ${ac_cv_path_TR+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273 else 10274 case $TR in 10275 [\\/]* | ?:[\\/]*) 10276 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10277 ;; 10278 *) 10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10280 for as_dir in $PATH 10281 do 10282 IFS=$as_save_IFS 10283 test -z "$as_dir" && as_dir=. 10284 for ac_exec_ext in '' $ac_executable_extensions; do 10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10286 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10288 break 2 10289 fi 10290 done 10291 done 10292 IFS=$as_save_IFS 10293 10294 ;; 10295 esac 10296 fi 10297 TR=$ac_cv_path_TR 10298 if test -n "$TR"; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10300 $as_echo "$TR" >&6; } 10301 else 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10303 $as_echo "no" >&6; } 10304 fi 10305 10306 10307 test -n "$TR" && break 10308 done 10309 10310 else 10311 # If it succeeded, then it was overridden by the user. We will use it 10312 # for the tool. 10313 10314 # First remove it from the list of overridden variables, so we can test 10315 # for unknown variables in the end. 10316 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10317 10318 # Check if the provided tool contains a complete path. 10319 tool_specified="$TR" 10320 tool_basename="${tool_specified##*/}" 10321 if test "x$tool_basename" = "x$tool_specified"; then 10322 # A command without a complete path is provided, search $PATH. 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10324 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10325 # Extract the first word of "$tool_basename", so it can be a program name with args. 10326 set dummy $tool_basename; ac_word=$2 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10328 $as_echo_n "checking for $ac_word... " >&6; } 10329 if ${ac_cv_path_TR+:} false; then : 10330 $as_echo_n "(cached) " >&6 10331 else 10332 case $TR in 10333 [\\/]* | ?:[\\/]*) 10334 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10335 ;; 10336 *) 10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10338 for as_dir in $PATH 10339 do 10340 IFS=$as_save_IFS 10341 test -z "$as_dir" && as_dir=. 10342 for ac_exec_ext in '' $ac_executable_extensions; do 10343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10344 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10346 break 2 10347 fi 10348 done 10349 done 10350 IFS=$as_save_IFS 10351 10352 ;; 10353 esac 10354 fi 10355 TR=$ac_cv_path_TR 10356 if test -n "$TR"; then 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10358 $as_echo "$TR" >&6; } 10359 else 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10361 $as_echo "no" >&6; } 10362 fi 10363 10364 10365 if test "x$TR" = x; then 10366 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10367 fi 10368 else 10369 # Otherwise we believe it is a complete path. Use it as it is. 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10371 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10373 $as_echo_n "checking for TR... " >&6; } 10374 if test ! -x "$tool_specified"; then 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10376 $as_echo "not found" >&6; } 10377 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10378 fi 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10380 $as_echo "$tool_specified" >&6; } 10381 fi 10382 fi 10383 fi 10384 10385 10386 10387 if test "x$TR" = x; then 10388 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10389 fi 10390 10391 10392 10393 10394 10395 # Publish this variable in the help. 10396 10397 10398 if test "x$UNAME" = x; then 10399 # The variable is not set by user, try to locate tool using the code snippet 10400 for ac_prog in uname 10401 do 10402 # Extract the first word of "$ac_prog", so it can be a program name with args. 10403 set dummy $ac_prog; ac_word=$2 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10405 $as_echo_n "checking for $ac_word... " >&6; } 10406 if ${ac_cv_path_UNAME+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408 else 10409 case $UNAME in 10410 [\\/]* | ?:[\\/]*) 10411 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10412 ;; 10413 *) 10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10415 for as_dir in $PATH 10416 do 10417 IFS=$as_save_IFS 10418 test -z "$as_dir" && as_dir=. 10419 for ac_exec_ext in '' $ac_executable_extensions; do 10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10421 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10423 break 2 10424 fi 10425 done 10426 done 10427 IFS=$as_save_IFS 10428 10429 ;; 10430 esac 10431 fi 10432 UNAME=$ac_cv_path_UNAME 10433 if test -n "$UNAME"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10435 $as_echo "$UNAME" >&6; } 10436 else 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10438 $as_echo "no" >&6; } 10439 fi 10440 10441 10442 test -n "$UNAME" && break 10443 done 10444 10445 else 10446 # The variable is set, but is it from the command line or the environment? 10447 10448 # Try to remove the string !UNAME! from our list. 10449 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10450 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10451 # If it failed, the variable was not from the command line. Ignore it, 10452 # but warn the user (except for BASH, which is always set by the calling BASH). 10453 if test "xUNAME" != xBASH; then 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10455 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10456 fi 10457 # Try to locate tool using the code snippet 10458 for ac_prog in uname 10459 do 10460 # Extract the first word of "$ac_prog", so it can be a program name with args. 10461 set dummy $ac_prog; ac_word=$2 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10463 $as_echo_n "checking for $ac_word... " >&6; } 10464 if ${ac_cv_path_UNAME+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466 else 10467 case $UNAME in 10468 [\\/]* | ?:[\\/]*) 10469 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10470 ;; 10471 *) 10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10473 for as_dir in $PATH 10474 do 10475 IFS=$as_save_IFS 10476 test -z "$as_dir" && as_dir=. 10477 for ac_exec_ext in '' $ac_executable_extensions; do 10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10479 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10481 break 2 10482 fi 10483 done 10484 done 10485 IFS=$as_save_IFS 10486 10487 ;; 10488 esac 10489 fi 10490 UNAME=$ac_cv_path_UNAME 10491 if test -n "$UNAME"; then 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10493 $as_echo "$UNAME" >&6; } 10494 else 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10496 $as_echo "no" >&6; } 10497 fi 10498 10499 10500 test -n "$UNAME" && break 10501 done 10502 10503 else 10504 # If it succeeded, then it was overridden by the user. We will use it 10505 # for the tool. 10506 10507 # First remove it from the list of overridden variables, so we can test 10508 # for unknown variables in the end. 10509 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10510 10511 # Check if the provided tool contains a complete path. 10512 tool_specified="$UNAME" 10513 tool_basename="${tool_specified##*/}" 10514 if test "x$tool_basename" = "x$tool_specified"; then 10515 # A command without a complete path is provided, search $PATH. 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10517 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10518 # Extract the first word of "$tool_basename", so it can be a program name with args. 10519 set dummy $tool_basename; ac_word=$2 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10521 $as_echo_n "checking for $ac_word... " >&6; } 10522 if ${ac_cv_path_UNAME+:} false; then : 10523 $as_echo_n "(cached) " >&6 10524 else 10525 case $UNAME in 10526 [\\/]* | ?:[\\/]*) 10527 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10528 ;; 10529 *) 10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10531 for as_dir in $PATH 10532 do 10533 IFS=$as_save_IFS 10534 test -z "$as_dir" && as_dir=. 10535 for ac_exec_ext in '' $ac_executable_extensions; do 10536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10537 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10539 break 2 10540 fi 10541 done 10542 done 10543 IFS=$as_save_IFS 10544 10545 ;; 10546 esac 10547 fi 10548 UNAME=$ac_cv_path_UNAME 10549 if test -n "$UNAME"; then 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10551 $as_echo "$UNAME" >&6; } 10552 else 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10554 $as_echo "no" >&6; } 10555 fi 10556 10557 10558 if test "x$UNAME" = x; then 10559 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10560 fi 10561 else 10562 # Otherwise we believe it is a complete path. Use it as it is. 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10564 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10566 $as_echo_n "checking for UNAME... " >&6; } 10567 if test ! -x "$tool_specified"; then 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10569 $as_echo "not found" >&6; } 10570 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10571 fi 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10573 $as_echo "$tool_specified" >&6; } 10574 fi 10575 fi 10576 fi 10577 10578 10579 10580 if test "x$UNAME" = x; then 10581 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10582 fi 10583 10584 10585 10586 10587 10588 # Publish this variable in the help. 10589 10590 10591 if test "x$UNIQ" = x; then 10592 # The variable is not set by user, try to locate tool using the code snippet 10593 for ac_prog in uniq 10594 do 10595 # Extract the first word of "$ac_prog", so it can be a program name with args. 10596 set dummy $ac_prog; ac_word=$2 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10598 $as_echo_n "checking for $ac_word... " >&6; } 10599 if ${ac_cv_path_UNIQ+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601 else 10602 case $UNIQ in 10603 [\\/]* | ?:[\\/]*) 10604 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10605 ;; 10606 *) 10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10608 for as_dir in $PATH 10609 do 10610 IFS=$as_save_IFS 10611 test -z "$as_dir" && as_dir=. 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10614 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10616 break 2 10617 fi 10618 done 10619 done 10620 IFS=$as_save_IFS 10621 10622 ;; 10623 esac 10624 fi 10625 UNIQ=$ac_cv_path_UNIQ 10626 if test -n "$UNIQ"; then 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10628 $as_echo "$UNIQ" >&6; } 10629 else 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10631 $as_echo "no" >&6; } 10632 fi 10633 10634 10635 test -n "$UNIQ" && break 10636 done 10637 10638 else 10639 # The variable is set, but is it from the command line or the environment? 10640 10641 # Try to remove the string !UNIQ! from our list. 10642 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10643 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10644 # If it failed, the variable was not from the command line. Ignore it, 10645 # but warn the user (except for BASH, which is always set by the calling BASH). 10646 if test "xUNIQ" != xBASH; then 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10648 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10649 fi 10650 # Try to locate tool using the code snippet 10651 for ac_prog in uniq 10652 do 10653 # Extract the first word of "$ac_prog", so it can be a program name with args. 10654 set dummy $ac_prog; ac_word=$2 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10656 $as_echo_n "checking for $ac_word... " >&6; } 10657 if ${ac_cv_path_UNIQ+:} false; then : 10658 $as_echo_n "(cached) " >&6 10659 else 10660 case $UNIQ in 10661 [\\/]* | ?:[\\/]*) 10662 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10663 ;; 10664 *) 10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10666 for as_dir in $PATH 10667 do 10668 IFS=$as_save_IFS 10669 test -z "$as_dir" && as_dir=. 10670 for ac_exec_ext in '' $ac_executable_extensions; do 10671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10672 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10674 break 2 10675 fi 10676 done 10677 done 10678 IFS=$as_save_IFS 10679 10680 ;; 10681 esac 10682 fi 10683 UNIQ=$ac_cv_path_UNIQ 10684 if test -n "$UNIQ"; then 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10686 $as_echo "$UNIQ" >&6; } 10687 else 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10689 $as_echo "no" >&6; } 10690 fi 10691 10692 10693 test -n "$UNIQ" && break 10694 done 10695 10696 else 10697 # If it succeeded, then it was overridden by the user. We will use it 10698 # for the tool. 10699 10700 # First remove it from the list of overridden variables, so we can test 10701 # for unknown variables in the end. 10702 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10703 10704 # Check if the provided tool contains a complete path. 10705 tool_specified="$UNIQ" 10706 tool_basename="${tool_specified##*/}" 10707 if test "x$tool_basename" = "x$tool_specified"; then 10708 # A command without a complete path is provided, search $PATH. 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10710 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10711 # Extract the first word of "$tool_basename", so it can be a program name with args. 10712 set dummy $tool_basename; ac_word=$2 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10714 $as_echo_n "checking for $ac_word... " >&6; } 10715 if ${ac_cv_path_UNIQ+:} false; then : 10716 $as_echo_n "(cached) " >&6 10717 else 10718 case $UNIQ in 10719 [\\/]* | ?:[\\/]*) 10720 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10721 ;; 10722 *) 10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10724 for as_dir in $PATH 10725 do 10726 IFS=$as_save_IFS 10727 test -z "$as_dir" && as_dir=. 10728 for ac_exec_ext in '' $ac_executable_extensions; do 10729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10730 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10732 break 2 10733 fi 10734 done 10735 done 10736 IFS=$as_save_IFS 10737 10738 ;; 10739 esac 10740 fi 10741 UNIQ=$ac_cv_path_UNIQ 10742 if test -n "$UNIQ"; then 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10744 $as_echo "$UNIQ" >&6; } 10745 else 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10747 $as_echo "no" >&6; } 10748 fi 10749 10750 10751 if test "x$UNIQ" = x; then 10752 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10753 fi 10754 else 10755 # Otherwise we believe it is a complete path. Use it as it is. 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10757 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10759 $as_echo_n "checking for UNIQ... " >&6; } 10760 if test ! -x "$tool_specified"; then 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10762 $as_echo "not found" >&6; } 10763 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10764 fi 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10766 $as_echo "$tool_specified" >&6; } 10767 fi 10768 fi 10769 fi 10770 10771 10772 10773 if test "x$UNIQ" = x; then 10774 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10775 fi 10776 10777 10778 10779 10780 10781 # Publish this variable in the help. 10782 10783 10784 if test "x$WC" = x; then 10785 # The variable is not set by user, try to locate tool using the code snippet 10786 for ac_prog in wc 10787 do 10788 # Extract the first word of "$ac_prog", so it can be a program name with args. 10789 set dummy $ac_prog; ac_word=$2 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791 $as_echo_n "checking for $ac_word... " >&6; } 10792 if ${ac_cv_path_WC+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794 else 10795 case $WC in 10796 [\\/]* | ?:[\\/]*) 10797 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10798 ;; 10799 *) 10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10801 for as_dir in $PATH 10802 do 10803 IFS=$as_save_IFS 10804 test -z "$as_dir" && as_dir=. 10805 for ac_exec_ext in '' $ac_executable_extensions; do 10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10807 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10809 break 2 10810 fi 10811 done 10812 done 10813 IFS=$as_save_IFS 10814 10815 ;; 10816 esac 10817 fi 10818 WC=$ac_cv_path_WC 10819 if test -n "$WC"; then 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10821 $as_echo "$WC" >&6; } 10822 else 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10824 $as_echo "no" >&6; } 10825 fi 10826 10827 10828 test -n "$WC" && break 10829 done 10830 10831 else 10832 # The variable is set, but is it from the command line or the environment? 10833 10834 # Try to remove the string !WC! from our list. 10835 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10836 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10837 # If it failed, the variable was not from the command line. Ignore it, 10838 # but warn the user (except for BASH, which is always set by the calling BASH). 10839 if test "xWC" != xBASH; then 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10841 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10842 fi 10843 # Try to locate tool using the code snippet 10844 for ac_prog in wc 10845 do 10846 # Extract the first word of "$ac_prog", so it can be a program name with args. 10847 set dummy $ac_prog; ac_word=$2 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10849 $as_echo_n "checking for $ac_word... " >&6; } 10850 if ${ac_cv_path_WC+:} false; then : 10851 $as_echo_n "(cached) " >&6 10852 else 10853 case $WC in 10854 [\\/]* | ?:[\\/]*) 10855 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10856 ;; 10857 *) 10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10859 for as_dir in $PATH 10860 do 10861 IFS=$as_save_IFS 10862 test -z "$as_dir" && as_dir=. 10863 for ac_exec_ext in '' $ac_executable_extensions; do 10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10865 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10867 break 2 10868 fi 10869 done 10870 done 10871 IFS=$as_save_IFS 10872 10873 ;; 10874 esac 10875 fi 10876 WC=$ac_cv_path_WC 10877 if test -n "$WC"; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10879 $as_echo "$WC" >&6; } 10880 else 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10882 $as_echo "no" >&6; } 10883 fi 10884 10885 10886 test -n "$WC" && break 10887 done 10888 10889 else 10890 # If it succeeded, then it was overridden by the user. We will use it 10891 # for the tool. 10892 10893 # First remove it from the list of overridden variables, so we can test 10894 # for unknown variables in the end. 10895 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10896 10897 # Check if the provided tool contains a complete path. 10898 tool_specified="$WC" 10899 tool_basename="${tool_specified##*/}" 10900 if test "x$tool_basename" = "x$tool_specified"; then 10901 # A command without a complete path is provided, search $PATH. 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10903 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10904 # Extract the first word of "$tool_basename", so it can be a program name with args. 10905 set dummy $tool_basename; ac_word=$2 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10907 $as_echo_n "checking for $ac_word... " >&6; } 10908 if ${ac_cv_path_WC+:} false; then : 10909 $as_echo_n "(cached) " >&6 10910 else 10911 case $WC in 10912 [\\/]* | ?:[\\/]*) 10913 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10914 ;; 10915 *) 10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10917 for as_dir in $PATH 10918 do 10919 IFS=$as_save_IFS 10920 test -z "$as_dir" && as_dir=. 10921 for ac_exec_ext in '' $ac_executable_extensions; do 10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10923 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10925 break 2 10926 fi 10927 done 10928 done 10929 IFS=$as_save_IFS 10930 10931 ;; 10932 esac 10933 fi 10934 WC=$ac_cv_path_WC 10935 if test -n "$WC"; then 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10937 $as_echo "$WC" >&6; } 10938 else 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10940 $as_echo "no" >&6; } 10941 fi 10942 10943 10944 if test "x$WC" = x; then 10945 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10946 fi 10947 else 10948 # Otherwise we believe it is a complete path. Use it as it is. 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10950 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10952 $as_echo_n "checking for WC... " >&6; } 10953 if test ! -x "$tool_specified"; then 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10955 $as_echo "not found" >&6; } 10956 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10957 fi 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10959 $as_echo "$tool_specified" >&6; } 10960 fi 10961 fi 10962 fi 10963 10964 10965 10966 if test "x$WC" = x; then 10967 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10968 fi 10969 10970 10971 10972 10973 10974 # Publish this variable in the help. 10975 10976 10977 if test "x$WHICH" = x; then 10978 # The variable is not set by user, try to locate tool using the code snippet 10979 for ac_prog in which 10980 do 10981 # Extract the first word of "$ac_prog", so it can be a program name with args. 10982 set dummy $ac_prog; ac_word=$2 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10984 $as_echo_n "checking for $ac_word... " >&6; } 10985 if ${ac_cv_path_WHICH+:} false; then : 10986 $as_echo_n "(cached) " >&6 10987 else 10988 case $WHICH in 10989 [\\/]* | ?:[\\/]*) 10990 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10991 ;; 10992 *) 10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10994 for as_dir in $PATH 10995 do 10996 IFS=$as_save_IFS 10997 test -z "$as_dir" && as_dir=. 10998 for ac_exec_ext in '' $ac_executable_extensions; do 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11000 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11002 break 2 11003 fi 11004 done 11005 done 11006 IFS=$as_save_IFS 11007 11008 ;; 11009 esac 11010 fi 11011 WHICH=$ac_cv_path_WHICH 11012 if test -n "$WHICH"; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11014 $as_echo "$WHICH" >&6; } 11015 else 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11017 $as_echo "no" >&6; } 11018 fi 11019 11020 11021 test -n "$WHICH" && break 11022 done 11023 11024 else 11025 # The variable is set, but is it from the command line or the environment? 11026 11027 # Try to remove the string !WHICH! from our list. 11028 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11029 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11030 # If it failed, the variable was not from the command line. Ignore it, 11031 # but warn the user (except for BASH, which is always set by the calling BASH). 11032 if test "xWHICH" != xBASH; then 11033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11034 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11035 fi 11036 # Try to locate tool using the code snippet 11037 for ac_prog in which 11038 do 11039 # Extract the first word of "$ac_prog", so it can be a program name with args. 11040 set dummy $ac_prog; ac_word=$2 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11042 $as_echo_n "checking for $ac_word... " >&6; } 11043 if ${ac_cv_path_WHICH+:} false; then : 11044 $as_echo_n "(cached) " >&6 11045 else 11046 case $WHICH in 11047 [\\/]* | ?:[\\/]*) 11048 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11049 ;; 11050 *) 11051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11052 for as_dir in $PATH 11053 do 11054 IFS=$as_save_IFS 11055 test -z "$as_dir" && as_dir=. 11056 for ac_exec_ext in '' $ac_executable_extensions; do 11057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11058 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11060 break 2 11061 fi 11062 done 11063 done 11064 IFS=$as_save_IFS 11065 11066 ;; 11067 esac 11068 fi 11069 WHICH=$ac_cv_path_WHICH 11070 if test -n "$WHICH"; then 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11072 $as_echo "$WHICH" >&6; } 11073 else 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11075 $as_echo "no" >&6; } 11076 fi 11077 11078 11079 test -n "$WHICH" && break 11080 done 11081 11082 else 11083 # If it succeeded, then it was overridden by the user. We will use it 11084 # for the tool. 11085 11086 # First remove it from the list of overridden variables, so we can test 11087 # for unknown variables in the end. 11088 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11089 11090 # Check if the provided tool contains a complete path. 11091 tool_specified="$WHICH" 11092 tool_basename="${tool_specified##*/}" 11093 if test "x$tool_basename" = "x$tool_specified"; then 11094 # A command without a complete path is provided, search $PATH. 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11096 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11097 # Extract the first word of "$tool_basename", so it can be a program name with args. 11098 set dummy $tool_basename; ac_word=$2 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11100 $as_echo_n "checking for $ac_word... " >&6; } 11101 if ${ac_cv_path_WHICH+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103 else 11104 case $WHICH in 11105 [\\/]* | ?:[\\/]*) 11106 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11107 ;; 11108 *) 11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11110 for as_dir in $PATH 11111 do 11112 IFS=$as_save_IFS 11113 test -z "$as_dir" && as_dir=. 11114 for ac_exec_ext in '' $ac_executable_extensions; do 11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11116 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11118 break 2 11119 fi 11120 done 11121 done 11122 IFS=$as_save_IFS 11123 11124 ;; 11125 esac 11126 fi 11127 WHICH=$ac_cv_path_WHICH 11128 if test -n "$WHICH"; then 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11130 $as_echo "$WHICH" >&6; } 11131 else 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11133 $as_echo "no" >&6; } 11134 fi 11135 11136 11137 if test "x$WHICH" = x; then 11138 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11139 fi 11140 else 11141 # Otherwise we believe it is a complete path. Use it as it is. 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11143 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11145 $as_echo_n "checking for WHICH... " >&6; } 11146 if test ! -x "$tool_specified"; then 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11148 $as_echo "not found" >&6; } 11149 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11150 fi 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11152 $as_echo "$tool_specified" >&6; } 11153 fi 11154 fi 11155 fi 11156 11157 11158 11159 if test "x$WHICH" = x; then 11160 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11161 fi 11162 11163 11164 11165 11166 11167 # Publish this variable in the help. 11168 11169 11170 if test "x$XARGS" = x; then 11171 # The variable is not set by user, try to locate tool using the code snippet 11172 for ac_prog in xargs 11173 do 11174 # Extract the first word of "$ac_prog", so it can be a program name with args. 11175 set dummy $ac_prog; ac_word=$2 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11177 $as_echo_n "checking for $ac_word... " >&6; } 11178 if ${ac_cv_path_XARGS+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180 else 11181 case $XARGS in 11182 [\\/]* | ?:[\\/]*) 11183 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11184 ;; 11185 *) 11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11187 for as_dir in $PATH 11188 do 11189 IFS=$as_save_IFS 11190 test -z "$as_dir" && as_dir=. 11191 for ac_exec_ext in '' $ac_executable_extensions; do 11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11193 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11195 break 2 11196 fi 11197 done 11198 done 11199 IFS=$as_save_IFS 11200 11201 ;; 11202 esac 11203 fi 11204 XARGS=$ac_cv_path_XARGS 11205 if test -n "$XARGS"; then 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11207 $as_echo "$XARGS" >&6; } 11208 else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210 $as_echo "no" >&6; } 11211 fi 11212 11213 11214 test -n "$XARGS" && break 11215 done 11216 11217 else 11218 # The variable is set, but is it from the command line or the environment? 11219 11220 # Try to remove the string !XARGS! from our list. 11221 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11222 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11223 # If it failed, the variable was not from the command line. Ignore it, 11224 # but warn the user (except for BASH, which is always set by the calling BASH). 11225 if test "xXARGS" != xBASH; then 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11227 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11228 fi 11229 # Try to locate tool using the code snippet 11230 for ac_prog in xargs 11231 do 11232 # Extract the first word of "$ac_prog", so it can be a program name with args. 11233 set dummy $ac_prog; ac_word=$2 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11235 $as_echo_n "checking for $ac_word... " >&6; } 11236 if ${ac_cv_path_XARGS+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238 else 11239 case $XARGS in 11240 [\\/]* | ?:[\\/]*) 11241 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11242 ;; 11243 *) 11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11245 for as_dir in $PATH 11246 do 11247 IFS=$as_save_IFS 11248 test -z "$as_dir" && as_dir=. 11249 for ac_exec_ext in '' $ac_executable_extensions; do 11250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11251 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11253 break 2 11254 fi 11255 done 11256 done 11257 IFS=$as_save_IFS 11258 11259 ;; 11260 esac 11261 fi 11262 XARGS=$ac_cv_path_XARGS 11263 if test -n "$XARGS"; then 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11265 $as_echo "$XARGS" >&6; } 11266 else 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11268 $as_echo "no" >&6; } 11269 fi 11270 11271 11272 test -n "$XARGS" && break 11273 done 11274 11275 else 11276 # If it succeeded, then it was overridden by the user. We will use it 11277 # for the tool. 11278 11279 # First remove it from the list of overridden variables, so we can test 11280 # for unknown variables in the end. 11281 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11282 11283 # Check if the provided tool contains a complete path. 11284 tool_specified="$XARGS" 11285 tool_basename="${tool_specified##*/}" 11286 if test "x$tool_basename" = "x$tool_specified"; then 11287 # A command without a complete path is provided, search $PATH. 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11289 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11290 # Extract the first word of "$tool_basename", so it can be a program name with args. 11291 set dummy $tool_basename; ac_word=$2 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11293 $as_echo_n "checking for $ac_word... " >&6; } 11294 if ${ac_cv_path_XARGS+:} false; then : 11295 $as_echo_n "(cached) " >&6 11296 else 11297 case $XARGS in 11298 [\\/]* | ?:[\\/]*) 11299 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11300 ;; 11301 *) 11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11303 for as_dir in $PATH 11304 do 11305 IFS=$as_save_IFS 11306 test -z "$as_dir" && as_dir=. 11307 for ac_exec_ext in '' $ac_executable_extensions; do 11308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11309 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11311 break 2 11312 fi 11313 done 11314 done 11315 IFS=$as_save_IFS 11316 11317 ;; 11318 esac 11319 fi 11320 XARGS=$ac_cv_path_XARGS 11321 if test -n "$XARGS"; then 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11323 $as_echo "$XARGS" >&6; } 11324 else 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11326 $as_echo "no" >&6; } 11327 fi 11328 11329 11330 if test "x$XARGS" = x; then 11331 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11332 fi 11333 else 11334 # Otherwise we believe it is a complete path. Use it as it is. 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11336 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11338 $as_echo_n "checking for XARGS... " >&6; } 11339 if test ! -x "$tool_specified"; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11341 $as_echo "not found" >&6; } 11342 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11343 fi 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11345 $as_echo "$tool_specified" >&6; } 11346 fi 11347 fi 11348 fi 11349 11350 11351 11352 if test "x$XARGS" = x; then 11353 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11354 fi 11355 11356 11357 11358 # Then required tools that require some special treatment. 11359 11360 11361 # Publish this variable in the help. 11362 11363 11364 if test "x$AWK" = x; then 11365 # The variable is not set by user, try to locate tool using the code snippet 11366 for ac_prog in gawk mawk nawk awk 11367 do 11368 # Extract the first word of "$ac_prog", so it can be a program name with args. 11369 set dummy $ac_prog; ac_word=$2 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11371 $as_echo_n "checking for $ac_word... " >&6; } 11372 if ${ac_cv_prog_AWK+:} false; then : 11373 $as_echo_n "(cached) " >&6 11374 else 11375 if test -n "$AWK"; then 11376 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11377 else 11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11379 for as_dir in $PATH 11380 do 11381 IFS=$as_save_IFS 11382 test -z "$as_dir" && as_dir=. 11383 for ac_exec_ext in '' $ac_executable_extensions; do 11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11385 ac_cv_prog_AWK="$ac_prog" 11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11387 break 2 11388 fi 11389 done 11390 done 11391 IFS=$as_save_IFS 11392 11393 fi 11394 fi 11395 AWK=$ac_cv_prog_AWK 11396 if test -n "$AWK"; then 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11398 $as_echo "$AWK" >&6; } 11399 else 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11401 $as_echo "no" >&6; } 11402 fi 11403 11404 11405 test -n "$AWK" && break 11406 done 11407 11408 else 11409 # The variable is set, but is it from the command line or the environment? 11410 11411 # Try to remove the string !AWK! from our list. 11412 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11413 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11414 # If it failed, the variable was not from the command line. Ignore it, 11415 # but warn the user (except for BASH, which is always set by the calling BASH). 11416 if test "xAWK" != xBASH; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11418 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11419 fi 11420 # Try to locate tool using the code snippet 11421 for ac_prog in gawk mawk nawk awk 11422 do 11423 # Extract the first word of "$ac_prog", so it can be a program name with args. 11424 set dummy $ac_prog; ac_word=$2 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11426 $as_echo_n "checking for $ac_word... " >&6; } 11427 if ${ac_cv_prog_AWK+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429 else 11430 if test -n "$AWK"; then 11431 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11432 else 11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11434 for as_dir in $PATH 11435 do 11436 IFS=$as_save_IFS 11437 test -z "$as_dir" && as_dir=. 11438 for ac_exec_ext in '' $ac_executable_extensions; do 11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11440 ac_cv_prog_AWK="$ac_prog" 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11442 break 2 11443 fi 11444 done 11445 done 11446 IFS=$as_save_IFS 11447 11448 fi 11449 fi 11450 AWK=$ac_cv_prog_AWK 11451 if test -n "$AWK"; then 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11453 $as_echo "$AWK" >&6; } 11454 else 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11456 $as_echo "no" >&6; } 11457 fi 11458 11459 11460 test -n "$AWK" && break 11461 done 11462 11463 else 11464 # If it succeeded, then it was overridden by the user. We will use it 11465 # for the tool. 11466 11467 # First remove it from the list of overridden variables, so we can test 11468 # for unknown variables in the end. 11469 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11470 11471 # Check if the provided tool contains a complete path. 11472 tool_specified="$AWK" 11473 tool_basename="${tool_specified##*/}" 11474 if test "x$tool_basename" = "x$tool_specified"; then 11475 # A command without a complete path is provided, search $PATH. 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11477 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11478 # Extract the first word of "$tool_basename", so it can be a program name with args. 11479 set dummy $tool_basename; ac_word=$2 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11481 $as_echo_n "checking for $ac_word... " >&6; } 11482 if ${ac_cv_path_AWK+:} false; then : 11483 $as_echo_n "(cached) " >&6 11484 else 11485 case $AWK in 11486 [\\/]* | ?:[\\/]*) 11487 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11488 ;; 11489 *) 11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11491 for as_dir in $PATH 11492 do 11493 IFS=$as_save_IFS 11494 test -z "$as_dir" && as_dir=. 11495 for ac_exec_ext in '' $ac_executable_extensions; do 11496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11497 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11499 break 2 11500 fi 11501 done 11502 done 11503 IFS=$as_save_IFS 11504 11505 ;; 11506 esac 11507 fi 11508 AWK=$ac_cv_path_AWK 11509 if test -n "$AWK"; then 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11511 $as_echo "$AWK" >&6; } 11512 else 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11514 $as_echo "no" >&6; } 11515 fi 11516 11517 11518 if test "x$AWK" = x; then 11519 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11520 fi 11521 else 11522 # Otherwise we believe it is a complete path. Use it as it is. 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11524 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11526 $as_echo_n "checking for AWK... " >&6; } 11527 if test ! -x "$tool_specified"; then 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11529 $as_echo "not found" >&6; } 11530 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11531 fi 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11533 $as_echo "$tool_specified" >&6; } 11534 fi 11535 fi 11536 fi 11537 11538 11539 if test "x$AWK" = x; then 11540 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11541 fi 11542 11543 11544 11545 11546 # Publish this variable in the help. 11547 11548 11549 if test "x$GREP" = x; then 11550 # The variable is not set by user, try to locate tool using the code snippet 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11553 if ${ac_cv_path_GREP+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555 else 11556 if test -z "$GREP"; then 11557 ac_path_GREP_found=false 11558 # Loop through the user's path and test for each of PROGNAME-LIST 11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11561 do 11562 IFS=$as_save_IFS 11563 test -z "$as_dir" && as_dir=. 11564 for ac_prog in grep ggrep; do 11565 for ac_exec_ext in '' $ac_executable_extensions; do 11566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11567 as_fn_executable_p "$ac_path_GREP" || continue 11568 # Check for GNU ac_path_GREP and select it if it is found. 11569 # Check for GNU $ac_path_GREP 11570 case `"$ac_path_GREP" --version 2>&1` in 11571 *GNU*) 11572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11573 *) 11574 ac_count=0 11575 $as_echo_n 0123456789 >"conftest.in" 11576 while : 11577 do 11578 cat "conftest.in" "conftest.in" >"conftest.tmp" 11579 mv "conftest.tmp" "conftest.in" 11580 cp "conftest.in" "conftest.nl" 11581 $as_echo 'GREP' >> "conftest.nl" 11582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11584 as_fn_arith $ac_count + 1 && ac_count=$as_val 11585 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11586 # Best one so far, save it but keep looking for a better one 11587 ac_cv_path_GREP="$ac_path_GREP" 11588 ac_path_GREP_max=$ac_count 11589 fi 11590 # 10*(2^10) chars as input seems more than enough 11591 test $ac_count -gt 10 && break 11592 done 11593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11594 esac 11595 11596 $ac_path_GREP_found && break 3 11597 done 11598 done 11599 done 11600 IFS=$as_save_IFS 11601 if test -z "$ac_cv_path_GREP"; then 11602 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11603 fi 11604 else 11605 ac_cv_path_GREP=$GREP 11606 fi 11607 11608 fi 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11610 $as_echo "$ac_cv_path_GREP" >&6; } 11611 GREP="$ac_cv_path_GREP" 11612 11613 11614 else 11615 # The variable is set, but is it from the command line or the environment? 11616 11617 # Try to remove the string !GREP! from our list. 11618 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11619 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11620 # If it failed, the variable was not from the command line. Ignore it, 11621 # but warn the user (except for BASH, which is always set by the calling BASH). 11622 if test "xGREP" != xBASH; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11624 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11625 fi 11626 # Try to locate tool using the code snippet 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11628 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11629 if ${ac_cv_path_GREP+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631 else 11632 if test -z "$GREP"; then 11633 ac_path_GREP_found=false 11634 # Loop through the user's path and test for each of PROGNAME-LIST 11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11637 do 11638 IFS=$as_save_IFS 11639 test -z "$as_dir" && as_dir=. 11640 for ac_prog in grep ggrep; do 11641 for ac_exec_ext in '' $ac_executable_extensions; do 11642 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11643 as_fn_executable_p "$ac_path_GREP" || continue 11644 # Check for GNU ac_path_GREP and select it if it is found. 11645 # Check for GNU $ac_path_GREP 11646 case `"$ac_path_GREP" --version 2>&1` in 11647 *GNU*) 11648 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11649 *) 11650 ac_count=0 11651 $as_echo_n 0123456789 >"conftest.in" 11652 while : 11653 do 11654 cat "conftest.in" "conftest.in" >"conftest.tmp" 11655 mv "conftest.tmp" "conftest.in" 11656 cp "conftest.in" "conftest.nl" 11657 $as_echo 'GREP' >> "conftest.nl" 11658 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11660 as_fn_arith $ac_count + 1 && ac_count=$as_val 11661 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11662 # Best one so far, save it but keep looking for a better one 11663 ac_cv_path_GREP="$ac_path_GREP" 11664 ac_path_GREP_max=$ac_count 11665 fi 11666 # 10*(2^10) chars as input seems more than enough 11667 test $ac_count -gt 10 && break 11668 done 11669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11670 esac 11671 11672 $ac_path_GREP_found && break 3 11673 done 11674 done 11675 done 11676 IFS=$as_save_IFS 11677 if test -z "$ac_cv_path_GREP"; then 11678 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11679 fi 11680 else 11681 ac_cv_path_GREP=$GREP 11682 fi 11683 11684 fi 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11686 $as_echo "$ac_cv_path_GREP" >&6; } 11687 GREP="$ac_cv_path_GREP" 11688 11689 11690 else 11691 # If it succeeded, then it was overridden by the user. We will use it 11692 # for the tool. 11693 11694 # First remove it from the list of overridden variables, so we can test 11695 # for unknown variables in the end. 11696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11697 11698 # Check if the provided tool contains a complete path. 11699 tool_specified="$GREP" 11700 tool_basename="${tool_specified##*/}" 11701 if test "x$tool_basename" = "x$tool_specified"; then 11702 # A command without a complete path is provided, search $PATH. 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11704 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11705 # Extract the first word of "$tool_basename", so it can be a program name with args. 11706 set dummy $tool_basename; ac_word=$2 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11708 $as_echo_n "checking for $ac_word... " >&6; } 11709 if ${ac_cv_path_GREP+:} false; then : 11710 $as_echo_n "(cached) " >&6 11711 else 11712 case $GREP in 11713 [\\/]* | ?:[\\/]*) 11714 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11715 ;; 11716 *) 11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11718 for as_dir in $PATH 11719 do 11720 IFS=$as_save_IFS 11721 test -z "$as_dir" && as_dir=. 11722 for ac_exec_ext in '' $ac_executable_extensions; do 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11724 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11726 break 2 11727 fi 11728 done 11729 done 11730 IFS=$as_save_IFS 11731 11732 ;; 11733 esac 11734 fi 11735 GREP=$ac_cv_path_GREP 11736 if test -n "$GREP"; then 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11738 $as_echo "$GREP" >&6; } 11739 else 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11741 $as_echo "no" >&6; } 11742 fi 11743 11744 11745 if test "x$GREP" = x; then 11746 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11747 fi 11748 else 11749 # Otherwise we believe it is a complete path. Use it as it is. 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11751 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11753 $as_echo_n "checking for GREP... " >&6; } 11754 if test ! -x "$tool_specified"; then 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11756 $as_echo "not found" >&6; } 11757 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11758 fi 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11760 $as_echo "$tool_specified" >&6; } 11761 fi 11762 fi 11763 fi 11764 11765 11766 if test "x$GREP" = x; then 11767 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11768 fi 11769 11770 11771 11772 11773 # Publish this variable in the help. 11774 11775 11776 if test "x$EGREP" = x; then 11777 # The variable is not set by user, try to locate tool using the code snippet 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11779 $as_echo_n "checking for egrep... " >&6; } 11780 if ${ac_cv_path_EGREP+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782 else 11783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11784 then ac_cv_path_EGREP="$GREP -E" 11785 else 11786 if test -z "$EGREP"; then 11787 ac_path_EGREP_found=false 11788 # Loop through the user's path and test for each of PROGNAME-LIST 11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11791 do 11792 IFS=$as_save_IFS 11793 test -z "$as_dir" && as_dir=. 11794 for ac_prog in egrep; do 11795 for ac_exec_ext in '' $ac_executable_extensions; do 11796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11797 as_fn_executable_p "$ac_path_EGREP" || continue 11798 # Check for GNU ac_path_EGREP and select it if it is found. 11799 # Check for GNU $ac_path_EGREP 11800 case `"$ac_path_EGREP" --version 2>&1` in 11801 *GNU*) 11802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11803 *) 11804 ac_count=0 11805 $as_echo_n 0123456789 >"conftest.in" 11806 while : 11807 do 11808 cat "conftest.in" "conftest.in" >"conftest.tmp" 11809 mv "conftest.tmp" "conftest.in" 11810 cp "conftest.in" "conftest.nl" 11811 $as_echo 'EGREP' >> "conftest.nl" 11812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11814 as_fn_arith $ac_count + 1 && ac_count=$as_val 11815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11816 # Best one so far, save it but keep looking for a better one 11817 ac_cv_path_EGREP="$ac_path_EGREP" 11818 ac_path_EGREP_max=$ac_count 11819 fi 11820 # 10*(2^10) chars as input seems more than enough 11821 test $ac_count -gt 10 && break 11822 done 11823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11824 esac 11825 11826 $ac_path_EGREP_found && break 3 11827 done 11828 done 11829 done 11830 IFS=$as_save_IFS 11831 if test -z "$ac_cv_path_EGREP"; then 11832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11833 fi 11834 else 11835 ac_cv_path_EGREP=$EGREP 11836 fi 11837 11838 fi 11839 fi 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11841 $as_echo "$ac_cv_path_EGREP" >&6; } 11842 EGREP="$ac_cv_path_EGREP" 11843 11844 11845 else 11846 # The variable is set, but is it from the command line or the environment? 11847 11848 # Try to remove the string !EGREP! from our list. 11849 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11850 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11851 # If it failed, the variable was not from the command line. Ignore it, 11852 # but warn the user (except for BASH, which is always set by the calling BASH). 11853 if test "xEGREP" != xBASH; then 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11855 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11856 fi 11857 # Try to locate tool using the code snippet 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11859 $as_echo_n "checking for egrep... " >&6; } 11860 if ${ac_cv_path_EGREP+:} false; then : 11861 $as_echo_n "(cached) " >&6 11862 else 11863 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11864 then ac_cv_path_EGREP="$GREP -E" 11865 else 11866 if test -z "$EGREP"; then 11867 ac_path_EGREP_found=false 11868 # Loop through the user's path and test for each of PROGNAME-LIST 11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11871 do 11872 IFS=$as_save_IFS 11873 test -z "$as_dir" && as_dir=. 11874 for ac_prog in egrep; do 11875 for ac_exec_ext in '' $ac_executable_extensions; do 11876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11877 as_fn_executable_p "$ac_path_EGREP" || continue 11878 # Check for GNU ac_path_EGREP and select it if it is found. 11879 # Check for GNU $ac_path_EGREP 11880 case `"$ac_path_EGREP" --version 2>&1` in 11881 *GNU*) 11882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11883 *) 11884 ac_count=0 11885 $as_echo_n 0123456789 >"conftest.in" 11886 while : 11887 do 11888 cat "conftest.in" "conftest.in" >"conftest.tmp" 11889 mv "conftest.tmp" "conftest.in" 11890 cp "conftest.in" "conftest.nl" 11891 $as_echo 'EGREP' >> "conftest.nl" 11892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11894 as_fn_arith $ac_count + 1 && ac_count=$as_val 11895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11896 # Best one so far, save it but keep looking for a better one 11897 ac_cv_path_EGREP="$ac_path_EGREP" 11898 ac_path_EGREP_max=$ac_count 11899 fi 11900 # 10*(2^10) chars as input seems more than enough 11901 test $ac_count -gt 10 && break 11902 done 11903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11904 esac 11905 11906 $ac_path_EGREP_found && break 3 11907 done 11908 done 11909 done 11910 IFS=$as_save_IFS 11911 if test -z "$ac_cv_path_EGREP"; then 11912 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11913 fi 11914 else 11915 ac_cv_path_EGREP=$EGREP 11916 fi 11917 11918 fi 11919 fi 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11921 $as_echo "$ac_cv_path_EGREP" >&6; } 11922 EGREP="$ac_cv_path_EGREP" 11923 11924 11925 else 11926 # If it succeeded, then it was overridden by the user. We will use it 11927 # for the tool. 11928 11929 # First remove it from the list of overridden variables, so we can test 11930 # for unknown variables in the end. 11931 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11932 11933 # Check if the provided tool contains a complete path. 11934 tool_specified="$EGREP" 11935 tool_basename="${tool_specified##*/}" 11936 if test "x$tool_basename" = "x$tool_specified"; then 11937 # A command without a complete path is provided, search $PATH. 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11939 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11940 # Extract the first word of "$tool_basename", so it can be a program name with args. 11941 set dummy $tool_basename; ac_word=$2 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11943 $as_echo_n "checking for $ac_word... " >&6; } 11944 if ${ac_cv_path_EGREP+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946 else 11947 case $EGREP in 11948 [\\/]* | ?:[\\/]*) 11949 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11950 ;; 11951 *) 11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11953 for as_dir in $PATH 11954 do 11955 IFS=$as_save_IFS 11956 test -z "$as_dir" && as_dir=. 11957 for ac_exec_ext in '' $ac_executable_extensions; do 11958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11959 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11961 break 2 11962 fi 11963 done 11964 done 11965 IFS=$as_save_IFS 11966 11967 ;; 11968 esac 11969 fi 11970 EGREP=$ac_cv_path_EGREP 11971 if test -n "$EGREP"; then 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11973 $as_echo "$EGREP" >&6; } 11974 else 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11976 $as_echo "no" >&6; } 11977 fi 11978 11979 11980 if test "x$EGREP" = x; then 11981 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11982 fi 11983 else 11984 # Otherwise we believe it is a complete path. Use it as it is. 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11986 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11988 $as_echo_n "checking for EGREP... " >&6; } 11989 if test ! -x "$tool_specified"; then 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11991 $as_echo "not found" >&6; } 11992 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11993 fi 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11995 $as_echo "$tool_specified" >&6; } 11996 fi 11997 fi 11998 fi 11999 12000 12001 if test "x$EGREP" = x; then 12002 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12003 fi 12004 12005 12006 12007 12008 # Publish this variable in the help. 12009 12010 12011 if test "x$FGREP" = x; then 12012 # The variable is not set by user, try to locate tool using the code snippet 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12014 $as_echo_n "checking for fgrep... " >&6; } 12015 if ${ac_cv_path_FGREP+:} false; then : 12016 $as_echo_n "(cached) " >&6 12017 else 12018 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12019 then ac_cv_path_FGREP="$GREP -F" 12020 else 12021 if test -z "$FGREP"; then 12022 ac_path_FGREP_found=false 12023 # Loop through the user's path and test for each of PROGNAME-LIST 12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12026 do 12027 IFS=$as_save_IFS 12028 test -z "$as_dir" && as_dir=. 12029 for ac_prog in fgrep; do 12030 for ac_exec_ext in '' $ac_executable_extensions; do 12031 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12032 as_fn_executable_p "$ac_path_FGREP" || continue 12033 # Check for GNU ac_path_FGREP and select it if it is found. 12034 # Check for GNU $ac_path_FGREP 12035 case `"$ac_path_FGREP" --version 2>&1` in 12036 *GNU*) 12037 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12038 *) 12039 ac_count=0 12040 $as_echo_n 0123456789 >"conftest.in" 12041 while : 12042 do 12043 cat "conftest.in" "conftest.in" >"conftest.tmp" 12044 mv "conftest.tmp" "conftest.in" 12045 cp "conftest.in" "conftest.nl" 12046 $as_echo 'FGREP' >> "conftest.nl" 12047 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12049 as_fn_arith $ac_count + 1 && ac_count=$as_val 12050 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12051 # Best one so far, save it but keep looking for a better one 12052 ac_cv_path_FGREP="$ac_path_FGREP" 12053 ac_path_FGREP_max=$ac_count 12054 fi 12055 # 10*(2^10) chars as input seems more than enough 12056 test $ac_count -gt 10 && break 12057 done 12058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12059 esac 12060 12061 $ac_path_FGREP_found && break 3 12062 done 12063 done 12064 done 12065 IFS=$as_save_IFS 12066 if test -z "$ac_cv_path_FGREP"; then 12067 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12068 fi 12069 else 12070 ac_cv_path_FGREP=$FGREP 12071 fi 12072 12073 fi 12074 fi 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12076 $as_echo "$ac_cv_path_FGREP" >&6; } 12077 FGREP="$ac_cv_path_FGREP" 12078 12079 12080 else 12081 # The variable is set, but is it from the command line or the environment? 12082 12083 # Try to remove the string !FGREP! from our list. 12084 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12085 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12086 # If it failed, the variable was not from the command line. Ignore it, 12087 # but warn the user (except for BASH, which is always set by the calling BASH). 12088 if test "xFGREP" != xBASH; then 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12090 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12091 fi 12092 # Try to locate tool using the code snippet 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12094 $as_echo_n "checking for fgrep... " >&6; } 12095 if ${ac_cv_path_FGREP+:} false; then : 12096 $as_echo_n "(cached) " >&6 12097 else 12098 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12099 then ac_cv_path_FGREP="$GREP -F" 12100 else 12101 if test -z "$FGREP"; then 12102 ac_path_FGREP_found=false 12103 # Loop through the user's path and test for each of PROGNAME-LIST 12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12106 do 12107 IFS=$as_save_IFS 12108 test -z "$as_dir" && as_dir=. 12109 for ac_prog in fgrep; do 12110 for ac_exec_ext in '' $ac_executable_extensions; do 12111 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12112 as_fn_executable_p "$ac_path_FGREP" || continue 12113 # Check for GNU ac_path_FGREP and select it if it is found. 12114 # Check for GNU $ac_path_FGREP 12115 case `"$ac_path_FGREP" --version 2>&1` in 12116 *GNU*) 12117 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12118 *) 12119 ac_count=0 12120 $as_echo_n 0123456789 >"conftest.in" 12121 while : 12122 do 12123 cat "conftest.in" "conftest.in" >"conftest.tmp" 12124 mv "conftest.tmp" "conftest.in" 12125 cp "conftest.in" "conftest.nl" 12126 $as_echo 'FGREP' >> "conftest.nl" 12127 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12129 as_fn_arith $ac_count + 1 && ac_count=$as_val 12130 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12131 # Best one so far, save it but keep looking for a better one 12132 ac_cv_path_FGREP="$ac_path_FGREP" 12133 ac_path_FGREP_max=$ac_count 12134 fi 12135 # 10*(2^10) chars as input seems more than enough 12136 test $ac_count -gt 10 && break 12137 done 12138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12139 esac 12140 12141 $ac_path_FGREP_found && break 3 12142 done 12143 done 12144 done 12145 IFS=$as_save_IFS 12146 if test -z "$ac_cv_path_FGREP"; then 12147 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12148 fi 12149 else 12150 ac_cv_path_FGREP=$FGREP 12151 fi 12152 12153 fi 12154 fi 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12156 $as_echo "$ac_cv_path_FGREP" >&6; } 12157 FGREP="$ac_cv_path_FGREP" 12158 12159 12160 else 12161 # If it succeeded, then it was overridden by the user. We will use it 12162 # for the tool. 12163 12164 # First remove it from the list of overridden variables, so we can test 12165 # for unknown variables in the end. 12166 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12167 12168 # Check if the provided tool contains a complete path. 12169 tool_specified="$FGREP" 12170 tool_basename="${tool_specified##*/}" 12171 if test "x$tool_basename" = "x$tool_specified"; then 12172 # A command without a complete path is provided, search $PATH. 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12174 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12175 # Extract the first word of "$tool_basename", so it can be a program name with args. 12176 set dummy $tool_basename; ac_word=$2 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12178 $as_echo_n "checking for $ac_word... " >&6; } 12179 if ${ac_cv_path_FGREP+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181 else 12182 case $FGREP in 12183 [\\/]* | ?:[\\/]*) 12184 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12185 ;; 12186 *) 12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12188 for as_dir in $PATH 12189 do 12190 IFS=$as_save_IFS 12191 test -z "$as_dir" && as_dir=. 12192 for ac_exec_ext in '' $ac_executable_extensions; do 12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12194 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12196 break 2 12197 fi 12198 done 12199 done 12200 IFS=$as_save_IFS 12201 12202 ;; 12203 esac 12204 fi 12205 FGREP=$ac_cv_path_FGREP 12206 if test -n "$FGREP"; then 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12208 $as_echo "$FGREP" >&6; } 12209 else 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12211 $as_echo "no" >&6; } 12212 fi 12213 12214 12215 if test "x$FGREP" = x; then 12216 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12217 fi 12218 else 12219 # Otherwise we believe it is a complete path. Use it as it is. 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12221 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12223 $as_echo_n "checking for FGREP... " >&6; } 12224 if test ! -x "$tool_specified"; then 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12226 $as_echo "not found" >&6; } 12227 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12228 fi 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12230 $as_echo "$tool_specified" >&6; } 12231 fi 12232 fi 12233 fi 12234 12235 12236 if test "x$FGREP" = x; then 12237 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12238 fi 12239 12240 12241 12242 12243 # Publish this variable in the help. 12244 12245 12246 if test "x$SED" = x; then 12247 # The variable is not set by user, try to locate tool using the code snippet 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12249 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12250 if ${ac_cv_path_SED+:} false; then : 12251 $as_echo_n "(cached) " >&6 12252 else 12253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12254 for ac_i in 1 2 3 4 5 6 7; do 12255 ac_script="$ac_script$as_nl$ac_script" 12256 done 12257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12258 { ac_script=; unset ac_script;} 12259 if test -z "$SED"; then 12260 ac_path_SED_found=false 12261 # Loop through the user's path and test for each of PROGNAME-LIST 12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12263 for as_dir in $PATH 12264 do 12265 IFS=$as_save_IFS 12266 test -z "$as_dir" && as_dir=. 12267 for ac_prog in sed gsed; do 12268 for ac_exec_ext in '' $ac_executable_extensions; do 12269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12270 as_fn_executable_p "$ac_path_SED" || continue 12271 # Check for GNU ac_path_SED and select it if it is found. 12272 # Check for GNU $ac_path_SED 12273 case `"$ac_path_SED" --version 2>&1` in 12274 *GNU*) 12275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12276 *) 12277 ac_count=0 12278 $as_echo_n 0123456789 >"conftest.in" 12279 while : 12280 do 12281 cat "conftest.in" "conftest.in" >"conftest.tmp" 12282 mv "conftest.tmp" "conftest.in" 12283 cp "conftest.in" "conftest.nl" 12284 $as_echo '' >> "conftest.nl" 12285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12287 as_fn_arith $ac_count + 1 && ac_count=$as_val 12288 if test $ac_count -gt ${ac_path_SED_max-0}; then 12289 # Best one so far, save it but keep looking for a better one 12290 ac_cv_path_SED="$ac_path_SED" 12291 ac_path_SED_max=$ac_count 12292 fi 12293 # 10*(2^10) chars as input seems more than enough 12294 test $ac_count -gt 10 && break 12295 done 12296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12297 esac 12298 12299 $ac_path_SED_found && break 3 12300 done 12301 done 12302 done 12303 IFS=$as_save_IFS 12304 if test -z "$ac_cv_path_SED"; then 12305 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12306 fi 12307 else 12308 ac_cv_path_SED=$SED 12309 fi 12310 12311 fi 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12313 $as_echo "$ac_cv_path_SED" >&6; } 12314 SED="$ac_cv_path_SED" 12315 rm -f conftest.sed 12316 12317 else 12318 # The variable is set, but is it from the command line or the environment? 12319 12320 # Try to remove the string !SED! from our list. 12321 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12322 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12323 # If it failed, the variable was not from the command line. Ignore it, 12324 # but warn the user (except for BASH, which is always set by the calling BASH). 12325 if test "xSED" != xBASH; then 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12327 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12328 fi 12329 # 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 # If it succeeded, then it was overridden by the user. We will use it 12401 # for the tool. 12402 12403 # First remove it from the list of overridden variables, so we can test 12404 # for unknown variables in the end. 12405 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12406 12407 # Check if the provided tool contains a complete path. 12408 tool_specified="$SED" 12409 tool_basename="${tool_specified##*/}" 12410 if test "x$tool_basename" = "x$tool_specified"; then 12411 # A command without a complete path is provided, search $PATH. 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12413 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12414 # Extract the first word of "$tool_basename", so it can be a program name with args. 12415 set dummy $tool_basename; ac_word=$2 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12417 $as_echo_n "checking for $ac_word... " >&6; } 12418 if ${ac_cv_path_SED+:} false; then : 12419 $as_echo_n "(cached) " >&6 12420 else 12421 case $SED in 12422 [\\/]* | ?:[\\/]*) 12423 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12424 ;; 12425 *) 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_exec_ext in '' $ac_executable_extensions; do 12432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12433 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12435 break 2 12436 fi 12437 done 12438 done 12439 IFS=$as_save_IFS 12440 12441 ;; 12442 esac 12443 fi 12444 SED=$ac_cv_path_SED 12445 if test -n "$SED"; then 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12447 $as_echo "$SED" >&6; } 12448 else 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12450 $as_echo "no" >&6; } 12451 fi 12452 12453 12454 if test "x$SED" = x; then 12455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12456 fi 12457 else 12458 # Otherwise we believe it is a complete path. Use it as it is. 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12460 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12462 $as_echo_n "checking for SED... " >&6; } 12463 if test ! -x "$tool_specified"; then 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12465 $as_echo "not found" >&6; } 12466 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12467 fi 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12469 $as_echo "$tool_specified" >&6; } 12470 fi 12471 fi 12472 fi 12473 12474 12475 if test "x$SED" = x; then 12476 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12477 fi 12478 12479 12480 12481 # Always force rm. 12482 RM="$RM -f" 12483 12484 # pwd behaves differently on various platforms and some don't support the -L flag. 12485 # Always use the bash builtin pwd to get uniform behavior. 12486 THEPWDCMD=pwd 12487 12488 # These are not required on all platforms 12489 12490 12491 # Publish this variable in the help. 12492 12493 12494 if test "x$CYGPATH" = x; then 12495 # The variable is not set by user, try to locate tool using the code snippet 12496 for ac_prog in cygpath 12497 do 12498 # Extract the first word of "$ac_prog", so it can be a program name with args. 12499 set dummy $ac_prog; ac_word=$2 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12501 $as_echo_n "checking for $ac_word... " >&6; } 12502 if ${ac_cv_path_CYGPATH+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504 else 12505 case $CYGPATH in 12506 [\\/]* | ?:[\\/]*) 12507 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12508 ;; 12509 *) 12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12511 for as_dir in $PATH 12512 do 12513 IFS=$as_save_IFS 12514 test -z "$as_dir" && as_dir=. 12515 for ac_exec_ext in '' $ac_executable_extensions; do 12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12517 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12519 break 2 12520 fi 12521 done 12522 done 12523 IFS=$as_save_IFS 12524 12525 ;; 12526 esac 12527 fi 12528 CYGPATH=$ac_cv_path_CYGPATH 12529 if test -n "$CYGPATH"; then 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12531 $as_echo "$CYGPATH" >&6; } 12532 else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534 $as_echo "no" >&6; } 12535 fi 12536 12537 12538 test -n "$CYGPATH" && break 12539 done 12540 12541 else 12542 # The variable is set, but is it from the command line or the environment? 12543 12544 # Try to remove the string !CYGPATH! from our list. 12545 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12546 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12547 # If it failed, the variable was not from the command line. Ignore it, 12548 # but warn the user (except for BASH, which is always set by the calling BASH). 12549 if test "xCYGPATH" != xBASH; then 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12551 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12552 fi 12553 # Try to locate tool using the code snippet 12554 for ac_prog in cygpath 12555 do 12556 # Extract the first word of "$ac_prog", so it can be a program name with args. 12557 set dummy $ac_prog; ac_word=$2 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12559 $as_echo_n "checking for $ac_word... " >&6; } 12560 if ${ac_cv_path_CYGPATH+:} false; then : 12561 $as_echo_n "(cached) " >&6 12562 else 12563 case $CYGPATH in 12564 [\\/]* | ?:[\\/]*) 12565 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12566 ;; 12567 *) 12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12569 for as_dir in $PATH 12570 do 12571 IFS=$as_save_IFS 12572 test -z "$as_dir" && as_dir=. 12573 for ac_exec_ext in '' $ac_executable_extensions; do 12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12575 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12577 break 2 12578 fi 12579 done 12580 done 12581 IFS=$as_save_IFS 12582 12583 ;; 12584 esac 12585 fi 12586 CYGPATH=$ac_cv_path_CYGPATH 12587 if test -n "$CYGPATH"; then 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12589 $as_echo "$CYGPATH" >&6; } 12590 else 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12592 $as_echo "no" >&6; } 12593 fi 12594 12595 12596 test -n "$CYGPATH" && break 12597 done 12598 12599 else 12600 # If it succeeded, then it was overridden by the user. We will use it 12601 # for the tool. 12602 12603 # First remove it from the list of overridden variables, so we can test 12604 # for unknown variables in the end. 12605 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12606 12607 # Check if the provided tool contains a complete path. 12608 tool_specified="$CYGPATH" 12609 tool_basename="${tool_specified##*/}" 12610 if test "x$tool_basename" = "x$tool_specified"; then 12611 # A command without a complete path is provided, search $PATH. 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12613 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12614 # Extract the first word of "$tool_basename", so it can be a program name with args. 12615 set dummy $tool_basename; ac_word=$2 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12617 $as_echo_n "checking for $ac_word... " >&6; } 12618 if ${ac_cv_path_CYGPATH+:} false; then : 12619 $as_echo_n "(cached) " >&6 12620 else 12621 case $CYGPATH in 12622 [\\/]* | ?:[\\/]*) 12623 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12624 ;; 12625 *) 12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12627 for as_dir in $PATH 12628 do 12629 IFS=$as_save_IFS 12630 test -z "$as_dir" && as_dir=. 12631 for ac_exec_ext in '' $ac_executable_extensions; do 12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12633 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12635 break 2 12636 fi 12637 done 12638 done 12639 IFS=$as_save_IFS 12640 12641 ;; 12642 esac 12643 fi 12644 CYGPATH=$ac_cv_path_CYGPATH 12645 if test -n "$CYGPATH"; then 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12647 $as_echo "$CYGPATH" >&6; } 12648 else 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12650 $as_echo "no" >&6; } 12651 fi 12652 12653 12654 if test "x$CYGPATH" = x; then 12655 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12656 fi 12657 else 12658 # Otherwise we believe it is a complete path. Use it as it is. 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12660 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12662 $as_echo_n "checking for CYGPATH... " >&6; } 12663 if test ! -x "$tool_specified"; then 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12665 $as_echo "not found" >&6; } 12666 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12667 fi 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12669 $as_echo "$tool_specified" >&6; } 12670 fi 12671 fi 12672 fi 12673 12674 12675 12676 12677 # Publish this variable in the help. 12678 12679 12680 if test "x$READLINK" = x; then 12681 # The variable is not set by user, try to locate tool using the code snippet 12682 for ac_prog in greadlink readlink 12683 do 12684 # Extract the first word of "$ac_prog", so it can be a program name with args. 12685 set dummy $ac_prog; ac_word=$2 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12687 $as_echo_n "checking for $ac_word... " >&6; } 12688 if ${ac_cv_path_READLINK+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690 else 12691 case $READLINK in 12692 [\\/]* | ?:[\\/]*) 12693 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12694 ;; 12695 *) 12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12697 for as_dir in $PATH 12698 do 12699 IFS=$as_save_IFS 12700 test -z "$as_dir" && as_dir=. 12701 for ac_exec_ext in '' $ac_executable_extensions; do 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12703 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12705 break 2 12706 fi 12707 done 12708 done 12709 IFS=$as_save_IFS 12710 12711 ;; 12712 esac 12713 fi 12714 READLINK=$ac_cv_path_READLINK 12715 if test -n "$READLINK"; then 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12717 $as_echo "$READLINK" >&6; } 12718 else 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12720 $as_echo "no" >&6; } 12721 fi 12722 12723 12724 test -n "$READLINK" && break 12725 done 12726 12727 else 12728 # The variable is set, but is it from the command line or the environment? 12729 12730 # Try to remove the string !READLINK! from our list. 12731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12733 # If it failed, the variable was not from the command line. Ignore it, 12734 # but warn the user (except for BASH, which is always set by the calling BASH). 12735 if test "xREADLINK" != xBASH; then 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12737 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12738 fi 12739 # Try to locate tool using the code snippet 12740 for ac_prog in greadlink readlink 12741 do 12742 # Extract the first word of "$ac_prog", so it can be a program name with args. 12743 set dummy $ac_prog; ac_word=$2 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12745 $as_echo_n "checking for $ac_word... " >&6; } 12746 if ${ac_cv_path_READLINK+:} false; then : 12747 $as_echo_n "(cached) " >&6 12748 else 12749 case $READLINK in 12750 [\\/]* | ?:[\\/]*) 12751 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12752 ;; 12753 *) 12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12755 for as_dir in $PATH 12756 do 12757 IFS=$as_save_IFS 12758 test -z "$as_dir" && as_dir=. 12759 for ac_exec_ext in '' $ac_executable_extensions; do 12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12761 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12763 break 2 12764 fi 12765 done 12766 done 12767 IFS=$as_save_IFS 12768 12769 ;; 12770 esac 12771 fi 12772 READLINK=$ac_cv_path_READLINK 12773 if test -n "$READLINK"; then 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12775 $as_echo "$READLINK" >&6; } 12776 else 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12778 $as_echo "no" >&6; } 12779 fi 12780 12781 12782 test -n "$READLINK" && break 12783 done 12784 12785 else 12786 # If it succeeded, then it was overridden by the user. We will use it 12787 # for the tool. 12788 12789 # First remove it from the list of overridden variables, so we can test 12790 # for unknown variables in the end. 12791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12792 12793 # Check if the provided tool contains a complete path. 12794 tool_specified="$READLINK" 12795 tool_basename="${tool_specified##*/}" 12796 if test "x$tool_basename" = "x$tool_specified"; then 12797 # A command without a complete path is provided, search $PATH. 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12799 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12800 # Extract the first word of "$tool_basename", so it can be a program name with args. 12801 set dummy $tool_basename; ac_word=$2 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12803 $as_echo_n "checking for $ac_word... " >&6; } 12804 if ${ac_cv_path_READLINK+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806 else 12807 case $READLINK in 12808 [\\/]* | ?:[\\/]*) 12809 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12810 ;; 12811 *) 12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12813 for as_dir in $PATH 12814 do 12815 IFS=$as_save_IFS 12816 test -z "$as_dir" && as_dir=. 12817 for ac_exec_ext in '' $ac_executable_extensions; do 12818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12819 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12821 break 2 12822 fi 12823 done 12824 done 12825 IFS=$as_save_IFS 12826 12827 ;; 12828 esac 12829 fi 12830 READLINK=$ac_cv_path_READLINK 12831 if test -n "$READLINK"; then 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12833 $as_echo "$READLINK" >&6; } 12834 else 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12836 $as_echo "no" >&6; } 12837 fi 12838 12839 12840 if test "x$READLINK" = x; then 12841 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12842 fi 12843 else 12844 # Otherwise we believe it is a complete path. Use it as it is. 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12846 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12848 $as_echo_n "checking for READLINK... " >&6; } 12849 if test ! -x "$tool_specified"; then 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12851 $as_echo "not found" >&6; } 12852 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12853 fi 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12855 $as_echo "$tool_specified" >&6; } 12856 fi 12857 fi 12858 fi 12859 12860 12861 12862 12863 # Publish this variable in the help. 12864 12865 12866 if test "x$DF" = x; then 12867 # The variable is not set by user, try to locate tool using the code snippet 12868 for ac_prog in df 12869 do 12870 # Extract the first word of "$ac_prog", so it can be a program name with args. 12871 set dummy $ac_prog; ac_word=$2 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12873 $as_echo_n "checking for $ac_word... " >&6; } 12874 if ${ac_cv_path_DF+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876 else 12877 case $DF in 12878 [\\/]* | ?:[\\/]*) 12879 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12880 ;; 12881 *) 12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12883 for as_dir in $PATH 12884 do 12885 IFS=$as_save_IFS 12886 test -z "$as_dir" && as_dir=. 12887 for ac_exec_ext in '' $ac_executable_extensions; do 12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12889 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12891 break 2 12892 fi 12893 done 12894 done 12895 IFS=$as_save_IFS 12896 12897 ;; 12898 esac 12899 fi 12900 DF=$ac_cv_path_DF 12901 if test -n "$DF"; then 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12903 $as_echo "$DF" >&6; } 12904 else 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12906 $as_echo "no" >&6; } 12907 fi 12908 12909 12910 test -n "$DF" && break 12911 done 12912 12913 else 12914 # The variable is set, but is it from the command line or the environment? 12915 12916 # Try to remove the string !DF! from our list. 12917 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12918 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12919 # If it failed, the variable was not from the command line. Ignore it, 12920 # but warn the user (except for BASH, which is always set by the calling BASH). 12921 if test "xDF" != xBASH; then 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12923 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12924 fi 12925 # Try to locate tool using the code snippet 12926 for ac_prog in df 12927 do 12928 # Extract the first word of "$ac_prog", so it can be a program name with args. 12929 set dummy $ac_prog; ac_word=$2 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12931 $as_echo_n "checking for $ac_word... " >&6; } 12932 if ${ac_cv_path_DF+:} false; then : 12933 $as_echo_n "(cached) " >&6 12934 else 12935 case $DF in 12936 [\\/]* | ?:[\\/]*) 12937 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12938 ;; 12939 *) 12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12941 for as_dir in $PATH 12942 do 12943 IFS=$as_save_IFS 12944 test -z "$as_dir" && as_dir=. 12945 for ac_exec_ext in '' $ac_executable_extensions; do 12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12947 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12949 break 2 12950 fi 12951 done 12952 done 12953 IFS=$as_save_IFS 12954 12955 ;; 12956 esac 12957 fi 12958 DF=$ac_cv_path_DF 12959 if test -n "$DF"; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12961 $as_echo "$DF" >&6; } 12962 else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12964 $as_echo "no" >&6; } 12965 fi 12966 12967 12968 test -n "$DF" && break 12969 done 12970 12971 else 12972 # If it succeeded, then it was overridden by the user. We will use it 12973 # for the tool. 12974 12975 # First remove it from the list of overridden variables, so we can test 12976 # for unknown variables in the end. 12977 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12978 12979 # Check if the provided tool contains a complete path. 12980 tool_specified="$DF" 12981 tool_basename="${tool_specified##*/}" 12982 if test "x$tool_basename" = "x$tool_specified"; then 12983 # A command without a complete path is provided, search $PATH. 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12985 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12986 # Extract the first word of "$tool_basename", so it can be a program name with args. 12987 set dummy $tool_basename; ac_word=$2 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12989 $as_echo_n "checking for $ac_word... " >&6; } 12990 if ${ac_cv_path_DF+:} false; then : 12991 $as_echo_n "(cached) " >&6 12992 else 12993 case $DF in 12994 [\\/]* | ?:[\\/]*) 12995 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12996 ;; 12997 *) 12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12999 for as_dir in $PATH 13000 do 13001 IFS=$as_save_IFS 13002 test -z "$as_dir" && as_dir=. 13003 for ac_exec_ext in '' $ac_executable_extensions; do 13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13005 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13007 break 2 13008 fi 13009 done 13010 done 13011 IFS=$as_save_IFS 13012 13013 ;; 13014 esac 13015 fi 13016 DF=$ac_cv_path_DF 13017 if test -n "$DF"; then 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13019 $as_echo "$DF" >&6; } 13020 else 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13022 $as_echo "no" >&6; } 13023 fi 13024 13025 13026 if test "x$DF" = x; then 13027 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13028 fi 13029 else 13030 # Otherwise we believe it is a complete path. Use it as it is. 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13032 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13034 $as_echo_n "checking for DF... " >&6; } 13035 if test ! -x "$tool_specified"; then 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13037 $as_echo "not found" >&6; } 13038 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13039 fi 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13041 $as_echo "$tool_specified" >&6; } 13042 fi 13043 fi 13044 fi 13045 13046 13047 13048 13049 # Publish this variable in the help. 13050 13051 13052 if test "x$SETFILE" = x; then 13053 # The variable is not set by user, try to locate tool using the code snippet 13054 for ac_prog in SetFile 13055 do 13056 # Extract the first word of "$ac_prog", so it can be a program name with args. 13057 set dummy $ac_prog; ac_word=$2 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13059 $as_echo_n "checking for $ac_word... " >&6; } 13060 if ${ac_cv_path_SETFILE+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062 else 13063 case $SETFILE in 13064 [\\/]* | ?:[\\/]*) 13065 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13066 ;; 13067 *) 13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13069 for as_dir in $PATH 13070 do 13071 IFS=$as_save_IFS 13072 test -z "$as_dir" && as_dir=. 13073 for ac_exec_ext in '' $ac_executable_extensions; do 13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13075 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13077 break 2 13078 fi 13079 done 13080 done 13081 IFS=$as_save_IFS 13082 13083 ;; 13084 esac 13085 fi 13086 SETFILE=$ac_cv_path_SETFILE 13087 if test -n "$SETFILE"; then 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13089 $as_echo "$SETFILE" >&6; } 13090 else 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13092 $as_echo "no" >&6; } 13093 fi 13094 13095 13096 test -n "$SETFILE" && break 13097 done 13098 13099 else 13100 # The variable is set, but is it from the command line or the environment? 13101 13102 # Try to remove the string !SETFILE! from our list. 13103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13105 # If it failed, the variable was not from the command line. Ignore it, 13106 # but warn the user (except for BASH, which is always set by the calling BASH). 13107 if test "xSETFILE" != xBASH; then 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13109 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13110 fi 13111 # Try to locate tool using the code snippet 13112 for ac_prog in SetFile 13113 do 13114 # Extract the first word of "$ac_prog", so it can be a program name with args. 13115 set dummy $ac_prog; ac_word=$2 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13117 $as_echo_n "checking for $ac_word... " >&6; } 13118 if ${ac_cv_path_SETFILE+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120 else 13121 case $SETFILE in 13122 [\\/]* | ?:[\\/]*) 13123 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13124 ;; 13125 *) 13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13127 for as_dir in $PATH 13128 do 13129 IFS=$as_save_IFS 13130 test -z "$as_dir" && as_dir=. 13131 for ac_exec_ext in '' $ac_executable_extensions; do 13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13133 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13135 break 2 13136 fi 13137 done 13138 done 13139 IFS=$as_save_IFS 13140 13141 ;; 13142 esac 13143 fi 13144 SETFILE=$ac_cv_path_SETFILE 13145 if test -n "$SETFILE"; then 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13147 $as_echo "$SETFILE" >&6; } 13148 else 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13150 $as_echo "no" >&6; } 13151 fi 13152 13153 13154 test -n "$SETFILE" && break 13155 done 13156 13157 else 13158 # If it succeeded, then it was overridden by the user. We will use it 13159 # for the tool. 13160 13161 # First remove it from the list of overridden variables, so we can test 13162 # for unknown variables in the end. 13163 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13164 13165 # Check if the provided tool contains a complete path. 13166 tool_specified="$SETFILE" 13167 tool_basename="${tool_specified##*/}" 13168 if test "x$tool_basename" = "x$tool_specified"; then 13169 # A command without a complete path is provided, search $PATH. 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13171 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13172 # Extract the first word of "$tool_basename", so it can be a program name with args. 13173 set dummy $tool_basename; ac_word=$2 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13175 $as_echo_n "checking for $ac_word... " >&6; } 13176 if ${ac_cv_path_SETFILE+:} false; then : 13177 $as_echo_n "(cached) " >&6 13178 else 13179 case $SETFILE in 13180 [\\/]* | ?:[\\/]*) 13181 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13182 ;; 13183 *) 13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13185 for as_dir in $PATH 13186 do 13187 IFS=$as_save_IFS 13188 test -z "$as_dir" && as_dir=. 13189 for ac_exec_ext in '' $ac_executable_extensions; do 13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13191 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13193 break 2 13194 fi 13195 done 13196 done 13197 IFS=$as_save_IFS 13198 13199 ;; 13200 esac 13201 fi 13202 SETFILE=$ac_cv_path_SETFILE 13203 if test -n "$SETFILE"; then 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13205 $as_echo "$SETFILE" >&6; } 13206 else 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13208 $as_echo "no" >&6; } 13209 fi 13210 13211 13212 if test "x$SETFILE" = x; then 13213 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13214 fi 13215 else 13216 # Otherwise we believe it is a complete path. Use it as it is. 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13218 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13220 $as_echo_n "checking for SETFILE... " >&6; } 13221 if test ! -x "$tool_specified"; then 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13223 $as_echo "not found" >&6; } 13224 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13225 fi 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13227 $as_echo "$tool_specified" >&6; } 13228 fi 13229 fi 13230 fi 13231 13232 13233 13234 13235 # Publish this variable in the help. 13236 13237 13238 if test "x$CPIO" = x; then 13239 # The variable is not set by user, try to locate tool using the code snippet 13240 for ac_prog in cpio bsdcpio 13241 do 13242 # Extract the first word of "$ac_prog", so it can be a program name with args. 13243 set dummy $ac_prog; ac_word=$2 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13245 $as_echo_n "checking for $ac_word... " >&6; } 13246 if ${ac_cv_path_CPIO+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248 else 13249 case $CPIO in 13250 [\\/]* | ?:[\\/]*) 13251 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13252 ;; 13253 *) 13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255 for as_dir in $PATH 13256 do 13257 IFS=$as_save_IFS 13258 test -z "$as_dir" && as_dir=. 13259 for ac_exec_ext in '' $ac_executable_extensions; do 13260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13261 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13263 break 2 13264 fi 13265 done 13266 done 13267 IFS=$as_save_IFS 13268 13269 ;; 13270 esac 13271 fi 13272 CPIO=$ac_cv_path_CPIO 13273 if test -n "$CPIO"; then 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13275 $as_echo "$CPIO" >&6; } 13276 else 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13278 $as_echo "no" >&6; } 13279 fi 13280 13281 13282 test -n "$CPIO" && break 13283 done 13284 13285 else 13286 # The variable is set, but is it from the command line or the environment? 13287 13288 # Try to remove the string !CPIO! from our list. 13289 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13290 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13291 # If it failed, the variable was not from the command line. Ignore it, 13292 # but warn the user (except for BASH, which is always set by the calling BASH). 13293 if test "xCPIO" != xBASH; then 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13295 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13296 fi 13297 # Try to locate tool using the code snippet 13298 for ac_prog in cpio bsdcpio 13299 do 13300 # Extract the first word of "$ac_prog", so it can be a program name with args. 13301 set dummy $ac_prog; ac_word=$2 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13303 $as_echo_n "checking for $ac_word... " >&6; } 13304 if ${ac_cv_path_CPIO+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306 else 13307 case $CPIO in 13308 [\\/]* | ?:[\\/]*) 13309 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13310 ;; 13311 *) 13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13313 for as_dir in $PATH 13314 do 13315 IFS=$as_save_IFS 13316 test -z "$as_dir" && as_dir=. 13317 for ac_exec_ext in '' $ac_executable_extensions; do 13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13319 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13321 break 2 13322 fi 13323 done 13324 done 13325 IFS=$as_save_IFS 13326 13327 ;; 13328 esac 13329 fi 13330 CPIO=$ac_cv_path_CPIO 13331 if test -n "$CPIO"; then 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13333 $as_echo "$CPIO" >&6; } 13334 else 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13336 $as_echo "no" >&6; } 13337 fi 13338 13339 13340 test -n "$CPIO" && break 13341 done 13342 13343 else 13344 # If it succeeded, then it was overridden by the user. We will use it 13345 # for the tool. 13346 13347 # First remove it from the list of overridden variables, so we can test 13348 # for unknown variables in the end. 13349 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13350 13351 # Check if the provided tool contains a complete path. 13352 tool_specified="$CPIO" 13353 tool_basename="${tool_specified##*/}" 13354 if test "x$tool_basename" = "x$tool_specified"; then 13355 # A command without a complete path is provided, search $PATH. 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13357 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13358 # Extract the first word of "$tool_basename", so it can be a program name with args. 13359 set dummy $tool_basename; ac_word=$2 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13361 $as_echo_n "checking for $ac_word... " >&6; } 13362 if ${ac_cv_path_CPIO+:} false; then : 13363 $as_echo_n "(cached) " >&6 13364 else 13365 case $CPIO in 13366 [\\/]* | ?:[\\/]*) 13367 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13368 ;; 13369 *) 13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13371 for as_dir in $PATH 13372 do 13373 IFS=$as_save_IFS 13374 test -z "$as_dir" && as_dir=. 13375 for ac_exec_ext in '' $ac_executable_extensions; do 13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13377 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13379 break 2 13380 fi 13381 done 13382 done 13383 IFS=$as_save_IFS 13384 13385 ;; 13386 esac 13387 fi 13388 CPIO=$ac_cv_path_CPIO 13389 if test -n "$CPIO"; then 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13391 $as_echo "$CPIO" >&6; } 13392 else 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13394 $as_echo "no" >&6; } 13395 fi 13396 13397 13398 if test "x$CPIO" = x; then 13399 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13400 fi 13401 else 13402 # Otherwise we believe it is a complete path. Use it as it is. 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13404 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13406 $as_echo_n "checking for CPIO... " >&6; } 13407 if test ! -x "$tool_specified"; then 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13409 $as_echo "not found" >&6; } 13410 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13411 fi 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13413 $as_echo "$tool_specified" >&6; } 13414 fi 13415 fi 13416 fi 13417 13418 13419 13420 13421 # Now we can determine OpenJDK build and target platforms. This is required to 13422 # have early on. 13423 # Make sure we can run config.sub. 13424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13425 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13426 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13428 $as_echo_n "checking build system type... " >&6; } 13429 if ${ac_cv_build+:} false; then : 13430 $as_echo_n "(cached) " >&6 13431 else 13432 ac_build_alias=$build_alias 13433 test "x$ac_build_alias" = x && 13434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13435 test "x$ac_build_alias" = x && 13436 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13439 13440 fi 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13442 $as_echo "$ac_cv_build" >&6; } 13443 case $ac_cv_build in 13444 *-*-*) ;; 13445 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13446 esac 13447 build=$ac_cv_build 13448 ac_save_IFS=$IFS; IFS='-' 13449 set x $ac_cv_build 13450 shift 13451 build_cpu=$1 13452 build_vendor=$2 13453 shift; shift 13454 # Remember, the first character of IFS is used to create $*, 13455 # except with old shells: 13456 build_os=$* 13457 IFS=$ac_save_IFS 13458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13459 13460 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13462 $as_echo_n "checking host system type... " >&6; } 13463 if ${ac_cv_host+:} false; then : 13464 $as_echo_n "(cached) " >&6 13465 else 13466 if test "x$host_alias" = x; then 13467 ac_cv_host=$ac_cv_build 13468 else 13469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13471 fi 13472 13473 fi 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13475 $as_echo "$ac_cv_host" >&6; } 13476 case $ac_cv_host in 13477 *-*-*) ;; 13478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13479 esac 13480 host=$ac_cv_host 13481 ac_save_IFS=$IFS; IFS='-' 13482 set x $ac_cv_host 13483 shift 13484 host_cpu=$1 13485 host_vendor=$2 13486 shift; shift 13487 # Remember, the first character of IFS is used to create $*, 13488 # except with old shells: 13489 host_os=$* 13490 IFS=$ac_save_IFS 13491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13492 13493 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13495 $as_echo_n "checking target system type... " >&6; } 13496 if ${ac_cv_target+:} false; then : 13497 $as_echo_n "(cached) " >&6 13498 else 13499 if test "x$target_alias" = x; then 13500 ac_cv_target=$ac_cv_host 13501 else 13502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13504 fi 13505 13506 fi 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13508 $as_echo "$ac_cv_target" >&6; } 13509 case $ac_cv_target in 13510 *-*-*) ;; 13511 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13512 esac 13513 target=$ac_cv_target 13514 ac_save_IFS=$IFS; IFS='-' 13515 set x $ac_cv_target 13516 shift 13517 target_cpu=$1 13518 target_vendor=$2 13519 shift; shift 13520 # Remember, the first character of IFS is used to create $*, 13521 # except with old shells: 13522 target_os=$* 13523 IFS=$ac_save_IFS 13524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13525 13526 13527 # The aliases save the names the user supplied, while $host etc. 13528 # will get canonicalized. 13529 test -n "$target_alias" && 13530 test "$program_prefix$program_suffix$program_transform_name" = \ 13531 NONENONEs,x,x, && 13532 program_prefix=${target_alias}- 13533 13534 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13535 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13536 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13537 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13538 # to use the configure naming style. 13539 13540 13541 13542 13543 13544 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13545 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13546 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13547 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13548 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13549 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13550 13551 13552 13553 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13554 13555 case "$build_os" in 13556 *linux*) 13557 VAR_OS=linux 13558 VAR_OS_API=posix 13559 VAR_OS_ENV=linux 13560 ;; 13561 *solaris*) 13562 VAR_OS=solaris 13563 VAR_OS_API=posix 13564 VAR_OS_ENV=solaris 13565 ;; 13566 *darwin*) 13567 VAR_OS=macosx 13568 VAR_OS_API=posix 13569 VAR_OS_ENV=macosx 13570 ;; 13571 *bsd*) 13572 VAR_OS=bsd 13573 VAR_OS_API=posix 13574 VAR_OS_ENV=bsd 13575 ;; 13576 *cygwin*) 13577 VAR_OS=windows 13578 VAR_OS_API=winapi 13579 VAR_OS_ENV=windows.cygwin 13580 ;; 13581 *mingw*) 13582 VAR_OS=windows 13583 VAR_OS_API=winapi 13584 VAR_OS_ENV=windows.msys 13585 ;; 13586 *aix*) 13587 VAR_OS=aix 13588 VAR_OS_API=posix 13589 VAR_OS_ENV=aix 13590 ;; 13591 *) 13592 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13593 ;; 13594 esac 13595 13596 13597 # First argument is the cpu name from the trip/quad 13598 case "$build_cpu" in 13599 x86_64) 13600 VAR_CPU=x86_64 13601 VAR_CPU_ARCH=x86 13602 VAR_CPU_BITS=64 13603 VAR_CPU_ENDIAN=little 13604 ;; 13605 i?86) 13606 VAR_CPU=x86 13607 VAR_CPU_ARCH=x86 13608 VAR_CPU_BITS=32 13609 VAR_CPU_ENDIAN=little 13610 ;; 13611 arm*) 13612 VAR_CPU=arm 13613 VAR_CPU_ARCH=arm 13614 VAR_CPU_BITS=32 13615 VAR_CPU_ENDIAN=little 13616 ;; 13617 aarch64) 13618 VAR_CPU=aarch64 13619 VAR_CPU_ARCH=aarch64 13620 VAR_CPU_BITS=64 13621 VAR_CPU_ENDIAN=little 13622 ;; 13623 powerpc) 13624 VAR_CPU=ppc 13625 VAR_CPU_ARCH=ppc 13626 VAR_CPU_BITS=32 13627 VAR_CPU_ENDIAN=big 13628 ;; 13629 powerpc64) 13630 VAR_CPU=ppc64 13631 VAR_CPU_ARCH=ppc 13632 VAR_CPU_BITS=64 13633 VAR_CPU_ENDIAN=big 13634 ;; 13635 powerpc64le) 13636 VAR_CPU=ppc64le 13637 VAR_CPU_ARCH=ppc 13638 VAR_CPU_BITS=64 13639 VAR_CPU_ENDIAN=little 13640 ;; 13641 s390) 13642 VAR_CPU=s390 13643 VAR_CPU_ARCH=s390 13644 VAR_CPU_BITS=32 13645 VAR_CPU_ENDIAN=big 13646 ;; 13647 s390x) 13648 VAR_CPU=s390x 13649 VAR_CPU_ARCH=s390 13650 VAR_CPU_BITS=64 13651 VAR_CPU_ENDIAN=big 13652 ;; 13653 sparc) 13654 VAR_CPU=sparc 13655 VAR_CPU_ARCH=sparc 13656 VAR_CPU_BITS=32 13657 VAR_CPU_ENDIAN=big 13658 ;; 13659 sparcv9|sparc64) 13660 VAR_CPU=sparcv9 13661 VAR_CPU_ARCH=sparc 13662 VAR_CPU_BITS=64 13663 VAR_CPU_ENDIAN=big 13664 ;; 13665 *) 13666 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13667 ;; 13668 esac 13669 13670 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13671 OPENJDK_BUILD_OS="$VAR_OS" 13672 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13673 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13674 OPENJDK_BUILD_CPU="$VAR_CPU" 13675 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13676 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13677 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13678 13679 13680 13681 13682 13683 13684 13685 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13687 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13689 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13690 13691 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13692 13693 case "$host_os" in 13694 *linux*) 13695 VAR_OS=linux 13696 VAR_OS_API=posix 13697 VAR_OS_ENV=linux 13698 ;; 13699 *solaris*) 13700 VAR_OS=solaris 13701 VAR_OS_API=posix 13702 VAR_OS_ENV=solaris 13703 ;; 13704 *darwin*) 13705 VAR_OS=macosx 13706 VAR_OS_API=posix 13707 VAR_OS_ENV=macosx 13708 ;; 13709 *bsd*) 13710 VAR_OS=bsd 13711 VAR_OS_API=posix 13712 VAR_OS_ENV=bsd 13713 ;; 13714 *cygwin*) 13715 VAR_OS=windows 13716 VAR_OS_API=winapi 13717 VAR_OS_ENV=windows.cygwin 13718 ;; 13719 *mingw*) 13720 VAR_OS=windows 13721 VAR_OS_API=winapi 13722 VAR_OS_ENV=windows.msys 13723 ;; 13724 *aix*) 13725 VAR_OS=aix 13726 VAR_OS_API=posix 13727 VAR_OS_ENV=aix 13728 ;; 13729 *) 13730 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13731 ;; 13732 esac 13733 13734 13735 # First argument is the cpu name from the trip/quad 13736 case "$host_cpu" in 13737 x86_64) 13738 VAR_CPU=x86_64 13739 VAR_CPU_ARCH=x86 13740 VAR_CPU_BITS=64 13741 VAR_CPU_ENDIAN=little 13742 ;; 13743 i?86) 13744 VAR_CPU=x86 13745 VAR_CPU_ARCH=x86 13746 VAR_CPU_BITS=32 13747 VAR_CPU_ENDIAN=little 13748 ;; 13749 arm*) 13750 VAR_CPU=arm 13751 VAR_CPU_ARCH=arm 13752 VAR_CPU_BITS=32 13753 VAR_CPU_ENDIAN=little 13754 ;; 13755 aarch64) 13756 VAR_CPU=aarch64 13757 VAR_CPU_ARCH=aarch64 13758 VAR_CPU_BITS=64 13759 VAR_CPU_ENDIAN=little 13760 ;; 13761 powerpc) 13762 VAR_CPU=ppc 13763 VAR_CPU_ARCH=ppc 13764 VAR_CPU_BITS=32 13765 VAR_CPU_ENDIAN=big 13766 ;; 13767 powerpc64) 13768 VAR_CPU=ppc64 13769 VAR_CPU_ARCH=ppc 13770 VAR_CPU_BITS=64 13771 VAR_CPU_ENDIAN=big 13772 ;; 13773 powerpc64le) 13774 VAR_CPU=ppc64le 13775 VAR_CPU_ARCH=ppc 13776 VAR_CPU_BITS=64 13777 VAR_CPU_ENDIAN=little 13778 ;; 13779 s390) 13780 VAR_CPU=s390 13781 VAR_CPU_ARCH=s390 13782 VAR_CPU_BITS=32 13783 VAR_CPU_ENDIAN=big 13784 ;; 13785 s390x) 13786 VAR_CPU=s390x 13787 VAR_CPU_ARCH=s390 13788 VAR_CPU_BITS=64 13789 VAR_CPU_ENDIAN=big 13790 ;; 13791 sparc) 13792 VAR_CPU=sparc 13793 VAR_CPU_ARCH=sparc 13794 VAR_CPU_BITS=32 13795 VAR_CPU_ENDIAN=big 13796 ;; 13797 sparcv9|sparc64) 13798 VAR_CPU=sparcv9 13799 VAR_CPU_ARCH=sparc 13800 VAR_CPU_BITS=64 13801 VAR_CPU_ENDIAN=big 13802 ;; 13803 *) 13804 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13805 ;; 13806 esac 13807 13808 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13809 OPENJDK_TARGET_OS="$VAR_OS" 13810 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13811 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13812 OPENJDK_TARGET_CPU="$VAR_CPU" 13813 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13814 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13815 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13816 13817 13818 13819 13820 13821 13822 13823 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13825 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13827 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13828 13829 13830 13831 # Check whether --with-target-bits was given. 13832 if test "${with_target_bits+set}" = set; then : 13833 withval=$with_target_bits; 13834 fi 13835 13836 13837 # We have three types of compiles: 13838 # native == normal compilation, target system == build system 13839 # cross == traditional cross compilation, target system != build system; special toolchain needed 13840 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13841 # 13842 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13843 # We're doing a proper cross-compilation 13844 COMPILE_TYPE="cross" 13845 else 13846 COMPILE_TYPE="native" 13847 fi 13848 13849 if test "x$with_target_bits" != x; then 13850 if test "x$COMPILE_TYPE" = "xcross"; then 13851 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13852 fi 13853 13854 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13855 # A reduced build is requested 13856 COMPILE_TYPE="reduced" 13857 OPENJDK_TARGET_CPU_BITS=32 13858 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13859 OPENJDK_TARGET_CPU=x86 13860 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13861 OPENJDK_TARGET_CPU=sparc 13862 else 13863 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13864 fi 13865 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13866 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 13867 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13869 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13870 else 13871 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13872 fi 13873 fi 13874 13875 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13877 $as_echo_n "checking compilation type... " >&6; } 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13879 $as_echo "$COMPILE_TYPE" >&6; } 13880 13881 13882 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13883 REQUIRED_OS_NAME=SunOS 13884 REQUIRED_OS_VERSION=5.10 13885 fi 13886 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13887 REQUIRED_OS_NAME=Linux 13888 REQUIRED_OS_VERSION=2.6 13889 fi 13890 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13891 REQUIRED_OS_NAME=Windows 13892 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13893 REQUIRED_OS_VERSION=5.2 13894 else 13895 REQUIRED_OS_VERSION=5.1 13896 fi 13897 fi 13898 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13899 REQUIRED_OS_NAME=Darwin 13900 REQUIRED_OS_VERSION=11.2 13901 fi 13902 13903 13904 13905 13906 13907 # Also store the legacy naming of the cpu. 13908 # Ie i586 and amd64 instead of x86 and x86_64 13909 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13910 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13911 OPENJDK_TARGET_CPU_LEGACY="i586" 13912 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13913 # On all platforms except MacOSX replace x86_64 with amd64. 13914 OPENJDK_TARGET_CPU_LEGACY="amd64" 13915 fi 13916 13917 13918 # And the second legacy naming of the cpu. 13919 # Ie i386 and amd64 instead of x86 and x86_64. 13920 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13921 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13922 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13923 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13924 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13925 fi 13926 13927 13928 # This is the name of the cpu (but using i386 and amd64 instead of 13929 # x86 and x86_64, respectively), preceeded by a /, to be used when 13930 # locating libraries. On macosx, it's empty, though. 13931 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13932 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13933 OPENJDK_TARGET_CPU_LIBDIR="" 13934 fi 13935 13936 13937 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13938 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13939 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13940 OPENJDK_TARGET_CPU_ISADIR="" 13941 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13942 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13943 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13944 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13945 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13946 fi 13947 fi 13948 13949 13950 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13951 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13952 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13953 # On linux only, we replace x86 with i386. 13954 OPENJDK_TARGET_CPU_OSARCH="i386" 13955 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13956 # On all platforms except macosx, we replace x86_64 with amd64. 13957 OPENJDK_TARGET_CPU_OSARCH="amd64" 13958 fi 13959 13960 13961 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13962 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13963 OPENJDK_TARGET_CPU_JLI="i386" 13964 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13965 # On all platforms except macosx, we replace x86_64 with amd64. 13966 OPENJDK_TARGET_CPU_JLI="amd64" 13967 fi 13968 # Now setup the -D flags for building libjli. 13969 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13970 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13971 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13972 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13973 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13974 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13975 fi 13976 fi 13977 13978 13979 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13980 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13981 OPENJDK_TARGET_OS_API_DIR="solaris" 13982 fi 13983 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13984 OPENJDK_TARGET_OS_API_DIR="windows" 13985 fi 13986 13987 13988 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13989 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13990 else 13991 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13992 fi 13993 13994 13995 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13996 A_LP64="LP64:=" 13997 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13998 # unpack200.exe 13999 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14000 ADD_LP64="-D_LP64=1" 14001 fi 14002 fi 14003 LP64=$A_LP64 14004 14005 14006 if test "x$COMPILE_TYPE" = "xcross"; then 14007 # FIXME: ... or should this include reduced builds..? 14008 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14009 else 14010 DEFINE_CROSS_COMPILE_ARCH="" 14011 fi 14012 14013 14014 # ZERO_ARCHDEF is used to enable architecture-specific code 14015 case "${OPENJDK_TARGET_CPU}" in 14016 ppc) ZERO_ARCHDEF=PPC32 ;; 14017 ppc64) ZERO_ARCHDEF=PPC64 ;; 14018 s390*) ZERO_ARCHDEF=S390 ;; 14019 sparc*) ZERO_ARCHDEF=SPARC ;; 14020 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14021 x86) ZERO_ARCHDEF=IA32 ;; 14022 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14023 esac 14024 14025 14026 14027 14028 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14029 14030 # Save the current directory this script was started from 14031 CURDIR="$PWD" 14032 14033 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14034 PATH_SEP=";" 14035 14036 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14037 if test $SRC_ROOT_LENGTH -gt 100; then 14038 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14039 fi 14040 14041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14043 $as_echo_n "checking cygwin release... " >&6; } 14044 CYGWIN_VERSION=`$UNAME -r` 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14046 $as_echo "$CYGWIN_VERSION" >&6; } 14047 WINDOWS_ENV_VENDOR='cygwin' 14048 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14049 14050 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14051 if test "x$CYGWIN_VERSION_OLD" != x; then 14052 { $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 14053 $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;} 14054 as_fn_error $? "Cannot continue" "$LINENO" 5 14055 fi 14056 if test "x$CYGPATH" = x; then 14057 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14058 fi 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14060 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14061 # The cmd output ends with Windows line endings (CR/LF) 14062 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 14063 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14064 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14066 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14067 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14068 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14069 if test "x$test_cygdrive_prefix" = x; then 14070 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14071 fi 14072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14074 $as_echo_n "checking msys release... " >&6; } 14075 MSYS_VERSION=`$UNAME -r` 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14077 $as_echo "$MSYS_VERSION" >&6; } 14078 14079 WINDOWS_ENV_VENDOR='msys' 14080 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14081 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14083 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14084 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14085 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14086 14087 windows_path="$MSYS_ROOT_PATH" 14088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14089 unix_path=`$CYGPATH -u "$windows_path"` 14090 MSYS_ROOT_PATH="$unix_path" 14091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14093 MSYS_ROOT_PATH="$unix_path" 14094 fi 14095 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14097 $as_echo "$MSYS_ROOT_PATH" >&6; } 14098 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14099 else 14100 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14101 fi 14102 14103 # Test if windows or unix (cygwin/msys) find is first in path. 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14105 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14106 FIND_BINARY_OUTPUT=`find --version 2>&1` 14107 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14109 $as_echo "unix style" >&6; } 14110 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14112 $as_echo "Windows" >&6; } 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14114 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14115 { $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 14116 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14117 as_fn_error $? "Cannot continue" "$LINENO" 5 14118 else 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14120 $as_echo "unknown" >&6; } 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14122 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14123 fi 14124 14125 else 14126 PATH_SEP=":" 14127 fi 14128 14129 14130 # We get the top-level directory from the supporting wrappers. 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14132 $as_echo_n "checking for top-level directory... " >&6; } 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14134 $as_echo "$TOPDIR" >&6; } 14135 14136 14137 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14138 14139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14140 14141 # Input might be given as Windows format, start by converting to 14142 # unix format. 14143 path="$CURDIR" 14144 new_path=`$CYGPATH -u "$path"` 14145 14146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14149 # "foo.exe" is OK but "foo" is an error. 14150 # 14151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14152 # It is also a way to make sure we got the proper file name for the real test later on. 14153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14154 if test "x$test_shortpath" = x; then 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14156 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14157 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14158 fi 14159 14160 # Call helper function which possibly converts this using DOS-style short mode. 14161 # If so, the updated path is stored in $new_path. 14162 14163 input_path="$new_path" 14164 # Check if we need to convert this using DOS-style short mode. If the path 14165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14166 # take no chances and rewrite it. 14167 # Note: m4 eats our [], so we need to use [ and ] instead. 14168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14169 if test "x$has_forbidden_chars" != x; then 14170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14174 # Going to short mode and back again did indeed matter. Since short mode is 14175 # case insensitive, let's make it lowercase to improve readability. 14176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14177 # Now convert it back to Unix-style (cygpath) 14178 input_path=`$CYGPATH -u "$shortmode_path"` 14179 new_path="$input_path" 14180 fi 14181 fi 14182 14183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14184 if test "x$test_cygdrive_prefix" = x; then 14185 # As a simple fix, exclude /usr/bin since it's not a real path. 14186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14188 # a path prefixed by /cygdrive for fixpath to work. 14189 new_path="$CYGWIN_ROOT_PATH$input_path" 14190 fi 14191 fi 14192 14193 14194 if test "x$path" != "x$new_path"; then 14195 CURDIR="$new_path" 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14197 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14198 fi 14199 14200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14201 14202 path="$CURDIR" 14203 has_colon=`$ECHO $path | $GREP ^.:` 14204 new_path="$path" 14205 if test "x$has_colon" = x; then 14206 # Not in mixed or Windows style, start by that. 14207 new_path=`cmd //c echo $path` 14208 fi 14209 14210 14211 input_path="$new_path" 14212 # Check if we need to convert this using DOS-style short mode. If the path 14213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14214 # take no chances and rewrite it. 14215 # Note: m4 eats our [], so we need to use [ and ] instead. 14216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14217 if test "x$has_forbidden_chars" != x; then 14218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14220 fi 14221 14222 14223 windows_path="$new_path" 14224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14225 unix_path=`$CYGPATH -u "$windows_path"` 14226 new_path="$unix_path" 14227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14229 new_path="$unix_path" 14230 fi 14231 14232 if test "x$path" != "x$new_path"; then 14233 CURDIR="$new_path" 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14235 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14236 fi 14237 14238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14240 14241 else 14242 # We're on a posix platform. Hooray! :) 14243 path="$CURDIR" 14244 has_space=`$ECHO "$path" | $GREP " "` 14245 if test "x$has_space" != x; then 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14247 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14249 fi 14250 14251 # Use eval to expand a potential ~ 14252 eval path="$path" 14253 if test ! -f "$path" && test ! -d "$path"; then 14254 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14255 fi 14256 14257 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14258 fi 14259 14260 14261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14262 14263 # Input might be given as Windows format, start by converting to 14264 # unix format. 14265 path="$TOPDIR" 14266 new_path=`$CYGPATH -u "$path"` 14267 14268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14271 # "foo.exe" is OK but "foo" is an error. 14272 # 14273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14274 # It is also a way to make sure we got the proper file name for the real test later on. 14275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14276 if test "x$test_shortpath" = x; then 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14278 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14279 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14280 fi 14281 14282 # Call helper function which possibly converts this using DOS-style short mode. 14283 # If so, the updated path is stored in $new_path. 14284 14285 input_path="$new_path" 14286 # Check if we need to convert this using DOS-style short mode. If the path 14287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14288 # take no chances and rewrite it. 14289 # Note: m4 eats our [], so we need to use [ and ] instead. 14290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14291 if test "x$has_forbidden_chars" != x; then 14292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14296 # Going to short mode and back again did indeed matter. Since short mode is 14297 # case insensitive, let's make it lowercase to improve readability. 14298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14299 # Now convert it back to Unix-style (cygpath) 14300 input_path=`$CYGPATH -u "$shortmode_path"` 14301 new_path="$input_path" 14302 fi 14303 fi 14304 14305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14306 if test "x$test_cygdrive_prefix" = x; then 14307 # As a simple fix, exclude /usr/bin since it's not a real path. 14308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14310 # a path prefixed by /cygdrive for fixpath to work. 14311 new_path="$CYGWIN_ROOT_PATH$input_path" 14312 fi 14313 fi 14314 14315 14316 if test "x$path" != "x$new_path"; then 14317 TOPDIR="$new_path" 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14319 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14320 fi 14321 14322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14323 14324 path="$TOPDIR" 14325 has_colon=`$ECHO $path | $GREP ^.:` 14326 new_path="$path" 14327 if test "x$has_colon" = x; then 14328 # Not in mixed or Windows style, start by that. 14329 new_path=`cmd //c echo $path` 14330 fi 14331 14332 14333 input_path="$new_path" 14334 # Check if we need to convert this using DOS-style short mode. If the path 14335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14336 # take no chances and rewrite it. 14337 # Note: m4 eats our [], so we need to use [ and ] instead. 14338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14339 if test "x$has_forbidden_chars" != x; then 14340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14342 fi 14343 14344 14345 windows_path="$new_path" 14346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14347 unix_path=`$CYGPATH -u "$windows_path"` 14348 new_path="$unix_path" 14349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14351 new_path="$unix_path" 14352 fi 14353 14354 if test "x$path" != "x$new_path"; then 14355 TOPDIR="$new_path" 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14357 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14358 fi 14359 14360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14362 14363 else 14364 # We're on a posix platform. Hooray! :) 14365 path="$TOPDIR" 14366 has_space=`$ECHO "$path" | $GREP " "` 14367 if test "x$has_space" != x; then 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14369 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14371 fi 14372 14373 # Use eval to expand a potential ~ 14374 eval path="$path" 14375 if test ! -f "$path" && test ! -d "$path"; then 14376 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14377 fi 14378 14379 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14380 fi 14381 14382 # SRC_ROOT is a traditional alias for TOPDIR. 14383 SRC_ROOT=$TOPDIR 14384 14385 # Locate the directory of this script. 14386 AUTOCONF_DIR=$TOPDIR/common/autoconf 14387 14388 14389 # Setup default logging of stdout and stderr to build.log in the output root. 14390 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14391 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14392 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14393 14394 14395 14396 14397 14398 # Check if it's a pure open build or if custom sources are to be used. 14399 14400 # Check whether --enable-openjdk-only was given. 14401 if test "${enable_openjdk_only+set}" = set; then : 14402 enableval=$enable_openjdk_only; 14403 else 14404 enable_openjdk_only="no" 14405 fi 14406 14407 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14409 $as_echo_n "checking for presence of closed sources... " >&6; } 14410 if test -d "$SRC_ROOT/jdk/src/closed"; then 14411 CLOSED_SOURCE_PRESENT=yes 14412 else 14413 CLOSED_SOURCE_PRESENT=no 14414 fi 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14416 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14417 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14419 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14420 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14422 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14423 14424 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14425 OPENJDK=true 14426 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14428 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14429 fi 14430 else 14431 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14432 OPENJDK=true 14433 else 14434 OPENJDK=false 14435 fi 14436 fi 14437 14438 if test "x$OPENJDK" = "xtrue"; then 14439 SET_OPENJDK="OPENJDK=true" 14440 fi 14441 14442 14443 14444 14445 # These are needed to be able to create a configuration name (and thus the output directory) 14446 14447 ############################################################################### 14448 # 14449 # Check which variant of the JDK that we want to build. 14450 # Currently we have: 14451 # normal: standard edition 14452 # but the custom make system may add other variants 14453 # 14454 # Effectively the JDK variant gives a name to a specific set of 14455 # modules to compile into the JDK. In the future, these modules 14456 # might even be Jigsaw modules. 14457 # 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14459 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14460 14461 # Check whether --with-jdk-variant was given. 14462 if test "${with_jdk_variant+set}" = set; then : 14463 withval=$with_jdk_variant; 14464 fi 14465 14466 14467 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14468 JDK_VARIANT="normal" 14469 else 14470 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14471 fi 14472 14473 14474 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14476 $as_echo "$JDK_VARIANT" >&6; } 14477 14478 14479 ############################################################################### 14480 # 14481 # Check which interpreter of the JVM we want to build. 14482 # Currently we have: 14483 # template: Template interpreter (the default) 14484 # cpp : C++ interpreter 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14486 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14487 14488 # Check whether --with-jvm-interpreter was given. 14489 if test "${with_jvm_interpreter+set}" = set; then : 14490 withval=$with_jvm_interpreter; 14491 fi 14492 14493 14494 if test "x$with_jvm_interpreter" = x; then 14495 with_jvm_interpreter="template" 14496 fi 14497 14498 JVM_INTERPRETER="$with_jvm_interpreter" 14499 14500 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14501 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14502 fi 14503 14504 14505 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14507 $as_echo "$with_jvm_interpreter" >&6; } 14508 14509 14510 14511 ############################################################################### 14512 # 14513 # Check which variants of the JVM that we want to build. 14514 # Currently we have: 14515 # server: normal interpreter and a tiered C1/C2 compiler 14516 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14517 # minimal1: reduced form of client with optional VM services and features stripped out 14518 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14519 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14520 # zero: no machine code interpreter, no compiler 14521 # zeroshark: zero interpreter and shark/llvm compiler backend 14522 # core: interpreter only, no compiler (only works on some platforms) 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14524 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14525 14526 # Check whether --with-jvm-variants was given. 14527 if test "${with_jvm_variants+set}" = set; then : 14528 withval=$with_jvm_variants; 14529 fi 14530 14531 14532 if test "x$with_jvm_variants" = x; then 14533 with_jvm_variants="server" 14534 fi 14535 14536 JVM_VARIANTS=",$with_jvm_variants," 14537 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,//'` 14538 14539 if test "x$TEST_VARIANTS" != "x,"; then 14540 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14541 fi 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14543 $as_echo "$with_jvm_variants" >&6; } 14544 14545 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14546 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14547 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14548 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14549 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14550 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14551 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14552 14553 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14554 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14555 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14556 fi 14557 fi 14558 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14559 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14560 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14561 fi 14562 fi 14563 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14564 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14565 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14566 fi 14567 fi 14568 14569 # Replace the commas with AND for use in the build directory name. 14570 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14571 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/'` 14572 if test "x$COUNT_VARIANTS" != "x,1"; then 14573 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14574 else 14575 BUILDING_MULTIPLE_JVM_VARIANTS=no 14576 fi 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 INCLUDE_SA=true 14588 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14589 INCLUDE_SA=false 14590 fi 14591 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14592 INCLUDE_SA=false 14593 fi 14594 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then 14595 INCLUDE_SA=false 14596 fi 14597 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14598 INCLUDE_SA=false 14599 fi 14600 14601 14602 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14603 MACOSX_UNIVERSAL="false" 14604 fi 14605 14606 14607 14608 14609 ############################################################################### 14610 # 14611 # Set the debug level 14612 # release: no debug information, all optimizations, no asserts. 14613 # fastdebug: debug information (-g), all optimizations, all asserts 14614 # slowdebug: debug information (-g), no optimizations, all asserts 14615 # 14616 DEBUG_LEVEL="release" 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14618 $as_echo_n "checking which debug level to use... " >&6; } 14619 # Check whether --enable-debug was given. 14620 if test "${enable_debug+set}" = set; then : 14621 enableval=$enable_debug; 14622 ENABLE_DEBUG="${enableval}" 14623 DEBUG_LEVEL="fastdebug" 14624 14625 else 14626 ENABLE_DEBUG="no" 14627 fi 14628 14629 14630 14631 # Check whether --with-debug-level was given. 14632 if test "${with_debug_level+set}" = set; then : 14633 withval=$with_debug_level; 14634 DEBUG_LEVEL="${withval}" 14635 if test "x$ENABLE_DEBUG" = xyes; then 14636 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14637 fi 14638 14639 fi 14640 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14642 $as_echo "$DEBUG_LEVEL" >&6; } 14643 14644 if test "x$DEBUG_LEVEL" != xrelease && \ 14645 test "x$DEBUG_LEVEL" != xfastdebug && \ 14646 test "x$DEBUG_LEVEL" != xslowdebug; then 14647 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14648 fi 14649 14650 14651 ############################################################################### 14652 # 14653 # Setup legacy vars/targets and new vars to deal with different debug levels. 14654 # 14655 14656 case $DEBUG_LEVEL in 14657 release ) 14658 VARIANT="OPT" 14659 FASTDEBUG="false" 14660 DEBUG_CLASSFILES="false" 14661 BUILD_VARIANT_RELEASE="" 14662 HOTSPOT_DEBUG_LEVEL="product" 14663 HOTSPOT_EXPORT="product" 14664 ;; 14665 fastdebug ) 14666 VARIANT="DBG" 14667 FASTDEBUG="true" 14668 DEBUG_CLASSFILES="true" 14669 BUILD_VARIANT_RELEASE="-fastdebug" 14670 HOTSPOT_DEBUG_LEVEL="fastdebug" 14671 HOTSPOT_EXPORT="fastdebug" 14672 ;; 14673 slowdebug ) 14674 VARIANT="DBG" 14675 FASTDEBUG="false" 14676 DEBUG_CLASSFILES="true" 14677 BUILD_VARIANT_RELEASE="-debug" 14678 HOTSPOT_DEBUG_LEVEL="jvmg" 14679 HOTSPOT_EXPORT="debug" 14680 ;; 14681 esac 14682 14683 ##### 14684 # Generate the legacy makefile targets for hotspot. 14685 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14686 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14687 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14688 # But until then ... 14689 HOTSPOT_TARGET="" 14690 14691 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14692 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14693 fi 14694 14695 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14696 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14697 fi 14698 14699 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14700 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14701 fi 14702 14703 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14704 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14705 fi 14706 14707 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14708 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14709 fi 14710 14711 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14712 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14713 fi 14714 14715 if test "x$JVM_VARIANT_CORE" = xtrue; then 14716 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14717 fi 14718 14719 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14720 14721 # On Macosx universal binaries are produced, but they only contain 14722 # 64 bit intel. This invalidates control of which jvms are built 14723 # from configure, but only server is valid anyway. Fix this 14724 # when hotspot makefiles are rewritten. 14725 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14726 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14727 fi 14728 14729 ##### 14730 14731 14732 14733 14734 14735 14736 14737 14738 # With basic setup done, call the custom early hook. 14739 14740 14741 # Check if we have devkits, extra paths or sysroot set. 14742 14743 14744 # Check whether --with-devkit was given. 14745 if test "${with_devkit+set}" = set; then : 14746 withval=$with_devkit; 14747 fi 14748 14749 14750 if test "x$with_devkit" = xyes; then 14751 as_fn_error $? "--with-devkit must have a value" "$LINENO" 5 14752 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then 14753 14754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14755 14756 # Input might be given as Windows format, start by converting to 14757 # unix format. 14758 path="$with_devkit" 14759 new_path=`$CYGPATH -u "$path"` 14760 14761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14764 # "foo.exe" is OK but "foo" is an error. 14765 # 14766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14767 # It is also a way to make sure we got the proper file name for the real test later on. 14768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14769 if test "x$test_shortpath" = x; then 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14771 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14772 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14773 fi 14774 14775 # Call helper function which possibly converts this using DOS-style short mode. 14776 # If so, the updated path is stored in $new_path. 14777 14778 input_path="$new_path" 14779 # Check if we need to convert this using DOS-style short mode. If the path 14780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14781 # take no chances and rewrite it. 14782 # Note: m4 eats our [], so we need to use [ and ] instead. 14783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14784 if test "x$has_forbidden_chars" != x; then 14785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14789 # Going to short mode and back again did indeed matter. Since short mode is 14790 # case insensitive, let's make it lowercase to improve readability. 14791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14792 # Now convert it back to Unix-style (cygpath) 14793 input_path=`$CYGPATH -u "$shortmode_path"` 14794 new_path="$input_path" 14795 fi 14796 fi 14797 14798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14799 if test "x$test_cygdrive_prefix" = x; then 14800 # As a simple fix, exclude /usr/bin since it's not a real path. 14801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14803 # a path prefixed by /cygdrive for fixpath to work. 14804 new_path="$CYGWIN_ROOT_PATH$input_path" 14805 fi 14806 fi 14807 14808 14809 if test "x$path" != "x$new_path"; then 14810 with_devkit="$new_path" 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14812 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14813 fi 14814 14815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14816 14817 path="$with_devkit" 14818 has_colon=`$ECHO $path | $GREP ^.:` 14819 new_path="$path" 14820 if test "x$has_colon" = x; then 14821 # Not in mixed or Windows style, start by that. 14822 new_path=`cmd //c echo $path` 14823 fi 14824 14825 14826 input_path="$new_path" 14827 # Check if we need to convert this using DOS-style short mode. If the path 14828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14829 # take no chances and rewrite it. 14830 # Note: m4 eats our [], so we need to use [ and ] instead. 14831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14832 if test "x$has_forbidden_chars" != x; then 14833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14835 fi 14836 14837 14838 windows_path="$new_path" 14839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14840 unix_path=`$CYGPATH -u "$windows_path"` 14841 new_path="$unix_path" 14842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14844 new_path="$unix_path" 14845 fi 14846 14847 if test "x$path" != "x$new_path"; then 14848 with_devkit="$new_path" 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14850 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14851 fi 14852 14853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14855 14856 else 14857 # We're on a posix platform. Hooray! :) 14858 path="$with_devkit" 14859 has_space=`$ECHO "$path" | $GREP " "` 14860 if test "x$has_space" != x; then 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14862 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14864 fi 14865 14866 # Use eval to expand a potential ~ 14867 eval path="$path" 14868 if test ! -f "$path" && test ! -d "$path"; then 14869 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14870 fi 14871 14872 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14873 fi 14874 14875 DEVKIT_ROOT="$with_devkit" 14876 # Check for a meta data info file in the root of the devkit 14877 if test -f "$DEVKIT_ROOT/devkit.info"; then 14878 . $DEVKIT_ROOT/devkit.info 14879 # This potentially sets the following: 14880 # A descriptive name of the devkit 14881 14882 if test "x$DEVKIT_NAME" = x; then 14883 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 14884 fi 14885 14886 # Corresponds to --with-extra-path 14887 14888 if test "x$DEVKIT_EXTRA_PATH" = x; then 14889 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 14890 fi 14891 14892 # Corresponds to --with-toolchain-path 14893 14894 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14895 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 14896 fi 14897 14898 # Corresponds to --with-sysroot 14899 14900 if test "x$DEVKIT_SYSROOT" = x; then 14901 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 14902 fi 14903 14904 14905 # Identifies the Visual Studio version in the devkit 14906 14907 if test "x$DEVKIT_VS_VERSION" = x; then 14908 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 14909 fi 14910 14911 # The Visual Studio include environment variable 14912 14913 if test "x$DEVKIT_VS_INCLUDE" = x; then 14914 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 14915 fi 14916 14917 # The Visual Studio lib environment variable 14918 14919 if test "x$DEVKIT_VS_LIB" = x; then 14920 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 14921 fi 14922 14923 # Corresponds to --with-msvcr-dll 14924 14925 if test "x$DEVKIT_MSVCR_DLL" = x; then 14926 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 14927 fi 14928 14929 # Corresponds to --with-msvcp-dll 14930 14931 if test "x$DEVKIT_MSVCP_DLL" = x; then 14932 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 14933 fi 14934 14935 # Corresponds to --with-ucrt-dll-dir 14936 14937 if test "x$DEVKIT_UCRT_DLL_DIR" = x; then 14938 eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}" 14939 fi 14940 14941 fi 14942 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14944 $as_echo_n "checking for devkit... " >&6; } 14945 if test "x$DEVKIT_NAME" != x; then 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14947 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14948 else 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14950 $as_echo "$DEVKIT_ROOT" >&6; } 14951 fi 14952 14953 14954 if test "x$DEVKIT_EXTRA_PATH" != x; then 14955 if test "x$EXTRA_PATH" = x; then 14956 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14957 else 14958 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14959 fi 14960 fi 14961 14962 14963 # Fallback default of just /bin if DEVKIT_PATH is not defined 14964 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14965 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14966 fi 14967 14968 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14969 if test "x$TOOLCHAIN_PATH" = x; then 14970 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14971 else 14972 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14973 fi 14974 fi 14975 14976 14977 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14978 # places for backwards compatiblity. 14979 if test "x$DEVKIT_SYSROOT" != x; then 14980 SYSROOT="$DEVKIT_SYSROOT" 14981 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14982 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14983 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14984 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14985 fi 14986 14987 if test "x$DEVKIT_ROOT" != x; then 14988 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 14989 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14990 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 14991 fi 14992 14993 fi 14994 fi 14995 14996 # You can force the sysroot if the sysroot encoded into the compiler tools 14997 # is not correct. 14998 14999 # Check whether --with-sys-root was given. 15000 if test "${with_sys_root+set}" = set; then : 15001 withval=$with_sys_root; SYSROOT=$with_sys_root 15002 15003 fi 15004 15005 15006 15007 # Check whether --with-sysroot was given. 15008 if test "${with_sysroot+set}" = set; then : 15009 withval=$with_sysroot; SYSROOT=$with_sysroot 15010 15011 fi 15012 15013 15014 15015 # Check whether --with-tools-dir was given. 15016 if test "${with_tools_dir+set}" = set; then : 15017 withval=$with_tools_dir; 15018 if test "x$with_tools_dir" != x; then 15019 if test "x$TOOLCHAIN_PATH" = x; then 15020 TOOLCHAIN_PATH="$with_tools_dir" 15021 else 15022 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15023 fi 15024 fi 15025 15026 15027 fi 15028 15029 15030 15031 # Check whether --with-toolchain-path was given. 15032 if test "${with_toolchain_path+set}" = set; then : 15033 withval=$with_toolchain_path; 15034 if test "x$with_toolchain_path" != x; then 15035 if test "x$TOOLCHAIN_PATH" = x; then 15036 TOOLCHAIN_PATH="$with_toolchain_path" 15037 else 15038 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15039 fi 15040 fi 15041 15042 15043 fi 15044 15045 15046 15047 # Check whether --with-extra-path was given. 15048 if test "${with_extra_path+set}" = set; then : 15049 withval=$with_extra_path; 15050 if test "x$with_extra_path" != x; then 15051 if test "x$EXTRA_PATH" = x; then 15052 EXTRA_PATH="$with_extra_path" 15053 else 15054 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15055 fi 15056 fi 15057 15058 15059 fi 15060 15061 15062 # Prepend the extra path to the global path 15063 15064 if test "x$EXTRA_PATH" != x; then 15065 if test "x$PATH" = x; then 15066 PATH="$EXTRA_PATH" 15067 else 15068 PATH="$EXTRA_PATH:$PATH" 15069 fi 15070 fi 15071 15072 15073 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15074 # Add extra search paths on solaris for utilities like ar and as etc... 15075 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15076 fi 15077 15078 # Xcode version will be validated later 15079 15080 # Check whether --with-xcode-path was given. 15081 if test "${with_xcode_path+set}" = set; then : 15082 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 15083 15084 fi 15085 15086 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15088 $as_echo_n "checking for sysroot... " >&6; } 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15090 $as_echo "$SYSROOT" >&6; } 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15092 $as_echo_n "checking for toolchain path... " >&6; } 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15094 $as_echo "$TOOLCHAIN_PATH" >&6; } 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15096 $as_echo_n "checking for extra path... " >&6; } 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15098 $as_echo "$EXTRA_PATH" >&6; } 15099 15100 15101 # To properly create a configuration name, we need to have the OpenJDK target 15102 # and options (variants and debug level) parsed. 15103 15104 15105 15106 # Check whether --with-conf-name was given. 15107 if test "${with_conf_name+set}" = set; then : 15108 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15109 fi 15110 15111 15112 # Test from where we are running configure, in or outside of src root. 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15114 $as_echo_n "checking where to store configuration... " >&6; } 15115 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15116 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15117 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15118 # We are running configure from the src root. 15119 # Create a default ./build/target-variant-debuglevel output root. 15120 if test "x${CONF_NAME}" = x; then 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15122 $as_echo "in default location" >&6; } 15123 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15124 else 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15126 $as_echo "in build directory with custom name" >&6; } 15127 fi 15128 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15129 $MKDIR -p "$OUTPUT_ROOT" 15130 if test ! -d "$OUTPUT_ROOT"; then 15131 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15132 fi 15133 else 15134 # We are running configure from outside of the src dir. 15135 # Then use the current directory as output dir! 15136 # If configuration is situated in normal build directory, just use the build 15137 # directory name as configuration name, otherwise use the complete path. 15138 if test "x${CONF_NAME}" = x; then 15139 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15140 fi 15141 OUTPUT_ROOT="$CURDIR" 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15143 $as_echo "in current directory" >&6; } 15144 15145 # WARNING: This might be a bad thing to do. You need to be sure you want to 15146 # have a configuration in this directory. Do some sanity checks! 15147 15148 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15149 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15150 # other files 15151 files_present=`$LS $OUTPUT_ROOT` 15152 # Configure has already touched config.log and confdefs.h in the current dir when this check 15153 # is performed. 15154 filtered_files=`$ECHO "$files_present" \ 15155 | $SED -e 's/config.log//g' \ 15156 -e 's/confdefs.h//g' \ 15157 -e 's/fixpath.exe//g' \ 15158 -e 's/ //g' \ 15159 | $TR -d '\n'` 15160 if test "x$filtered_files" != x; then 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15162 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15164 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15165 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15166 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15168 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15170 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15172 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15174 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15175 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15176 fi 15177 fi 15178 fi 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15180 $as_echo_n "checking what configuration name to use... " >&6; } 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15182 $as_echo "$CONF_NAME" >&6; } 15183 15184 15185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15186 15187 # Input might be given as Windows format, start by converting to 15188 # unix format. 15189 path="$OUTPUT_ROOT" 15190 new_path=`$CYGPATH -u "$path"` 15191 15192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15195 # "foo.exe" is OK but "foo" is an error. 15196 # 15197 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15198 # It is also a way to make sure we got the proper file name for the real test later on. 15199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15200 if test "x$test_shortpath" = x; then 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15202 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15203 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15204 fi 15205 15206 # Call helper function which possibly converts this using DOS-style short mode. 15207 # If so, the updated path is stored in $new_path. 15208 15209 input_path="$new_path" 15210 # Check if we need to convert this using DOS-style short mode. If the path 15211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15212 # take no chances and rewrite it. 15213 # Note: m4 eats our [], so we need to use [ and ] instead. 15214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15215 if test "x$has_forbidden_chars" != x; then 15216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15220 # Going to short mode and back again did indeed matter. Since short mode is 15221 # case insensitive, let's make it lowercase to improve readability. 15222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15223 # Now convert it back to Unix-style (cygpath) 15224 input_path=`$CYGPATH -u "$shortmode_path"` 15225 new_path="$input_path" 15226 fi 15227 fi 15228 15229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15230 if test "x$test_cygdrive_prefix" = x; then 15231 # As a simple fix, exclude /usr/bin since it's not a real path. 15232 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15234 # a path prefixed by /cygdrive for fixpath to work. 15235 new_path="$CYGWIN_ROOT_PATH$input_path" 15236 fi 15237 fi 15238 15239 15240 if test "x$path" != "x$new_path"; then 15241 OUTPUT_ROOT="$new_path" 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15243 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15244 fi 15245 15246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15247 15248 path="$OUTPUT_ROOT" 15249 has_colon=`$ECHO $path | $GREP ^.:` 15250 new_path="$path" 15251 if test "x$has_colon" = x; then 15252 # Not in mixed or Windows style, start by that. 15253 new_path=`cmd //c echo $path` 15254 fi 15255 15256 15257 input_path="$new_path" 15258 # Check if we need to convert this using DOS-style short mode. If the path 15259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15260 # take no chances and rewrite it. 15261 # Note: m4 eats our [], so we need to use [ and ] instead. 15262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15263 if test "x$has_forbidden_chars" != x; then 15264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15265 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15266 fi 15267 15268 15269 windows_path="$new_path" 15270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15271 unix_path=`$CYGPATH -u "$windows_path"` 15272 new_path="$unix_path" 15273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15275 new_path="$unix_path" 15276 fi 15277 15278 if test "x$path" != "x$new_path"; then 15279 OUTPUT_ROOT="$new_path" 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15281 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15282 fi 15283 15284 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15285 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15286 15287 else 15288 # We're on a posix platform. Hooray! :) 15289 path="$OUTPUT_ROOT" 15290 has_space=`$ECHO "$path" | $GREP " "` 15291 if test "x$has_space" != x; then 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15293 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15294 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15295 fi 15296 15297 # Use eval to expand a potential ~ 15298 eval path="$path" 15299 if test ! -f "$path" && test ! -d "$path"; then 15300 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15301 fi 15302 15303 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15304 fi 15305 15306 15307 SPEC=$OUTPUT_ROOT/spec.gmk 15308 15309 CONF_NAME=$CONF_NAME 15310 15311 OUTPUT_ROOT=$OUTPUT_ROOT 15312 15313 15314 # Most of the probed defines are put into config.h 15315 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15316 15317 # The spec.gmk file contains all variables for the make system. 15318 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15319 15320 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15321 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15322 15323 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15324 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15325 15326 # The compare.sh is used to compare the build output to other builds. 15327 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15328 15329 # Spec.sh is currently used by compare-objects.sh 15330 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15331 15332 # The generated Makefile knows where the spec.gmk is and where the source is. 15333 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15334 # which will look for generated configurations 15335 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15336 15337 15338 15339 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15340 15341 for ac_prog in apt-get yum port pkgutil pkgadd 15342 do 15343 # Extract the first word of "$ac_prog", so it can be a program name with args. 15344 set dummy $ac_prog; ac_word=$2 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15346 $as_echo_n "checking for $ac_word... " >&6; } 15347 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15348 $as_echo_n "(cached) " >&6 15349 else 15350 if test -n "$PKGHANDLER"; then 15351 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15352 else 15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15354 for as_dir in $PATH 15355 do 15356 IFS=$as_save_IFS 15357 test -z "$as_dir" && as_dir=. 15358 for ac_exec_ext in '' $ac_executable_extensions; do 15359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15360 ac_cv_prog_PKGHANDLER="$ac_prog" 15361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15362 break 2 15363 fi 15364 done 15365 done 15366 IFS=$as_save_IFS 15367 15368 fi 15369 fi 15370 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15371 if test -n "$PKGHANDLER"; then 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15373 $as_echo "$PKGHANDLER" >&6; } 15374 else 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15376 $as_echo "no" >&6; } 15377 fi 15378 15379 15380 test -n "$PKGHANDLER" && break 15381 done 15382 15383 15384 15385 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15386 15387 15388 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15389 if test "x$MAKE" != x; then 15390 # User has supplied a make, test it. 15391 if test ! -f "$MAKE"; then 15392 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15393 fi 15394 15395 MAKE_CANDIDATE=""$MAKE"" 15396 DESCRIPTION="user supplied MAKE=$MAKE" 15397 if test "x$MAKE_CANDIDATE" != x; then 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15399 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15400 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15401 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15402 if test "x$IS_GNU_MAKE" = x; then 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15404 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15405 else 15406 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15407 if test "x$IS_MODERN_MAKE" = x; then 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15409 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15410 else 15411 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15413 MAKE_EXPECTED_ENV='cygwin' 15414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15415 MAKE_EXPECTED_ENV='msys' 15416 else 15417 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15418 fi 15419 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15420 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15421 else 15422 # Not relevant for non-Windows 15423 IS_MAKE_CORRECT_ENV=true 15424 fi 15425 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15426 { $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 15427 $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;} 15428 else 15429 FOUND_MAKE=$MAKE_CANDIDATE 15430 15431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15432 15433 # First separate the path from the arguments. This will split at the first 15434 # space. 15435 complete="$FOUND_MAKE" 15436 path="${complete%% *}" 15437 tmp="$complete EOL" 15438 arguments="${tmp#* }" 15439 15440 # Input might be given as Windows format, start by converting to 15441 # unix format. 15442 new_path=`$CYGPATH -u "$path"` 15443 15444 # Now try to locate executable using which 15445 new_path=`$WHICH "$new_path" 2> /dev/null` 15446 # bat and cmd files are not always considered executable in cygwin causing which 15447 # to not find them 15448 if test "x$new_path" = x \ 15449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15451 new_path=`$CYGPATH -u "$path"` 15452 fi 15453 if test "x$new_path" = x; then 15454 # Oops. Which didn't find the executable. 15455 # The splitting of arguments from the executable at a space might have been incorrect, 15456 # since paths with space are more likely in Windows. Give it another try with the whole 15457 # argument. 15458 path="$complete" 15459 arguments="EOL" 15460 new_path=`$CYGPATH -u "$path"` 15461 new_path=`$WHICH "$new_path" 2> /dev/null` 15462 # bat and cmd files are not always considered executable in cygwin causing which 15463 # to not find them 15464 if test "x$new_path" = x \ 15465 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15466 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15467 new_path=`$CYGPATH -u "$path"` 15468 fi 15469 if test "x$new_path" = x; then 15470 # It's still not found. Now this is an unrecoverable error. 15471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15472 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15473 has_space=`$ECHO "$complete" | $GREP " "` 15474 if test "x$has_space" != x; then 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15477 fi 15478 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15479 fi 15480 fi 15481 15482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15485 # "foo.exe" is OK but "foo" is an error. 15486 # 15487 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15488 # It is also a way to make sure we got the proper file name for the real test later on. 15489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15490 if test "x$test_shortpath" = x; then 15491 # Short path failed, file does not exist as specified. 15492 # Try adding .exe or .cmd 15493 if test -f "${new_path}.exe"; then 15494 input_to_shortpath="${new_path}.exe" 15495 elif test -f "${new_path}.cmd"; then 15496 input_to_shortpath="${new_path}.cmd" 15497 else 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15499 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15501 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15502 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15503 fi 15504 else 15505 input_to_shortpath="$new_path" 15506 fi 15507 15508 # Call helper function which possibly converts this using DOS-style short mode. 15509 # If so, the updated path is stored in $new_path. 15510 new_path="$input_to_shortpath" 15511 15512 input_path="$input_to_shortpath" 15513 # Check if we need to convert this using DOS-style short mode. If the path 15514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15515 # take no chances and rewrite it. 15516 # Note: m4 eats our [], so we need to use [ and ] instead. 15517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15518 if test "x$has_forbidden_chars" != x; then 15519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15523 # Going to short mode and back again did indeed matter. Since short mode is 15524 # case insensitive, let's make it lowercase to improve readability. 15525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15526 # Now convert it back to Unix-style (cygpath) 15527 input_path=`$CYGPATH -u "$shortmode_path"` 15528 new_path="$input_path" 15529 fi 15530 fi 15531 15532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15533 if test "x$test_cygdrive_prefix" = x; then 15534 # As a simple fix, exclude /usr/bin since it's not a real path. 15535 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15537 # a path prefixed by /cygdrive for fixpath to work. 15538 new_path="$CYGWIN_ROOT_PATH$input_path" 15539 fi 15540 fi 15541 15542 # remove trailing .exe if any 15543 new_path="${new_path/%.exe/}" 15544 15545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15546 15547 # First separate the path from the arguments. This will split at the first 15548 # space. 15549 complete="$FOUND_MAKE" 15550 path="${complete%% *}" 15551 tmp="$complete EOL" 15552 arguments="${tmp#* }" 15553 15554 # Input might be given as Windows format, start by converting to 15555 # unix format. 15556 new_path="$path" 15557 15558 windows_path="$new_path" 15559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15560 unix_path=`$CYGPATH -u "$windows_path"` 15561 new_path="$unix_path" 15562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15564 new_path="$unix_path" 15565 fi 15566 15567 15568 # Now try to locate executable using which 15569 new_path=`$WHICH "$new_path" 2> /dev/null` 15570 15571 if test "x$new_path" = x; then 15572 # Oops. Which didn't find the executable. 15573 # The splitting of arguments from the executable at a space might have been incorrect, 15574 # since paths with space are more likely in Windows. Give it another try with the whole 15575 # argument. 15576 path="$complete" 15577 arguments="EOL" 15578 new_path="$path" 15579 15580 windows_path="$new_path" 15581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15582 unix_path=`$CYGPATH -u "$windows_path"` 15583 new_path="$unix_path" 15584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15586 new_path="$unix_path" 15587 fi 15588 15589 15590 new_path=`$WHICH "$new_path" 2> /dev/null` 15591 # bat and cmd files are not always considered executable in MSYS causing which 15592 # to not find them 15593 if test "x$new_path" = x \ 15594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15596 new_path="$path" 15597 15598 windows_path="$new_path" 15599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15600 unix_path=`$CYGPATH -u "$windows_path"` 15601 new_path="$unix_path" 15602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15604 new_path="$unix_path" 15605 fi 15606 15607 fi 15608 15609 if test "x$new_path" = x; then 15610 # It's still not found. Now this is an unrecoverable error. 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15612 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15613 has_space=`$ECHO "$complete" | $GREP " "` 15614 if test "x$has_space" != x; then 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15616 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15617 fi 15618 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15619 fi 15620 fi 15621 15622 # Now new_path has a complete unix path to the binary 15623 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15624 # Keep paths in /bin as-is, but remove trailing .exe if any 15625 new_path="${new_path/%.exe/}" 15626 # Do not save /bin paths to all_fixpath_prefixes! 15627 else 15628 # Not in mixed or Windows style, start by that. 15629 new_path=`cmd //c echo $new_path` 15630 15631 input_path="$new_path" 15632 # Check if we need to convert this using DOS-style short mode. If the path 15633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15634 # take no chances and rewrite it. 15635 # Note: m4 eats our [], so we need to use [ and ] instead. 15636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15637 if test "x$has_forbidden_chars" != x; then 15638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15640 fi 15641 15642 # Output is in $new_path 15643 15644 windows_path="$new_path" 15645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15646 unix_path=`$CYGPATH -u "$windows_path"` 15647 new_path="$unix_path" 15648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15650 new_path="$unix_path" 15651 fi 15652 15653 # remove trailing .exe if any 15654 new_path="${new_path/%.exe/}" 15655 15656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15658 fi 15659 15660 else 15661 # We're on a posix platform. Hooray! :) 15662 # First separate the path from the arguments. This will split at the first 15663 # space. 15664 complete="$FOUND_MAKE" 15665 path="${complete%% *}" 15666 tmp="$complete EOL" 15667 arguments="${tmp#* }" 15668 15669 # Cannot rely on the command "which" here since it doesn't always work. 15670 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15671 if test -z "$is_absolute_path"; then 15672 # Path to executable is not absolute. Find it. 15673 IFS_save="$IFS" 15674 IFS=: 15675 for p in $PATH; do 15676 if test -f "$p/$path" && test -x "$p/$path"; then 15677 new_path="$p/$path" 15678 break 15679 fi 15680 done 15681 IFS="$IFS_save" 15682 else 15683 # This is an absolute path, we can use it without further modifications. 15684 new_path="$path" 15685 fi 15686 15687 if test "x$new_path" = x; then 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15689 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15690 has_space=`$ECHO "$complete" | $GREP " "` 15691 if test "x$has_space" != x; then 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15693 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15694 fi 15695 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15696 fi 15697 fi 15698 15699 # Now join together the path and the arguments once again 15700 if test "x$arguments" != xEOL; then 15701 new_complete="$new_path ${arguments% *}" 15702 else 15703 new_complete="$new_path" 15704 fi 15705 15706 if test "x$complete" != "x$new_complete"; then 15707 FOUND_MAKE="$new_complete" 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15709 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15710 fi 15711 15712 fi 15713 fi 15714 fi 15715 fi 15716 15717 if test "x$FOUND_MAKE" = x; then 15718 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15719 fi 15720 else 15721 # Try our hardest to locate a correct version of GNU make 15722 for ac_prog in gmake 15723 do 15724 # Extract the first word of "$ac_prog", so it can be a program name with args. 15725 set dummy $ac_prog; ac_word=$2 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15727 $as_echo_n "checking for $ac_word... " >&6; } 15728 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15729 $as_echo_n "(cached) " >&6 15730 else 15731 case $CHECK_GMAKE in 15732 [\\/]* | ?:[\\/]*) 15733 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15734 ;; 15735 *) 15736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15737 for as_dir in $PATH 15738 do 15739 IFS=$as_save_IFS 15740 test -z "$as_dir" && as_dir=. 15741 for ac_exec_ext in '' $ac_executable_extensions; do 15742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15743 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15745 break 2 15746 fi 15747 done 15748 done 15749 IFS=$as_save_IFS 15750 15751 ;; 15752 esac 15753 fi 15754 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15755 if test -n "$CHECK_GMAKE"; then 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15757 $as_echo "$CHECK_GMAKE" >&6; } 15758 else 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15760 $as_echo "no" >&6; } 15761 fi 15762 15763 15764 test -n "$CHECK_GMAKE" && break 15765 done 15766 15767 15768 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15769 DESCRIPTION="gmake in PATH" 15770 if test "x$MAKE_CANDIDATE" != x; then 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15772 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15773 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15774 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15775 if test "x$IS_GNU_MAKE" = x; then 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15777 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15778 else 15779 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15780 if test "x$IS_MODERN_MAKE" = x; then 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15782 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15783 else 15784 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15786 MAKE_EXPECTED_ENV='cygwin' 15787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15788 MAKE_EXPECTED_ENV='msys' 15789 else 15790 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15791 fi 15792 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15793 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15794 else 15795 # Not relevant for non-Windows 15796 IS_MAKE_CORRECT_ENV=true 15797 fi 15798 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15799 { $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 15800 $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;} 15801 else 15802 FOUND_MAKE=$MAKE_CANDIDATE 15803 15804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15805 15806 # First separate the path from the arguments. This will split at the first 15807 # space. 15808 complete="$FOUND_MAKE" 15809 path="${complete%% *}" 15810 tmp="$complete EOL" 15811 arguments="${tmp#* }" 15812 15813 # Input might be given as Windows format, start by converting to 15814 # unix format. 15815 new_path=`$CYGPATH -u "$path"` 15816 15817 # Now try to locate executable using which 15818 new_path=`$WHICH "$new_path" 2> /dev/null` 15819 # bat and cmd files are not always considered executable in cygwin causing which 15820 # to not find them 15821 if test "x$new_path" = x \ 15822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15824 new_path=`$CYGPATH -u "$path"` 15825 fi 15826 if test "x$new_path" = x; then 15827 # Oops. Which didn't find the executable. 15828 # The splitting of arguments from the executable at a space might have been incorrect, 15829 # since paths with space are more likely in Windows. Give it another try with the whole 15830 # argument. 15831 path="$complete" 15832 arguments="EOL" 15833 new_path=`$CYGPATH -u "$path"` 15834 new_path=`$WHICH "$new_path" 2> /dev/null` 15835 # bat and cmd files are not always considered executable in cygwin causing which 15836 # to not find them 15837 if test "x$new_path" = x \ 15838 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15839 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15840 new_path=`$CYGPATH -u "$path"` 15841 fi 15842 if test "x$new_path" = x; then 15843 # It's still not found. Now this is an unrecoverable error. 15844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15845 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15846 has_space=`$ECHO "$complete" | $GREP " "` 15847 if test "x$has_space" != x; then 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15849 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15850 fi 15851 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15852 fi 15853 fi 15854 15855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15858 # "foo.exe" is OK but "foo" is an error. 15859 # 15860 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15861 # It is also a way to make sure we got the proper file name for the real test later on. 15862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15863 if test "x$test_shortpath" = x; then 15864 # Short path failed, file does not exist as specified. 15865 # Try adding .exe or .cmd 15866 if test -f "${new_path}.exe"; then 15867 input_to_shortpath="${new_path}.exe" 15868 elif test -f "${new_path}.cmd"; then 15869 input_to_shortpath="${new_path}.cmd" 15870 else 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15872 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15874 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15875 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15876 fi 15877 else 15878 input_to_shortpath="$new_path" 15879 fi 15880 15881 # Call helper function which possibly converts this using DOS-style short mode. 15882 # If so, the updated path is stored in $new_path. 15883 new_path="$input_to_shortpath" 15884 15885 input_path="$input_to_shortpath" 15886 # Check if we need to convert this using DOS-style short mode. If the path 15887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15888 # take no chances and rewrite it. 15889 # Note: m4 eats our [], so we need to use [ and ] instead. 15890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15891 if test "x$has_forbidden_chars" != x; then 15892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15893 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15894 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15895 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15896 # Going to short mode and back again did indeed matter. Since short mode is 15897 # case insensitive, let's make it lowercase to improve readability. 15898 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15899 # Now convert it back to Unix-style (cygpath) 15900 input_path=`$CYGPATH -u "$shortmode_path"` 15901 new_path="$input_path" 15902 fi 15903 fi 15904 15905 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15906 if test "x$test_cygdrive_prefix" = x; then 15907 # As a simple fix, exclude /usr/bin since it's not a real path. 15908 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15909 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15910 # a path prefixed by /cygdrive for fixpath to work. 15911 new_path="$CYGWIN_ROOT_PATH$input_path" 15912 fi 15913 fi 15914 15915 # remove trailing .exe if any 15916 new_path="${new_path/%.exe/}" 15917 15918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15919 15920 # First separate the path from the arguments. This will split at the first 15921 # space. 15922 complete="$FOUND_MAKE" 15923 path="${complete%% *}" 15924 tmp="$complete EOL" 15925 arguments="${tmp#* }" 15926 15927 # Input might be given as Windows format, start by converting to 15928 # unix format. 15929 new_path="$path" 15930 15931 windows_path="$new_path" 15932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15933 unix_path=`$CYGPATH -u "$windows_path"` 15934 new_path="$unix_path" 15935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15937 new_path="$unix_path" 15938 fi 15939 15940 15941 # Now try to locate executable using which 15942 new_path=`$WHICH "$new_path" 2> /dev/null` 15943 15944 if test "x$new_path" = x; then 15945 # Oops. Which didn't find the executable. 15946 # The splitting of arguments from the executable at a space might have been incorrect, 15947 # since paths with space are more likely in Windows. Give it another try with the whole 15948 # argument. 15949 path="$complete" 15950 arguments="EOL" 15951 new_path="$path" 15952 15953 windows_path="$new_path" 15954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15955 unix_path=`$CYGPATH -u "$windows_path"` 15956 new_path="$unix_path" 15957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15959 new_path="$unix_path" 15960 fi 15961 15962 15963 new_path=`$WHICH "$new_path" 2> /dev/null` 15964 # bat and cmd files are not always considered executable in MSYS causing which 15965 # to not find them 15966 if test "x$new_path" = x \ 15967 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15968 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15969 new_path="$path" 15970 15971 windows_path="$new_path" 15972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15973 unix_path=`$CYGPATH -u "$windows_path"` 15974 new_path="$unix_path" 15975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15977 new_path="$unix_path" 15978 fi 15979 15980 fi 15981 15982 if test "x$new_path" = x; then 15983 # It's still not found. Now this is an unrecoverable error. 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15985 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15986 has_space=`$ECHO "$complete" | $GREP " "` 15987 if test "x$has_space" != x; then 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15989 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15990 fi 15991 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15992 fi 15993 fi 15994 15995 # Now new_path has a complete unix path to the binary 15996 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15997 # Keep paths in /bin as-is, but remove trailing .exe if any 15998 new_path="${new_path/%.exe/}" 15999 # Do not save /bin paths to all_fixpath_prefixes! 16000 else 16001 # Not in mixed or Windows style, start by that. 16002 new_path=`cmd //c echo $new_path` 16003 16004 input_path="$new_path" 16005 # Check if we need to convert this using DOS-style short mode. If the path 16006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16007 # take no chances and rewrite it. 16008 # Note: m4 eats our [], so we need to use [ and ] instead. 16009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16010 if test "x$has_forbidden_chars" != x; then 16011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16013 fi 16014 16015 # Output is in $new_path 16016 16017 windows_path="$new_path" 16018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16019 unix_path=`$CYGPATH -u "$windows_path"` 16020 new_path="$unix_path" 16021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16023 new_path="$unix_path" 16024 fi 16025 16026 # remove trailing .exe if any 16027 new_path="${new_path/%.exe/}" 16028 16029 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16030 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16031 fi 16032 16033 else 16034 # We're on a posix platform. Hooray! :) 16035 # First separate the path from the arguments. This will split at the first 16036 # space. 16037 complete="$FOUND_MAKE" 16038 path="${complete%% *}" 16039 tmp="$complete EOL" 16040 arguments="${tmp#* }" 16041 16042 # Cannot rely on the command "which" here since it doesn't always work. 16043 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16044 if test -z "$is_absolute_path"; then 16045 # Path to executable is not absolute. Find it. 16046 IFS_save="$IFS" 16047 IFS=: 16048 for p in $PATH; do 16049 if test -f "$p/$path" && test -x "$p/$path"; then 16050 new_path="$p/$path" 16051 break 16052 fi 16053 done 16054 IFS="$IFS_save" 16055 else 16056 # This is an absolute path, we can use it without further modifications. 16057 new_path="$path" 16058 fi 16059 16060 if test "x$new_path" = x; then 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16062 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16063 has_space=`$ECHO "$complete" | $GREP " "` 16064 if test "x$has_space" != x; then 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16066 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16067 fi 16068 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16069 fi 16070 fi 16071 16072 # Now join together the path and the arguments once again 16073 if test "x$arguments" != xEOL; then 16074 new_complete="$new_path ${arguments% *}" 16075 else 16076 new_complete="$new_path" 16077 fi 16078 16079 if test "x$complete" != "x$new_complete"; then 16080 FOUND_MAKE="$new_complete" 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16082 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16083 fi 16084 16085 fi 16086 fi 16087 fi 16088 fi 16089 16090 16091 if test "x$FOUND_MAKE" = x; then 16092 for ac_prog in make 16093 do 16094 # Extract the first word of "$ac_prog", so it can be a program name with args. 16095 set dummy $ac_prog; ac_word=$2 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16097 $as_echo_n "checking for $ac_word... " >&6; } 16098 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16099 $as_echo_n "(cached) " >&6 16100 else 16101 case $CHECK_MAKE in 16102 [\\/]* | ?:[\\/]*) 16103 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16104 ;; 16105 *) 16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16107 for as_dir in $PATH 16108 do 16109 IFS=$as_save_IFS 16110 test -z "$as_dir" && as_dir=. 16111 for ac_exec_ext in '' $ac_executable_extensions; do 16112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16113 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16115 break 2 16116 fi 16117 done 16118 done 16119 IFS=$as_save_IFS 16120 16121 ;; 16122 esac 16123 fi 16124 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16125 if test -n "$CHECK_MAKE"; then 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16127 $as_echo "$CHECK_MAKE" >&6; } 16128 else 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16130 $as_echo "no" >&6; } 16131 fi 16132 16133 16134 test -n "$CHECK_MAKE" && break 16135 done 16136 16137 16138 MAKE_CANDIDATE=""$CHECK_MAKE"" 16139 DESCRIPTION="make in PATH" 16140 if test "x$MAKE_CANDIDATE" != x; then 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16142 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16143 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16144 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16145 if test "x$IS_GNU_MAKE" = x; then 16146 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16147 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16148 else 16149 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16150 if test "x$IS_MODERN_MAKE" = x; then 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16152 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16153 else 16154 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16156 MAKE_EXPECTED_ENV='cygwin' 16157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16158 MAKE_EXPECTED_ENV='msys' 16159 else 16160 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16161 fi 16162 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16163 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16164 else 16165 # Not relevant for non-Windows 16166 IS_MAKE_CORRECT_ENV=true 16167 fi 16168 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16169 { $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 16170 $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;} 16171 else 16172 FOUND_MAKE=$MAKE_CANDIDATE 16173 16174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16175 16176 # First separate the path from the arguments. This will split at the first 16177 # space. 16178 complete="$FOUND_MAKE" 16179 path="${complete%% *}" 16180 tmp="$complete EOL" 16181 arguments="${tmp#* }" 16182 16183 # Input might be given as Windows format, start by converting to 16184 # unix format. 16185 new_path=`$CYGPATH -u "$path"` 16186 16187 # Now try to locate executable using which 16188 new_path=`$WHICH "$new_path" 2> /dev/null` 16189 # bat and cmd files are not always considered executable in cygwin causing which 16190 # to not find them 16191 if test "x$new_path" = x \ 16192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16194 new_path=`$CYGPATH -u "$path"` 16195 fi 16196 if test "x$new_path" = x; then 16197 # Oops. Which didn't find the executable. 16198 # The splitting of arguments from the executable at a space might have been incorrect, 16199 # since paths with space are more likely in Windows. Give it another try with the whole 16200 # argument. 16201 path="$complete" 16202 arguments="EOL" 16203 new_path=`$CYGPATH -u "$path"` 16204 new_path=`$WHICH "$new_path" 2> /dev/null` 16205 # bat and cmd files are not always considered executable in cygwin causing which 16206 # to not find them 16207 if test "x$new_path" = x \ 16208 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16209 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16210 new_path=`$CYGPATH -u "$path"` 16211 fi 16212 if test "x$new_path" = x; then 16213 # It's still not found. Now this is an unrecoverable error. 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16215 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16216 has_space=`$ECHO "$complete" | $GREP " "` 16217 if test "x$has_space" != x; then 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16219 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16220 fi 16221 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16222 fi 16223 fi 16224 16225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16228 # "foo.exe" is OK but "foo" is an error. 16229 # 16230 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16231 # It is also a way to make sure we got the proper file name for the real test later on. 16232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16233 if test "x$test_shortpath" = x; then 16234 # Short path failed, file does not exist as specified. 16235 # Try adding .exe or .cmd 16236 if test -f "${new_path}.exe"; then 16237 input_to_shortpath="${new_path}.exe" 16238 elif test -f "${new_path}.cmd"; then 16239 input_to_shortpath="${new_path}.cmd" 16240 else 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16242 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16243 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16244 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16245 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16246 fi 16247 else 16248 input_to_shortpath="$new_path" 16249 fi 16250 16251 # Call helper function which possibly converts this using DOS-style short mode. 16252 # If so, the updated path is stored in $new_path. 16253 new_path="$input_to_shortpath" 16254 16255 input_path="$input_to_shortpath" 16256 # Check if we need to convert this using DOS-style short mode. If the path 16257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16258 # take no chances and rewrite it. 16259 # Note: m4 eats our [], so we need to use [ and ] instead. 16260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16261 if test "x$has_forbidden_chars" != x; then 16262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16266 # Going to short mode and back again did indeed matter. Since short mode is 16267 # case insensitive, let's make it lowercase to improve readability. 16268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16269 # Now convert it back to Unix-style (cygpath) 16270 input_path=`$CYGPATH -u "$shortmode_path"` 16271 new_path="$input_path" 16272 fi 16273 fi 16274 16275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16276 if test "x$test_cygdrive_prefix" = x; then 16277 # As a simple fix, exclude /usr/bin since it's not a real path. 16278 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16280 # a path prefixed by /cygdrive for fixpath to work. 16281 new_path="$CYGWIN_ROOT_PATH$input_path" 16282 fi 16283 fi 16284 16285 # remove trailing .exe if any 16286 new_path="${new_path/%.exe/}" 16287 16288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16289 16290 # First separate the path from the arguments. This will split at the first 16291 # space. 16292 complete="$FOUND_MAKE" 16293 path="${complete%% *}" 16294 tmp="$complete EOL" 16295 arguments="${tmp#* }" 16296 16297 # Input might be given as Windows format, start by converting to 16298 # unix format. 16299 new_path="$path" 16300 16301 windows_path="$new_path" 16302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16303 unix_path=`$CYGPATH -u "$windows_path"` 16304 new_path="$unix_path" 16305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16307 new_path="$unix_path" 16308 fi 16309 16310 16311 # Now try to locate executable using which 16312 new_path=`$WHICH "$new_path" 2> /dev/null` 16313 16314 if test "x$new_path" = x; then 16315 # Oops. Which didn't find the executable. 16316 # The splitting of arguments from the executable at a space might have been incorrect, 16317 # since paths with space are more likely in Windows. Give it another try with the whole 16318 # argument. 16319 path="$complete" 16320 arguments="EOL" 16321 new_path="$path" 16322 16323 windows_path="$new_path" 16324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16325 unix_path=`$CYGPATH -u "$windows_path"` 16326 new_path="$unix_path" 16327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16328 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16329 new_path="$unix_path" 16330 fi 16331 16332 16333 new_path=`$WHICH "$new_path" 2> /dev/null` 16334 # bat and cmd files are not always considered executable in MSYS causing which 16335 # to not find them 16336 if test "x$new_path" = x \ 16337 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16338 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16339 new_path="$path" 16340 16341 windows_path="$new_path" 16342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16343 unix_path=`$CYGPATH -u "$windows_path"` 16344 new_path="$unix_path" 16345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16347 new_path="$unix_path" 16348 fi 16349 16350 fi 16351 16352 if test "x$new_path" = x; then 16353 # It's still not found. Now this is an unrecoverable error. 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16355 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16356 has_space=`$ECHO "$complete" | $GREP " "` 16357 if test "x$has_space" != x; then 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16359 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16360 fi 16361 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16362 fi 16363 fi 16364 16365 # Now new_path has a complete unix path to the binary 16366 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16367 # Keep paths in /bin as-is, but remove trailing .exe if any 16368 new_path="${new_path/%.exe/}" 16369 # Do not save /bin paths to all_fixpath_prefixes! 16370 else 16371 # Not in mixed or Windows style, start by that. 16372 new_path=`cmd //c echo $new_path` 16373 16374 input_path="$new_path" 16375 # Check if we need to convert this using DOS-style short mode. If the path 16376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16377 # take no chances and rewrite it. 16378 # Note: m4 eats our [], so we need to use [ and ] instead. 16379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16380 if test "x$has_forbidden_chars" != x; then 16381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16383 fi 16384 16385 # Output is in $new_path 16386 16387 windows_path="$new_path" 16388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16389 unix_path=`$CYGPATH -u "$windows_path"` 16390 new_path="$unix_path" 16391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16393 new_path="$unix_path" 16394 fi 16395 16396 # remove trailing .exe if any 16397 new_path="${new_path/%.exe/}" 16398 16399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16401 fi 16402 16403 else 16404 # We're on a posix platform. Hooray! :) 16405 # First separate the path from the arguments. This will split at the first 16406 # space. 16407 complete="$FOUND_MAKE" 16408 path="${complete%% *}" 16409 tmp="$complete EOL" 16410 arguments="${tmp#* }" 16411 16412 # Cannot rely on the command "which" here since it doesn't always work. 16413 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16414 if test -z "$is_absolute_path"; then 16415 # Path to executable is not absolute. Find it. 16416 IFS_save="$IFS" 16417 IFS=: 16418 for p in $PATH; do 16419 if test -f "$p/$path" && test -x "$p/$path"; then 16420 new_path="$p/$path" 16421 break 16422 fi 16423 done 16424 IFS="$IFS_save" 16425 else 16426 # This is an absolute path, we can use it without further modifications. 16427 new_path="$path" 16428 fi 16429 16430 if test "x$new_path" = x; then 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16432 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16433 has_space=`$ECHO "$complete" | $GREP " "` 16434 if test "x$has_space" != x; then 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16436 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16437 fi 16438 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16439 fi 16440 fi 16441 16442 # Now join together the path and the arguments once again 16443 if test "x$arguments" != xEOL; then 16444 new_complete="$new_path ${arguments% *}" 16445 else 16446 new_complete="$new_path" 16447 fi 16448 16449 if test "x$complete" != "x$new_complete"; then 16450 FOUND_MAKE="$new_complete" 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16452 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16453 fi 16454 16455 fi 16456 fi 16457 fi 16458 fi 16459 16460 fi 16461 16462 if test "x$FOUND_MAKE" = x; then 16463 if test "x$TOOLCHAIN_PATH" != x; then 16464 # We have a toolchain path, check that as well before giving up. 16465 OLD_PATH=$PATH 16466 PATH=$TOOLCHAIN_PATH:$PATH 16467 for ac_prog in gmake 16468 do 16469 # Extract the first word of "$ac_prog", so it can be a program name with args. 16470 set dummy $ac_prog; ac_word=$2 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16472 $as_echo_n "checking for $ac_word... " >&6; } 16473 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16474 $as_echo_n "(cached) " >&6 16475 else 16476 case $CHECK_TOOLSDIR_GMAKE in 16477 [\\/]* | ?:[\\/]*) 16478 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16479 ;; 16480 *) 16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16482 for as_dir in $PATH 16483 do 16484 IFS=$as_save_IFS 16485 test -z "$as_dir" && as_dir=. 16486 for ac_exec_ext in '' $ac_executable_extensions; do 16487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16488 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16490 break 2 16491 fi 16492 done 16493 done 16494 IFS=$as_save_IFS 16495 16496 ;; 16497 esac 16498 fi 16499 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16500 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16502 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16503 else 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16505 $as_echo "no" >&6; } 16506 fi 16507 16508 16509 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16510 done 16511 16512 16513 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16514 DESCRIPTION="gmake in tools-dir" 16515 if test "x$MAKE_CANDIDATE" != x; then 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16517 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16518 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16519 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16520 if test "x$IS_GNU_MAKE" = x; then 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16522 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16523 else 16524 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16525 if test "x$IS_MODERN_MAKE" = x; then 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16527 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16528 else 16529 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16531 MAKE_EXPECTED_ENV='cygwin' 16532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16533 MAKE_EXPECTED_ENV='msys' 16534 else 16535 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16536 fi 16537 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16538 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16539 else 16540 # Not relevant for non-Windows 16541 IS_MAKE_CORRECT_ENV=true 16542 fi 16543 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16544 { $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 16545 $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;} 16546 else 16547 FOUND_MAKE=$MAKE_CANDIDATE 16548 16549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16550 16551 # First separate the path from the arguments. This will split at the first 16552 # space. 16553 complete="$FOUND_MAKE" 16554 path="${complete%% *}" 16555 tmp="$complete EOL" 16556 arguments="${tmp#* }" 16557 16558 # Input might be given as Windows format, start by converting to 16559 # unix format. 16560 new_path=`$CYGPATH -u "$path"` 16561 16562 # Now try to locate executable using which 16563 new_path=`$WHICH "$new_path" 2> /dev/null` 16564 # bat and cmd files are not always considered executable in cygwin causing which 16565 # to not find them 16566 if test "x$new_path" = x \ 16567 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16568 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16569 new_path=`$CYGPATH -u "$path"` 16570 fi 16571 if test "x$new_path" = x; then 16572 # Oops. Which didn't find the executable. 16573 # The splitting of arguments from the executable at a space might have been incorrect, 16574 # since paths with space are more likely in Windows. Give it another try with the whole 16575 # argument. 16576 path="$complete" 16577 arguments="EOL" 16578 new_path=`$CYGPATH -u "$path"` 16579 new_path=`$WHICH "$new_path" 2> /dev/null` 16580 # bat and cmd files are not always considered executable in cygwin causing which 16581 # to not find them 16582 if test "x$new_path" = x \ 16583 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16584 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16585 new_path=`$CYGPATH -u "$path"` 16586 fi 16587 if test "x$new_path" = x; then 16588 # It's still not found. Now this is an unrecoverable error. 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16590 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16591 has_space=`$ECHO "$complete" | $GREP " "` 16592 if test "x$has_space" != x; then 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16594 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16595 fi 16596 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16597 fi 16598 fi 16599 16600 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16601 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16602 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16603 # "foo.exe" is OK but "foo" is an error. 16604 # 16605 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16606 # It is also a way to make sure we got the proper file name for the real test later on. 16607 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16608 if test "x$test_shortpath" = x; then 16609 # Short path failed, file does not exist as specified. 16610 # Try adding .exe or .cmd 16611 if test -f "${new_path}.exe"; then 16612 input_to_shortpath="${new_path}.exe" 16613 elif test -f "${new_path}.cmd"; then 16614 input_to_shortpath="${new_path}.cmd" 16615 else 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16617 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16618 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16619 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16620 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16621 fi 16622 else 16623 input_to_shortpath="$new_path" 16624 fi 16625 16626 # Call helper function which possibly converts this using DOS-style short mode. 16627 # If so, the updated path is stored in $new_path. 16628 new_path="$input_to_shortpath" 16629 16630 input_path="$input_to_shortpath" 16631 # Check if we need to convert this using DOS-style short mode. If the path 16632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16633 # take no chances and rewrite it. 16634 # Note: m4 eats our [], so we need to use [ and ] instead. 16635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16636 if test "x$has_forbidden_chars" != x; then 16637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16638 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16639 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16640 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16641 # Going to short mode and back again did indeed matter. Since short mode is 16642 # case insensitive, let's make it lowercase to improve readability. 16643 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16644 # Now convert it back to Unix-style (cygpath) 16645 input_path=`$CYGPATH -u "$shortmode_path"` 16646 new_path="$input_path" 16647 fi 16648 fi 16649 16650 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16651 if test "x$test_cygdrive_prefix" = x; then 16652 # As a simple fix, exclude /usr/bin since it's not a real path. 16653 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16654 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16655 # a path prefixed by /cygdrive for fixpath to work. 16656 new_path="$CYGWIN_ROOT_PATH$input_path" 16657 fi 16658 fi 16659 16660 # remove trailing .exe if any 16661 new_path="${new_path/%.exe/}" 16662 16663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16664 16665 # First separate the path from the arguments. This will split at the first 16666 # space. 16667 complete="$FOUND_MAKE" 16668 path="${complete%% *}" 16669 tmp="$complete EOL" 16670 arguments="${tmp#* }" 16671 16672 # Input might be given as Windows format, start by converting to 16673 # unix format. 16674 new_path="$path" 16675 16676 windows_path="$new_path" 16677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16678 unix_path=`$CYGPATH -u "$windows_path"` 16679 new_path="$unix_path" 16680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16682 new_path="$unix_path" 16683 fi 16684 16685 16686 # Now try to locate executable using which 16687 new_path=`$WHICH "$new_path" 2> /dev/null` 16688 16689 if test "x$new_path" = x; then 16690 # Oops. Which didn't find the executable. 16691 # The splitting of arguments from the executable at a space might have been incorrect, 16692 # since paths with space are more likely in Windows. Give it another try with the whole 16693 # argument. 16694 path="$complete" 16695 arguments="EOL" 16696 new_path="$path" 16697 16698 windows_path="$new_path" 16699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16700 unix_path=`$CYGPATH -u "$windows_path"` 16701 new_path="$unix_path" 16702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16703 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16704 new_path="$unix_path" 16705 fi 16706 16707 16708 new_path=`$WHICH "$new_path" 2> /dev/null` 16709 # bat and cmd files are not always considered executable in MSYS causing which 16710 # to not find them 16711 if test "x$new_path" = x \ 16712 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16713 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16714 new_path="$path" 16715 16716 windows_path="$new_path" 16717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16718 unix_path=`$CYGPATH -u "$windows_path"` 16719 new_path="$unix_path" 16720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16722 new_path="$unix_path" 16723 fi 16724 16725 fi 16726 16727 if test "x$new_path" = x; then 16728 # It's still not found. Now this is an unrecoverable error. 16729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16730 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16731 has_space=`$ECHO "$complete" | $GREP " "` 16732 if test "x$has_space" != x; then 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16734 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16735 fi 16736 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16737 fi 16738 fi 16739 16740 # Now new_path has a complete unix path to the binary 16741 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16742 # Keep paths in /bin as-is, but remove trailing .exe if any 16743 new_path="${new_path/%.exe/}" 16744 # Do not save /bin paths to all_fixpath_prefixes! 16745 else 16746 # Not in mixed or Windows style, start by that. 16747 new_path=`cmd //c echo $new_path` 16748 16749 input_path="$new_path" 16750 # Check if we need to convert this using DOS-style short mode. If the path 16751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16752 # take no chances and rewrite it. 16753 # Note: m4 eats our [], so we need to use [ and ] instead. 16754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16755 if test "x$has_forbidden_chars" != x; then 16756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16757 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16758 fi 16759 16760 # Output is in $new_path 16761 16762 windows_path="$new_path" 16763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16764 unix_path=`$CYGPATH -u "$windows_path"` 16765 new_path="$unix_path" 16766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16768 new_path="$unix_path" 16769 fi 16770 16771 # remove trailing .exe if any 16772 new_path="${new_path/%.exe/}" 16773 16774 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16775 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16776 fi 16777 16778 else 16779 # We're on a posix platform. Hooray! :) 16780 # First separate the path from the arguments. This will split at the first 16781 # space. 16782 complete="$FOUND_MAKE" 16783 path="${complete%% *}" 16784 tmp="$complete EOL" 16785 arguments="${tmp#* }" 16786 16787 # Cannot rely on the command "which" here since it doesn't always work. 16788 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16789 if test -z "$is_absolute_path"; then 16790 # Path to executable is not absolute. Find it. 16791 IFS_save="$IFS" 16792 IFS=: 16793 for p in $PATH; do 16794 if test -f "$p/$path" && test -x "$p/$path"; then 16795 new_path="$p/$path" 16796 break 16797 fi 16798 done 16799 IFS="$IFS_save" 16800 else 16801 # This is an absolute path, we can use it without further modifications. 16802 new_path="$path" 16803 fi 16804 16805 if test "x$new_path" = x; then 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16807 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16808 has_space=`$ECHO "$complete" | $GREP " "` 16809 if test "x$has_space" != x; then 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16811 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16812 fi 16813 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16814 fi 16815 fi 16816 16817 # Now join together the path and the arguments once again 16818 if test "x$arguments" != xEOL; then 16819 new_complete="$new_path ${arguments% *}" 16820 else 16821 new_complete="$new_path" 16822 fi 16823 16824 if test "x$complete" != "x$new_complete"; then 16825 FOUND_MAKE="$new_complete" 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16827 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16828 fi 16829 16830 fi 16831 fi 16832 fi 16833 fi 16834 16835 if test "x$FOUND_MAKE" = x; then 16836 for ac_prog in make 16837 do 16838 # Extract the first word of "$ac_prog", so it can be a program name with args. 16839 set dummy $ac_prog; ac_word=$2 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16841 $as_echo_n "checking for $ac_word... " >&6; } 16842 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16843 $as_echo_n "(cached) " >&6 16844 else 16845 case $CHECK_TOOLSDIR_MAKE in 16846 [\\/]* | ?:[\\/]*) 16847 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16848 ;; 16849 *) 16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16851 for as_dir in $PATH 16852 do 16853 IFS=$as_save_IFS 16854 test -z "$as_dir" && as_dir=. 16855 for ac_exec_ext in '' $ac_executable_extensions; do 16856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16857 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16859 break 2 16860 fi 16861 done 16862 done 16863 IFS=$as_save_IFS 16864 16865 ;; 16866 esac 16867 fi 16868 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16869 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16871 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16872 else 16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16874 $as_echo "no" >&6; } 16875 fi 16876 16877 16878 test -n "$CHECK_TOOLSDIR_MAKE" && break 16879 done 16880 16881 16882 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16883 DESCRIPTION="make in tools-dir" 16884 if test "x$MAKE_CANDIDATE" != x; then 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16886 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16887 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16888 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16889 if test "x$IS_GNU_MAKE" = x; then 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16891 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16892 else 16893 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16894 if test "x$IS_MODERN_MAKE" = x; then 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16896 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16897 else 16898 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16900 MAKE_EXPECTED_ENV='cygwin' 16901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16902 MAKE_EXPECTED_ENV='msys' 16903 else 16904 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16905 fi 16906 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16907 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16908 else 16909 # Not relevant for non-Windows 16910 IS_MAKE_CORRECT_ENV=true 16911 fi 16912 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16913 { $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 16914 $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;} 16915 else 16916 FOUND_MAKE=$MAKE_CANDIDATE 16917 16918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16919 16920 # First separate the path from the arguments. This will split at the first 16921 # space. 16922 complete="$FOUND_MAKE" 16923 path="${complete%% *}" 16924 tmp="$complete EOL" 16925 arguments="${tmp#* }" 16926 16927 # Input might be given as Windows format, start by converting to 16928 # unix format. 16929 new_path=`$CYGPATH -u "$path"` 16930 16931 # Now try to locate executable using which 16932 new_path=`$WHICH "$new_path" 2> /dev/null` 16933 # bat and cmd files are not always considered executable in cygwin causing which 16934 # to not find them 16935 if test "x$new_path" = x \ 16936 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16937 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16938 new_path=`$CYGPATH -u "$path"` 16939 fi 16940 if test "x$new_path" = x; then 16941 # Oops. Which didn't find the executable. 16942 # The splitting of arguments from the executable at a space might have been incorrect, 16943 # since paths with space are more likely in Windows. Give it another try with the whole 16944 # argument. 16945 path="$complete" 16946 arguments="EOL" 16947 new_path=`$CYGPATH -u "$path"` 16948 new_path=`$WHICH "$new_path" 2> /dev/null` 16949 # bat and cmd files are not always considered executable in cygwin causing which 16950 # to not find them 16951 if test "x$new_path" = x \ 16952 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16953 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16954 new_path=`$CYGPATH -u "$path"` 16955 fi 16956 if test "x$new_path" = x; then 16957 # It's still not found. Now this is an unrecoverable error. 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16959 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16960 has_space=`$ECHO "$complete" | $GREP " "` 16961 if test "x$has_space" != x; then 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16963 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16964 fi 16965 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16966 fi 16967 fi 16968 16969 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16970 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16971 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16972 # "foo.exe" is OK but "foo" is an error. 16973 # 16974 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16975 # It is also a way to make sure we got the proper file name for the real test later on. 16976 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16977 if test "x$test_shortpath" = x; then 16978 # Short path failed, file does not exist as specified. 16979 # Try adding .exe or .cmd 16980 if test -f "${new_path}.exe"; then 16981 input_to_shortpath="${new_path}.exe" 16982 elif test -f "${new_path}.cmd"; then 16983 input_to_shortpath="${new_path}.cmd" 16984 else 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16988 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16989 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16990 fi 16991 else 16992 input_to_shortpath="$new_path" 16993 fi 16994 16995 # Call helper function which possibly converts this using DOS-style short mode. 16996 # If so, the updated path is stored in $new_path. 16997 new_path="$input_to_shortpath" 16998 16999 input_path="$input_to_shortpath" 17000 # Check if we need to convert this using DOS-style short mode. If the path 17001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17002 # take no chances and rewrite it. 17003 # Note: m4 eats our [], so we need to use [ and ] instead. 17004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17005 if test "x$has_forbidden_chars" != x; then 17006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17007 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17008 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17009 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17010 # Going to short mode and back again did indeed matter. Since short mode is 17011 # case insensitive, let's make it lowercase to improve readability. 17012 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17013 # Now convert it back to Unix-style (cygpath) 17014 input_path=`$CYGPATH -u "$shortmode_path"` 17015 new_path="$input_path" 17016 fi 17017 fi 17018 17019 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17020 if test "x$test_cygdrive_prefix" = x; then 17021 # As a simple fix, exclude /usr/bin since it's not a real path. 17022 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17023 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17024 # a path prefixed by /cygdrive for fixpath to work. 17025 new_path="$CYGWIN_ROOT_PATH$input_path" 17026 fi 17027 fi 17028 17029 # remove trailing .exe if any 17030 new_path="${new_path/%.exe/}" 17031 17032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17033 17034 # First separate the path from the arguments. This will split at the first 17035 # space. 17036 complete="$FOUND_MAKE" 17037 path="${complete%% *}" 17038 tmp="$complete EOL" 17039 arguments="${tmp#* }" 17040 17041 # Input might be given as Windows format, start by converting to 17042 # unix format. 17043 new_path="$path" 17044 17045 windows_path="$new_path" 17046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17047 unix_path=`$CYGPATH -u "$windows_path"` 17048 new_path="$unix_path" 17049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17051 new_path="$unix_path" 17052 fi 17053 17054 17055 # Now try to locate executable using which 17056 new_path=`$WHICH "$new_path" 2> /dev/null` 17057 17058 if test "x$new_path" = x; then 17059 # Oops. Which didn't find the executable. 17060 # The splitting of arguments from the executable at a space might have been incorrect, 17061 # since paths with space are more likely in Windows. Give it another try with the whole 17062 # argument. 17063 path="$complete" 17064 arguments="EOL" 17065 new_path="$path" 17066 17067 windows_path="$new_path" 17068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17069 unix_path=`$CYGPATH -u "$windows_path"` 17070 new_path="$unix_path" 17071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17073 new_path="$unix_path" 17074 fi 17075 17076 17077 new_path=`$WHICH "$new_path" 2> /dev/null` 17078 # bat and cmd files are not always considered executable in MSYS causing which 17079 # to not find them 17080 if test "x$new_path" = x \ 17081 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17082 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17083 new_path="$path" 17084 17085 windows_path="$new_path" 17086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17087 unix_path=`$CYGPATH -u "$windows_path"` 17088 new_path="$unix_path" 17089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17090 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17091 new_path="$unix_path" 17092 fi 17093 17094 fi 17095 17096 if test "x$new_path" = x; then 17097 # It's still not found. Now this is an unrecoverable error. 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17099 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17100 has_space=`$ECHO "$complete" | $GREP " "` 17101 if test "x$has_space" != x; then 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17103 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17104 fi 17105 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17106 fi 17107 fi 17108 17109 # Now new_path has a complete unix path to the binary 17110 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17111 # Keep paths in /bin as-is, but remove trailing .exe if any 17112 new_path="${new_path/%.exe/}" 17113 # Do not save /bin paths to all_fixpath_prefixes! 17114 else 17115 # Not in mixed or Windows style, start by that. 17116 new_path=`cmd //c echo $new_path` 17117 17118 input_path="$new_path" 17119 # Check if we need to convert this using DOS-style short mode. If the path 17120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17121 # take no chances and rewrite it. 17122 # Note: m4 eats our [], so we need to use [ and ] instead. 17123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17124 if test "x$has_forbidden_chars" != x; then 17125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17127 fi 17128 17129 # Output is in $new_path 17130 17131 windows_path="$new_path" 17132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17133 unix_path=`$CYGPATH -u "$windows_path"` 17134 new_path="$unix_path" 17135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17137 new_path="$unix_path" 17138 fi 17139 17140 # remove trailing .exe if any 17141 new_path="${new_path/%.exe/}" 17142 17143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17145 fi 17146 17147 else 17148 # We're on a posix platform. Hooray! :) 17149 # First separate the path from the arguments. This will split at the first 17150 # space. 17151 complete="$FOUND_MAKE" 17152 path="${complete%% *}" 17153 tmp="$complete EOL" 17154 arguments="${tmp#* }" 17155 17156 # Cannot rely on the command "which" here since it doesn't always work. 17157 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17158 if test -z "$is_absolute_path"; then 17159 # Path to executable is not absolute. Find it. 17160 IFS_save="$IFS" 17161 IFS=: 17162 for p in $PATH; do 17163 if test -f "$p/$path" && test -x "$p/$path"; then 17164 new_path="$p/$path" 17165 break 17166 fi 17167 done 17168 IFS="$IFS_save" 17169 else 17170 # This is an absolute path, we can use it without further modifications. 17171 new_path="$path" 17172 fi 17173 17174 if test "x$new_path" = x; then 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17176 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17177 has_space=`$ECHO "$complete" | $GREP " "` 17178 if test "x$has_space" != x; then 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17181 fi 17182 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17183 fi 17184 fi 17185 17186 # Now join together the path and the arguments once again 17187 if test "x$arguments" != xEOL; then 17188 new_complete="$new_path ${arguments% *}" 17189 else 17190 new_complete="$new_path" 17191 fi 17192 17193 if test "x$complete" != "x$new_complete"; then 17194 FOUND_MAKE="$new_complete" 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17196 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17197 fi 17198 17199 fi 17200 fi 17201 fi 17202 fi 17203 17204 fi 17205 PATH=$OLD_PATH 17206 fi 17207 fi 17208 17209 if test "x$FOUND_MAKE" = x; then 17210 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 17211 fi 17212 fi 17213 17214 MAKE=$FOUND_MAKE 17215 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17217 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17218 17219 17220 17221 # Test if find supports -delete 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17223 $as_echo_n "checking if find supports -delete... " >&6; } 17224 FIND_DELETE="-delete" 17225 17226 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17227 17228 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17229 17230 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17231 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17232 # No, it does not. 17233 rm $DELETEDIR/TestIfFindSupportsDelete 17234 FIND_DELETE="-exec rm \{\} \+" 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17236 $as_echo "no" >&6; } 17237 else 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17239 $as_echo "yes" >&6; } 17240 fi 17241 rmdir $DELETEDIR 17242 17243 17244 17245 # These tools might not be installed by default, 17246 # need hint on how to install them. 17247 17248 17249 17250 # Publish this variable in the help. 17251 17252 17253 if test "x$UNZIP" = x; then 17254 # The variable is not set by user, try to locate tool using the code snippet 17255 for ac_prog in unzip 17256 do 17257 # Extract the first word of "$ac_prog", so it can be a program name with args. 17258 set dummy $ac_prog; ac_word=$2 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17260 $as_echo_n "checking for $ac_word... " >&6; } 17261 if ${ac_cv_path_UNZIP+:} false; then : 17262 $as_echo_n "(cached) " >&6 17263 else 17264 case $UNZIP in 17265 [\\/]* | ?:[\\/]*) 17266 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17267 ;; 17268 *) 17269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17270 for as_dir in $PATH 17271 do 17272 IFS=$as_save_IFS 17273 test -z "$as_dir" && as_dir=. 17274 for ac_exec_ext in '' $ac_executable_extensions; do 17275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17276 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17278 break 2 17279 fi 17280 done 17281 done 17282 IFS=$as_save_IFS 17283 17284 ;; 17285 esac 17286 fi 17287 UNZIP=$ac_cv_path_UNZIP 17288 if test -n "$UNZIP"; then 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17290 $as_echo "$UNZIP" >&6; } 17291 else 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17293 $as_echo "no" >&6; } 17294 fi 17295 17296 17297 test -n "$UNZIP" && break 17298 done 17299 17300 else 17301 # The variable is set, but is it from the command line or the environment? 17302 17303 # Try to remove the string !UNZIP! from our list. 17304 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17305 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17306 # If it failed, the variable was not from the command line. Ignore it, 17307 # but warn the user (except for BASH, which is always set by the calling BASH). 17308 if test "xUNZIP" != xBASH; then 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17310 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17311 fi 17312 # Try to locate tool using the code snippet 17313 for ac_prog in unzip 17314 do 17315 # Extract the first word of "$ac_prog", so it can be a program name with args. 17316 set dummy $ac_prog; ac_word=$2 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17318 $as_echo_n "checking for $ac_word... " >&6; } 17319 if ${ac_cv_path_UNZIP+:} false; then : 17320 $as_echo_n "(cached) " >&6 17321 else 17322 case $UNZIP in 17323 [\\/]* | ?:[\\/]*) 17324 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17325 ;; 17326 *) 17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17328 for as_dir in $PATH 17329 do 17330 IFS=$as_save_IFS 17331 test -z "$as_dir" && as_dir=. 17332 for ac_exec_ext in '' $ac_executable_extensions; do 17333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17334 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17336 break 2 17337 fi 17338 done 17339 done 17340 IFS=$as_save_IFS 17341 17342 ;; 17343 esac 17344 fi 17345 UNZIP=$ac_cv_path_UNZIP 17346 if test -n "$UNZIP"; then 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17348 $as_echo "$UNZIP" >&6; } 17349 else 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17351 $as_echo "no" >&6; } 17352 fi 17353 17354 17355 test -n "$UNZIP" && break 17356 done 17357 17358 else 17359 # If it succeeded, then it was overridden by the user. We will use it 17360 # for the tool. 17361 17362 # First remove it from the list of overridden variables, so we can test 17363 # for unknown variables in the end. 17364 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17365 17366 # Check if the provided tool contains a complete path. 17367 tool_specified="$UNZIP" 17368 tool_basename="${tool_specified##*/}" 17369 if test "x$tool_basename" = "x$tool_specified"; then 17370 # A command without a complete path is provided, search $PATH. 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17372 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17373 # Extract the first word of "$tool_basename", so it can be a program name with args. 17374 set dummy $tool_basename; ac_word=$2 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17376 $as_echo_n "checking for $ac_word... " >&6; } 17377 if ${ac_cv_path_UNZIP+:} false; then : 17378 $as_echo_n "(cached) " >&6 17379 else 17380 case $UNZIP in 17381 [\\/]* | ?:[\\/]*) 17382 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17383 ;; 17384 *) 17385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17386 for as_dir in $PATH 17387 do 17388 IFS=$as_save_IFS 17389 test -z "$as_dir" && as_dir=. 17390 for ac_exec_ext in '' $ac_executable_extensions; do 17391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17392 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17394 break 2 17395 fi 17396 done 17397 done 17398 IFS=$as_save_IFS 17399 17400 ;; 17401 esac 17402 fi 17403 UNZIP=$ac_cv_path_UNZIP 17404 if test -n "$UNZIP"; then 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17406 $as_echo "$UNZIP" >&6; } 17407 else 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17409 $as_echo "no" >&6; } 17410 fi 17411 17412 17413 if test "x$UNZIP" = x; then 17414 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17415 fi 17416 else 17417 # Otherwise we believe it is a complete path. Use it as it is. 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17419 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17421 $as_echo_n "checking for UNZIP... " >&6; } 17422 if test ! -x "$tool_specified"; then 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17424 $as_echo "not found" >&6; } 17425 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17426 fi 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17428 $as_echo "$tool_specified" >&6; } 17429 fi 17430 fi 17431 fi 17432 17433 17434 17435 if test "x$UNZIP" = x; then 17436 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17437 fi 17438 17439 17440 17441 17442 17443 # Publish this variable in the help. 17444 17445 17446 if test "x$ZIP" = x; then 17447 # The variable is not set by user, try to locate tool using the code snippet 17448 for ac_prog in zip 17449 do 17450 # Extract the first word of "$ac_prog", so it can be a program name with args. 17451 set dummy $ac_prog; ac_word=$2 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17453 $as_echo_n "checking for $ac_word... " >&6; } 17454 if ${ac_cv_path_ZIP+:} false; then : 17455 $as_echo_n "(cached) " >&6 17456 else 17457 case $ZIP in 17458 [\\/]* | ?:[\\/]*) 17459 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17460 ;; 17461 *) 17462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17463 for as_dir in $PATH 17464 do 17465 IFS=$as_save_IFS 17466 test -z "$as_dir" && as_dir=. 17467 for ac_exec_ext in '' $ac_executable_extensions; do 17468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17469 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17471 break 2 17472 fi 17473 done 17474 done 17475 IFS=$as_save_IFS 17476 17477 ;; 17478 esac 17479 fi 17480 ZIP=$ac_cv_path_ZIP 17481 if test -n "$ZIP"; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17483 $as_echo "$ZIP" >&6; } 17484 else 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17486 $as_echo "no" >&6; } 17487 fi 17488 17489 17490 test -n "$ZIP" && break 17491 done 17492 17493 else 17494 # The variable is set, but is it from the command line or the environment? 17495 17496 # Try to remove the string !ZIP! from our list. 17497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17499 # If it failed, the variable was not from the command line. Ignore it, 17500 # but warn the user (except for BASH, which is always set by the calling BASH). 17501 if test "xZIP" != xBASH; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17503 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17504 fi 17505 # Try to locate tool using the code snippet 17506 for ac_prog in zip 17507 do 17508 # Extract the first word of "$ac_prog", so it can be a program name with args. 17509 set dummy $ac_prog; ac_word=$2 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17511 $as_echo_n "checking for $ac_word... " >&6; } 17512 if ${ac_cv_path_ZIP+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514 else 17515 case $ZIP in 17516 [\\/]* | ?:[\\/]*) 17517 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17518 ;; 17519 *) 17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17521 for as_dir in $PATH 17522 do 17523 IFS=$as_save_IFS 17524 test -z "$as_dir" && as_dir=. 17525 for ac_exec_ext in '' $ac_executable_extensions; do 17526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17527 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17529 break 2 17530 fi 17531 done 17532 done 17533 IFS=$as_save_IFS 17534 17535 ;; 17536 esac 17537 fi 17538 ZIP=$ac_cv_path_ZIP 17539 if test -n "$ZIP"; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17541 $as_echo "$ZIP" >&6; } 17542 else 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17544 $as_echo "no" >&6; } 17545 fi 17546 17547 17548 test -n "$ZIP" && break 17549 done 17550 17551 else 17552 # If it succeeded, then it was overridden by the user. We will use it 17553 # for the tool. 17554 17555 # First remove it from the list of overridden variables, so we can test 17556 # for unknown variables in the end. 17557 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17558 17559 # Check if the provided tool contains a complete path. 17560 tool_specified="$ZIP" 17561 tool_basename="${tool_specified##*/}" 17562 if test "x$tool_basename" = "x$tool_specified"; then 17563 # A command without a complete path is provided, search $PATH. 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17565 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17566 # Extract the first word of "$tool_basename", so it can be a program name with args. 17567 set dummy $tool_basename; ac_word=$2 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17569 $as_echo_n "checking for $ac_word... " >&6; } 17570 if ${ac_cv_path_ZIP+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572 else 17573 case $ZIP in 17574 [\\/]* | ?:[\\/]*) 17575 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17576 ;; 17577 *) 17578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17579 for as_dir in $PATH 17580 do 17581 IFS=$as_save_IFS 17582 test -z "$as_dir" && as_dir=. 17583 for ac_exec_ext in '' $ac_executable_extensions; do 17584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17585 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17587 break 2 17588 fi 17589 done 17590 done 17591 IFS=$as_save_IFS 17592 17593 ;; 17594 esac 17595 fi 17596 ZIP=$ac_cv_path_ZIP 17597 if test -n "$ZIP"; then 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17599 $as_echo "$ZIP" >&6; } 17600 else 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17602 $as_echo "no" >&6; } 17603 fi 17604 17605 17606 if test "x$ZIP" = x; then 17607 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17608 fi 17609 else 17610 # Otherwise we believe it is a complete path. Use it as it is. 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17612 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17614 $as_echo_n "checking for ZIP... " >&6; } 17615 if test ! -x "$tool_specified"; then 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17617 $as_echo "not found" >&6; } 17618 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17619 fi 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17621 $as_echo "$tool_specified" >&6; } 17622 fi 17623 fi 17624 fi 17625 17626 17627 17628 if test "x$ZIP" = x; then 17629 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17630 fi 17631 17632 17633 17634 # Non-required basic tools 17635 17636 17637 17638 # Publish this variable in the help. 17639 17640 17641 if test "x$LDD" = x; then 17642 # The variable is not set by user, try to locate tool using the code snippet 17643 for ac_prog in ldd 17644 do 17645 # Extract the first word of "$ac_prog", so it can be a program name with args. 17646 set dummy $ac_prog; ac_word=$2 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17648 $as_echo_n "checking for $ac_word... " >&6; } 17649 if ${ac_cv_path_LDD+:} false; then : 17650 $as_echo_n "(cached) " >&6 17651 else 17652 case $LDD in 17653 [\\/]* | ?:[\\/]*) 17654 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17655 ;; 17656 *) 17657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17658 for as_dir in $PATH 17659 do 17660 IFS=$as_save_IFS 17661 test -z "$as_dir" && as_dir=. 17662 for ac_exec_ext in '' $ac_executable_extensions; do 17663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17664 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17666 break 2 17667 fi 17668 done 17669 done 17670 IFS=$as_save_IFS 17671 17672 ;; 17673 esac 17674 fi 17675 LDD=$ac_cv_path_LDD 17676 if test -n "$LDD"; then 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17678 $as_echo "$LDD" >&6; } 17679 else 17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17681 $as_echo "no" >&6; } 17682 fi 17683 17684 17685 test -n "$LDD" && break 17686 done 17687 17688 else 17689 # The variable is set, but is it from the command line or the environment? 17690 17691 # Try to remove the string !LDD! from our list. 17692 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17693 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17694 # If it failed, the variable was not from the command line. Ignore it, 17695 # but warn the user (except for BASH, which is always set by the calling BASH). 17696 if test "xLDD" != xBASH; then 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17698 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17699 fi 17700 # Try to locate tool using the code snippet 17701 for ac_prog in ldd 17702 do 17703 # Extract the first word of "$ac_prog", so it can be a program name with args. 17704 set dummy $ac_prog; ac_word=$2 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17706 $as_echo_n "checking for $ac_word... " >&6; } 17707 if ${ac_cv_path_LDD+:} false; then : 17708 $as_echo_n "(cached) " >&6 17709 else 17710 case $LDD in 17711 [\\/]* | ?:[\\/]*) 17712 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17713 ;; 17714 *) 17715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17716 for as_dir in $PATH 17717 do 17718 IFS=$as_save_IFS 17719 test -z "$as_dir" && as_dir=. 17720 for ac_exec_ext in '' $ac_executable_extensions; do 17721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17722 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17724 break 2 17725 fi 17726 done 17727 done 17728 IFS=$as_save_IFS 17729 17730 ;; 17731 esac 17732 fi 17733 LDD=$ac_cv_path_LDD 17734 if test -n "$LDD"; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17736 $as_echo "$LDD" >&6; } 17737 else 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17739 $as_echo "no" >&6; } 17740 fi 17741 17742 17743 test -n "$LDD" && break 17744 done 17745 17746 else 17747 # If it succeeded, then it was overridden by the user. We will use it 17748 # for the tool. 17749 17750 # First remove it from the list of overridden variables, so we can test 17751 # for unknown variables in the end. 17752 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17753 17754 # Check if the provided tool contains a complete path. 17755 tool_specified="$LDD" 17756 tool_basename="${tool_specified##*/}" 17757 if test "x$tool_basename" = "x$tool_specified"; then 17758 # A command without a complete path is provided, search $PATH. 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17760 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17761 # Extract the first word of "$tool_basename", so it can be a program name with args. 17762 set dummy $tool_basename; ac_word=$2 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17764 $as_echo_n "checking for $ac_word... " >&6; } 17765 if ${ac_cv_path_LDD+:} false; then : 17766 $as_echo_n "(cached) " >&6 17767 else 17768 case $LDD in 17769 [\\/]* | ?:[\\/]*) 17770 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17771 ;; 17772 *) 17773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17774 for as_dir in $PATH 17775 do 17776 IFS=$as_save_IFS 17777 test -z "$as_dir" && as_dir=. 17778 for ac_exec_ext in '' $ac_executable_extensions; do 17779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17780 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17782 break 2 17783 fi 17784 done 17785 done 17786 IFS=$as_save_IFS 17787 17788 ;; 17789 esac 17790 fi 17791 LDD=$ac_cv_path_LDD 17792 if test -n "$LDD"; then 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17794 $as_echo "$LDD" >&6; } 17795 else 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17797 $as_echo "no" >&6; } 17798 fi 17799 17800 17801 if test "x$LDD" = x; then 17802 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17803 fi 17804 else 17805 # Otherwise we believe it is a complete path. Use it as it is. 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17807 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17809 $as_echo_n "checking for LDD... " >&6; } 17810 if test ! -x "$tool_specified"; then 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17812 $as_echo "not found" >&6; } 17813 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17814 fi 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17816 $as_echo "$tool_specified" >&6; } 17817 fi 17818 fi 17819 fi 17820 17821 17822 if test "x$LDD" = "x"; then 17823 # List shared lib dependencies is used for 17824 # debug output and checking for forbidden dependencies. 17825 # We can build without it. 17826 LDD="true" 17827 fi 17828 17829 17830 # Publish this variable in the help. 17831 17832 17833 if test "x$READELF" = x; then 17834 # The variable is not set by user, try to locate tool using the code snippet 17835 for ac_prog in readelf greadelf 17836 do 17837 # Extract the first word of "$ac_prog", so it can be a program name with args. 17838 set dummy $ac_prog; ac_word=$2 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17840 $as_echo_n "checking for $ac_word... " >&6; } 17841 if ${ac_cv_path_READELF+:} false; then : 17842 $as_echo_n "(cached) " >&6 17843 else 17844 case $READELF in 17845 [\\/]* | ?:[\\/]*) 17846 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17847 ;; 17848 *) 17849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17850 for as_dir in $PATH 17851 do 17852 IFS=$as_save_IFS 17853 test -z "$as_dir" && as_dir=. 17854 for ac_exec_ext in '' $ac_executable_extensions; do 17855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17856 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17858 break 2 17859 fi 17860 done 17861 done 17862 IFS=$as_save_IFS 17863 17864 ;; 17865 esac 17866 fi 17867 READELF=$ac_cv_path_READELF 17868 if test -n "$READELF"; then 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17870 $as_echo "$READELF" >&6; } 17871 else 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17873 $as_echo "no" >&6; } 17874 fi 17875 17876 17877 test -n "$READELF" && break 17878 done 17879 17880 else 17881 # The variable is set, but is it from the command line or the environment? 17882 17883 # Try to remove the string !READELF! from our list. 17884 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17885 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17886 # If it failed, the variable was not from the command line. Ignore it, 17887 # but warn the user (except for BASH, which is always set by the calling BASH). 17888 if test "xREADELF" != xBASH; then 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17890 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17891 fi 17892 # Try to locate tool using the code snippet 17893 for ac_prog in readelf greadelf 17894 do 17895 # Extract the first word of "$ac_prog", so it can be a program name with args. 17896 set dummy $ac_prog; ac_word=$2 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17898 $as_echo_n "checking for $ac_word... " >&6; } 17899 if ${ac_cv_path_READELF+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901 else 17902 case $READELF in 17903 [\\/]* | ?:[\\/]*) 17904 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17905 ;; 17906 *) 17907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17908 for as_dir in $PATH 17909 do 17910 IFS=$as_save_IFS 17911 test -z "$as_dir" && as_dir=. 17912 for ac_exec_ext in '' $ac_executable_extensions; do 17913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17914 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17916 break 2 17917 fi 17918 done 17919 done 17920 IFS=$as_save_IFS 17921 17922 ;; 17923 esac 17924 fi 17925 READELF=$ac_cv_path_READELF 17926 if test -n "$READELF"; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17928 $as_echo "$READELF" >&6; } 17929 else 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17931 $as_echo "no" >&6; } 17932 fi 17933 17934 17935 test -n "$READELF" && break 17936 done 17937 17938 else 17939 # If it succeeded, then it was overridden by the user. We will use it 17940 # for the tool. 17941 17942 # First remove it from the list of overridden variables, so we can test 17943 # for unknown variables in the end. 17944 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17945 17946 # Check if the provided tool contains a complete path. 17947 tool_specified="$READELF" 17948 tool_basename="${tool_specified##*/}" 17949 if test "x$tool_basename" = "x$tool_specified"; then 17950 # A command without a complete path is provided, search $PATH. 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17952 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17953 # Extract the first word of "$tool_basename", so it can be a program name with args. 17954 set dummy $tool_basename; ac_word=$2 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17956 $as_echo_n "checking for $ac_word... " >&6; } 17957 if ${ac_cv_path_READELF+:} false; then : 17958 $as_echo_n "(cached) " >&6 17959 else 17960 case $READELF in 17961 [\\/]* | ?:[\\/]*) 17962 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17963 ;; 17964 *) 17965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17966 for as_dir in $PATH 17967 do 17968 IFS=$as_save_IFS 17969 test -z "$as_dir" && as_dir=. 17970 for ac_exec_ext in '' $ac_executable_extensions; do 17971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17972 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17974 break 2 17975 fi 17976 done 17977 done 17978 IFS=$as_save_IFS 17979 17980 ;; 17981 esac 17982 fi 17983 READELF=$ac_cv_path_READELF 17984 if test -n "$READELF"; then 17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17986 $as_echo "$READELF" >&6; } 17987 else 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17989 $as_echo "no" >&6; } 17990 fi 17991 17992 17993 if test "x$READELF" = x; then 17994 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17995 fi 17996 else 17997 # Otherwise we believe it is a complete path. Use it as it is. 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17999 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18001 $as_echo_n "checking for READELF... " >&6; } 18002 if test ! -x "$tool_specified"; then 18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18004 $as_echo "not found" >&6; } 18005 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18006 fi 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18008 $as_echo "$tool_specified" >&6; } 18009 fi 18010 fi 18011 fi 18012 18013 18014 18015 18016 # Publish this variable in the help. 18017 18018 18019 if test "x$HG" = x; then 18020 # The variable is not set by user, try to locate tool using the code snippet 18021 for ac_prog in hg 18022 do 18023 # Extract the first word of "$ac_prog", so it can be a program name with args. 18024 set dummy $ac_prog; ac_word=$2 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18026 $as_echo_n "checking for $ac_word... " >&6; } 18027 if ${ac_cv_path_HG+:} false; then : 18028 $as_echo_n "(cached) " >&6 18029 else 18030 case $HG in 18031 [\\/]* | ?:[\\/]*) 18032 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18033 ;; 18034 *) 18035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18036 for as_dir in $PATH 18037 do 18038 IFS=$as_save_IFS 18039 test -z "$as_dir" && as_dir=. 18040 for ac_exec_ext in '' $ac_executable_extensions; do 18041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18042 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18044 break 2 18045 fi 18046 done 18047 done 18048 IFS=$as_save_IFS 18049 18050 ;; 18051 esac 18052 fi 18053 HG=$ac_cv_path_HG 18054 if test -n "$HG"; then 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18056 $as_echo "$HG" >&6; } 18057 else 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18059 $as_echo "no" >&6; } 18060 fi 18061 18062 18063 test -n "$HG" && break 18064 done 18065 18066 else 18067 # The variable is set, but is it from the command line or the environment? 18068 18069 # Try to remove the string !HG! from our list. 18070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18072 # If it failed, the variable was not from the command line. Ignore it, 18073 # but warn the user (except for BASH, which is always set by the calling BASH). 18074 if test "xHG" != xBASH; then 18075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18076 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18077 fi 18078 # Try to locate tool using the code snippet 18079 for ac_prog in hg 18080 do 18081 # Extract the first word of "$ac_prog", so it can be a program name with args. 18082 set dummy $ac_prog; ac_word=$2 18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18084 $as_echo_n "checking for $ac_word... " >&6; } 18085 if ${ac_cv_path_HG+:} false; then : 18086 $as_echo_n "(cached) " >&6 18087 else 18088 case $HG in 18089 [\\/]* | ?:[\\/]*) 18090 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18091 ;; 18092 *) 18093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18094 for as_dir in $PATH 18095 do 18096 IFS=$as_save_IFS 18097 test -z "$as_dir" && as_dir=. 18098 for ac_exec_ext in '' $ac_executable_extensions; do 18099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18100 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18102 break 2 18103 fi 18104 done 18105 done 18106 IFS=$as_save_IFS 18107 18108 ;; 18109 esac 18110 fi 18111 HG=$ac_cv_path_HG 18112 if test -n "$HG"; then 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18114 $as_echo "$HG" >&6; } 18115 else 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18117 $as_echo "no" >&6; } 18118 fi 18119 18120 18121 test -n "$HG" && break 18122 done 18123 18124 else 18125 # If it succeeded, then it was overridden by the user. We will use it 18126 # for the tool. 18127 18128 # First remove it from the list of overridden variables, so we can test 18129 # for unknown variables in the end. 18130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18131 18132 # Check if the provided tool contains a complete path. 18133 tool_specified="$HG" 18134 tool_basename="${tool_specified##*/}" 18135 if test "x$tool_basename" = "x$tool_specified"; then 18136 # A command without a complete path is provided, search $PATH. 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18138 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18139 # Extract the first word of "$tool_basename", so it can be a program name with args. 18140 set dummy $tool_basename; ac_word=$2 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18142 $as_echo_n "checking for $ac_word... " >&6; } 18143 if ${ac_cv_path_HG+:} false; then : 18144 $as_echo_n "(cached) " >&6 18145 else 18146 case $HG in 18147 [\\/]* | ?:[\\/]*) 18148 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18149 ;; 18150 *) 18151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18152 for as_dir in $PATH 18153 do 18154 IFS=$as_save_IFS 18155 test -z "$as_dir" && as_dir=. 18156 for ac_exec_ext in '' $ac_executable_extensions; do 18157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18158 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18160 break 2 18161 fi 18162 done 18163 done 18164 IFS=$as_save_IFS 18165 18166 ;; 18167 esac 18168 fi 18169 HG=$ac_cv_path_HG 18170 if test -n "$HG"; then 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18172 $as_echo "$HG" >&6; } 18173 else 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18175 $as_echo "no" >&6; } 18176 fi 18177 18178 18179 if test "x$HG" = x; then 18180 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18181 fi 18182 else 18183 # Otherwise we believe it is a complete path. Use it as it is. 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18185 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18187 $as_echo_n "checking for HG... " >&6; } 18188 if test ! -x "$tool_specified"; then 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18190 $as_echo "not found" >&6; } 18191 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18192 fi 18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18194 $as_echo "$tool_specified" >&6; } 18195 fi 18196 fi 18197 fi 18198 18199 18200 18201 18202 # Publish this variable in the help. 18203 18204 18205 if test "x$STAT" = x; then 18206 # The variable is not set by user, try to locate tool using the code snippet 18207 for ac_prog in stat 18208 do 18209 # Extract the first word of "$ac_prog", so it can be a program name with args. 18210 set dummy $ac_prog; ac_word=$2 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18212 $as_echo_n "checking for $ac_word... " >&6; } 18213 if ${ac_cv_path_STAT+:} false; then : 18214 $as_echo_n "(cached) " >&6 18215 else 18216 case $STAT in 18217 [\\/]* | ?:[\\/]*) 18218 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18219 ;; 18220 *) 18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18222 for as_dir in $PATH 18223 do 18224 IFS=$as_save_IFS 18225 test -z "$as_dir" && as_dir=. 18226 for ac_exec_ext in '' $ac_executable_extensions; do 18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18228 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18230 break 2 18231 fi 18232 done 18233 done 18234 IFS=$as_save_IFS 18235 18236 ;; 18237 esac 18238 fi 18239 STAT=$ac_cv_path_STAT 18240 if test -n "$STAT"; then 18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18242 $as_echo "$STAT" >&6; } 18243 else 18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18245 $as_echo "no" >&6; } 18246 fi 18247 18248 18249 test -n "$STAT" && break 18250 done 18251 18252 else 18253 # The variable is set, but is it from the command line or the environment? 18254 18255 # Try to remove the string !STAT! from our list. 18256 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18257 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18258 # If it failed, the variable was not from the command line. Ignore it, 18259 # but warn the user (except for BASH, which is always set by the calling BASH). 18260 if test "xSTAT" != xBASH; then 18261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18262 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18263 fi 18264 # Try to locate tool using the code snippet 18265 for ac_prog in stat 18266 do 18267 # Extract the first word of "$ac_prog", so it can be a program name with args. 18268 set dummy $ac_prog; ac_word=$2 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18270 $as_echo_n "checking for $ac_word... " >&6; } 18271 if ${ac_cv_path_STAT+:} false; then : 18272 $as_echo_n "(cached) " >&6 18273 else 18274 case $STAT in 18275 [\\/]* | ?:[\\/]*) 18276 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18277 ;; 18278 *) 18279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18280 for as_dir in $PATH 18281 do 18282 IFS=$as_save_IFS 18283 test -z "$as_dir" && as_dir=. 18284 for ac_exec_ext in '' $ac_executable_extensions; do 18285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18286 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18288 break 2 18289 fi 18290 done 18291 done 18292 IFS=$as_save_IFS 18293 18294 ;; 18295 esac 18296 fi 18297 STAT=$ac_cv_path_STAT 18298 if test -n "$STAT"; then 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18300 $as_echo "$STAT" >&6; } 18301 else 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18303 $as_echo "no" >&6; } 18304 fi 18305 18306 18307 test -n "$STAT" && break 18308 done 18309 18310 else 18311 # If it succeeded, then it was overridden by the user. We will use it 18312 # for the tool. 18313 18314 # First remove it from the list of overridden variables, so we can test 18315 # for unknown variables in the end. 18316 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18317 18318 # Check if the provided tool contains a complete path. 18319 tool_specified="$STAT" 18320 tool_basename="${tool_specified##*/}" 18321 if test "x$tool_basename" = "x$tool_specified"; then 18322 # A command without a complete path is provided, search $PATH. 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18324 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18325 # Extract the first word of "$tool_basename", so it can be a program name with args. 18326 set dummy $tool_basename; ac_word=$2 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18328 $as_echo_n "checking for $ac_word... " >&6; } 18329 if ${ac_cv_path_STAT+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331 else 18332 case $STAT in 18333 [\\/]* | ?:[\\/]*) 18334 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18335 ;; 18336 *) 18337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18338 for as_dir in $PATH 18339 do 18340 IFS=$as_save_IFS 18341 test -z "$as_dir" && as_dir=. 18342 for ac_exec_ext in '' $ac_executable_extensions; do 18343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18344 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18346 break 2 18347 fi 18348 done 18349 done 18350 IFS=$as_save_IFS 18351 18352 ;; 18353 esac 18354 fi 18355 STAT=$ac_cv_path_STAT 18356 if test -n "$STAT"; then 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18358 $as_echo "$STAT" >&6; } 18359 else 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18361 $as_echo "no" >&6; } 18362 fi 18363 18364 18365 if test "x$STAT" = x; then 18366 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18367 fi 18368 else 18369 # Otherwise we believe it is a complete path. Use it as it is. 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18371 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18373 $as_echo_n "checking for STAT... " >&6; } 18374 if test ! -x "$tool_specified"; then 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18376 $as_echo "not found" >&6; } 18377 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18378 fi 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18380 $as_echo "$tool_specified" >&6; } 18381 fi 18382 fi 18383 fi 18384 18385 18386 18387 18388 # Publish this variable in the help. 18389 18390 18391 if test "x$TIME" = x; then 18392 # The variable is not set by user, try to locate tool using the code snippet 18393 for ac_prog in time 18394 do 18395 # Extract the first word of "$ac_prog", so it can be a program name with args. 18396 set dummy $ac_prog; ac_word=$2 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18398 $as_echo_n "checking for $ac_word... " >&6; } 18399 if ${ac_cv_path_TIME+:} false; then : 18400 $as_echo_n "(cached) " >&6 18401 else 18402 case $TIME in 18403 [\\/]* | ?:[\\/]*) 18404 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18405 ;; 18406 *) 18407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18408 for as_dir in $PATH 18409 do 18410 IFS=$as_save_IFS 18411 test -z "$as_dir" && as_dir=. 18412 for ac_exec_ext in '' $ac_executable_extensions; do 18413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18414 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18416 break 2 18417 fi 18418 done 18419 done 18420 IFS=$as_save_IFS 18421 18422 ;; 18423 esac 18424 fi 18425 TIME=$ac_cv_path_TIME 18426 if test -n "$TIME"; then 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18428 $as_echo "$TIME" >&6; } 18429 else 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18431 $as_echo "no" >&6; } 18432 fi 18433 18434 18435 test -n "$TIME" && break 18436 done 18437 18438 else 18439 # The variable is set, but is it from the command line or the environment? 18440 18441 # Try to remove the string !TIME! from our list. 18442 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18443 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18444 # If it failed, the variable was not from the command line. Ignore it, 18445 # but warn the user (except for BASH, which is always set by the calling BASH). 18446 if test "xTIME" != xBASH; then 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18448 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18449 fi 18450 # Try to locate tool using the code snippet 18451 for ac_prog in time 18452 do 18453 # Extract the first word of "$ac_prog", so it can be a program name with args. 18454 set dummy $ac_prog; ac_word=$2 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18456 $as_echo_n "checking for $ac_word... " >&6; } 18457 if ${ac_cv_path_TIME+:} false; then : 18458 $as_echo_n "(cached) " >&6 18459 else 18460 case $TIME in 18461 [\\/]* | ?:[\\/]*) 18462 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18463 ;; 18464 *) 18465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18466 for as_dir in $PATH 18467 do 18468 IFS=$as_save_IFS 18469 test -z "$as_dir" && as_dir=. 18470 for ac_exec_ext in '' $ac_executable_extensions; do 18471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18472 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18474 break 2 18475 fi 18476 done 18477 done 18478 IFS=$as_save_IFS 18479 18480 ;; 18481 esac 18482 fi 18483 TIME=$ac_cv_path_TIME 18484 if test -n "$TIME"; then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18486 $as_echo "$TIME" >&6; } 18487 else 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18489 $as_echo "no" >&6; } 18490 fi 18491 18492 18493 test -n "$TIME" && break 18494 done 18495 18496 else 18497 # If it succeeded, then it was overridden by the user. We will use it 18498 # for the tool. 18499 18500 # First remove it from the list of overridden variables, so we can test 18501 # for unknown variables in the end. 18502 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18503 18504 # Check if the provided tool contains a complete path. 18505 tool_specified="$TIME" 18506 tool_basename="${tool_specified##*/}" 18507 if test "x$tool_basename" = "x$tool_specified"; then 18508 # A command without a complete path is provided, search $PATH. 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18510 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18511 # Extract the first word of "$tool_basename", so it can be a program name with args. 18512 set dummy $tool_basename; ac_word=$2 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18514 $as_echo_n "checking for $ac_word... " >&6; } 18515 if ${ac_cv_path_TIME+:} false; then : 18516 $as_echo_n "(cached) " >&6 18517 else 18518 case $TIME in 18519 [\\/]* | ?:[\\/]*) 18520 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18521 ;; 18522 *) 18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18524 for as_dir in $PATH 18525 do 18526 IFS=$as_save_IFS 18527 test -z "$as_dir" && as_dir=. 18528 for ac_exec_ext in '' $ac_executable_extensions; do 18529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18530 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18532 break 2 18533 fi 18534 done 18535 done 18536 IFS=$as_save_IFS 18537 18538 ;; 18539 esac 18540 fi 18541 TIME=$ac_cv_path_TIME 18542 if test -n "$TIME"; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18544 $as_echo "$TIME" >&6; } 18545 else 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18547 $as_echo "no" >&6; } 18548 fi 18549 18550 18551 if test "x$TIME" = x; then 18552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18553 fi 18554 else 18555 # Otherwise we believe it is a complete path. Use it as it is. 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18557 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18559 $as_echo_n "checking for TIME... " >&6; } 18560 if test ! -x "$tool_specified"; then 18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18562 $as_echo "not found" >&6; } 18563 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18564 fi 18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18566 $as_echo "$tool_specified" >&6; } 18567 fi 18568 fi 18569 fi 18570 18571 18572 # Check if it's GNU time 18573 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18574 if test "x$IS_GNU_TIME" != x; then 18575 IS_GNU_TIME=yes 18576 else 18577 IS_GNU_TIME=no 18578 fi 18579 18580 18581 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18582 18583 18584 18585 # Publish this variable in the help. 18586 18587 18588 if test "x$COMM" = x; then 18589 # The variable is not set by user, try to locate tool using the code snippet 18590 for ac_prog in comm 18591 do 18592 # Extract the first word of "$ac_prog", so it can be a program name with args. 18593 set dummy $ac_prog; ac_word=$2 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18595 $as_echo_n "checking for $ac_word... " >&6; } 18596 if ${ac_cv_path_COMM+:} false; then : 18597 $as_echo_n "(cached) " >&6 18598 else 18599 case $COMM in 18600 [\\/]* | ?:[\\/]*) 18601 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18602 ;; 18603 *) 18604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18605 for as_dir in $PATH 18606 do 18607 IFS=$as_save_IFS 18608 test -z "$as_dir" && as_dir=. 18609 for ac_exec_ext in '' $ac_executable_extensions; do 18610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18611 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18613 break 2 18614 fi 18615 done 18616 done 18617 IFS=$as_save_IFS 18618 18619 ;; 18620 esac 18621 fi 18622 COMM=$ac_cv_path_COMM 18623 if test -n "$COMM"; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18625 $as_echo "$COMM" >&6; } 18626 else 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18628 $as_echo "no" >&6; } 18629 fi 18630 18631 18632 test -n "$COMM" && break 18633 done 18634 18635 else 18636 # The variable is set, but is it from the command line or the environment? 18637 18638 # Try to remove the string !COMM! from our list. 18639 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18640 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18641 # If it failed, the variable was not from the command line. Ignore it, 18642 # but warn the user (except for BASH, which is always set by the calling BASH). 18643 if test "xCOMM" != xBASH; then 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18645 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18646 fi 18647 # Try to locate tool using the code snippet 18648 for ac_prog in comm 18649 do 18650 # Extract the first word of "$ac_prog", so it can be a program name with args. 18651 set dummy $ac_prog; ac_word=$2 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18653 $as_echo_n "checking for $ac_word... " >&6; } 18654 if ${ac_cv_path_COMM+:} false; then : 18655 $as_echo_n "(cached) " >&6 18656 else 18657 case $COMM in 18658 [\\/]* | ?:[\\/]*) 18659 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18660 ;; 18661 *) 18662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18663 for as_dir in $PATH 18664 do 18665 IFS=$as_save_IFS 18666 test -z "$as_dir" && as_dir=. 18667 for ac_exec_ext in '' $ac_executable_extensions; do 18668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18669 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18671 break 2 18672 fi 18673 done 18674 done 18675 IFS=$as_save_IFS 18676 18677 ;; 18678 esac 18679 fi 18680 COMM=$ac_cv_path_COMM 18681 if test -n "$COMM"; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18683 $as_echo "$COMM" >&6; } 18684 else 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18686 $as_echo "no" >&6; } 18687 fi 18688 18689 18690 test -n "$COMM" && break 18691 done 18692 18693 else 18694 # If it succeeded, then it was overridden by the user. We will use it 18695 # for the tool. 18696 18697 # First remove it from the list of overridden variables, so we can test 18698 # for unknown variables in the end. 18699 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18700 18701 # Check if the provided tool contains a complete path. 18702 tool_specified="$COMM" 18703 tool_basename="${tool_specified##*/}" 18704 if test "x$tool_basename" = "x$tool_specified"; then 18705 # A command without a complete path is provided, search $PATH. 18706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18707 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18708 # Extract the first word of "$tool_basename", so it can be a program name with args. 18709 set dummy $tool_basename; ac_word=$2 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18711 $as_echo_n "checking for $ac_word... " >&6; } 18712 if ${ac_cv_path_COMM+:} false; then : 18713 $as_echo_n "(cached) " >&6 18714 else 18715 case $COMM in 18716 [\\/]* | ?:[\\/]*) 18717 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18718 ;; 18719 *) 18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18721 for as_dir in $PATH 18722 do 18723 IFS=$as_save_IFS 18724 test -z "$as_dir" && as_dir=. 18725 for ac_exec_ext in '' $ac_executable_extensions; do 18726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18727 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18729 break 2 18730 fi 18731 done 18732 done 18733 IFS=$as_save_IFS 18734 18735 ;; 18736 esac 18737 fi 18738 COMM=$ac_cv_path_COMM 18739 if test -n "$COMM"; then 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18741 $as_echo "$COMM" >&6; } 18742 else 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18744 $as_echo "no" >&6; } 18745 fi 18746 18747 18748 if test "x$COMM" = x; then 18749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18750 fi 18751 else 18752 # Otherwise we believe it is a complete path. Use it as it is. 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18754 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18756 $as_echo_n "checking for COMM... " >&6; } 18757 if test ! -x "$tool_specified"; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18759 $as_echo "not found" >&6; } 18760 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18761 fi 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18763 $as_echo "$tool_specified" >&6; } 18764 fi 18765 fi 18766 fi 18767 18768 18769 18770 if test "x$COMM" = x; then 18771 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18772 fi 18773 18774 18775 fi 18776 18777 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18778 18779 18780 18781 # Publish this variable in the help. 18782 18783 18784 if test "x$DSYMUTIL" = x; then 18785 # The variable is not set by user, try to locate tool using the code snippet 18786 for ac_prog in dsymutil 18787 do 18788 # Extract the first word of "$ac_prog", so it can be a program name with args. 18789 set dummy $ac_prog; ac_word=$2 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18791 $as_echo_n "checking for $ac_word... " >&6; } 18792 if ${ac_cv_path_DSYMUTIL+:} false; then : 18793 $as_echo_n "(cached) " >&6 18794 else 18795 case $DSYMUTIL in 18796 [\\/]* | ?:[\\/]*) 18797 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18798 ;; 18799 *) 18800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18801 for as_dir in $PATH 18802 do 18803 IFS=$as_save_IFS 18804 test -z "$as_dir" && as_dir=. 18805 for ac_exec_ext in '' $ac_executable_extensions; do 18806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18807 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18809 break 2 18810 fi 18811 done 18812 done 18813 IFS=$as_save_IFS 18814 18815 ;; 18816 esac 18817 fi 18818 DSYMUTIL=$ac_cv_path_DSYMUTIL 18819 if test -n "$DSYMUTIL"; then 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18821 $as_echo "$DSYMUTIL" >&6; } 18822 else 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18824 $as_echo "no" >&6; } 18825 fi 18826 18827 18828 test -n "$DSYMUTIL" && break 18829 done 18830 18831 else 18832 # The variable is set, but is it from the command line or the environment? 18833 18834 # Try to remove the string !DSYMUTIL! from our list. 18835 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18836 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18837 # If it failed, the variable was not from the command line. Ignore it, 18838 # but warn the user (except for BASH, which is always set by the calling BASH). 18839 if test "xDSYMUTIL" != xBASH; then 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18841 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18842 fi 18843 # Try to locate tool using the code snippet 18844 for ac_prog in dsymutil 18845 do 18846 # Extract the first word of "$ac_prog", so it can be a program name with args. 18847 set dummy $ac_prog; ac_word=$2 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18849 $as_echo_n "checking for $ac_word... " >&6; } 18850 if ${ac_cv_path_DSYMUTIL+:} false; then : 18851 $as_echo_n "(cached) " >&6 18852 else 18853 case $DSYMUTIL in 18854 [\\/]* | ?:[\\/]*) 18855 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18856 ;; 18857 *) 18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18859 for as_dir in $PATH 18860 do 18861 IFS=$as_save_IFS 18862 test -z "$as_dir" && as_dir=. 18863 for ac_exec_ext in '' $ac_executable_extensions; do 18864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18865 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18867 break 2 18868 fi 18869 done 18870 done 18871 IFS=$as_save_IFS 18872 18873 ;; 18874 esac 18875 fi 18876 DSYMUTIL=$ac_cv_path_DSYMUTIL 18877 if test -n "$DSYMUTIL"; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18879 $as_echo "$DSYMUTIL" >&6; } 18880 else 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18882 $as_echo "no" >&6; } 18883 fi 18884 18885 18886 test -n "$DSYMUTIL" && break 18887 done 18888 18889 else 18890 # If it succeeded, then it was overridden by the user. We will use it 18891 # for the tool. 18892 18893 # First remove it from the list of overridden variables, so we can test 18894 # for unknown variables in the end. 18895 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18896 18897 # Check if the provided tool contains a complete path. 18898 tool_specified="$DSYMUTIL" 18899 tool_basename="${tool_specified##*/}" 18900 if test "x$tool_basename" = "x$tool_specified"; then 18901 # A command without a complete path is provided, search $PATH. 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18903 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18904 # Extract the first word of "$tool_basename", so it can be a program name with args. 18905 set dummy $tool_basename; ac_word=$2 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907 $as_echo_n "checking for $ac_word... " >&6; } 18908 if ${ac_cv_path_DSYMUTIL+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910 else 18911 case $DSYMUTIL in 18912 [\\/]* | ?:[\\/]*) 18913 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18914 ;; 18915 *) 18916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18917 for as_dir in $PATH 18918 do 18919 IFS=$as_save_IFS 18920 test -z "$as_dir" && as_dir=. 18921 for ac_exec_ext in '' $ac_executable_extensions; do 18922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18923 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18925 break 2 18926 fi 18927 done 18928 done 18929 IFS=$as_save_IFS 18930 18931 ;; 18932 esac 18933 fi 18934 DSYMUTIL=$ac_cv_path_DSYMUTIL 18935 if test -n "$DSYMUTIL"; then 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18937 $as_echo "$DSYMUTIL" >&6; } 18938 else 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18940 $as_echo "no" >&6; } 18941 fi 18942 18943 18944 if test "x$DSYMUTIL" = x; then 18945 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18946 fi 18947 else 18948 # Otherwise we believe it is a complete path. Use it as it is. 18949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18950 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18952 $as_echo_n "checking for DSYMUTIL... " >&6; } 18953 if test ! -x "$tool_specified"; then 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18955 $as_echo "not found" >&6; } 18956 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18957 fi 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18959 $as_echo "$tool_specified" >&6; } 18960 fi 18961 fi 18962 fi 18963 18964 18965 18966 if test "x$DSYMUTIL" = x; then 18967 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18968 fi 18969 18970 18971 18972 18973 18974 # Publish this variable in the help. 18975 18976 18977 if test "x$XATTR" = x; then 18978 # The variable is not set by user, try to locate tool using the code snippet 18979 for ac_prog in xattr 18980 do 18981 # Extract the first word of "$ac_prog", so it can be a program name with args. 18982 set dummy $ac_prog; ac_word=$2 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18984 $as_echo_n "checking for $ac_word... " >&6; } 18985 if ${ac_cv_path_XATTR+:} false; then : 18986 $as_echo_n "(cached) " >&6 18987 else 18988 case $XATTR in 18989 [\\/]* | ?:[\\/]*) 18990 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18991 ;; 18992 *) 18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18994 for as_dir in $PATH 18995 do 18996 IFS=$as_save_IFS 18997 test -z "$as_dir" && as_dir=. 18998 for ac_exec_ext in '' $ac_executable_extensions; do 18999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19000 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19002 break 2 19003 fi 19004 done 19005 done 19006 IFS=$as_save_IFS 19007 19008 ;; 19009 esac 19010 fi 19011 XATTR=$ac_cv_path_XATTR 19012 if test -n "$XATTR"; then 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19014 $as_echo "$XATTR" >&6; } 19015 else 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19017 $as_echo "no" >&6; } 19018 fi 19019 19020 19021 test -n "$XATTR" && break 19022 done 19023 19024 else 19025 # The variable is set, but is it from the command line or the environment? 19026 19027 # Try to remove the string !XATTR! from our list. 19028 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19029 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19030 # If it failed, the variable was not from the command line. Ignore it, 19031 # but warn the user (except for BASH, which is always set by the calling BASH). 19032 if test "xXATTR" != xBASH; then 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19034 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19035 fi 19036 # Try to locate tool using the code snippet 19037 for ac_prog in xattr 19038 do 19039 # Extract the first word of "$ac_prog", so it can be a program name with args. 19040 set dummy $ac_prog; ac_word=$2 19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19042 $as_echo_n "checking for $ac_word... " >&6; } 19043 if ${ac_cv_path_XATTR+:} false; then : 19044 $as_echo_n "(cached) " >&6 19045 else 19046 case $XATTR in 19047 [\\/]* | ?:[\\/]*) 19048 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19049 ;; 19050 *) 19051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19052 for as_dir in $PATH 19053 do 19054 IFS=$as_save_IFS 19055 test -z "$as_dir" && as_dir=. 19056 for ac_exec_ext in '' $ac_executable_extensions; do 19057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19058 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19060 break 2 19061 fi 19062 done 19063 done 19064 IFS=$as_save_IFS 19065 19066 ;; 19067 esac 19068 fi 19069 XATTR=$ac_cv_path_XATTR 19070 if test -n "$XATTR"; then 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19072 $as_echo "$XATTR" >&6; } 19073 else 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19075 $as_echo "no" >&6; } 19076 fi 19077 19078 19079 test -n "$XATTR" && break 19080 done 19081 19082 else 19083 # If it succeeded, then it was overridden by the user. We will use it 19084 # for the tool. 19085 19086 # First remove it from the list of overridden variables, so we can test 19087 # for unknown variables in the end. 19088 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19089 19090 # Check if the provided tool contains a complete path. 19091 tool_specified="$XATTR" 19092 tool_basename="${tool_specified##*/}" 19093 if test "x$tool_basename" = "x$tool_specified"; then 19094 # A command without a complete path is provided, search $PATH. 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19096 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19097 # Extract the first word of "$tool_basename", so it can be a program name with args. 19098 set dummy $tool_basename; ac_word=$2 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19100 $as_echo_n "checking for $ac_word... " >&6; } 19101 if ${ac_cv_path_XATTR+:} false; then : 19102 $as_echo_n "(cached) " >&6 19103 else 19104 case $XATTR in 19105 [\\/]* | ?:[\\/]*) 19106 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19107 ;; 19108 *) 19109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19110 for as_dir in $PATH 19111 do 19112 IFS=$as_save_IFS 19113 test -z "$as_dir" && as_dir=. 19114 for ac_exec_ext in '' $ac_executable_extensions; do 19115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19116 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19118 break 2 19119 fi 19120 done 19121 done 19122 IFS=$as_save_IFS 19123 19124 ;; 19125 esac 19126 fi 19127 XATTR=$ac_cv_path_XATTR 19128 if test -n "$XATTR"; then 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19130 $as_echo "$XATTR" >&6; } 19131 else 19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19133 $as_echo "no" >&6; } 19134 fi 19135 19136 19137 if test "x$XATTR" = x; then 19138 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19139 fi 19140 else 19141 # Otherwise we believe it is a complete path. Use it as it is. 19142 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19143 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19145 $as_echo_n "checking for XATTR... " >&6; } 19146 if test ! -x "$tool_specified"; then 19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19148 $as_echo "not found" >&6; } 19149 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19150 fi 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19152 $as_echo "$tool_specified" >&6; } 19153 fi 19154 fi 19155 fi 19156 19157 19158 19159 if test "x$XATTR" = x; then 19160 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19161 fi 19162 19163 19164 19165 19166 # Publish this variable in the help. 19167 19168 19169 if test "x$CODESIGN" = x; then 19170 # The variable is not set by user, try to locate tool using the code snippet 19171 for ac_prog in codesign 19172 do 19173 # Extract the first word of "$ac_prog", so it can be a program name with args. 19174 set dummy $ac_prog; ac_word=$2 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19176 $as_echo_n "checking for $ac_word... " >&6; } 19177 if ${ac_cv_path_CODESIGN+:} false; then : 19178 $as_echo_n "(cached) " >&6 19179 else 19180 case $CODESIGN in 19181 [\\/]* | ?:[\\/]*) 19182 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19183 ;; 19184 *) 19185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19186 for as_dir in $PATH 19187 do 19188 IFS=$as_save_IFS 19189 test -z "$as_dir" && as_dir=. 19190 for ac_exec_ext in '' $ac_executable_extensions; do 19191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19192 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19194 break 2 19195 fi 19196 done 19197 done 19198 IFS=$as_save_IFS 19199 19200 ;; 19201 esac 19202 fi 19203 CODESIGN=$ac_cv_path_CODESIGN 19204 if test -n "$CODESIGN"; then 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19206 $as_echo "$CODESIGN" >&6; } 19207 else 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19209 $as_echo "no" >&6; } 19210 fi 19211 19212 19213 test -n "$CODESIGN" && break 19214 done 19215 19216 else 19217 # The variable is set, but is it from the command line or the environment? 19218 19219 # Try to remove the string !CODESIGN! from our list. 19220 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19221 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19222 # If it failed, the variable was not from the command line. Ignore it, 19223 # but warn the user (except for BASH, which is always set by the calling BASH). 19224 if test "xCODESIGN" != xBASH; then 19225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19226 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19227 fi 19228 # Try to locate tool using the code snippet 19229 for ac_prog in codesign 19230 do 19231 # Extract the first word of "$ac_prog", so it can be a program name with args. 19232 set dummy $ac_prog; ac_word=$2 19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19234 $as_echo_n "checking for $ac_word... " >&6; } 19235 if ${ac_cv_path_CODESIGN+:} false; then : 19236 $as_echo_n "(cached) " >&6 19237 else 19238 case $CODESIGN in 19239 [\\/]* | ?:[\\/]*) 19240 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19241 ;; 19242 *) 19243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19244 for as_dir in $PATH 19245 do 19246 IFS=$as_save_IFS 19247 test -z "$as_dir" && as_dir=. 19248 for ac_exec_ext in '' $ac_executable_extensions; do 19249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19250 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19252 break 2 19253 fi 19254 done 19255 done 19256 IFS=$as_save_IFS 19257 19258 ;; 19259 esac 19260 fi 19261 CODESIGN=$ac_cv_path_CODESIGN 19262 if test -n "$CODESIGN"; then 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19264 $as_echo "$CODESIGN" >&6; } 19265 else 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19267 $as_echo "no" >&6; } 19268 fi 19269 19270 19271 test -n "$CODESIGN" && break 19272 done 19273 19274 else 19275 # If it succeeded, then it was overridden by the user. We will use it 19276 # for the tool. 19277 19278 # First remove it from the list of overridden variables, so we can test 19279 # for unknown variables in the end. 19280 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19281 19282 # Check if the provided tool contains a complete path. 19283 tool_specified="$CODESIGN" 19284 tool_basename="${tool_specified##*/}" 19285 if test "x$tool_basename" = "x$tool_specified"; then 19286 # A command without a complete path is provided, search $PATH. 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19288 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19289 # Extract the first word of "$tool_basename", so it can be a program name with args. 19290 set dummy $tool_basename; ac_word=$2 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19292 $as_echo_n "checking for $ac_word... " >&6; } 19293 if ${ac_cv_path_CODESIGN+:} false; then : 19294 $as_echo_n "(cached) " >&6 19295 else 19296 case $CODESIGN in 19297 [\\/]* | ?:[\\/]*) 19298 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19299 ;; 19300 *) 19301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19302 for as_dir in $PATH 19303 do 19304 IFS=$as_save_IFS 19305 test -z "$as_dir" && as_dir=. 19306 for ac_exec_ext in '' $ac_executable_extensions; do 19307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19308 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19310 break 2 19311 fi 19312 done 19313 done 19314 IFS=$as_save_IFS 19315 19316 ;; 19317 esac 19318 fi 19319 CODESIGN=$ac_cv_path_CODESIGN 19320 if test -n "$CODESIGN"; then 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19322 $as_echo "$CODESIGN" >&6; } 19323 else 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19325 $as_echo "no" >&6; } 19326 fi 19327 19328 19329 if test "x$CODESIGN" = x; then 19330 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19331 fi 19332 else 19333 # Otherwise we believe it is a complete path. Use it as it is. 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19335 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19337 $as_echo_n "checking for CODESIGN... " >&6; } 19338 if test ! -x "$tool_specified"; then 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19340 $as_echo "not found" >&6; } 19341 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19342 fi 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19344 $as_echo "$tool_specified" >&6; } 19345 fi 19346 fi 19347 fi 19348 19349 19350 if test "x$CODESIGN" != "x"; then 19351 # Verify that the openjdk_codesign certificate is present 19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19353 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19354 rm -f codesign-testfile 19355 touch codesign-testfile 19356 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19357 rm -f codesign-testfile 19358 if test "x$CODESIGN" = x; then 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19360 $as_echo "no" >&6; } 19361 else 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19363 $as_echo "yes" >&6; } 19364 fi 19365 fi 19366 fi 19367 19368 19369 # Check if pkg-config is available. 19370 19371 19372 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19373 if test -n "$ac_tool_prefix"; then 19374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19375 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19377 $as_echo_n "checking for $ac_word... " >&6; } 19378 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19379 $as_echo_n "(cached) " >&6 19380 else 19381 case $PKG_CONFIG in 19382 [\\/]* | ?:[\\/]*) 19383 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19384 ;; 19385 *) 19386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19387 for as_dir in $PATH 19388 do 19389 IFS=$as_save_IFS 19390 test -z "$as_dir" && as_dir=. 19391 for ac_exec_ext in '' $ac_executable_extensions; do 19392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19393 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19395 break 2 19396 fi 19397 done 19398 done 19399 IFS=$as_save_IFS 19400 19401 ;; 19402 esac 19403 fi 19404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19405 if test -n "$PKG_CONFIG"; then 19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19407 $as_echo "$PKG_CONFIG" >&6; } 19408 else 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19410 $as_echo "no" >&6; } 19411 fi 19412 19413 19414 fi 19415 if test -z "$ac_cv_path_PKG_CONFIG"; then 19416 ac_pt_PKG_CONFIG=$PKG_CONFIG 19417 # Extract the first word of "pkg-config", so it can be a program name with args. 19418 set dummy pkg-config; ac_word=$2 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19420 $as_echo_n "checking for $ac_word... " >&6; } 19421 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19422 $as_echo_n "(cached) " >&6 19423 else 19424 case $ac_pt_PKG_CONFIG in 19425 [\\/]* | ?:[\\/]*) 19426 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19427 ;; 19428 *) 19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19430 for as_dir in $PATH 19431 do 19432 IFS=$as_save_IFS 19433 test -z "$as_dir" && as_dir=. 19434 for ac_exec_ext in '' $ac_executable_extensions; do 19435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19436 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19438 break 2 19439 fi 19440 done 19441 done 19442 IFS=$as_save_IFS 19443 19444 ;; 19445 esac 19446 fi 19447 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19448 if test -n "$ac_pt_PKG_CONFIG"; then 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19450 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19451 else 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19453 $as_echo "no" >&6; } 19454 fi 19455 19456 if test "x$ac_pt_PKG_CONFIG" = x; then 19457 PKG_CONFIG="" 19458 else 19459 case $cross_compiling:$ac_tool_warned in 19460 yes:) 19461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19463 ac_tool_warned=yes ;; 19464 esac 19465 PKG_CONFIG=$ac_pt_PKG_CONFIG 19466 fi 19467 else 19468 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19469 fi 19470 19471 fi 19472 if test -n "$PKG_CONFIG"; then 19473 _pkg_min_version=0.9.0 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19475 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19476 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19478 $as_echo "yes" >&6; } 19479 else 19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19481 $as_echo "no" >&6; } 19482 PKG_CONFIG="" 19483 fi 19484 19485 fi 19486 19487 # After basic tools have been setup, we can check build os specific details. 19488 19489 ############################################################################### 19490 19491 # Note that this is the build platform OS version! 19492 19493 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19494 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19495 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19496 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19497 19498 19499 19500 19501 19502 # Setup builddeps, for automatic downloading of tools we need. 19503 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19504 # boot-jdk setup, but we need to have basic tools setup first. 19505 19506 19507 # Check whether --with-builddeps-conf was given. 19508 if test "${with_builddeps_conf+set}" = set; then : 19509 withval=$with_builddeps_conf; 19510 fi 19511 19512 19513 19514 # Check whether --with-builddeps-server was given. 19515 if test "${with_builddeps_server+set}" = set; then : 19516 withval=$with_builddeps_server; 19517 fi 19518 19519 19520 19521 # Check whether --with-builddeps-dir was given. 19522 if test "${with_builddeps_dir+set}" = set; then : 19523 withval=$with_builddeps_dir; 19524 else 19525 with_builddeps_dir=/localhome/builddeps 19526 fi 19527 19528 19529 19530 # Check whether --with-builddeps-group was given. 19531 if test "${with_builddeps_group+set}" = set; then : 19532 withval=$with_builddeps_group; 19533 fi 19534 19535 19536 19537 19538 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19539 if test "x$with_builddeps_conf" != x; then 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19541 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19542 builddepsfile=$with_builddeps_conf 19543 if test -s $builddepsfile; then 19544 . $builddepsfile 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19546 $as_echo "loaded!" >&6; } 19547 else 19548 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19549 fi 19550 else 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19552 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19553 builddepsfile=`mktemp` 19554 touch $builddepsfile 19555 # Put all found confs into a single file. 19556 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19557 # Source the file to acquire the variables 19558 if test -s $builddepsfile; then 19559 . $builddepsfile 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19561 $as_echo "found at least one!" >&6; } 19562 else 19563 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19564 fi 19565 fi 19566 # Create build and target names that use _ instead of "-" and ".". 19567 # This is necessary to use them in variable names. 19568 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19569 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19570 # Extract rewrite information for build and target 19571 eval rewritten_build=\${REWRITE_${build_var}} 19572 if test "x$rewritten_build" = x; then 19573 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19574 echo Build stays the same $rewritten_build 19575 else 19576 echo Rewriting build for builddeps into $rewritten_build 19577 fi 19578 eval rewritten_target=\${REWRITE_${target_var}} 19579 if test "x$rewritten_target" = x; then 19580 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19581 echo Target stays the same $rewritten_target 19582 else 19583 echo Rewriting target for builddeps into $rewritten_target 19584 fi 19585 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19586 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19587 fi 19588 for ac_prog in 7z unzip 19589 do 19590 # Extract the first word of "$ac_prog", so it can be a program name with args. 19591 set dummy $ac_prog; ac_word=$2 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19593 $as_echo_n "checking for $ac_word... " >&6; } 19594 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19595 $as_echo_n "(cached) " >&6 19596 else 19597 if test -n "$BDEPS_UNZIP"; then 19598 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19599 else 19600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19601 for as_dir in $PATH 19602 do 19603 IFS=$as_save_IFS 19604 test -z "$as_dir" && as_dir=. 19605 for ac_exec_ext in '' $ac_executable_extensions; do 19606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19607 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19609 break 2 19610 fi 19611 done 19612 done 19613 IFS=$as_save_IFS 19614 19615 fi 19616 fi 19617 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19618 if test -n "$BDEPS_UNZIP"; then 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19620 $as_echo "$BDEPS_UNZIP" >&6; } 19621 else 19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19623 $as_echo "no" >&6; } 19624 fi 19625 19626 19627 test -n "$BDEPS_UNZIP" && break 19628 done 19629 19630 if test "x$BDEPS_UNZIP" = x7z; then 19631 BDEPS_UNZIP="7z x" 19632 fi 19633 19634 for ac_prog in wget lftp ftp 19635 do 19636 # Extract the first word of "$ac_prog", so it can be a program name with args. 19637 set dummy $ac_prog; ac_word=$2 19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19639 $as_echo_n "checking for $ac_word... " >&6; } 19640 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19641 $as_echo_n "(cached) " >&6 19642 else 19643 if test -n "$BDEPS_FTP"; then 19644 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19645 else 19646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19647 for as_dir in $PATH 19648 do 19649 IFS=$as_save_IFS 19650 test -z "$as_dir" && as_dir=. 19651 for ac_exec_ext in '' $ac_executable_extensions; do 19652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19653 ac_cv_prog_BDEPS_FTP="$ac_prog" 19654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19655 break 2 19656 fi 19657 done 19658 done 19659 IFS=$as_save_IFS 19660 19661 fi 19662 fi 19663 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19664 if test -n "$BDEPS_FTP"; then 19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19666 $as_echo "$BDEPS_FTP" >&6; } 19667 else 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19669 $as_echo "no" >&6; } 19670 fi 19671 19672 19673 test -n "$BDEPS_FTP" && break 19674 done 19675 19676 19677 19678 ############################################################################### 19679 # 19680 # Determine OpenJDK variants, options and version numbers. 19681 # 19682 ############################################################################### 19683 19684 # We need build & target for this. 19685 19686 19687 ############################################################################### 19688 # 19689 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19690 # We always build headless support. 19691 # 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19693 $as_echo_n "checking headful support... " >&6; } 19694 # Check whether --enable-headful was given. 19695 if test "${enable_headful+set}" = set; then : 19696 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19697 else 19698 SUPPORT_HEADFUL=yes 19699 fi 19700 19701 19702 SUPPORT_HEADLESS=yes 19703 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19704 19705 if test "x$SUPPORT_HEADFUL" = xyes; then 19706 # We are building both headful and headless. 19707 headful_msg="include support for both headful and headless" 19708 fi 19709 19710 if test "x$SUPPORT_HEADFUL" = xno; then 19711 # Thus we are building headless only. 19712 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19713 headful_msg="headless only" 19714 fi 19715 19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19717 $as_echo "$headful_msg" >&6; } 19718 19719 19720 19721 19722 19723 # Control wether Hotspot runs Queens test after build. 19724 # Check whether --enable-hotspot-test-in-build was given. 19725 if test "${enable_hotspot_test_in_build+set}" = set; then : 19726 enableval=$enable_hotspot_test_in_build; 19727 else 19728 enable_hotspot_test_in_build=no 19729 fi 19730 19731 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19732 TEST_IN_BUILD=true 19733 else 19734 TEST_IN_BUILD=false 19735 fi 19736 19737 19738 ############################################################################### 19739 # 19740 # Choose cacerts source file 19741 # 19742 19743 # Check whether --with-cacerts-file was given. 19744 if test "${with_cacerts_file+set}" = set; then : 19745 withval=$with_cacerts_file; 19746 fi 19747 19748 if test "x$with_cacerts_file" != x; then 19749 CACERTS_FILE=$with_cacerts_file 19750 else 19751 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19752 fi 19753 19754 19755 ############################################################################### 19756 # 19757 # Enable or disable unlimited crypto 19758 # 19759 # Check whether --enable-unlimited-crypto was given. 19760 if test "${enable_unlimited_crypto+set}" = set; then : 19761 enableval=$enable_unlimited_crypto; 19762 else 19763 enable_unlimited_crypto=no 19764 fi 19765 19766 if test "x$enable_unlimited_crypto" = "xyes"; then 19767 UNLIMITED_CRYPTO=true 19768 else 19769 UNLIMITED_CRYPTO=false 19770 fi 19771 19772 19773 ############################################################################### 19774 # 19775 # Enable or disable the elliptic curve crypto implementation 19776 # 19777 19778 19779 ############################################################################### 19780 # 19781 # Compress jars 19782 # 19783 COMPRESS_JARS=false 19784 19785 19786 19787 19788 # Source the version numbers 19789 . $AUTOCONF_DIR/version-numbers 19790 19791 # Get the settings from parameters 19792 19793 # Check whether --with-milestone was given. 19794 if test "${with_milestone+set}" = set; then : 19795 withval=$with_milestone; 19796 fi 19797 19798 if test "x$with_milestone" = xyes; then 19799 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19800 elif test "x$with_milestone" != x; then 19801 MILESTONE="$with_milestone" 19802 fi 19803 if test "x$MILESTONE" = x; then 19804 MILESTONE=internal 19805 fi 19806 19807 19808 # Check whether --with-update-version was given. 19809 if test "${with_update_version+set}" = set; then : 19810 withval=$with_update_version; 19811 fi 19812 19813 if test "x$with_update_version" = xyes; then 19814 as_fn_error $? "Update version must have a value" "$LINENO" 5 19815 elif test "x$with_update_version" != x; then 19816 JDK_UPDATE_VERSION="$with_update_version" 19817 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19818 # to a bug in expr (which reduces it to just X). To work around this, we 19819 # always add a 0 to one digit update versions. 19820 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19821 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19822 fi 19823 fi 19824 19825 19826 # Check whether --with-user-release-suffix was given. 19827 if test "${with_user_release_suffix+set}" = set; then : 19828 withval=$with_user_release_suffix; 19829 fi 19830 19831 if test "x$with_user_release_suffix" = xyes; then 19832 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19833 elif test "x$with_user_release_suffix" != x; then 19834 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19835 fi 19836 19837 19838 # Check whether --with-build-number was given. 19839 if test "${with_build_number+set}" = set; then : 19840 withval=$with_build_number; 19841 fi 19842 19843 if test "x$with_build_number" = xyes; then 19844 as_fn_error $? "Build number must have a value" "$LINENO" 5 19845 elif test "x$with_build_number" != x; then 19846 JDK_BUILD_NUMBER="$with_build_number" 19847 fi 19848 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19849 if test "x$JDK_BUILD_NUMBER" = x; then 19850 JDK_BUILD_NUMBER=b00 19851 if test "x$USER_RELEASE_SUFFIX" = x; then 19852 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19853 # Avoid [:alnum:] since it depends on the locale. 19854 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19855 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19856 fi 19857 fi 19858 19859 # Now set the JDK version, milestone, build number etc. 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 # Check whether --with-copyright-year was given. 19877 if test "${with_copyright_year+set}" = set; then : 19878 withval=$with_copyright_year; 19879 fi 19880 19881 if test "x$with_copyright_year" = xyes; then 19882 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 19883 elif test "x$with_copyright_year" != x; then 19884 COPYRIGHT_YEAR="$with_copyright_year" 19885 else 19886 COPYRIGHT_YEAR=`date +'%Y'` 19887 fi 19888 19889 19890 if test "x$JDK_UPDATE_VERSION" != x; then 19891 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19892 else 19893 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19894 fi 19895 19896 19897 # The cooked update version used to encode trailing letters in the update 19898 # version into a trailing number. That is no longer needed, but need to 19899 # keep the format in 8u for compatibility. 19900 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 19901 19902 19903 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19904 19905 19906 19907 ############################################################################### 19908 # 19909 # Setup BootJDK, used to bootstrap the build. 19910 # 19911 ############################################################################### 19912 19913 19914 BOOT_JDK_FOUND=no 19915 19916 # Check whether --with-boot-jdk was given. 19917 if test "${with_boot_jdk+set}" = set; then : 19918 withval=$with_boot_jdk; 19919 fi 19920 19921 19922 # We look for the Boot JDK through various means, going from more certain to 19923 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19924 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19925 # must check if this is indeed valid; otherwise we'll continue looking. 19926 19927 # Test: Is bootjdk explicitely set by command line arguments? 19928 19929 if test "x$BOOT_JDK_FOUND" = xno; then 19930 # Now execute the test 19931 19932 if test "x$with_boot_jdk" != x; then 19933 BOOT_JDK=$with_boot_jdk 19934 BOOT_JDK_FOUND=maybe 19935 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19936 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19937 fi 19938 19939 19940 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19941 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19942 # Do we have a bin/java? 19943 if test ! -x "$BOOT_JDK/bin/java"; then 19944 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19945 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19946 BOOT_JDK_FOUND=no 19947 else 19948 # Do we have a bin/javac? 19949 if test ! -x "$BOOT_JDK/bin/javac"; then 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19951 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19953 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19954 BOOT_JDK_FOUND=no 19955 else 19956 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19957 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19958 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19960 BOOT_JDK_FOUND=no 19961 else 19962 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19963 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19964 19965 # Extra M4 quote needed to protect [] in grep expression. 19966 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 19967 if test "x$FOUND_VERSION_78" = x; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19969 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19970 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 19971 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 19972 BOOT_JDK_FOUND=no 19973 else 19974 # We're done! :-) 19975 BOOT_JDK_FOUND=yes 19976 19977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19978 19979 # Input might be given as Windows format, start by converting to 19980 # unix format. 19981 path="$BOOT_JDK" 19982 new_path=`$CYGPATH -u "$path"` 19983 19984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19987 # "foo.exe" is OK but "foo" is an error. 19988 # 19989 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19990 # It is also a way to make sure we got the proper file name for the real test later on. 19991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19992 if test "x$test_shortpath" = x; then 19993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19994 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19995 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19996 fi 19997 19998 # Call helper function which possibly converts this using DOS-style short mode. 19999 # If so, the updated path is stored in $new_path. 20000 20001 input_path="$new_path" 20002 # Check if we need to convert this using DOS-style short mode. If the path 20003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20004 # take no chances and rewrite it. 20005 # Note: m4 eats our [], so we need to use [ and ] instead. 20006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20007 if test "x$has_forbidden_chars" != x; then 20008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20012 # Going to short mode and back again did indeed matter. Since short mode is 20013 # case insensitive, let's make it lowercase to improve readability. 20014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20015 # Now convert it back to Unix-style (cygpath) 20016 input_path=`$CYGPATH -u "$shortmode_path"` 20017 new_path="$input_path" 20018 fi 20019 fi 20020 20021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20022 if test "x$test_cygdrive_prefix" = x; then 20023 # As a simple fix, exclude /usr/bin since it's not a real path. 20024 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20026 # a path prefixed by /cygdrive for fixpath to work. 20027 new_path="$CYGWIN_ROOT_PATH$input_path" 20028 fi 20029 fi 20030 20031 20032 if test "x$path" != "x$new_path"; then 20033 BOOT_JDK="$new_path" 20034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20035 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20036 fi 20037 20038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20039 20040 path="$BOOT_JDK" 20041 has_colon=`$ECHO $path | $GREP ^.:` 20042 new_path="$path" 20043 if test "x$has_colon" = x; then 20044 # Not in mixed or Windows style, start by that. 20045 new_path=`cmd //c echo $path` 20046 fi 20047 20048 20049 input_path="$new_path" 20050 # Check if we need to convert this using DOS-style short mode. If the path 20051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20052 # take no chances and rewrite it. 20053 # Note: m4 eats our [], so we need to use [ and ] instead. 20054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20055 if test "x$has_forbidden_chars" != x; then 20056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20057 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20058 fi 20059 20060 20061 windows_path="$new_path" 20062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20063 unix_path=`$CYGPATH -u "$windows_path"` 20064 new_path="$unix_path" 20065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20067 new_path="$unix_path" 20068 fi 20069 20070 if test "x$path" != "x$new_path"; then 20071 BOOT_JDK="$new_path" 20072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20074 fi 20075 20076 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20077 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20078 20079 else 20080 # We're on a posix platform. Hooray! :) 20081 path="$BOOT_JDK" 20082 has_space=`$ECHO "$path" | $GREP " "` 20083 if test "x$has_space" != x; then 20084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20086 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20087 fi 20088 20089 # Use eval to expand a potential ~ 20090 eval path="$path" 20091 if test ! -f "$path" && test ! -d "$path"; then 20092 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20093 fi 20094 20095 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20096 fi 20097 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20099 $as_echo_n "checking for Boot JDK... " >&6; } 20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20101 $as_echo "$BOOT_JDK" >&6; } 20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20103 $as_echo_n "checking Boot JDK version... " >&6; } 20104 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20106 $as_echo "$BOOT_JDK_VERSION" >&6; } 20107 fi # end check jdk version 20108 fi # end check rt.jar 20109 fi # end check javac 20110 fi # end check java 20111 fi # end check boot jdk found 20112 fi 20113 20114 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20115 # Having specified an argument which is incorrect will produce an instant failure; 20116 # we should not go on looking 20117 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20118 fi 20119 20120 # Test: Is bootjdk available from builddeps? 20121 20122 if test "x$BOOT_JDK_FOUND" = xno; then 20123 # Now execute the test 20124 20125 20126 20127 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20128 # Source the builddeps file again, to make sure it uses the latest variables! 20129 . $builddepsfile 20130 # Look for a target and build machine specific resource! 20131 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20132 if test "x$resource" = x; then 20133 # Ok, lets instead look for a target specific resource 20134 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20135 fi 20136 if test "x$resource" = x; then 20137 # Ok, lets instead look for a build specific resource 20138 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20139 fi 20140 if test "x$resource" = x; then 20141 # Ok, lets instead look for a generic resource 20142 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20143 resource=${builddep_bootjdk} 20144 fi 20145 if test "x$resource" != x; then 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20147 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20148 # If the resource in the builddeps.conf file is an existing directory, 20149 # for example /java/linux/cups 20150 if test -d ${resource}; then 20151 depdir=${resource} 20152 else 20153 20154 # bootjdk is for example mymodule 20155 # $resource is for example libs/general/libmymod_1_2_3.zip 20156 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20157 # $with_builddeps_dir is for example /localhome/builddeps 20158 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20159 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20160 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20161 filename=`basename $resource` 20162 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20163 filebase=${filename%%.*} 20164 extension=${filename#*.} 20165 installdir=$with_builddeps_dir/$filebase 20166 if test ! -f $installdir/$filename.unpacked; then 20167 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20168 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20169 if test ! -d $installdir; then 20170 mkdir -p $installdir 20171 fi 20172 if test ! -d $installdir; then 20173 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20174 fi 20175 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20176 touch $tmpfile 20177 if test ! -f $tmpfile; then 20178 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20179 fi 20180 20181 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20182 # $tmpfile is the local file name for the downloaded file. 20183 VALID_TOOL=no 20184 if test "x$BDEPS_FTP" = xwget; then 20185 VALID_TOOL=yes 20186 wget -O $tmpfile $with_builddeps_server/$resource 20187 fi 20188 if test "x$BDEPS_FTP" = xlftp; then 20189 VALID_TOOL=yes 20190 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20191 fi 20192 if test "x$BDEPS_FTP" = xftp; then 20193 VALID_TOOL=yes 20194 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20195 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20196 FTPUSERPWD=${FTPSERVER%%@*} 20197 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20198 FTPUSER=${userpwd%%:*} 20199 FTPPWD=${userpwd#*@} 20200 FTPSERVER=${FTPSERVER#*@} 20201 else 20202 FTPUSER=ftp 20203 FTPPWD=ftp 20204 fi 20205 # the "pass" command does not work on some 20206 # ftp clients (read ftp.exe) but if it works, 20207 # passive mode is better! 20208 ( \ 20209 echo "user $FTPUSER $FTPPWD" ; \ 20210 echo "pass" ; \ 20211 echo "bin" ; \ 20212 echo "get $FTPPATH $tmpfile" ; \ 20213 ) | ftp -in $FTPSERVER 20214 fi 20215 if test "x$VALID_TOOL" != xyes; then 20216 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20217 fi 20218 20219 mv $tmpfile $installdir/$filename 20220 if test ! -s $installdir/$filename; then 20221 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20222 fi 20223 case "$extension" in 20224 zip) echo "Unzipping $installdir/$filename..." 20225 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20226 ;; 20227 tar.gz) echo "Untaring $installdir/$filename..." 20228 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20229 ;; 20230 tgz) echo "Untaring $installdir/$filename..." 20231 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20232 ;; 20233 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20234 ;; 20235 esac 20236 fi 20237 if test -f $installdir/$filename.unpacked; then 20238 depdir=$installdir 20239 fi 20240 20241 fi 20242 # Source the builddeps file again, because in the previous command, the depdir 20243 # was updated to point at the current build dependency install directory. 20244 . $builddepsfile 20245 # Now extract variables from the builddeps.conf files. 20246 theroot=${builddep_bootjdk_ROOT} 20247 thecflags=${builddep_bootjdk_CFLAGS} 20248 thelibs=${builddep_bootjdk_LIBS} 20249 if test "x$depdir" = x; then 20250 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20251 fi 20252 BOOT_JDK=$depdir 20253 if test "x$theroot" != x; then 20254 BOOT_JDK="$theroot" 20255 fi 20256 if test "x$thecflags" != x; then 20257 BOOT_JDK_CFLAGS="$thecflags" 20258 fi 20259 if test "x$thelibs" != x; then 20260 BOOT_JDK_LIBS="$thelibs" 20261 fi 20262 BOOT_JDK_FOUND=maybe 20263 else BOOT_JDK_FOUND=no 20264 20265 fi 20266 else BOOT_JDK_FOUND=no 20267 20268 fi 20269 20270 20271 20272 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20273 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20274 # Do we have a bin/java? 20275 if test ! -x "$BOOT_JDK/bin/java"; then 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20277 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20278 BOOT_JDK_FOUND=no 20279 else 20280 # Do we have a bin/javac? 20281 if test ! -x "$BOOT_JDK/bin/javac"; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20283 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20284 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20285 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20286 BOOT_JDK_FOUND=no 20287 else 20288 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20289 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20292 BOOT_JDK_FOUND=no 20293 else 20294 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20295 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20296 20297 # Extra M4 quote needed to protect [] in grep expression. 20298 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20299 if test "x$FOUND_VERSION_78" = x; then 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20302 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20303 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20304 BOOT_JDK_FOUND=no 20305 else 20306 # We're done! :-) 20307 BOOT_JDK_FOUND=yes 20308 20309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20310 20311 # Input might be given as Windows format, start by converting to 20312 # unix format. 20313 path="$BOOT_JDK" 20314 new_path=`$CYGPATH -u "$path"` 20315 20316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20319 # "foo.exe" is OK but "foo" is an error. 20320 # 20321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20322 # It is also a way to make sure we got the proper file name for the real test later on. 20323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20324 if test "x$test_shortpath" = x; then 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20326 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20327 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20328 fi 20329 20330 # Call helper function which possibly converts this using DOS-style short mode. 20331 # If so, the updated path is stored in $new_path. 20332 20333 input_path="$new_path" 20334 # Check if we need to convert this using DOS-style short mode. If the path 20335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20336 # take no chances and rewrite it. 20337 # Note: m4 eats our [], so we need to use [ and ] instead. 20338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20339 if test "x$has_forbidden_chars" != x; then 20340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20344 # Going to short mode and back again did indeed matter. Since short mode is 20345 # case insensitive, let's make it lowercase to improve readability. 20346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20347 # Now convert it back to Unix-style (cygpath) 20348 input_path=`$CYGPATH -u "$shortmode_path"` 20349 new_path="$input_path" 20350 fi 20351 fi 20352 20353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20354 if test "x$test_cygdrive_prefix" = x; then 20355 # As a simple fix, exclude /usr/bin since it's not a real path. 20356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20358 # a path prefixed by /cygdrive for fixpath to work. 20359 new_path="$CYGWIN_ROOT_PATH$input_path" 20360 fi 20361 fi 20362 20363 20364 if test "x$path" != "x$new_path"; then 20365 BOOT_JDK="$new_path" 20366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20367 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20368 fi 20369 20370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20371 20372 path="$BOOT_JDK" 20373 has_colon=`$ECHO $path | $GREP ^.:` 20374 new_path="$path" 20375 if test "x$has_colon" = x; then 20376 # Not in mixed or Windows style, start by that. 20377 new_path=`cmd //c echo $path` 20378 fi 20379 20380 20381 input_path="$new_path" 20382 # Check if we need to convert this using DOS-style short mode. If the path 20383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20384 # take no chances and rewrite it. 20385 # Note: m4 eats our [], so we need to use [ and ] instead. 20386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20387 if test "x$has_forbidden_chars" != x; then 20388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20390 fi 20391 20392 20393 windows_path="$new_path" 20394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20395 unix_path=`$CYGPATH -u "$windows_path"` 20396 new_path="$unix_path" 20397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20399 new_path="$unix_path" 20400 fi 20401 20402 if test "x$path" != "x$new_path"; then 20403 BOOT_JDK="$new_path" 20404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20405 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20406 fi 20407 20408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20410 20411 else 20412 # We're on a posix platform. Hooray! :) 20413 path="$BOOT_JDK" 20414 has_space=`$ECHO "$path" | $GREP " "` 20415 if test "x$has_space" != x; then 20416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20417 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20419 fi 20420 20421 # Use eval to expand a potential ~ 20422 eval path="$path" 20423 if test ! -f "$path" && test ! -d "$path"; then 20424 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20425 fi 20426 20427 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20428 fi 20429 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20431 $as_echo_n "checking for Boot JDK... " >&6; } 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20433 $as_echo "$BOOT_JDK" >&6; } 20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20435 $as_echo_n "checking Boot JDK version... " >&6; } 20436 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20438 $as_echo "$BOOT_JDK_VERSION" >&6; } 20439 fi # end check jdk version 20440 fi # end check rt.jar 20441 fi # end check javac 20442 fi # end check java 20443 fi # end check boot jdk found 20444 fi 20445 20446 20447 # Test: Is $JAVA_HOME set? 20448 20449 if test "x$BOOT_JDK_FOUND" = xno; then 20450 # Now execute the test 20451 20452 if test "x$JAVA_HOME" != x; then 20453 JAVA_HOME_PROCESSED="$JAVA_HOME" 20454 20455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20456 20457 # Input might be given as Windows format, start by converting to 20458 # unix format. 20459 path="$JAVA_HOME_PROCESSED" 20460 new_path=`$CYGPATH -u "$path"` 20461 20462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20465 # "foo.exe" is OK but "foo" is an error. 20466 # 20467 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20468 # It is also a way to make sure we got the proper file name for the real test later on. 20469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20470 if test "x$test_shortpath" = x; then 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20472 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20473 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20474 fi 20475 20476 # Call helper function which possibly converts this using DOS-style short mode. 20477 # If so, the updated path is stored in $new_path. 20478 20479 input_path="$new_path" 20480 # Check if we need to convert this using DOS-style short mode. If the path 20481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20482 # take no chances and rewrite it. 20483 # Note: m4 eats our [], so we need to use [ and ] instead. 20484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20485 if test "x$has_forbidden_chars" != x; then 20486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20487 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20488 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20489 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20490 # Going to short mode and back again did indeed matter. Since short mode is 20491 # case insensitive, let's make it lowercase to improve readability. 20492 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20493 # Now convert it back to Unix-style (cygpath) 20494 input_path=`$CYGPATH -u "$shortmode_path"` 20495 new_path="$input_path" 20496 fi 20497 fi 20498 20499 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20500 if test "x$test_cygdrive_prefix" = x; then 20501 # As a simple fix, exclude /usr/bin since it's not a real path. 20502 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20503 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20504 # a path prefixed by /cygdrive for fixpath to work. 20505 new_path="$CYGWIN_ROOT_PATH$input_path" 20506 fi 20507 fi 20508 20509 20510 if test "x$path" != "x$new_path"; then 20511 JAVA_HOME_PROCESSED="$new_path" 20512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20513 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20514 fi 20515 20516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20517 20518 path="$JAVA_HOME_PROCESSED" 20519 has_colon=`$ECHO $path | $GREP ^.:` 20520 new_path="$path" 20521 if test "x$has_colon" = x; then 20522 # Not in mixed or Windows style, start by that. 20523 new_path=`cmd //c echo $path` 20524 fi 20525 20526 20527 input_path="$new_path" 20528 # Check if we need to convert this using DOS-style short mode. If the path 20529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20530 # take no chances and rewrite it. 20531 # Note: m4 eats our [], so we need to use [ and ] instead. 20532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20533 if test "x$has_forbidden_chars" != x; then 20534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20536 fi 20537 20538 20539 windows_path="$new_path" 20540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20541 unix_path=`$CYGPATH -u "$windows_path"` 20542 new_path="$unix_path" 20543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20545 new_path="$unix_path" 20546 fi 20547 20548 if test "x$path" != "x$new_path"; then 20549 JAVA_HOME_PROCESSED="$new_path" 20550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20551 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20552 fi 20553 20554 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20555 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20556 20557 else 20558 # We're on a posix platform. Hooray! :) 20559 path="$JAVA_HOME_PROCESSED" 20560 has_space=`$ECHO "$path" | $GREP " "` 20561 if test "x$has_space" != x; then 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20563 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20564 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20565 fi 20566 20567 # Use eval to expand a potential ~ 20568 eval path="$path" 20569 if test ! -f "$path" && test ! -d "$path"; then 20570 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20571 fi 20572 20573 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20574 fi 20575 20576 if test ! -d "$JAVA_HOME_PROCESSED"; then 20577 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20578 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20579 else 20580 # Aha, the user has set a JAVA_HOME 20581 # let us use that as the Boot JDK. 20582 BOOT_JDK="$JAVA_HOME_PROCESSED" 20583 BOOT_JDK_FOUND=maybe 20584 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20585 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20586 fi 20587 fi 20588 20589 20590 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20591 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20592 # Do we have a bin/java? 20593 if test ! -x "$BOOT_JDK/bin/java"; then 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20596 BOOT_JDK_FOUND=no 20597 else 20598 # Do we have a bin/javac? 20599 if test ! -x "$BOOT_JDK/bin/javac"; then 20600 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20603 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20604 BOOT_JDK_FOUND=no 20605 else 20606 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20607 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20608 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20610 BOOT_JDK_FOUND=no 20611 else 20612 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20613 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20614 20615 # Extra M4 quote needed to protect [] in grep expression. 20616 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20617 if test "x$FOUND_VERSION_78" = x; then 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20620 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20621 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20622 BOOT_JDK_FOUND=no 20623 else 20624 # We're done! :-) 20625 BOOT_JDK_FOUND=yes 20626 20627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20628 20629 # Input might be given as Windows format, start by converting to 20630 # unix format. 20631 path="$BOOT_JDK" 20632 new_path=`$CYGPATH -u "$path"` 20633 20634 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20635 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20636 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20637 # "foo.exe" is OK but "foo" is an error. 20638 # 20639 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20640 # It is also a way to make sure we got the proper file name for the real test later on. 20641 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20642 if test "x$test_shortpath" = x; then 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20644 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20645 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20646 fi 20647 20648 # Call helper function which possibly converts this using DOS-style short mode. 20649 # If so, the updated path is stored in $new_path. 20650 20651 input_path="$new_path" 20652 # Check if we need to convert this using DOS-style short mode. If the path 20653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20654 # take no chances and rewrite it. 20655 # Note: m4 eats our [], so we need to use [ and ] instead. 20656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20657 if test "x$has_forbidden_chars" != x; then 20658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20659 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20660 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20661 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20662 # Going to short mode and back again did indeed matter. Since short mode is 20663 # case insensitive, let's make it lowercase to improve readability. 20664 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20665 # Now convert it back to Unix-style (cygpath) 20666 input_path=`$CYGPATH -u "$shortmode_path"` 20667 new_path="$input_path" 20668 fi 20669 fi 20670 20671 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20672 if test "x$test_cygdrive_prefix" = x; then 20673 # As a simple fix, exclude /usr/bin since it's not a real path. 20674 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20675 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20676 # a path prefixed by /cygdrive for fixpath to work. 20677 new_path="$CYGWIN_ROOT_PATH$input_path" 20678 fi 20679 fi 20680 20681 20682 if test "x$path" != "x$new_path"; then 20683 BOOT_JDK="$new_path" 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20685 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20686 fi 20687 20688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20689 20690 path="$BOOT_JDK" 20691 has_colon=`$ECHO $path | $GREP ^.:` 20692 new_path="$path" 20693 if test "x$has_colon" = x; then 20694 # Not in mixed or Windows style, start by that. 20695 new_path=`cmd //c echo $path` 20696 fi 20697 20698 20699 input_path="$new_path" 20700 # Check if we need to convert this using DOS-style short mode. If the path 20701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20702 # take no chances and rewrite it. 20703 # Note: m4 eats our [], so we need to use [ and ] instead. 20704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20705 if test "x$has_forbidden_chars" != x; then 20706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20708 fi 20709 20710 20711 windows_path="$new_path" 20712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20713 unix_path=`$CYGPATH -u "$windows_path"` 20714 new_path="$unix_path" 20715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20717 new_path="$unix_path" 20718 fi 20719 20720 if test "x$path" != "x$new_path"; then 20721 BOOT_JDK="$new_path" 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20723 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20724 fi 20725 20726 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20727 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20728 20729 else 20730 # We're on a posix platform. Hooray! :) 20731 path="$BOOT_JDK" 20732 has_space=`$ECHO "$path" | $GREP " "` 20733 if test "x$has_space" != x; then 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20735 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20736 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20737 fi 20738 20739 # Use eval to expand a potential ~ 20740 eval path="$path" 20741 if test ! -f "$path" && test ! -d "$path"; then 20742 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20743 fi 20744 20745 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20746 fi 20747 20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20749 $as_echo_n "checking for Boot JDK... " >&6; } 20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20751 $as_echo "$BOOT_JDK" >&6; } 20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20753 $as_echo_n "checking Boot JDK version... " >&6; } 20754 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20756 $as_echo "$BOOT_JDK_VERSION" >&6; } 20757 fi # end check jdk version 20758 fi # end check rt.jar 20759 fi # end check javac 20760 fi # end check java 20761 fi # end check boot jdk found 20762 fi 20763 20764 20765 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20766 20767 if test "x$BOOT_JDK_FOUND" = xno; then 20768 # Now execute the test 20769 20770 if test -x /usr/libexec/java_home; then 20771 BOOT_JDK=`/usr/libexec/java_home` 20772 BOOT_JDK_FOUND=maybe 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20774 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20775 fi 20776 20777 20778 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20779 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20780 # Do we have a bin/java? 20781 if test ! -x "$BOOT_JDK/bin/java"; then 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20784 BOOT_JDK_FOUND=no 20785 else 20786 # Do we have a bin/javac? 20787 if test ! -x "$BOOT_JDK/bin/javac"; then 20788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20790 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20791 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20792 BOOT_JDK_FOUND=no 20793 else 20794 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20795 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20797 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20798 BOOT_JDK_FOUND=no 20799 else 20800 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20801 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20802 20803 # Extra M4 quote needed to protect [] in grep expression. 20804 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20805 if test "x$FOUND_VERSION_78" = x; then 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20808 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20809 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20810 BOOT_JDK_FOUND=no 20811 else 20812 # We're done! :-) 20813 BOOT_JDK_FOUND=yes 20814 20815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20816 20817 # Input might be given as Windows format, start by converting to 20818 # unix format. 20819 path="$BOOT_JDK" 20820 new_path=`$CYGPATH -u "$path"` 20821 20822 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20823 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20824 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20825 # "foo.exe" is OK but "foo" is an error. 20826 # 20827 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20828 # It is also a way to make sure we got the proper file name for the real test later on. 20829 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20830 if test "x$test_shortpath" = x; then 20831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20832 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20833 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20834 fi 20835 20836 # Call helper function which possibly converts this using DOS-style short mode. 20837 # If so, the updated path is stored in $new_path. 20838 20839 input_path="$new_path" 20840 # Check if we need to convert this using DOS-style short mode. If the path 20841 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20842 # take no chances and rewrite it. 20843 # Note: m4 eats our [], so we need to use [ and ] instead. 20844 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20845 if test "x$has_forbidden_chars" != x; then 20846 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20847 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20848 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20849 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20850 # Going to short mode and back again did indeed matter. Since short mode is 20851 # case insensitive, let's make it lowercase to improve readability. 20852 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20853 # Now convert it back to Unix-style (cygpath) 20854 input_path=`$CYGPATH -u "$shortmode_path"` 20855 new_path="$input_path" 20856 fi 20857 fi 20858 20859 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20860 if test "x$test_cygdrive_prefix" = x; then 20861 # As a simple fix, exclude /usr/bin since it's not a real path. 20862 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20863 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20864 # a path prefixed by /cygdrive for fixpath to work. 20865 new_path="$CYGWIN_ROOT_PATH$input_path" 20866 fi 20867 fi 20868 20869 20870 if test "x$path" != "x$new_path"; then 20871 BOOT_JDK="$new_path" 20872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20873 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20874 fi 20875 20876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20877 20878 path="$BOOT_JDK" 20879 has_colon=`$ECHO $path | $GREP ^.:` 20880 new_path="$path" 20881 if test "x$has_colon" = x; then 20882 # Not in mixed or Windows style, start by that. 20883 new_path=`cmd //c echo $path` 20884 fi 20885 20886 20887 input_path="$new_path" 20888 # Check if we need to convert this using DOS-style short mode. If the path 20889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20890 # take no chances and rewrite it. 20891 # Note: m4 eats our [], so we need to use [ and ] instead. 20892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20893 if test "x$has_forbidden_chars" != x; then 20894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20895 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20896 fi 20897 20898 20899 windows_path="$new_path" 20900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20901 unix_path=`$CYGPATH -u "$windows_path"` 20902 new_path="$unix_path" 20903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20905 new_path="$unix_path" 20906 fi 20907 20908 if test "x$path" != "x$new_path"; then 20909 BOOT_JDK="$new_path" 20910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20911 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20912 fi 20913 20914 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20915 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20916 20917 else 20918 # We're on a posix platform. Hooray! :) 20919 path="$BOOT_JDK" 20920 has_space=`$ECHO "$path" | $GREP " "` 20921 if test "x$has_space" != x; then 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20923 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20924 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20925 fi 20926 20927 # Use eval to expand a potential ~ 20928 eval path="$path" 20929 if test ! -f "$path" && test ! -d "$path"; then 20930 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20931 fi 20932 20933 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20934 fi 20935 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20937 $as_echo_n "checking for Boot JDK... " >&6; } 20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20939 $as_echo "$BOOT_JDK" >&6; } 20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20941 $as_echo_n "checking Boot JDK version... " >&6; } 20942 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20944 $as_echo "$BOOT_JDK_VERSION" >&6; } 20945 fi # end check jdk version 20946 fi # end check rt.jar 20947 fi # end check javac 20948 fi # end check java 20949 fi # end check boot jdk found 20950 fi 20951 20952 20953 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 20954 20955 if test "x$BOOT_JDK_FOUND" = xno; then 20956 # Now execute the test 20957 20958 # Extract the first word of "javac", so it can be a program name with args. 20959 set dummy javac; ac_word=$2 20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20961 $as_echo_n "checking for $ac_word... " >&6; } 20962 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 20963 $as_echo_n "(cached) " >&6 20964 else 20965 case $JAVAC_CHECK in 20966 [\\/]* | ?:[\\/]*) 20967 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 20968 ;; 20969 *) 20970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20971 for as_dir in $PATH 20972 do 20973 IFS=$as_save_IFS 20974 test -z "$as_dir" && as_dir=. 20975 for ac_exec_ext in '' $ac_executable_extensions; do 20976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20977 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20979 break 2 20980 fi 20981 done 20982 done 20983 IFS=$as_save_IFS 20984 20985 ;; 20986 esac 20987 fi 20988 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 20989 if test -n "$JAVAC_CHECK"; then 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 20991 $as_echo "$JAVAC_CHECK" >&6; } 20992 else 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20994 $as_echo "no" >&6; } 20995 fi 20996 20997 20998 # Extract the first word of "java", so it can be a program name with args. 20999 set dummy java; ac_word=$2 21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21001 $as_echo_n "checking for $ac_word... " >&6; } 21002 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21003 $as_echo_n "(cached) " >&6 21004 else 21005 case $JAVA_CHECK in 21006 [\\/]* | ?:[\\/]*) 21007 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21008 ;; 21009 *) 21010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21011 for as_dir in $PATH 21012 do 21013 IFS=$as_save_IFS 21014 test -z "$as_dir" && as_dir=. 21015 for ac_exec_ext in '' $ac_executable_extensions; do 21016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21017 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21019 break 2 21020 fi 21021 done 21022 done 21023 IFS=$as_save_IFS 21024 21025 ;; 21026 esac 21027 fi 21028 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21029 if test -n "$JAVA_CHECK"; then 21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21031 $as_echo "$JAVA_CHECK" >&6; } 21032 else 21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21034 $as_echo "no" >&6; } 21035 fi 21036 21037 21038 BINARY="$JAVAC_CHECK" 21039 if test "x$JAVAC_CHECK" = x; then 21040 BINARY="$JAVA_CHECK" 21041 fi 21042 if test "x$BINARY" != x; then 21043 # So there is a java(c) binary, it might be part of a JDK. 21044 # Lets find the JDK/JRE directory by following symbolic links. 21045 # Linux/GNU systems often have links from /usr/bin/java to 21046 # /etc/alternatives/java to the real JDK binary. 21047 21048 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21049 # Follow a chain of symbolic links. Use readlink 21050 # where it exists, else fall back to horribly 21051 # complicated shell code. 21052 if test "x$READLINK_TESTED" != yes; then 21053 # On MacOSX there is a readlink tool with a different 21054 # purpose than the GNU readlink tool. Check the found readlink. 21055 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21056 if test "x$ISGNU" = x; then 21057 # A readlink that we do not know how to use. 21058 # Are there other non-GNU readlinks out there? 21059 READLINK_TESTED=yes 21060 READLINK= 21061 fi 21062 fi 21063 21064 if test "x$READLINK" != x; then 21065 BINARY=`$READLINK -f $BINARY` 21066 else 21067 # Save the current directory for restoring afterwards 21068 STARTDIR=$PWD 21069 COUNTER=0 21070 sym_link_dir=`$DIRNAME $BINARY` 21071 sym_link_file=`$BASENAME $BINARY` 21072 cd $sym_link_dir 21073 # Use -P flag to resolve symlinks in directories. 21074 cd `$THEPWDCMD -P` 21075 sym_link_dir=`$THEPWDCMD -P` 21076 # Resolve file symlinks 21077 while test $COUNTER -lt 20; do 21078 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21079 if test "x$ISLINK" == x; then 21080 # This is not a symbolic link! We are done! 21081 break 21082 fi 21083 # Again resolve directory symlinks since the target of the just found 21084 # link could be in a different directory 21085 cd `$DIRNAME $ISLINK` 21086 sym_link_dir=`$THEPWDCMD -P` 21087 sym_link_file=`$BASENAME $ISLINK` 21088 let COUNTER=COUNTER+1 21089 done 21090 cd $STARTDIR 21091 BINARY=$sym_link_dir/$sym_link_file 21092 fi 21093 fi 21094 21095 BOOT_JDK=`dirname "$BINARY"` 21096 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21097 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21098 # Looks like we found ourselves an JDK 21099 BOOT_JDK_FOUND=maybe 21100 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21101 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21102 fi 21103 fi 21104 21105 21106 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21107 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21108 # Do we have a bin/java? 21109 if test ! -x "$BOOT_JDK/bin/java"; then 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21111 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21112 BOOT_JDK_FOUND=no 21113 else 21114 # Do we have a bin/javac? 21115 if test ! -x "$BOOT_JDK/bin/javac"; then 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21118 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21119 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21120 BOOT_JDK_FOUND=no 21121 else 21122 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21123 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21124 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21126 BOOT_JDK_FOUND=no 21127 else 21128 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21129 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21130 21131 # Extra M4 quote needed to protect [] in grep expression. 21132 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21133 if test "x$FOUND_VERSION_78" = x; then 21134 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21137 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21138 BOOT_JDK_FOUND=no 21139 else 21140 # We're done! :-) 21141 BOOT_JDK_FOUND=yes 21142 21143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21144 21145 # Input might be given as Windows format, start by converting to 21146 # unix format. 21147 path="$BOOT_JDK" 21148 new_path=`$CYGPATH -u "$path"` 21149 21150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21153 # "foo.exe" is OK but "foo" is an error. 21154 # 21155 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21156 # It is also a way to make sure we got the proper file name for the real test later on. 21157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21158 if test "x$test_shortpath" = x; then 21159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21160 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21161 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21162 fi 21163 21164 # Call helper function which possibly converts this using DOS-style short mode. 21165 # If so, the updated path is stored in $new_path. 21166 21167 input_path="$new_path" 21168 # Check if we need to convert this using DOS-style short mode. If the path 21169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21170 # take no chances and rewrite it. 21171 # Note: m4 eats our [], so we need to use [ and ] instead. 21172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21173 if test "x$has_forbidden_chars" != x; then 21174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21175 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21176 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21177 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21178 # Going to short mode and back again did indeed matter. Since short mode is 21179 # case insensitive, let's make it lowercase to improve readability. 21180 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21181 # Now convert it back to Unix-style (cygpath) 21182 input_path=`$CYGPATH -u "$shortmode_path"` 21183 new_path="$input_path" 21184 fi 21185 fi 21186 21187 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21188 if test "x$test_cygdrive_prefix" = x; then 21189 # As a simple fix, exclude /usr/bin since it's not a real path. 21190 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21191 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21192 # a path prefixed by /cygdrive for fixpath to work. 21193 new_path="$CYGWIN_ROOT_PATH$input_path" 21194 fi 21195 fi 21196 21197 21198 if test "x$path" != "x$new_path"; then 21199 BOOT_JDK="$new_path" 21200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21201 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21202 fi 21203 21204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21205 21206 path="$BOOT_JDK" 21207 has_colon=`$ECHO $path | $GREP ^.:` 21208 new_path="$path" 21209 if test "x$has_colon" = x; then 21210 # Not in mixed or Windows style, start by that. 21211 new_path=`cmd //c echo $path` 21212 fi 21213 21214 21215 input_path="$new_path" 21216 # Check if we need to convert this using DOS-style short mode. If the path 21217 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21218 # take no chances and rewrite it. 21219 # Note: m4 eats our [], so we need to use [ and ] instead. 21220 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21221 if test "x$has_forbidden_chars" != x; then 21222 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21223 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21224 fi 21225 21226 21227 windows_path="$new_path" 21228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21229 unix_path=`$CYGPATH -u "$windows_path"` 21230 new_path="$unix_path" 21231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21232 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21233 new_path="$unix_path" 21234 fi 21235 21236 if test "x$path" != "x$new_path"; then 21237 BOOT_JDK="$new_path" 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21239 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21240 fi 21241 21242 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21243 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21244 21245 else 21246 # We're on a posix platform. Hooray! :) 21247 path="$BOOT_JDK" 21248 has_space=`$ECHO "$path" | $GREP " "` 21249 if test "x$has_space" != x; then 21250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21251 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21252 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21253 fi 21254 21255 # Use eval to expand a potential ~ 21256 eval path="$path" 21257 if test ! -f "$path" && test ! -d "$path"; then 21258 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21259 fi 21260 21261 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21262 fi 21263 21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21265 $as_echo_n "checking for Boot JDK... " >&6; } 21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21267 $as_echo "$BOOT_JDK" >&6; } 21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21269 $as_echo_n "checking Boot JDK version... " >&6; } 21270 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21272 $as_echo "$BOOT_JDK_VERSION" >&6; } 21273 fi # end check jdk version 21274 fi # end check rt.jar 21275 fi # end check javac 21276 fi # end check java 21277 fi # end check boot jdk found 21278 fi 21279 21280 21281 # Test: Is there a JDK installed in default, well-known locations? 21282 21283 if test "x$BOOT_JDK_FOUND" = xno; then 21284 # Now execute the test 21285 21286 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21287 21288 if test "x$BOOT_JDK_FOUND" = xno; then 21289 # Now execute the test 21290 21291 if test "x$ProgramW6432" != x; then 21292 VIRTUAL_DIR="$ProgramW6432/Java" 21293 21294 windows_path="$VIRTUAL_DIR" 21295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21296 unix_path=`$CYGPATH -u "$windows_path"` 21297 VIRTUAL_DIR="$unix_path" 21298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21300 VIRTUAL_DIR="$unix_path" 21301 fi 21302 21303 21304 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21305 BOOT_JDK_SUFFIX="" 21306 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21307 if test "x$ALL_JDKS_FOUND" != x; then 21308 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21309 21310 if test "x$BOOT_JDK_FOUND" = xno; then 21311 # Now execute the test 21312 21313 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21314 if test -d "$BOOT_JDK"; then 21315 BOOT_JDK_FOUND=maybe 21316 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21317 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21318 fi 21319 21320 21321 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21322 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21323 # Do we have a bin/java? 21324 if test ! -x "$BOOT_JDK/bin/java"; then 21325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21327 BOOT_JDK_FOUND=no 21328 else 21329 # Do we have a bin/javac? 21330 if test ! -x "$BOOT_JDK/bin/javac"; then 21331 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21334 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21335 BOOT_JDK_FOUND=no 21336 else 21337 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21338 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21339 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21340 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21341 BOOT_JDK_FOUND=no 21342 else 21343 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21344 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21345 21346 # Extra M4 quote needed to protect [] in grep expression. 21347 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21348 if test "x$FOUND_VERSION_78" = x; then 21349 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21350 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21351 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21352 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21353 BOOT_JDK_FOUND=no 21354 else 21355 # We're done! :-) 21356 BOOT_JDK_FOUND=yes 21357 21358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21359 21360 # Input might be given as Windows format, start by converting to 21361 # unix format. 21362 path="$BOOT_JDK" 21363 new_path=`$CYGPATH -u "$path"` 21364 21365 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21366 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21367 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21368 # "foo.exe" is OK but "foo" is an error. 21369 # 21370 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21371 # It is also a way to make sure we got the proper file name for the real test later on. 21372 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21373 if test "x$test_shortpath" = x; then 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21375 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21376 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21377 fi 21378 21379 # Call helper function which possibly converts this using DOS-style short mode. 21380 # If so, the updated path is stored in $new_path. 21381 21382 input_path="$new_path" 21383 # Check if we need to convert this using DOS-style short mode. If the path 21384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21385 # take no chances and rewrite it. 21386 # Note: m4 eats our [], so we need to use [ and ] instead. 21387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21388 if test "x$has_forbidden_chars" != x; then 21389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21390 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21391 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21392 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21393 # Going to short mode and back again did indeed matter. Since short mode is 21394 # case insensitive, let's make it lowercase to improve readability. 21395 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21396 # Now convert it back to Unix-style (cygpath) 21397 input_path=`$CYGPATH -u "$shortmode_path"` 21398 new_path="$input_path" 21399 fi 21400 fi 21401 21402 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21403 if test "x$test_cygdrive_prefix" = x; then 21404 # As a simple fix, exclude /usr/bin since it's not a real path. 21405 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21406 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21407 # a path prefixed by /cygdrive for fixpath to work. 21408 new_path="$CYGWIN_ROOT_PATH$input_path" 21409 fi 21410 fi 21411 21412 21413 if test "x$path" != "x$new_path"; then 21414 BOOT_JDK="$new_path" 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21417 fi 21418 21419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21420 21421 path="$BOOT_JDK" 21422 has_colon=`$ECHO $path | $GREP ^.:` 21423 new_path="$path" 21424 if test "x$has_colon" = x; then 21425 # Not in mixed or Windows style, start by that. 21426 new_path=`cmd //c echo $path` 21427 fi 21428 21429 21430 input_path="$new_path" 21431 # Check if we need to convert this using DOS-style short mode. If the path 21432 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21433 # take no chances and rewrite it. 21434 # Note: m4 eats our [], so we need to use [ and ] instead. 21435 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21436 if test "x$has_forbidden_chars" != x; then 21437 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21438 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21439 fi 21440 21441 21442 windows_path="$new_path" 21443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21444 unix_path=`$CYGPATH -u "$windows_path"` 21445 new_path="$unix_path" 21446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21448 new_path="$unix_path" 21449 fi 21450 21451 if test "x$path" != "x$new_path"; then 21452 BOOT_JDK="$new_path" 21453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21455 fi 21456 21457 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21458 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21459 21460 else 21461 # We're on a posix platform. Hooray! :) 21462 path="$BOOT_JDK" 21463 has_space=`$ECHO "$path" | $GREP " "` 21464 if test "x$has_space" != x; then 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21466 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21467 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21468 fi 21469 21470 # Use eval to expand a potential ~ 21471 eval path="$path" 21472 if test ! -f "$path" && test ! -d "$path"; then 21473 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21474 fi 21475 21476 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21477 fi 21478 21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21480 $as_echo_n "checking for Boot JDK... " >&6; } 21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21482 $as_echo "$BOOT_JDK" >&6; } 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21484 $as_echo_n "checking Boot JDK version... " >&6; } 21485 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21487 $as_echo "$BOOT_JDK_VERSION" >&6; } 21488 fi # end check jdk version 21489 fi # end check rt.jar 21490 fi # end check javac 21491 fi # end check java 21492 fi # end check boot jdk found 21493 fi 21494 21495 done 21496 fi 21497 21498 fi 21499 21500 21501 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21502 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21503 # Do we have a bin/java? 21504 if test ! -x "$BOOT_JDK/bin/java"; then 21505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21507 BOOT_JDK_FOUND=no 21508 else 21509 # Do we have a bin/javac? 21510 if test ! -x "$BOOT_JDK/bin/javac"; then 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21514 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21515 BOOT_JDK_FOUND=no 21516 else 21517 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21518 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21519 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21520 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21521 BOOT_JDK_FOUND=no 21522 else 21523 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21524 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21525 21526 # Extra M4 quote needed to protect [] in grep expression. 21527 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21528 if test "x$FOUND_VERSION_78" = x; then 21529 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21531 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21532 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21533 BOOT_JDK_FOUND=no 21534 else 21535 # We're done! :-) 21536 BOOT_JDK_FOUND=yes 21537 21538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21539 21540 # Input might be given as Windows format, start by converting to 21541 # unix format. 21542 path="$BOOT_JDK" 21543 new_path=`$CYGPATH -u "$path"` 21544 21545 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21546 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21547 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21548 # "foo.exe" is OK but "foo" is an error. 21549 # 21550 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21551 # It is also a way to make sure we got the proper file name for the real test later on. 21552 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21553 if test "x$test_shortpath" = x; then 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21555 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21556 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21557 fi 21558 21559 # Call helper function which possibly converts this using DOS-style short mode. 21560 # If so, the updated path is stored in $new_path. 21561 21562 input_path="$new_path" 21563 # Check if we need to convert this using DOS-style short mode. If the path 21564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21565 # take no chances and rewrite it. 21566 # Note: m4 eats our [], so we need to use [ and ] instead. 21567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21568 if test "x$has_forbidden_chars" != x; then 21569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21570 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21571 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21572 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21573 # Going to short mode and back again did indeed matter. Since short mode is 21574 # case insensitive, let's make it lowercase to improve readability. 21575 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21576 # Now convert it back to Unix-style (cygpath) 21577 input_path=`$CYGPATH -u "$shortmode_path"` 21578 new_path="$input_path" 21579 fi 21580 fi 21581 21582 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21583 if test "x$test_cygdrive_prefix" = x; then 21584 # As a simple fix, exclude /usr/bin since it's not a real path. 21585 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21586 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21587 # a path prefixed by /cygdrive for fixpath to work. 21588 new_path="$CYGWIN_ROOT_PATH$input_path" 21589 fi 21590 fi 21591 21592 21593 if test "x$path" != "x$new_path"; then 21594 BOOT_JDK="$new_path" 21595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21597 fi 21598 21599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21600 21601 path="$BOOT_JDK" 21602 has_colon=`$ECHO $path | $GREP ^.:` 21603 new_path="$path" 21604 if test "x$has_colon" = x; then 21605 # Not in mixed or Windows style, start by that. 21606 new_path=`cmd //c echo $path` 21607 fi 21608 21609 21610 input_path="$new_path" 21611 # Check if we need to convert this using DOS-style short mode. If the path 21612 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21613 # take no chances and rewrite it. 21614 # Note: m4 eats our [], so we need to use [ and ] instead. 21615 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21616 if test "x$has_forbidden_chars" != x; then 21617 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21618 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21619 fi 21620 21621 21622 windows_path="$new_path" 21623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21624 unix_path=`$CYGPATH -u "$windows_path"` 21625 new_path="$unix_path" 21626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21628 new_path="$unix_path" 21629 fi 21630 21631 if test "x$path" != "x$new_path"; then 21632 BOOT_JDK="$new_path" 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21634 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21635 fi 21636 21637 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21638 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21639 21640 else 21641 # We're on a posix platform. Hooray! :) 21642 path="$BOOT_JDK" 21643 has_space=`$ECHO "$path" | $GREP " "` 21644 if test "x$has_space" != x; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21646 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21647 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21648 fi 21649 21650 # Use eval to expand a potential ~ 21651 eval path="$path" 21652 if test ! -f "$path" && test ! -d "$path"; then 21653 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21654 fi 21655 21656 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21657 fi 21658 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21660 $as_echo_n "checking for Boot JDK... " >&6; } 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21662 $as_echo "$BOOT_JDK" >&6; } 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21664 $as_echo_n "checking Boot JDK version... " >&6; } 21665 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21667 $as_echo "$BOOT_JDK_VERSION" >&6; } 21668 fi # end check jdk version 21669 fi # end check rt.jar 21670 fi # end check javac 21671 fi # end check java 21672 fi # end check boot jdk found 21673 fi 21674 21675 21676 if test "x$BOOT_JDK_FOUND" = xno; then 21677 # Now execute the test 21678 21679 if test "x$PROGRAMW6432" != x; then 21680 VIRTUAL_DIR="$PROGRAMW6432/Java" 21681 21682 windows_path="$VIRTUAL_DIR" 21683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21684 unix_path=`$CYGPATH -u "$windows_path"` 21685 VIRTUAL_DIR="$unix_path" 21686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21688 VIRTUAL_DIR="$unix_path" 21689 fi 21690 21691 21692 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21693 BOOT_JDK_SUFFIX="" 21694 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21695 if test "x$ALL_JDKS_FOUND" != x; then 21696 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21697 21698 if test "x$BOOT_JDK_FOUND" = xno; then 21699 # Now execute the test 21700 21701 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21702 if test -d "$BOOT_JDK"; then 21703 BOOT_JDK_FOUND=maybe 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21705 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21706 fi 21707 21708 21709 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21710 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21711 # Do we have a bin/java? 21712 if test ! -x "$BOOT_JDK/bin/java"; then 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21715 BOOT_JDK_FOUND=no 21716 else 21717 # Do we have a bin/javac? 21718 if test ! -x "$BOOT_JDK/bin/javac"; then 21719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21721 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21722 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21723 BOOT_JDK_FOUND=no 21724 else 21725 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21726 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21729 BOOT_JDK_FOUND=no 21730 else 21731 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21732 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21733 21734 # Extra M4 quote needed to protect [] in grep expression. 21735 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21736 if test "x$FOUND_VERSION_78" = x; then 21737 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21739 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21740 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21741 BOOT_JDK_FOUND=no 21742 else 21743 # We're done! :-) 21744 BOOT_JDK_FOUND=yes 21745 21746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21747 21748 # Input might be given as Windows format, start by converting to 21749 # unix format. 21750 path="$BOOT_JDK" 21751 new_path=`$CYGPATH -u "$path"` 21752 21753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21756 # "foo.exe" is OK but "foo" is an error. 21757 # 21758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21759 # It is also a way to make sure we got the proper file name for the real test later on. 21760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21761 if test "x$test_shortpath" = x; then 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21763 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21764 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21765 fi 21766 21767 # Call helper function which possibly converts this using DOS-style short mode. 21768 # If so, the updated path is stored in $new_path. 21769 21770 input_path="$new_path" 21771 # Check if we need to convert this using DOS-style short mode. If the path 21772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21773 # take no chances and rewrite it. 21774 # Note: m4 eats our [], so we need to use [ and ] instead. 21775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21776 if test "x$has_forbidden_chars" != x; then 21777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21781 # Going to short mode and back again did indeed matter. Since short mode is 21782 # case insensitive, let's make it lowercase to improve readability. 21783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21784 # Now convert it back to Unix-style (cygpath) 21785 input_path=`$CYGPATH -u "$shortmode_path"` 21786 new_path="$input_path" 21787 fi 21788 fi 21789 21790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21791 if test "x$test_cygdrive_prefix" = x; then 21792 # As a simple fix, exclude /usr/bin since it's not a real path. 21793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21795 # a path prefixed by /cygdrive for fixpath to work. 21796 new_path="$CYGWIN_ROOT_PATH$input_path" 21797 fi 21798 fi 21799 21800 21801 if test "x$path" != "x$new_path"; then 21802 BOOT_JDK="$new_path" 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21804 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21805 fi 21806 21807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21808 21809 path="$BOOT_JDK" 21810 has_colon=`$ECHO $path | $GREP ^.:` 21811 new_path="$path" 21812 if test "x$has_colon" = x; then 21813 # Not in mixed or Windows style, start by that. 21814 new_path=`cmd //c echo $path` 21815 fi 21816 21817 21818 input_path="$new_path" 21819 # Check if we need to convert this using DOS-style short mode. If the path 21820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21821 # take no chances and rewrite it. 21822 # Note: m4 eats our [], so we need to use [ and ] instead. 21823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21824 if test "x$has_forbidden_chars" != x; then 21825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21827 fi 21828 21829 21830 windows_path="$new_path" 21831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21832 unix_path=`$CYGPATH -u "$windows_path"` 21833 new_path="$unix_path" 21834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21836 new_path="$unix_path" 21837 fi 21838 21839 if test "x$path" != "x$new_path"; then 21840 BOOT_JDK="$new_path" 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21842 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21843 fi 21844 21845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21847 21848 else 21849 # We're on a posix platform. Hooray! :) 21850 path="$BOOT_JDK" 21851 has_space=`$ECHO "$path" | $GREP " "` 21852 if test "x$has_space" != x; then 21853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21854 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21856 fi 21857 21858 # Use eval to expand a potential ~ 21859 eval path="$path" 21860 if test ! -f "$path" && test ! -d "$path"; then 21861 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21862 fi 21863 21864 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21865 fi 21866 21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21868 $as_echo_n "checking for Boot JDK... " >&6; } 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21870 $as_echo "$BOOT_JDK" >&6; } 21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21872 $as_echo_n "checking Boot JDK version... " >&6; } 21873 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21875 $as_echo "$BOOT_JDK_VERSION" >&6; } 21876 fi # end check jdk version 21877 fi # end check rt.jar 21878 fi # end check javac 21879 fi # end check java 21880 fi # end check boot jdk found 21881 fi 21882 21883 done 21884 fi 21885 21886 fi 21887 21888 21889 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21890 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21891 # Do we have a bin/java? 21892 if test ! -x "$BOOT_JDK/bin/java"; then 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21895 BOOT_JDK_FOUND=no 21896 else 21897 # Do we have a bin/javac? 21898 if test ! -x "$BOOT_JDK/bin/javac"; then 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21900 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21902 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21903 BOOT_JDK_FOUND=no 21904 else 21905 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21906 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21909 BOOT_JDK_FOUND=no 21910 else 21911 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21912 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21913 21914 # Extra M4 quote needed to protect [] in grep expression. 21915 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21916 if test "x$FOUND_VERSION_78" = x; then 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21918 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21920 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21921 BOOT_JDK_FOUND=no 21922 else 21923 # We're done! :-) 21924 BOOT_JDK_FOUND=yes 21925 21926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21927 21928 # Input might be given as Windows format, start by converting to 21929 # unix format. 21930 path="$BOOT_JDK" 21931 new_path=`$CYGPATH -u "$path"` 21932 21933 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21934 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21935 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21936 # "foo.exe" is OK but "foo" is an error. 21937 # 21938 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21939 # It is also a way to make sure we got the proper file name for the real test later on. 21940 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21941 if test "x$test_shortpath" = x; then 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21943 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21944 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21945 fi 21946 21947 # Call helper function which possibly converts this using DOS-style short mode. 21948 # If so, the updated path is stored in $new_path. 21949 21950 input_path="$new_path" 21951 # Check if we need to convert this using DOS-style short mode. If the path 21952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21953 # take no chances and rewrite it. 21954 # Note: m4 eats our [], so we need to use [ and ] instead. 21955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21956 if test "x$has_forbidden_chars" != x; then 21957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21958 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21959 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21960 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21961 # Going to short mode and back again did indeed matter. Since short mode is 21962 # case insensitive, let's make it lowercase to improve readability. 21963 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21964 # Now convert it back to Unix-style (cygpath) 21965 input_path=`$CYGPATH -u "$shortmode_path"` 21966 new_path="$input_path" 21967 fi 21968 fi 21969 21970 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21971 if test "x$test_cygdrive_prefix" = x; then 21972 # As a simple fix, exclude /usr/bin since it's not a real path. 21973 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21974 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21975 # a path prefixed by /cygdrive for fixpath to work. 21976 new_path="$CYGWIN_ROOT_PATH$input_path" 21977 fi 21978 fi 21979 21980 21981 if test "x$path" != "x$new_path"; then 21982 BOOT_JDK="$new_path" 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21984 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21985 fi 21986 21987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21988 21989 path="$BOOT_JDK" 21990 has_colon=`$ECHO $path | $GREP ^.:` 21991 new_path="$path" 21992 if test "x$has_colon" = x; then 21993 # Not in mixed or Windows style, start by that. 21994 new_path=`cmd //c echo $path` 21995 fi 21996 21997 21998 input_path="$new_path" 21999 # Check if we need to convert this using DOS-style short mode. If the path 22000 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22001 # take no chances and rewrite it. 22002 # Note: m4 eats our [], so we need to use [ and ] instead. 22003 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22004 if test "x$has_forbidden_chars" != x; then 22005 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22006 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22007 fi 22008 22009 22010 windows_path="$new_path" 22011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22012 unix_path=`$CYGPATH -u "$windows_path"` 22013 new_path="$unix_path" 22014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22016 new_path="$unix_path" 22017 fi 22018 22019 if test "x$path" != "x$new_path"; then 22020 BOOT_JDK="$new_path" 22021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22022 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22023 fi 22024 22025 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22026 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22027 22028 else 22029 # We're on a posix platform. Hooray! :) 22030 path="$BOOT_JDK" 22031 has_space=`$ECHO "$path" | $GREP " "` 22032 if test "x$has_space" != x; then 22033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22034 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22035 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22036 fi 22037 22038 # Use eval to expand a potential ~ 22039 eval path="$path" 22040 if test ! -f "$path" && test ! -d "$path"; then 22041 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22042 fi 22043 22044 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22045 fi 22046 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22048 $as_echo_n "checking for Boot JDK... " >&6; } 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22050 $as_echo "$BOOT_JDK" >&6; } 22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22052 $as_echo_n "checking Boot JDK version... " >&6; } 22053 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22055 $as_echo "$BOOT_JDK_VERSION" >&6; } 22056 fi # end check jdk version 22057 fi # end check rt.jar 22058 fi # end check javac 22059 fi # end check java 22060 fi # end check boot jdk found 22061 fi 22062 22063 22064 if test "x$BOOT_JDK_FOUND" = xno; then 22065 # Now execute the test 22066 22067 if test "x$PROGRAMFILES" != x; then 22068 VIRTUAL_DIR="$PROGRAMFILES/Java" 22069 22070 windows_path="$VIRTUAL_DIR" 22071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22072 unix_path=`$CYGPATH -u "$windows_path"` 22073 VIRTUAL_DIR="$unix_path" 22074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22076 VIRTUAL_DIR="$unix_path" 22077 fi 22078 22079 22080 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22081 BOOT_JDK_SUFFIX="" 22082 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22083 if test "x$ALL_JDKS_FOUND" != x; then 22084 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22085 22086 if test "x$BOOT_JDK_FOUND" = xno; then 22087 # Now execute the test 22088 22089 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22090 if test -d "$BOOT_JDK"; then 22091 BOOT_JDK_FOUND=maybe 22092 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22093 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22094 fi 22095 22096 22097 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22098 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22099 # Do we have a bin/java? 22100 if test ! -x "$BOOT_JDK/bin/java"; then 22101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22103 BOOT_JDK_FOUND=no 22104 else 22105 # Do we have a bin/javac? 22106 if test ! -x "$BOOT_JDK/bin/javac"; then 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22110 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22111 BOOT_JDK_FOUND=no 22112 else 22113 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22114 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22117 BOOT_JDK_FOUND=no 22118 else 22119 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22120 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22121 22122 # Extra M4 quote needed to protect [] in grep expression. 22123 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22124 if test "x$FOUND_VERSION_78" = x; then 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22127 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22128 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22129 BOOT_JDK_FOUND=no 22130 else 22131 # We're done! :-) 22132 BOOT_JDK_FOUND=yes 22133 22134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22135 22136 # Input might be given as Windows format, start by converting to 22137 # unix format. 22138 path="$BOOT_JDK" 22139 new_path=`$CYGPATH -u "$path"` 22140 22141 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22142 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22143 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22144 # "foo.exe" is OK but "foo" is an error. 22145 # 22146 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22147 # It is also a way to make sure we got the proper file name for the real test later on. 22148 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22149 if test "x$test_shortpath" = x; then 22150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22151 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22152 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22153 fi 22154 22155 # Call helper function which possibly converts this using DOS-style short mode. 22156 # If so, the updated path is stored in $new_path. 22157 22158 input_path="$new_path" 22159 # Check if we need to convert this using DOS-style short mode. If the path 22160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22161 # take no chances and rewrite it. 22162 # Note: m4 eats our [], so we need to use [ and ] instead. 22163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22164 if test "x$has_forbidden_chars" != x; then 22165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22166 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22167 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22168 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22169 # Going to short mode and back again did indeed matter. Since short mode is 22170 # case insensitive, let's make it lowercase to improve readability. 22171 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22172 # Now convert it back to Unix-style (cygpath) 22173 input_path=`$CYGPATH -u "$shortmode_path"` 22174 new_path="$input_path" 22175 fi 22176 fi 22177 22178 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22179 if test "x$test_cygdrive_prefix" = x; then 22180 # As a simple fix, exclude /usr/bin since it's not a real path. 22181 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22182 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22183 # a path prefixed by /cygdrive for fixpath to work. 22184 new_path="$CYGWIN_ROOT_PATH$input_path" 22185 fi 22186 fi 22187 22188 22189 if test "x$path" != "x$new_path"; then 22190 BOOT_JDK="$new_path" 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22192 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22193 fi 22194 22195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22196 22197 path="$BOOT_JDK" 22198 has_colon=`$ECHO $path | $GREP ^.:` 22199 new_path="$path" 22200 if test "x$has_colon" = x; then 22201 # Not in mixed or Windows style, start by that. 22202 new_path=`cmd //c echo $path` 22203 fi 22204 22205 22206 input_path="$new_path" 22207 # Check if we need to convert this using DOS-style short mode. If the path 22208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22209 # take no chances and rewrite it. 22210 # Note: m4 eats our [], so we need to use [ and ] instead. 22211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22212 if test "x$has_forbidden_chars" != x; then 22213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22214 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22215 fi 22216 22217 22218 windows_path="$new_path" 22219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22220 unix_path=`$CYGPATH -u "$windows_path"` 22221 new_path="$unix_path" 22222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22224 new_path="$unix_path" 22225 fi 22226 22227 if test "x$path" != "x$new_path"; then 22228 BOOT_JDK="$new_path" 22229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22230 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22231 fi 22232 22233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22235 22236 else 22237 # We're on a posix platform. Hooray! :) 22238 path="$BOOT_JDK" 22239 has_space=`$ECHO "$path" | $GREP " "` 22240 if test "x$has_space" != x; then 22241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22243 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22244 fi 22245 22246 # Use eval to expand a potential ~ 22247 eval path="$path" 22248 if test ! -f "$path" && test ! -d "$path"; then 22249 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22250 fi 22251 22252 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22253 fi 22254 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22256 $as_echo_n "checking for Boot JDK... " >&6; } 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22258 $as_echo "$BOOT_JDK" >&6; } 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22260 $as_echo_n "checking Boot JDK version... " >&6; } 22261 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22263 $as_echo "$BOOT_JDK_VERSION" >&6; } 22264 fi # end check jdk version 22265 fi # end check rt.jar 22266 fi # end check javac 22267 fi # end check java 22268 fi # end check boot jdk found 22269 fi 22270 22271 done 22272 fi 22273 22274 fi 22275 22276 22277 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22278 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22279 # Do we have a bin/java? 22280 if test ! -x "$BOOT_JDK/bin/java"; then 22281 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22283 BOOT_JDK_FOUND=no 22284 else 22285 # Do we have a bin/javac? 22286 if test ! -x "$BOOT_JDK/bin/javac"; then 22287 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22288 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22290 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22291 BOOT_JDK_FOUND=no 22292 else 22293 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22294 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22295 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22297 BOOT_JDK_FOUND=no 22298 else 22299 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22300 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22301 22302 # Extra M4 quote needed to protect [] in grep expression. 22303 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22304 if test "x$FOUND_VERSION_78" = x; then 22305 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22307 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22308 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22309 BOOT_JDK_FOUND=no 22310 else 22311 # We're done! :-) 22312 BOOT_JDK_FOUND=yes 22313 22314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22315 22316 # Input might be given as Windows format, start by converting to 22317 # unix format. 22318 path="$BOOT_JDK" 22319 new_path=`$CYGPATH -u "$path"` 22320 22321 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22322 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22323 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22324 # "foo.exe" is OK but "foo" is an error. 22325 # 22326 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22327 # It is also a way to make sure we got the proper file name for the real test later on. 22328 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22329 if test "x$test_shortpath" = x; then 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22331 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22332 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22333 fi 22334 22335 # Call helper function which possibly converts this using DOS-style short mode. 22336 # If so, the updated path is stored in $new_path. 22337 22338 input_path="$new_path" 22339 # Check if we need to convert this using DOS-style short mode. If the path 22340 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22341 # take no chances and rewrite it. 22342 # Note: m4 eats our [], so we need to use [ and ] instead. 22343 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22344 if test "x$has_forbidden_chars" != x; then 22345 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22346 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22347 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22348 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22349 # Going to short mode and back again did indeed matter. Since short mode is 22350 # case insensitive, let's make it lowercase to improve readability. 22351 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22352 # Now convert it back to Unix-style (cygpath) 22353 input_path=`$CYGPATH -u "$shortmode_path"` 22354 new_path="$input_path" 22355 fi 22356 fi 22357 22358 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22359 if test "x$test_cygdrive_prefix" = x; then 22360 # As a simple fix, exclude /usr/bin since it's not a real path. 22361 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22362 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22363 # a path prefixed by /cygdrive for fixpath to work. 22364 new_path="$CYGWIN_ROOT_PATH$input_path" 22365 fi 22366 fi 22367 22368 22369 if test "x$path" != "x$new_path"; then 22370 BOOT_JDK="$new_path" 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22372 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22373 fi 22374 22375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22376 22377 path="$BOOT_JDK" 22378 has_colon=`$ECHO $path | $GREP ^.:` 22379 new_path="$path" 22380 if test "x$has_colon" = x; then 22381 # Not in mixed or Windows style, start by that. 22382 new_path=`cmd //c echo $path` 22383 fi 22384 22385 22386 input_path="$new_path" 22387 # Check if we need to convert this using DOS-style short mode. If the path 22388 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22389 # take no chances and rewrite it. 22390 # Note: m4 eats our [], so we need to use [ and ] instead. 22391 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22392 if test "x$has_forbidden_chars" != x; then 22393 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22394 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22395 fi 22396 22397 22398 windows_path="$new_path" 22399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22400 unix_path=`$CYGPATH -u "$windows_path"` 22401 new_path="$unix_path" 22402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22404 new_path="$unix_path" 22405 fi 22406 22407 if test "x$path" != "x$new_path"; then 22408 BOOT_JDK="$new_path" 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22411 fi 22412 22413 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22414 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22415 22416 else 22417 # We're on a posix platform. Hooray! :) 22418 path="$BOOT_JDK" 22419 has_space=`$ECHO "$path" | $GREP " "` 22420 if test "x$has_space" != x; then 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22422 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22423 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22424 fi 22425 22426 # Use eval to expand a potential ~ 22427 eval path="$path" 22428 if test ! -f "$path" && test ! -d "$path"; then 22429 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22430 fi 22431 22432 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22433 fi 22434 22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22436 $as_echo_n "checking for Boot JDK... " >&6; } 22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22438 $as_echo "$BOOT_JDK" >&6; } 22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22440 $as_echo_n "checking Boot JDK version... " >&6; } 22441 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22443 $as_echo "$BOOT_JDK_VERSION" >&6; } 22444 fi # end check jdk version 22445 fi # end check rt.jar 22446 fi # end check javac 22447 fi # end check java 22448 fi # end check boot jdk found 22449 fi 22450 22451 22452 if test "x$BOOT_JDK_FOUND" = xno; then 22453 # Now execute the test 22454 22455 if test "x$ProgramFiles" != x; then 22456 VIRTUAL_DIR="$ProgramFiles/Java" 22457 22458 windows_path="$VIRTUAL_DIR" 22459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22460 unix_path=`$CYGPATH -u "$windows_path"` 22461 VIRTUAL_DIR="$unix_path" 22462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22464 VIRTUAL_DIR="$unix_path" 22465 fi 22466 22467 22468 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22469 BOOT_JDK_SUFFIX="" 22470 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22471 if test "x$ALL_JDKS_FOUND" != x; then 22472 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22473 22474 if test "x$BOOT_JDK_FOUND" = xno; then 22475 # Now execute the test 22476 22477 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22478 if test -d "$BOOT_JDK"; then 22479 BOOT_JDK_FOUND=maybe 22480 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22481 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22482 fi 22483 22484 22485 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22486 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22487 # Do we have a bin/java? 22488 if test ! -x "$BOOT_JDK/bin/java"; then 22489 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22490 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22491 BOOT_JDK_FOUND=no 22492 else 22493 # Do we have a bin/javac? 22494 if test ! -x "$BOOT_JDK/bin/javac"; then 22495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22498 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22499 BOOT_JDK_FOUND=no 22500 else 22501 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22502 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22505 BOOT_JDK_FOUND=no 22506 else 22507 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22508 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22509 22510 # Extra M4 quote needed to protect [] in grep expression. 22511 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22512 if test "x$FOUND_VERSION_78" = x; then 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22515 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22516 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22517 BOOT_JDK_FOUND=no 22518 else 22519 # We're done! :-) 22520 BOOT_JDK_FOUND=yes 22521 22522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22523 22524 # Input might be given as Windows format, start by converting to 22525 # unix format. 22526 path="$BOOT_JDK" 22527 new_path=`$CYGPATH -u "$path"` 22528 22529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22532 # "foo.exe" is OK but "foo" is an error. 22533 # 22534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22535 # It is also a way to make sure we got the proper file name for the real test later on. 22536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22537 if test "x$test_shortpath" = x; then 22538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22539 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22540 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22541 fi 22542 22543 # Call helper function which possibly converts this using DOS-style short mode. 22544 # If so, the updated path is stored in $new_path. 22545 22546 input_path="$new_path" 22547 # Check if we need to convert this using DOS-style short mode. If the path 22548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22549 # take no chances and rewrite it. 22550 # Note: m4 eats our [], so we need to use [ and ] instead. 22551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22552 if test "x$has_forbidden_chars" != x; then 22553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22557 # Going to short mode and back again did indeed matter. Since short mode is 22558 # case insensitive, let's make it lowercase to improve readability. 22559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22560 # Now convert it back to Unix-style (cygpath) 22561 input_path=`$CYGPATH -u "$shortmode_path"` 22562 new_path="$input_path" 22563 fi 22564 fi 22565 22566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22567 if test "x$test_cygdrive_prefix" = x; then 22568 # As a simple fix, exclude /usr/bin since it's not a real path. 22569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22571 # a path prefixed by /cygdrive for fixpath to work. 22572 new_path="$CYGWIN_ROOT_PATH$input_path" 22573 fi 22574 fi 22575 22576 22577 if test "x$path" != "x$new_path"; then 22578 BOOT_JDK="$new_path" 22579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22580 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22581 fi 22582 22583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22584 22585 path="$BOOT_JDK" 22586 has_colon=`$ECHO $path | $GREP ^.:` 22587 new_path="$path" 22588 if test "x$has_colon" = x; then 22589 # Not in mixed or Windows style, start by that. 22590 new_path=`cmd //c echo $path` 22591 fi 22592 22593 22594 input_path="$new_path" 22595 # Check if we need to convert this using DOS-style short mode. If the path 22596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22597 # take no chances and rewrite it. 22598 # Note: m4 eats our [], so we need to use [ and ] instead. 22599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22600 if test "x$has_forbidden_chars" != x; then 22601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22603 fi 22604 22605 22606 windows_path="$new_path" 22607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22608 unix_path=`$CYGPATH -u "$windows_path"` 22609 new_path="$unix_path" 22610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22612 new_path="$unix_path" 22613 fi 22614 22615 if test "x$path" != "x$new_path"; then 22616 BOOT_JDK="$new_path" 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22618 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22619 fi 22620 22621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22623 22624 else 22625 # We're on a posix platform. Hooray! :) 22626 path="$BOOT_JDK" 22627 has_space=`$ECHO "$path" | $GREP " "` 22628 if test "x$has_space" != x; then 22629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22630 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22632 fi 22633 22634 # Use eval to expand a potential ~ 22635 eval path="$path" 22636 if test ! -f "$path" && test ! -d "$path"; then 22637 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22638 fi 22639 22640 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22641 fi 22642 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22644 $as_echo_n "checking for Boot JDK... " >&6; } 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22646 $as_echo "$BOOT_JDK" >&6; } 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22648 $as_echo_n "checking Boot JDK version... " >&6; } 22649 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22651 $as_echo "$BOOT_JDK_VERSION" >&6; } 22652 fi # end check jdk version 22653 fi # end check rt.jar 22654 fi # end check javac 22655 fi # end check java 22656 fi # end check boot jdk found 22657 fi 22658 22659 done 22660 fi 22661 22662 fi 22663 22664 22665 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22666 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22667 # Do we have a bin/java? 22668 if test ! -x "$BOOT_JDK/bin/java"; then 22669 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22670 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22671 BOOT_JDK_FOUND=no 22672 else 22673 # Do we have a bin/javac? 22674 if test ! -x "$BOOT_JDK/bin/javac"; then 22675 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22678 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22679 BOOT_JDK_FOUND=no 22680 else 22681 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22682 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22684 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22685 BOOT_JDK_FOUND=no 22686 else 22687 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22688 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22689 22690 # Extra M4 quote needed to protect [] in grep expression. 22691 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22692 if test "x$FOUND_VERSION_78" = x; then 22693 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22695 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22696 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22697 BOOT_JDK_FOUND=no 22698 else 22699 # We're done! :-) 22700 BOOT_JDK_FOUND=yes 22701 22702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22703 22704 # Input might be given as Windows format, start by converting to 22705 # unix format. 22706 path="$BOOT_JDK" 22707 new_path=`$CYGPATH -u "$path"` 22708 22709 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22710 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22711 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22712 # "foo.exe" is OK but "foo" is an error. 22713 # 22714 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22715 # It is also a way to make sure we got the proper file name for the real test later on. 22716 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22717 if test "x$test_shortpath" = x; then 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22719 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22720 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22721 fi 22722 22723 # Call helper function which possibly converts this using DOS-style short mode. 22724 # If so, the updated path is stored in $new_path. 22725 22726 input_path="$new_path" 22727 # Check if we need to convert this using DOS-style short mode. If the path 22728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22729 # take no chances and rewrite it. 22730 # Note: m4 eats our [], so we need to use [ and ] instead. 22731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22732 if test "x$has_forbidden_chars" != x; then 22733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22734 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22735 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22736 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22737 # Going to short mode and back again did indeed matter. Since short mode is 22738 # case insensitive, let's make it lowercase to improve readability. 22739 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22740 # Now convert it back to Unix-style (cygpath) 22741 input_path=`$CYGPATH -u "$shortmode_path"` 22742 new_path="$input_path" 22743 fi 22744 fi 22745 22746 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22747 if test "x$test_cygdrive_prefix" = x; then 22748 # As a simple fix, exclude /usr/bin since it's not a real path. 22749 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22750 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22751 # a path prefixed by /cygdrive for fixpath to work. 22752 new_path="$CYGWIN_ROOT_PATH$input_path" 22753 fi 22754 fi 22755 22756 22757 if test "x$path" != "x$new_path"; then 22758 BOOT_JDK="$new_path" 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22760 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22761 fi 22762 22763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22764 22765 path="$BOOT_JDK" 22766 has_colon=`$ECHO $path | $GREP ^.:` 22767 new_path="$path" 22768 if test "x$has_colon" = x; then 22769 # Not in mixed or Windows style, start by that. 22770 new_path=`cmd //c echo $path` 22771 fi 22772 22773 22774 input_path="$new_path" 22775 # Check if we need to convert this using DOS-style short mode. If the path 22776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22777 # take no chances and rewrite it. 22778 # Note: m4 eats our [], so we need to use [ and ] instead. 22779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22780 if test "x$has_forbidden_chars" != x; then 22781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22782 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22783 fi 22784 22785 22786 windows_path="$new_path" 22787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22788 unix_path=`$CYGPATH -u "$windows_path"` 22789 new_path="$unix_path" 22790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22792 new_path="$unix_path" 22793 fi 22794 22795 if test "x$path" != "x$new_path"; then 22796 BOOT_JDK="$new_path" 22797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22798 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22799 fi 22800 22801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22803 22804 else 22805 # We're on a posix platform. Hooray! :) 22806 path="$BOOT_JDK" 22807 has_space=`$ECHO "$path" | $GREP " "` 22808 if test "x$has_space" != x; then 22809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22810 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22811 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22812 fi 22813 22814 # Use eval to expand a potential ~ 22815 eval path="$path" 22816 if test ! -f "$path" && test ! -d "$path"; then 22817 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22818 fi 22819 22820 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22821 fi 22822 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22824 $as_echo_n "checking for Boot JDK... " >&6; } 22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22826 $as_echo "$BOOT_JDK" >&6; } 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22828 $as_echo_n "checking Boot JDK version... " >&6; } 22829 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22831 $as_echo "$BOOT_JDK_VERSION" >&6; } 22832 fi # end check jdk version 22833 fi # end check rt.jar 22834 fi # end check javac 22835 fi # end check java 22836 fi # end check boot jdk found 22837 fi 22838 22839 22840 if test "x$BOOT_JDK_FOUND" = xno; then 22841 # Now execute the test 22842 22843 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22844 BOOT_JDK_SUFFIX="" 22845 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22846 if test "x$ALL_JDKS_FOUND" != x; then 22847 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22848 22849 if test "x$BOOT_JDK_FOUND" = xno; then 22850 # Now execute the test 22851 22852 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22853 if test -d "$BOOT_JDK"; then 22854 BOOT_JDK_FOUND=maybe 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22856 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22857 fi 22858 22859 22860 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22861 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22862 # Do we have a bin/java? 22863 if test ! -x "$BOOT_JDK/bin/java"; then 22864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22866 BOOT_JDK_FOUND=no 22867 else 22868 # Do we have a bin/javac? 22869 if test ! -x "$BOOT_JDK/bin/javac"; then 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22872 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22873 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22874 BOOT_JDK_FOUND=no 22875 else 22876 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22877 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22878 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22879 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22880 BOOT_JDK_FOUND=no 22881 else 22882 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22883 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22884 22885 # Extra M4 quote needed to protect [] in grep expression. 22886 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22887 if test "x$FOUND_VERSION_78" = x; then 22888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22890 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22891 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22892 BOOT_JDK_FOUND=no 22893 else 22894 # We're done! :-) 22895 BOOT_JDK_FOUND=yes 22896 22897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22898 22899 # Input might be given as Windows format, start by converting to 22900 # unix format. 22901 path="$BOOT_JDK" 22902 new_path=`$CYGPATH -u "$path"` 22903 22904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22907 # "foo.exe" is OK but "foo" is an error. 22908 # 22909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22910 # It is also a way to make sure we got the proper file name for the real test later on. 22911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22912 if test "x$test_shortpath" = x; then 22913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22915 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22916 fi 22917 22918 # Call helper function which possibly converts this using DOS-style short mode. 22919 # If so, the updated path is stored in $new_path. 22920 22921 input_path="$new_path" 22922 # Check if we need to convert this using DOS-style short mode. If the path 22923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22924 # take no chances and rewrite it. 22925 # Note: m4 eats our [], so we need to use [ and ] instead. 22926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22927 if test "x$has_forbidden_chars" != x; then 22928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22932 # Going to short mode and back again did indeed matter. Since short mode is 22933 # case insensitive, let's make it lowercase to improve readability. 22934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22935 # Now convert it back to Unix-style (cygpath) 22936 input_path=`$CYGPATH -u "$shortmode_path"` 22937 new_path="$input_path" 22938 fi 22939 fi 22940 22941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22942 if test "x$test_cygdrive_prefix" = x; then 22943 # As a simple fix, exclude /usr/bin since it's not a real path. 22944 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22946 # a path prefixed by /cygdrive for fixpath to work. 22947 new_path="$CYGWIN_ROOT_PATH$input_path" 22948 fi 22949 fi 22950 22951 22952 if test "x$path" != "x$new_path"; then 22953 BOOT_JDK="$new_path" 22954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22956 fi 22957 22958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22959 22960 path="$BOOT_JDK" 22961 has_colon=`$ECHO $path | $GREP ^.:` 22962 new_path="$path" 22963 if test "x$has_colon" = x; then 22964 # Not in mixed or Windows style, start by that. 22965 new_path=`cmd //c echo $path` 22966 fi 22967 22968 22969 input_path="$new_path" 22970 # Check if we need to convert this using DOS-style short mode. If the path 22971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22972 # take no chances and rewrite it. 22973 # Note: m4 eats our [], so we need to use [ and ] instead. 22974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22975 if test "x$has_forbidden_chars" != x; then 22976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22978 fi 22979 22980 22981 windows_path="$new_path" 22982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22983 unix_path=`$CYGPATH -u "$windows_path"` 22984 new_path="$unix_path" 22985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22987 new_path="$unix_path" 22988 fi 22989 22990 if test "x$path" != "x$new_path"; then 22991 BOOT_JDK="$new_path" 22992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22993 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22994 fi 22995 22996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22998 22999 else 23000 # We're on a posix platform. Hooray! :) 23001 path="$BOOT_JDK" 23002 has_space=`$ECHO "$path" | $GREP " "` 23003 if test "x$has_space" != x; then 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23005 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23006 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23007 fi 23008 23009 # Use eval to expand a potential ~ 23010 eval path="$path" 23011 if test ! -f "$path" && test ! -d "$path"; then 23012 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23013 fi 23014 23015 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23016 fi 23017 23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23019 $as_echo_n "checking for Boot JDK... " >&6; } 23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23021 $as_echo "$BOOT_JDK" >&6; } 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23023 $as_echo_n "checking Boot JDK version... " >&6; } 23024 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23026 $as_echo "$BOOT_JDK_VERSION" >&6; } 23027 fi # end check jdk version 23028 fi # end check rt.jar 23029 fi # end check javac 23030 fi # end check java 23031 fi # end check boot jdk found 23032 fi 23033 23034 done 23035 fi 23036 23037 23038 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23039 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23040 # Do we have a bin/java? 23041 if test ! -x "$BOOT_JDK/bin/java"; then 23042 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23044 BOOT_JDK_FOUND=no 23045 else 23046 # Do we have a bin/javac? 23047 if test ! -x "$BOOT_JDK/bin/javac"; then 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23050 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23051 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23052 BOOT_JDK_FOUND=no 23053 else 23054 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23055 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23058 BOOT_JDK_FOUND=no 23059 else 23060 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23061 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23062 23063 # Extra M4 quote needed to protect [] in grep expression. 23064 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23065 if test "x$FOUND_VERSION_78" = x; then 23066 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23068 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23069 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23070 BOOT_JDK_FOUND=no 23071 else 23072 # We're done! :-) 23073 BOOT_JDK_FOUND=yes 23074 23075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23076 23077 # Input might be given as Windows format, start by converting to 23078 # unix format. 23079 path="$BOOT_JDK" 23080 new_path=`$CYGPATH -u "$path"` 23081 23082 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23083 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23084 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23085 # "foo.exe" is OK but "foo" is an error. 23086 # 23087 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23088 # It is also a way to make sure we got the proper file name for the real test later on. 23089 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23090 if test "x$test_shortpath" = x; then 23091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23092 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23093 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23094 fi 23095 23096 # Call helper function which possibly converts this using DOS-style short mode. 23097 # If so, the updated path is stored in $new_path. 23098 23099 input_path="$new_path" 23100 # Check if we need to convert this using DOS-style short mode. If the path 23101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23102 # take no chances and rewrite it. 23103 # Note: m4 eats our [], so we need to use [ and ] instead. 23104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23105 if test "x$has_forbidden_chars" != x; then 23106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23107 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23108 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23109 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23110 # Going to short mode and back again did indeed matter. Since short mode is 23111 # case insensitive, let's make it lowercase to improve readability. 23112 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23113 # Now convert it back to Unix-style (cygpath) 23114 input_path=`$CYGPATH -u "$shortmode_path"` 23115 new_path="$input_path" 23116 fi 23117 fi 23118 23119 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23120 if test "x$test_cygdrive_prefix" = x; then 23121 # As a simple fix, exclude /usr/bin since it's not a real path. 23122 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23123 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23124 # a path prefixed by /cygdrive for fixpath to work. 23125 new_path="$CYGWIN_ROOT_PATH$input_path" 23126 fi 23127 fi 23128 23129 23130 if test "x$path" != "x$new_path"; then 23131 BOOT_JDK="$new_path" 23132 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23133 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23134 fi 23135 23136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23137 23138 path="$BOOT_JDK" 23139 has_colon=`$ECHO $path | $GREP ^.:` 23140 new_path="$path" 23141 if test "x$has_colon" = x; then 23142 # Not in mixed or Windows style, start by that. 23143 new_path=`cmd //c echo $path` 23144 fi 23145 23146 23147 input_path="$new_path" 23148 # Check if we need to convert this using DOS-style short mode. If the path 23149 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23150 # take no chances and rewrite it. 23151 # Note: m4 eats our [], so we need to use [ and ] instead. 23152 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23153 if test "x$has_forbidden_chars" != x; then 23154 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23155 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23156 fi 23157 23158 23159 windows_path="$new_path" 23160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23161 unix_path=`$CYGPATH -u "$windows_path"` 23162 new_path="$unix_path" 23163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23165 new_path="$unix_path" 23166 fi 23167 23168 if test "x$path" != "x$new_path"; then 23169 BOOT_JDK="$new_path" 23170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23171 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23172 fi 23173 23174 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23175 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23176 23177 else 23178 # We're on a posix platform. Hooray! :) 23179 path="$BOOT_JDK" 23180 has_space=`$ECHO "$path" | $GREP " "` 23181 if test "x$has_space" != x; then 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23183 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23184 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23185 fi 23186 23187 # Use eval to expand a potential ~ 23188 eval path="$path" 23189 if test ! -f "$path" && test ! -d "$path"; then 23190 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23191 fi 23192 23193 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23194 fi 23195 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23197 $as_echo_n "checking for Boot JDK... " >&6; } 23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23199 $as_echo "$BOOT_JDK" >&6; } 23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23201 $as_echo_n "checking Boot JDK version... " >&6; } 23202 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23204 $as_echo "$BOOT_JDK_VERSION" >&6; } 23205 fi # end check jdk version 23206 fi # end check rt.jar 23207 fi # end check javac 23208 fi # end check java 23209 fi # end check boot jdk found 23210 fi 23211 23212 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23213 23214 if test "x$BOOT_JDK_FOUND" = xno; then 23215 # Now execute the test 23216 23217 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23218 BOOT_JDK_SUFFIX="/Contents/Home" 23219 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23220 if test "x$ALL_JDKS_FOUND" != x; then 23221 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23222 23223 if test "x$BOOT_JDK_FOUND" = xno; then 23224 # Now execute the test 23225 23226 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23227 if test -d "$BOOT_JDK"; then 23228 BOOT_JDK_FOUND=maybe 23229 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23230 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23231 fi 23232 23233 23234 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23235 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23236 # Do we have a bin/java? 23237 if test ! -x "$BOOT_JDK/bin/java"; then 23238 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23240 BOOT_JDK_FOUND=no 23241 else 23242 # Do we have a bin/javac? 23243 if test ! -x "$BOOT_JDK/bin/javac"; then 23244 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23246 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23247 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23248 BOOT_JDK_FOUND=no 23249 else 23250 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23251 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23254 BOOT_JDK_FOUND=no 23255 else 23256 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23257 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23258 23259 # Extra M4 quote needed to protect [] in grep expression. 23260 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23261 if test "x$FOUND_VERSION_78" = x; then 23262 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23263 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23265 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23266 BOOT_JDK_FOUND=no 23267 else 23268 # We're done! :-) 23269 BOOT_JDK_FOUND=yes 23270 23271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23272 23273 # Input might be given as Windows format, start by converting to 23274 # unix format. 23275 path="$BOOT_JDK" 23276 new_path=`$CYGPATH -u "$path"` 23277 23278 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23279 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23280 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23281 # "foo.exe" is OK but "foo" is an error. 23282 # 23283 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23284 # It is also a way to make sure we got the proper file name for the real test later on. 23285 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23286 if test "x$test_shortpath" = x; then 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23288 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23289 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23290 fi 23291 23292 # Call helper function which possibly converts this using DOS-style short mode. 23293 # If so, the updated path is stored in $new_path. 23294 23295 input_path="$new_path" 23296 # Check if we need to convert this using DOS-style short mode. If the path 23297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23298 # take no chances and rewrite it. 23299 # Note: m4 eats our [], so we need to use [ and ] instead. 23300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23301 if test "x$has_forbidden_chars" != x; then 23302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23303 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23304 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23305 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23306 # Going to short mode and back again did indeed matter. Since short mode is 23307 # case insensitive, let's make it lowercase to improve readability. 23308 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23309 # Now convert it back to Unix-style (cygpath) 23310 input_path=`$CYGPATH -u "$shortmode_path"` 23311 new_path="$input_path" 23312 fi 23313 fi 23314 23315 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23316 if test "x$test_cygdrive_prefix" = x; then 23317 # As a simple fix, exclude /usr/bin since it's not a real path. 23318 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23319 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23320 # a path prefixed by /cygdrive for fixpath to work. 23321 new_path="$CYGWIN_ROOT_PATH$input_path" 23322 fi 23323 fi 23324 23325 23326 if test "x$path" != "x$new_path"; then 23327 BOOT_JDK="$new_path" 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23329 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23330 fi 23331 23332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23333 23334 path="$BOOT_JDK" 23335 has_colon=`$ECHO $path | $GREP ^.:` 23336 new_path="$path" 23337 if test "x$has_colon" = x; then 23338 # Not in mixed or Windows style, start by that. 23339 new_path=`cmd //c echo $path` 23340 fi 23341 23342 23343 input_path="$new_path" 23344 # Check if we need to convert this using DOS-style short mode. If the path 23345 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23346 # take no chances and rewrite it. 23347 # Note: m4 eats our [], so we need to use [ and ] instead. 23348 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23349 if test "x$has_forbidden_chars" != x; then 23350 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23351 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23352 fi 23353 23354 23355 windows_path="$new_path" 23356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23357 unix_path=`$CYGPATH -u "$windows_path"` 23358 new_path="$unix_path" 23359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23361 new_path="$unix_path" 23362 fi 23363 23364 if test "x$path" != "x$new_path"; then 23365 BOOT_JDK="$new_path" 23366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23367 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23368 fi 23369 23370 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23371 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23372 23373 else 23374 # We're on a posix platform. Hooray! :) 23375 path="$BOOT_JDK" 23376 has_space=`$ECHO "$path" | $GREP " "` 23377 if test "x$has_space" != x; then 23378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23379 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23380 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23381 fi 23382 23383 # Use eval to expand a potential ~ 23384 eval path="$path" 23385 if test ! -f "$path" && test ! -d "$path"; then 23386 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23387 fi 23388 23389 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23390 fi 23391 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23393 $as_echo_n "checking for Boot JDK... " >&6; } 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23395 $as_echo "$BOOT_JDK" >&6; } 23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23397 $as_echo_n "checking Boot JDK version... " >&6; } 23398 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23400 $as_echo "$BOOT_JDK_VERSION" >&6; } 23401 fi # end check jdk version 23402 fi # end check rt.jar 23403 fi # end check javac 23404 fi # end check java 23405 fi # end check boot jdk found 23406 fi 23407 23408 done 23409 fi 23410 23411 23412 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23413 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23414 # Do we have a bin/java? 23415 if test ! -x "$BOOT_JDK/bin/java"; then 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23418 BOOT_JDK_FOUND=no 23419 else 23420 # Do we have a bin/javac? 23421 if test ! -x "$BOOT_JDK/bin/javac"; then 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23424 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23425 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23426 BOOT_JDK_FOUND=no 23427 else 23428 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23429 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23431 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23432 BOOT_JDK_FOUND=no 23433 else 23434 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23435 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23436 23437 # Extra M4 quote needed to protect [] in grep expression. 23438 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23439 if test "x$FOUND_VERSION_78" = x; then 23440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23443 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23444 BOOT_JDK_FOUND=no 23445 else 23446 # We're done! :-) 23447 BOOT_JDK_FOUND=yes 23448 23449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23450 23451 # Input might be given as Windows format, start by converting to 23452 # unix format. 23453 path="$BOOT_JDK" 23454 new_path=`$CYGPATH -u "$path"` 23455 23456 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23457 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23458 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23459 # "foo.exe" is OK but "foo" is an error. 23460 # 23461 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23462 # It is also a way to make sure we got the proper file name for the real test later on. 23463 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23464 if test "x$test_shortpath" = x; then 23465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23466 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23467 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23468 fi 23469 23470 # Call helper function which possibly converts this using DOS-style short mode. 23471 # If so, the updated path is stored in $new_path. 23472 23473 input_path="$new_path" 23474 # Check if we need to convert this using DOS-style short mode. If the path 23475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23476 # take no chances and rewrite it. 23477 # Note: m4 eats our [], so we need to use [ and ] instead. 23478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23479 if test "x$has_forbidden_chars" != x; then 23480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23481 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23482 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23483 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23484 # Going to short mode and back again did indeed matter. Since short mode is 23485 # case insensitive, let's make it lowercase to improve readability. 23486 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23487 # Now convert it back to Unix-style (cygpath) 23488 input_path=`$CYGPATH -u "$shortmode_path"` 23489 new_path="$input_path" 23490 fi 23491 fi 23492 23493 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23494 if test "x$test_cygdrive_prefix" = x; then 23495 # As a simple fix, exclude /usr/bin since it's not a real path. 23496 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23497 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23498 # a path prefixed by /cygdrive for fixpath to work. 23499 new_path="$CYGWIN_ROOT_PATH$input_path" 23500 fi 23501 fi 23502 23503 23504 if test "x$path" != "x$new_path"; then 23505 BOOT_JDK="$new_path" 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23507 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23508 fi 23509 23510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23511 23512 path="$BOOT_JDK" 23513 has_colon=`$ECHO $path | $GREP ^.:` 23514 new_path="$path" 23515 if test "x$has_colon" = x; then 23516 # Not in mixed or Windows style, start by that. 23517 new_path=`cmd //c echo $path` 23518 fi 23519 23520 23521 input_path="$new_path" 23522 # Check if we need to convert this using DOS-style short mode. If the path 23523 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23524 # take no chances and rewrite it. 23525 # Note: m4 eats our [], so we need to use [ and ] instead. 23526 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23527 if test "x$has_forbidden_chars" != x; then 23528 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23529 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23530 fi 23531 23532 23533 windows_path="$new_path" 23534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23535 unix_path=`$CYGPATH -u "$windows_path"` 23536 new_path="$unix_path" 23537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23539 new_path="$unix_path" 23540 fi 23541 23542 if test "x$path" != "x$new_path"; then 23543 BOOT_JDK="$new_path" 23544 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23545 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23546 fi 23547 23548 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23549 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23550 23551 else 23552 # We're on a posix platform. Hooray! :) 23553 path="$BOOT_JDK" 23554 has_space=`$ECHO "$path" | $GREP " "` 23555 if test "x$has_space" != x; then 23556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23557 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23558 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23559 fi 23560 23561 # Use eval to expand a potential ~ 23562 eval path="$path" 23563 if test ! -f "$path" && test ! -d "$path"; then 23564 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23565 fi 23566 23567 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23568 fi 23569 23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23571 $as_echo_n "checking for Boot JDK... " >&6; } 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23573 $as_echo "$BOOT_JDK" >&6; } 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23575 $as_echo_n "checking Boot JDK version... " >&6; } 23576 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23578 $as_echo "$BOOT_JDK_VERSION" >&6; } 23579 fi # end check jdk version 23580 fi # end check rt.jar 23581 fi # end check javac 23582 fi # end check java 23583 fi # end check boot jdk found 23584 fi 23585 23586 23587 if test "x$BOOT_JDK_FOUND" = xno; then 23588 # Now execute the test 23589 23590 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23591 BOOT_JDK_SUFFIX="/Contents/Home" 23592 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23593 if test "x$ALL_JDKS_FOUND" != x; then 23594 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23595 23596 if test "x$BOOT_JDK_FOUND" = xno; then 23597 # Now execute the test 23598 23599 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23600 if test -d "$BOOT_JDK"; then 23601 BOOT_JDK_FOUND=maybe 23602 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23603 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23604 fi 23605 23606 23607 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23608 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23609 # Do we have a bin/java? 23610 if test ! -x "$BOOT_JDK/bin/java"; then 23611 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23613 BOOT_JDK_FOUND=no 23614 else 23615 # Do we have a bin/javac? 23616 if test ! -x "$BOOT_JDK/bin/javac"; then 23617 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23620 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23621 BOOT_JDK_FOUND=no 23622 else 23623 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23624 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23627 BOOT_JDK_FOUND=no 23628 else 23629 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23630 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23631 23632 # Extra M4 quote needed to protect [] in grep expression. 23633 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23634 if test "x$FOUND_VERSION_78" = x; then 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23638 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23639 BOOT_JDK_FOUND=no 23640 else 23641 # We're done! :-) 23642 BOOT_JDK_FOUND=yes 23643 23644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23645 23646 # Input might be given as Windows format, start by converting to 23647 # unix format. 23648 path="$BOOT_JDK" 23649 new_path=`$CYGPATH -u "$path"` 23650 23651 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23652 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23653 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23654 # "foo.exe" is OK but "foo" is an error. 23655 # 23656 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23657 # It is also a way to make sure we got the proper file name for the real test later on. 23658 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23659 if test "x$test_shortpath" = x; then 23660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23661 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23662 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23663 fi 23664 23665 # Call helper function which possibly converts this using DOS-style short mode. 23666 # If so, the updated path is stored in $new_path. 23667 23668 input_path="$new_path" 23669 # Check if we need to convert this using DOS-style short mode. If the path 23670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23671 # take no chances and rewrite it. 23672 # Note: m4 eats our [], so we need to use [ and ] instead. 23673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23674 if test "x$has_forbidden_chars" != x; then 23675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23679 # Going to short mode and back again did indeed matter. Since short mode is 23680 # case insensitive, let's make it lowercase to improve readability. 23681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23682 # Now convert it back to Unix-style (cygpath) 23683 input_path=`$CYGPATH -u "$shortmode_path"` 23684 new_path="$input_path" 23685 fi 23686 fi 23687 23688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23689 if test "x$test_cygdrive_prefix" = x; then 23690 # As a simple fix, exclude /usr/bin since it's not a real path. 23691 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23693 # a path prefixed by /cygdrive for fixpath to work. 23694 new_path="$CYGWIN_ROOT_PATH$input_path" 23695 fi 23696 fi 23697 23698 23699 if test "x$path" != "x$new_path"; then 23700 BOOT_JDK="$new_path" 23701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23703 fi 23704 23705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23706 23707 path="$BOOT_JDK" 23708 has_colon=`$ECHO $path | $GREP ^.:` 23709 new_path="$path" 23710 if test "x$has_colon" = x; then 23711 # Not in mixed or Windows style, start by that. 23712 new_path=`cmd //c echo $path` 23713 fi 23714 23715 23716 input_path="$new_path" 23717 # Check if we need to convert this using DOS-style short mode. If the path 23718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23719 # take no chances and rewrite it. 23720 # Note: m4 eats our [], so we need to use [ and ] instead. 23721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23722 if test "x$has_forbidden_chars" != x; then 23723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23725 fi 23726 23727 23728 windows_path="$new_path" 23729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23730 unix_path=`$CYGPATH -u "$windows_path"` 23731 new_path="$unix_path" 23732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23734 new_path="$unix_path" 23735 fi 23736 23737 if test "x$path" != "x$new_path"; then 23738 BOOT_JDK="$new_path" 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23740 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23741 fi 23742 23743 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23744 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23745 23746 else 23747 # We're on a posix platform. Hooray! :) 23748 path="$BOOT_JDK" 23749 has_space=`$ECHO "$path" | $GREP " "` 23750 if test "x$has_space" != x; then 23751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23752 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23753 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23754 fi 23755 23756 # Use eval to expand a potential ~ 23757 eval path="$path" 23758 if test ! -f "$path" && test ! -d "$path"; then 23759 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23760 fi 23761 23762 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23763 fi 23764 23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23766 $as_echo_n "checking for Boot JDK... " >&6; } 23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23768 $as_echo "$BOOT_JDK" >&6; } 23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23770 $as_echo_n "checking Boot JDK version... " >&6; } 23771 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23773 $as_echo "$BOOT_JDK_VERSION" >&6; } 23774 fi # end check jdk version 23775 fi # end check rt.jar 23776 fi # end check javac 23777 fi # end check java 23778 fi # end check boot jdk found 23779 fi 23780 23781 done 23782 fi 23783 23784 23785 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23786 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23787 # Do we have a bin/java? 23788 if test ! -x "$BOOT_JDK/bin/java"; then 23789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23791 BOOT_JDK_FOUND=no 23792 else 23793 # Do we have a bin/javac? 23794 if test ! -x "$BOOT_JDK/bin/javac"; then 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23798 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23799 BOOT_JDK_FOUND=no 23800 else 23801 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23802 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23803 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23805 BOOT_JDK_FOUND=no 23806 else 23807 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23808 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23809 23810 # Extra M4 quote needed to protect [] in grep expression. 23811 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23812 if test "x$FOUND_VERSION_78" = x; then 23813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23815 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23816 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23817 BOOT_JDK_FOUND=no 23818 else 23819 # We're done! :-) 23820 BOOT_JDK_FOUND=yes 23821 23822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23823 23824 # Input might be given as Windows format, start by converting to 23825 # unix format. 23826 path="$BOOT_JDK" 23827 new_path=`$CYGPATH -u "$path"` 23828 23829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23832 # "foo.exe" is OK but "foo" is an error. 23833 # 23834 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23835 # It is also a way to make sure we got the proper file name for the real test later on. 23836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23837 if test "x$test_shortpath" = x; then 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23839 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23840 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23841 fi 23842 23843 # Call helper function which possibly converts this using DOS-style short mode. 23844 # If so, the updated path is stored in $new_path. 23845 23846 input_path="$new_path" 23847 # Check if we need to convert this using DOS-style short mode. If the path 23848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23849 # take no chances and rewrite it. 23850 # Note: m4 eats our [], so we need to use [ and ] instead. 23851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23852 if test "x$has_forbidden_chars" != x; then 23853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23857 # Going to short mode and back again did indeed matter. Since short mode is 23858 # case insensitive, let's make it lowercase to improve readability. 23859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23860 # Now convert it back to Unix-style (cygpath) 23861 input_path=`$CYGPATH -u "$shortmode_path"` 23862 new_path="$input_path" 23863 fi 23864 fi 23865 23866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23867 if test "x$test_cygdrive_prefix" = x; then 23868 # As a simple fix, exclude /usr/bin since it's not a real path. 23869 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23871 # a path prefixed by /cygdrive for fixpath to work. 23872 new_path="$CYGWIN_ROOT_PATH$input_path" 23873 fi 23874 fi 23875 23876 23877 if test "x$path" != "x$new_path"; then 23878 BOOT_JDK="$new_path" 23879 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23880 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23881 fi 23882 23883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23884 23885 path="$BOOT_JDK" 23886 has_colon=`$ECHO $path | $GREP ^.:` 23887 new_path="$path" 23888 if test "x$has_colon" = x; then 23889 # Not in mixed or Windows style, start by that. 23890 new_path=`cmd //c echo $path` 23891 fi 23892 23893 23894 input_path="$new_path" 23895 # Check if we need to convert this using DOS-style short mode. If the path 23896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23897 # take no chances and rewrite it. 23898 # Note: m4 eats our [], so we need to use [ and ] instead. 23899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23900 if test "x$has_forbidden_chars" != x; then 23901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23903 fi 23904 23905 23906 windows_path="$new_path" 23907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23908 unix_path=`$CYGPATH -u "$windows_path"` 23909 new_path="$unix_path" 23910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23912 new_path="$unix_path" 23913 fi 23914 23915 if test "x$path" != "x$new_path"; then 23916 BOOT_JDK="$new_path" 23917 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23918 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23919 fi 23920 23921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23923 23924 else 23925 # We're on a posix platform. Hooray! :) 23926 path="$BOOT_JDK" 23927 has_space=`$ECHO "$path" | $GREP " "` 23928 if test "x$has_space" != x; then 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23930 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23931 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23932 fi 23933 23934 # Use eval to expand a potential ~ 23935 eval path="$path" 23936 if test ! -f "$path" && test ! -d "$path"; then 23937 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23938 fi 23939 23940 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23941 fi 23942 23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23944 $as_echo_n "checking for Boot JDK... " >&6; } 23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23946 $as_echo "$BOOT_JDK" >&6; } 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23948 $as_echo_n "checking Boot JDK version... " >&6; } 23949 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23951 $as_echo "$BOOT_JDK_VERSION" >&6; } 23952 fi # end check jdk version 23953 fi # end check rt.jar 23954 fi # end check javac 23955 fi # end check java 23956 fi # end check boot jdk found 23957 fi 23958 23959 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 23960 23961 if test "x$BOOT_JDK_FOUND" = xno; then 23962 # Now execute the test 23963 23964 BOOT_JDK_PREFIX="/usr/lib/jvm" 23965 BOOT_JDK_SUFFIX="" 23966 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23967 if test "x$ALL_JDKS_FOUND" != x; then 23968 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23969 23970 if test "x$BOOT_JDK_FOUND" = xno; then 23971 # Now execute the test 23972 23973 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23974 if test -d "$BOOT_JDK"; then 23975 BOOT_JDK_FOUND=maybe 23976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23977 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23978 fi 23979 23980 23981 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23982 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23983 # Do we have a bin/java? 23984 if test ! -x "$BOOT_JDK/bin/java"; then 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23987 BOOT_JDK_FOUND=no 23988 else 23989 # Do we have a bin/javac? 23990 if test ! -x "$BOOT_JDK/bin/javac"; then 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23993 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23994 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23995 BOOT_JDK_FOUND=no 23996 else 23997 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23998 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23999 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24001 BOOT_JDK_FOUND=no 24002 else 24003 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24004 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24005 24006 # Extra M4 quote needed to protect [] in grep expression. 24007 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24008 if test "x$FOUND_VERSION_78" = x; then 24009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24011 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24012 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24013 BOOT_JDK_FOUND=no 24014 else 24015 # We're done! :-) 24016 BOOT_JDK_FOUND=yes 24017 24018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24019 24020 # Input might be given as Windows format, start by converting to 24021 # unix format. 24022 path="$BOOT_JDK" 24023 new_path=`$CYGPATH -u "$path"` 24024 24025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24028 # "foo.exe" is OK but "foo" is an error. 24029 # 24030 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24031 # It is also a way to make sure we got the proper file name for the real test later on. 24032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24033 if test "x$test_shortpath" = x; then 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24035 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24036 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24037 fi 24038 24039 # Call helper function which possibly converts this using DOS-style short mode. 24040 # If so, the updated path is stored in $new_path. 24041 24042 input_path="$new_path" 24043 # Check if we need to convert this using DOS-style short mode. If the path 24044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24045 # take no chances and rewrite it. 24046 # Note: m4 eats our [], so we need to use [ and ] instead. 24047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24048 if test "x$has_forbidden_chars" != x; then 24049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24053 # Going to short mode and back again did indeed matter. Since short mode is 24054 # case insensitive, let's make it lowercase to improve readability. 24055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24056 # Now convert it back to Unix-style (cygpath) 24057 input_path=`$CYGPATH -u "$shortmode_path"` 24058 new_path="$input_path" 24059 fi 24060 fi 24061 24062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24063 if test "x$test_cygdrive_prefix" = x; then 24064 # As a simple fix, exclude /usr/bin since it's not a real path. 24065 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24067 # a path prefixed by /cygdrive for fixpath to work. 24068 new_path="$CYGWIN_ROOT_PATH$input_path" 24069 fi 24070 fi 24071 24072 24073 if test "x$path" != "x$new_path"; then 24074 BOOT_JDK="$new_path" 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24076 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24077 fi 24078 24079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24080 24081 path="$BOOT_JDK" 24082 has_colon=`$ECHO $path | $GREP ^.:` 24083 new_path="$path" 24084 if test "x$has_colon" = x; then 24085 # Not in mixed or Windows style, start by that. 24086 new_path=`cmd //c echo $path` 24087 fi 24088 24089 24090 input_path="$new_path" 24091 # Check if we need to convert this using DOS-style short mode. If the path 24092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24093 # take no chances and rewrite it. 24094 # Note: m4 eats our [], so we need to use [ and ] instead. 24095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24096 if test "x$has_forbidden_chars" != x; then 24097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24098 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24099 fi 24100 24101 24102 windows_path="$new_path" 24103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24104 unix_path=`$CYGPATH -u "$windows_path"` 24105 new_path="$unix_path" 24106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24108 new_path="$unix_path" 24109 fi 24110 24111 if test "x$path" != "x$new_path"; then 24112 BOOT_JDK="$new_path" 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24115 fi 24116 24117 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24118 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24119 24120 else 24121 # We're on a posix platform. Hooray! :) 24122 path="$BOOT_JDK" 24123 has_space=`$ECHO "$path" | $GREP " "` 24124 if test "x$has_space" != x; then 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24126 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24127 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24128 fi 24129 24130 # Use eval to expand a potential ~ 24131 eval path="$path" 24132 if test ! -f "$path" && test ! -d "$path"; then 24133 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24134 fi 24135 24136 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24137 fi 24138 24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24140 $as_echo_n "checking for Boot JDK... " >&6; } 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24142 $as_echo "$BOOT_JDK" >&6; } 24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24144 $as_echo_n "checking Boot JDK version... " >&6; } 24145 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24147 $as_echo "$BOOT_JDK_VERSION" >&6; } 24148 fi # end check jdk version 24149 fi # end check rt.jar 24150 fi # end check javac 24151 fi # end check java 24152 fi # end check boot jdk found 24153 fi 24154 24155 done 24156 fi 24157 24158 24159 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24160 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24161 # Do we have a bin/java? 24162 if test ! -x "$BOOT_JDK/bin/java"; then 24163 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24165 BOOT_JDK_FOUND=no 24166 else 24167 # Do we have a bin/javac? 24168 if test ! -x "$BOOT_JDK/bin/javac"; then 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24170 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24171 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24172 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24173 BOOT_JDK_FOUND=no 24174 else 24175 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24176 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24177 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24179 BOOT_JDK_FOUND=no 24180 else 24181 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24182 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24183 24184 # Extra M4 quote needed to protect [] in grep expression. 24185 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24186 if test "x$FOUND_VERSION_78" = x; then 24187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24190 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24191 BOOT_JDK_FOUND=no 24192 else 24193 # We're done! :-) 24194 BOOT_JDK_FOUND=yes 24195 24196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24197 24198 # Input might be given as Windows format, start by converting to 24199 # unix format. 24200 path="$BOOT_JDK" 24201 new_path=`$CYGPATH -u "$path"` 24202 24203 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24204 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24205 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24206 # "foo.exe" is OK but "foo" is an error. 24207 # 24208 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24209 # It is also a way to make sure we got the proper file name for the real test later on. 24210 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24211 if test "x$test_shortpath" = x; then 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24213 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24214 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24215 fi 24216 24217 # Call helper function which possibly converts this using DOS-style short mode. 24218 # If so, the updated path is stored in $new_path. 24219 24220 input_path="$new_path" 24221 # Check if we need to convert this using DOS-style short mode. If the path 24222 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24223 # take no chances and rewrite it. 24224 # Note: m4 eats our [], so we need to use [ and ] instead. 24225 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24226 if test "x$has_forbidden_chars" != x; then 24227 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24228 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24229 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24230 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24231 # Going to short mode and back again did indeed matter. Since short mode is 24232 # case insensitive, let's make it lowercase to improve readability. 24233 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24234 # Now convert it back to Unix-style (cygpath) 24235 input_path=`$CYGPATH -u "$shortmode_path"` 24236 new_path="$input_path" 24237 fi 24238 fi 24239 24240 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24241 if test "x$test_cygdrive_prefix" = x; then 24242 # As a simple fix, exclude /usr/bin since it's not a real path. 24243 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24244 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24245 # a path prefixed by /cygdrive for fixpath to work. 24246 new_path="$CYGWIN_ROOT_PATH$input_path" 24247 fi 24248 fi 24249 24250 24251 if test "x$path" != "x$new_path"; then 24252 BOOT_JDK="$new_path" 24253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24255 fi 24256 24257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24258 24259 path="$BOOT_JDK" 24260 has_colon=`$ECHO $path | $GREP ^.:` 24261 new_path="$path" 24262 if test "x$has_colon" = x; then 24263 # Not in mixed or Windows style, start by that. 24264 new_path=`cmd //c echo $path` 24265 fi 24266 24267 24268 input_path="$new_path" 24269 # Check if we need to convert this using DOS-style short mode. If the path 24270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24271 # take no chances and rewrite it. 24272 # Note: m4 eats our [], so we need to use [ and ] instead. 24273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24274 if test "x$has_forbidden_chars" != x; then 24275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24276 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24277 fi 24278 24279 24280 windows_path="$new_path" 24281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24282 unix_path=`$CYGPATH -u "$windows_path"` 24283 new_path="$unix_path" 24284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24286 new_path="$unix_path" 24287 fi 24288 24289 if test "x$path" != "x$new_path"; then 24290 BOOT_JDK="$new_path" 24291 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24292 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24293 fi 24294 24295 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24296 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24297 24298 else 24299 # We're on a posix platform. Hooray! :) 24300 path="$BOOT_JDK" 24301 has_space=`$ECHO "$path" | $GREP " "` 24302 if test "x$has_space" != x; then 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24304 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24305 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24306 fi 24307 24308 # Use eval to expand a potential ~ 24309 eval path="$path" 24310 if test ! -f "$path" && test ! -d "$path"; then 24311 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24312 fi 24313 24314 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24315 fi 24316 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24318 $as_echo_n "checking for Boot JDK... " >&6; } 24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24320 $as_echo "$BOOT_JDK" >&6; } 24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24322 $as_echo_n "checking Boot JDK version... " >&6; } 24323 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24325 $as_echo "$BOOT_JDK_VERSION" >&6; } 24326 fi # end check jdk version 24327 fi # end check rt.jar 24328 fi # end check javac 24329 fi # end check java 24330 fi # end check boot jdk found 24331 fi 24332 24333 fi 24334 24335 24336 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24337 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24338 # Do we have a bin/java? 24339 if test ! -x "$BOOT_JDK/bin/java"; then 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24342 BOOT_JDK_FOUND=no 24343 else 24344 # Do we have a bin/javac? 24345 if test ! -x "$BOOT_JDK/bin/javac"; then 24346 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24348 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24349 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24350 BOOT_JDK_FOUND=no 24351 else 24352 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24353 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24354 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24355 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24356 BOOT_JDK_FOUND=no 24357 else 24358 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24359 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24360 24361 # Extra M4 quote needed to protect [] in grep expression. 24362 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24363 if test "x$FOUND_VERSION_78" = x; then 24364 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24367 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24368 BOOT_JDK_FOUND=no 24369 else 24370 # We're done! :-) 24371 BOOT_JDK_FOUND=yes 24372 24373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24374 24375 # Input might be given as Windows format, start by converting to 24376 # unix format. 24377 path="$BOOT_JDK" 24378 new_path=`$CYGPATH -u "$path"` 24379 24380 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24381 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24382 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24383 # "foo.exe" is OK but "foo" is an error. 24384 # 24385 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24386 # It is also a way to make sure we got the proper file name for the real test later on. 24387 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24388 if test "x$test_shortpath" = x; then 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24390 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24391 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24392 fi 24393 24394 # Call helper function which possibly converts this using DOS-style short mode. 24395 # If so, the updated path is stored in $new_path. 24396 24397 input_path="$new_path" 24398 # Check if we need to convert this using DOS-style short mode. If the path 24399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24400 # take no chances and rewrite it. 24401 # Note: m4 eats our [], so we need to use [ and ] instead. 24402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24403 if test "x$has_forbidden_chars" != x; then 24404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24405 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24406 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24407 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24408 # Going to short mode and back again did indeed matter. Since short mode is 24409 # case insensitive, let's make it lowercase to improve readability. 24410 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24411 # Now convert it back to Unix-style (cygpath) 24412 input_path=`$CYGPATH -u "$shortmode_path"` 24413 new_path="$input_path" 24414 fi 24415 fi 24416 24417 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24418 if test "x$test_cygdrive_prefix" = x; then 24419 # As a simple fix, exclude /usr/bin since it's not a real path. 24420 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24421 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24422 # a path prefixed by /cygdrive for fixpath to work. 24423 new_path="$CYGWIN_ROOT_PATH$input_path" 24424 fi 24425 fi 24426 24427 24428 if test "x$path" != "x$new_path"; then 24429 BOOT_JDK="$new_path" 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24431 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24432 fi 24433 24434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24435 24436 path="$BOOT_JDK" 24437 has_colon=`$ECHO $path | $GREP ^.:` 24438 new_path="$path" 24439 if test "x$has_colon" = x; then 24440 # Not in mixed or Windows style, start by that. 24441 new_path=`cmd //c echo $path` 24442 fi 24443 24444 24445 input_path="$new_path" 24446 # Check if we need to convert this using DOS-style short mode. If the path 24447 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24448 # take no chances and rewrite it. 24449 # Note: m4 eats our [], so we need to use [ and ] instead. 24450 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24451 if test "x$has_forbidden_chars" != x; then 24452 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24453 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24454 fi 24455 24456 24457 windows_path="$new_path" 24458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24459 unix_path=`$CYGPATH -u "$windows_path"` 24460 new_path="$unix_path" 24461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24462 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24463 new_path="$unix_path" 24464 fi 24465 24466 if test "x$path" != "x$new_path"; then 24467 BOOT_JDK="$new_path" 24468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24469 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24470 fi 24471 24472 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24473 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24474 24475 else 24476 # We're on a posix platform. Hooray! :) 24477 path="$BOOT_JDK" 24478 has_space=`$ECHO "$path" | $GREP " "` 24479 if test "x$has_space" != x; then 24480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24481 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24482 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24483 fi 24484 24485 # Use eval to expand a potential ~ 24486 eval path="$path" 24487 if test ! -f "$path" && test ! -d "$path"; then 24488 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24489 fi 24490 24491 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24492 fi 24493 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24495 $as_echo_n "checking for Boot JDK... " >&6; } 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24497 $as_echo "$BOOT_JDK" >&6; } 24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24499 $as_echo_n "checking Boot JDK version... " >&6; } 24500 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24502 $as_echo "$BOOT_JDK_VERSION" >&6; } 24503 fi # end check jdk version 24504 fi # end check rt.jar 24505 fi # end check javac 24506 fi # end check java 24507 fi # end check boot jdk found 24508 fi 24509 24510 24511 # If we haven't found anything yet, we've truly lost. Give up. 24512 if test "x$BOOT_JDK_FOUND" = xno; then 24513 24514 # Print a helpful message on how to acquire the necessary build dependency. 24515 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24516 MISSING_DEPENDENCY=openjdk 24517 24518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24519 cygwin_help $MISSING_DEPENDENCY 24520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24521 msys_help $MISSING_DEPENDENCY 24522 else 24523 PKGHANDLER_COMMAND= 24524 24525 case $PKGHANDLER in 24526 apt-get) 24527 apt_help $MISSING_DEPENDENCY ;; 24528 yum) 24529 yum_help $MISSING_DEPENDENCY ;; 24530 port) 24531 port_help $MISSING_DEPENDENCY ;; 24532 pkgutil) 24533 pkgutil_help $MISSING_DEPENDENCY ;; 24534 pkgadd) 24535 pkgadd_help $MISSING_DEPENDENCY ;; 24536 esac 24537 24538 if test "x$PKGHANDLER_COMMAND" != x; then 24539 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24540 fi 24541 fi 24542 24543 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24544 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24546 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24547 as_fn_error $? "Cannot continue" "$LINENO" 5 24548 fi 24549 24550 # Setup proper paths for what we found 24551 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24552 if test ! -f "$BOOT_RTJAR"; then 24553 # On MacOSX it is called classes.jar 24554 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24555 if test -f "$BOOT_RTJAR"; then 24556 # Remove the .. 24557 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24558 fi 24559 fi 24560 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24561 BOOT_JDK="$BOOT_JDK" 24562 24563 24564 24565 24566 # Setup tools from the Boot JDK. 24567 24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24569 $as_echo_n "checking for java in Boot JDK... " >&6; } 24570 JAVA=$BOOT_JDK/bin/java 24571 if test ! -x $JAVA; then 24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24573 $as_echo "not found" >&6; } 24574 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24575 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24576 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24577 fi 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24579 $as_echo "ok" >&6; } 24580 24581 24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24583 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24584 JAVAC=$BOOT_JDK/bin/javac 24585 if test ! -x $JAVAC; then 24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24587 $as_echo "not found" >&6; } 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24589 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24590 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24591 fi 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24593 $as_echo "ok" >&6; } 24594 24595 24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24597 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24598 JAVAH=$BOOT_JDK/bin/javah 24599 if test ! -x $JAVAH; then 24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24601 $as_echo "not found" >&6; } 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24603 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24604 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24605 fi 24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24607 $as_echo "ok" >&6; } 24608 24609 24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24611 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24612 JAVAP=$BOOT_JDK/bin/javap 24613 if test ! -x $JAVAP; then 24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24615 $as_echo "not found" >&6; } 24616 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24617 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24618 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24619 fi 24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24621 $as_echo "ok" >&6; } 24622 24623 24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24625 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24626 JAR=$BOOT_JDK/bin/jar 24627 if test ! -x $JAR; then 24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24629 $as_echo "not found" >&6; } 24630 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24631 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24632 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24633 fi 24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24635 $as_echo "ok" >&6; } 24636 24637 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24639 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24640 RMIC=$BOOT_JDK/bin/rmic 24641 if test ! -x $RMIC; then 24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24643 $as_echo "not found" >&6; } 24644 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24645 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24646 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24647 fi 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24649 $as_echo "ok" >&6; } 24650 24651 24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24653 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24654 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24655 if test ! -x $NATIVE2ASCII; then 24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24657 $as_echo "not found" >&6; } 24658 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24659 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24660 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24661 fi 24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24663 $as_echo "ok" >&6; } 24664 24665 24666 # Finally, set some other options... 24667 24668 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24669 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24670 24671 24672 24673 # Check if the boot jdk is 32 or 64 bit 24674 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24675 BOOT_JDK_BITS="64" 24676 else 24677 BOOT_JDK_BITS="32" 24678 fi 24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24680 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24682 $as_echo "$BOOT_JDK_BITS" >&6; } 24683 24684 24685 24686 ############################################################################## 24687 # 24688 # Specify options for anything that is run with the Boot JDK. 24689 # 24690 24691 # Check whether --with-boot-jdk-jvmargs was given. 24692 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24693 withval=$with_boot_jdk_jvmargs; 24694 fi 24695 24696 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24698 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24699 24700 # Disable special log output when a debug build is used as Boot JDK... 24701 24702 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24703 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24704 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24705 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24706 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24707 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24708 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24709 JVM_ARG_OK=true 24710 else 24711 $ECHO "Arg failed:" >&5 24712 $ECHO "$OUTPUT" >&5 24713 JVM_ARG_OK=false 24714 fi 24715 24716 24717 # Apply user provided options. 24718 24719 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24720 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24721 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24722 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24723 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24724 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24725 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24726 JVM_ARG_OK=true 24727 else 24728 $ECHO "Arg failed:" >&5 24729 $ECHO "$OUTPUT" >&5 24730 JVM_ARG_OK=false 24731 fi 24732 24733 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24735 $as_echo "$boot_jdk_jvmargs" >&6; } 24736 24737 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24738 JAVA_FLAGS=$boot_jdk_jvmargs 24739 24740 24741 24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24743 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24744 24745 # Starting amount of heap memory. 24746 24747 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24748 $ECHO "Command: $JAVA -Xms64M -version" >&5 24749 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24750 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24751 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24752 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24753 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24754 JVM_ARG_OK=true 24755 else 24756 $ECHO "Arg failed:" >&5 24757 $ECHO "$OUTPUT" >&5 24758 JVM_ARG_OK=false 24759 fi 24760 24761 24762 # Maximum amount of heap memory. 24763 # Maximum stack size. 24764 if test "x$BOOT_JDK_BITS" = x32; then 24765 JVM_MAX_HEAP=768M 24766 STACK_SIZE=768 24767 else 24768 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24769 # pointers are used. Apparently, we need to increase the heap and stack 24770 # space for the jvm. More specifically, when running javac to build huge 24771 # jdk batch 24772 JVM_MAX_HEAP=1600M 24773 STACK_SIZE=1536 24774 fi 24775 24776 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24777 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24778 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24779 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24780 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24781 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24782 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24783 JVM_ARG_OK=true 24784 else 24785 $ECHO "Arg failed:" >&5 24786 $ECHO "$OUTPUT" >&5 24787 JVM_ARG_OK=false 24788 fi 24789 24790 24791 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24792 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24793 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24794 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24795 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24796 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24797 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24798 JVM_ARG_OK=true 24799 else 24800 $ECHO "Arg failed:" >&5 24801 $ECHO "$OUTPUT" >&5 24802 JVM_ARG_OK=false 24803 fi 24804 24805 24806 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24807 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24808 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24809 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24810 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24811 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24812 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24813 JVM_ARG_OK=true 24814 else 24815 $ECHO "Arg failed:" >&5 24816 $ECHO "$OUTPUT" >&5 24817 JVM_ARG_OK=false 24818 fi 24819 24820 24821 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24822 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24823 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24824 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24825 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24826 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24827 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24828 JVM_ARG_OK=true 24829 else 24830 $ECHO "Arg failed:" >&5 24831 $ECHO "$OUTPUT" >&5 24832 JVM_ARG_OK=false 24833 fi 24834 24835 24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24837 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24838 24839 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24840 24841 24842 24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24844 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24845 24846 # Use serial gc for small short lived tools if possible 24847 24848 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24849 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24850 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24851 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24852 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24853 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24854 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24855 JVM_ARG_OK=true 24856 else 24857 $ECHO "Arg failed:" >&5 24858 $ECHO "$OUTPUT" >&5 24859 JVM_ARG_OK=false 24860 fi 24861 24862 24863 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 24864 $ECHO "Command: $JAVA -Xms32M -version" >&5 24865 OUTPUT=`$JAVA -Xms32M -version 2>&1` 24866 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24867 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24868 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24869 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 24870 JVM_ARG_OK=true 24871 else 24872 $ECHO "Arg failed:" >&5 24873 $ECHO "$OUTPUT" >&5 24874 JVM_ARG_OK=false 24875 fi 24876 24877 24878 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 24879 $ECHO "Command: $JAVA -Xmx512M -version" >&5 24880 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 24881 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24882 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24883 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24884 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 24885 JVM_ARG_OK=true 24886 else 24887 $ECHO "Arg failed:" >&5 24888 $ECHO "$OUTPUT" >&5 24889 JVM_ARG_OK=false 24890 fi 24891 24892 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 24894 $as_echo "$boot_jdk_jvmargs_small" >&6; } 24895 24896 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 24897 24898 24899 24900 ############################################################################### 24901 # 24902 # Configure the sources to use. We can add or override individual directories. 24903 # 24904 ############################################################################### 24905 24906 24907 # Where are the sources. Any of these can be overridden 24908 # using --with-override-corba and the likes. 24909 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 24910 CORBA_TOPDIR="$SRC_ROOT/corba" 24911 JAXP_TOPDIR="$SRC_ROOT/jaxp" 24912 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 24913 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 24914 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 24915 JDK_TOPDIR="$SRC_ROOT/jdk" 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 ############################################################################### 24927 # 24928 # Pickup additional source for a component from outside of the source root 24929 # or override source for a component. 24930 # 24931 24932 # Check whether --with-add-source-root was given. 24933 if test "${with_add_source_root+set}" = set; then : 24934 withval=$with_add_source_root; 24935 fi 24936 24937 24938 24939 # Check whether --with-override-source-root was given. 24940 if test "${with_override_source_root+set}" = set; then : 24941 withval=$with_override_source_root; 24942 fi 24943 24944 24945 24946 # Check whether --with-adds-and-overrides was given. 24947 if test "${with_adds_and_overrides+set}" = set; then : 24948 withval=$with_adds_and_overrides; 24949 fi 24950 24951 24952 if test "x$with_adds_and_overrides" != x; then 24953 with_add_source_root="$with_adds_and_overrides/adds" 24954 with_override_source_root="$with_adds_and_overrides/overrides" 24955 fi 24956 24957 if test "x$with_add_source_root" != x; then 24958 if ! test -d $with_add_source_root; then 24959 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 24960 fi 24961 CURDIR="$PWD" 24962 cd "$with_add_source_root" 24963 ADD_SRC_ROOT="`pwd`" 24964 cd "$CURDIR" 24965 # Verify that the addon source root does not have any root makefiles. 24966 # If it does, then it is usually an error, prevent this. 24967 if test -f $with_add_source_root/langtools/make/Makefile; then 24968 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 24969 fi 24970 if test -f $with_add_source_root/corba/make/Makefile; then 24971 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 24972 fi 24973 if test -f $with_add_source_root/jaxp/make/Makefile; then 24974 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 24975 fi 24976 if test -f $with_add_source_root/jaxws/make/Makefile; then 24977 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 24978 fi 24979 if test -f $with_add_source_root/hotspot/make/Makefile; then 24980 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 24981 fi 24982 if test -f $with_add_source_root/nashorn/make/Makefile; then 24983 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 24984 fi 24985 if test -f $with_add_source_root/jdk/make/Makefile; then 24986 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 24987 fi 24988 fi 24989 24990 24991 if test "x$with_override_source_root" != x; then 24992 if ! test -d $with_override_source_root; then 24993 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 24994 fi 24995 CURDIR="$PWD" 24996 cd "$with_override_source_root" 24997 OVERRIDE_SRC_ROOT="`pwd`" 24998 cd "$CURDIR" 24999 if test -f $with_override_source_root/langtools/make/Makefile; then 25000 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 25001 fi 25002 if test -f $with_override_source_root/corba/make/Makefile; then 25003 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 25004 fi 25005 if test -f $with_override_source_root/jaxp/make/Makefile; then 25006 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 25007 fi 25008 if test -f $with_override_source_root/jaxws/make/Makefile; then 25009 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 25010 fi 25011 if test -f $with_override_source_root/hotspot/make/Makefile; then 25012 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 25013 fi 25014 if test -f $with_override_source_root/nashorn/make/Makefile; then 25015 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 25016 fi 25017 if test -f $with_override_source_root/jdk/make/Makefile; then 25018 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 25019 fi 25020 fi 25021 25022 25023 ############################################################################### 25024 # 25025 # Override a repo completely, this is used for example when you have 3 small 25026 # development sandboxes of the langtools sources and want to avoid having 3 full 25027 # OpenJDK sources checked out on disk. 25028 # 25029 # Assuming that the 3 langtools sandboxes are located here: 25030 # /home/fredrik/sandbox1/langtools 25031 # /home/fredrik/sandbox2/langtools 25032 # /home/fredrik/sandbox3/langtools 25033 # 25034 # From the source root you create build subdirs manually: 25035 # mkdir -p build1 build2 build3 25036 # in each build directory run: 25037 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 25038 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 25039 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 25040 # 25041 25042 25043 # Check whether --with-override-langtools was given. 25044 if test "${with_override_langtools+set}" = set; then : 25045 withval=$with_override_langtools; 25046 fi 25047 25048 25049 25050 # Check whether --with-override-corba was given. 25051 if test "${with_override_corba+set}" = set; then : 25052 withval=$with_override_corba; 25053 fi 25054 25055 25056 25057 # Check whether --with-override-jaxp was given. 25058 if test "${with_override_jaxp+set}" = set; then : 25059 withval=$with_override_jaxp; 25060 fi 25061 25062 25063 25064 # Check whether --with-override-jaxws was given. 25065 if test "${with_override_jaxws+set}" = set; then : 25066 withval=$with_override_jaxws; 25067 fi 25068 25069 25070 25071 # Check whether --with-override-hotspot was given. 25072 if test "${with_override_hotspot+set}" = set; then : 25073 withval=$with_override_hotspot; 25074 fi 25075 25076 25077 25078 # Check whether --with-override-nashorn was given. 25079 if test "${with_override_nashorn+set}" = set; then : 25080 withval=$with_override_nashorn; 25081 fi 25082 25083 25084 25085 # Check whether --with-override-jdk was given. 25086 if test "${with_override_jdk+set}" = set; then : 25087 withval=$with_override_jdk; 25088 fi 25089 25090 25091 if test "x$with_override_langtools" != x; then 25092 CURDIR="$PWD" 25093 cd "$with_override_langtools" 25094 LANGTOOLS_TOPDIR="`pwd`" 25095 cd "$CURDIR" 25096 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 25097 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 25098 fi 25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 25100 $as_echo_n "checking if langtools should be overridden... " >&6; } 25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 25102 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 25103 fi 25104 if test "x$with_override_corba" != x; then 25105 CURDIR="$PWD" 25106 cd "$with_override_corba" 25107 CORBA_TOPDIR="`pwd`" 25108 cd "$CURDIR" 25109 if ! test -f $CORBA_TOPDIR/make/Makefile; then 25110 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 25111 fi 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 25113 $as_echo_n "checking if corba should be overridden... " >&6; } 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 25115 $as_echo "yes with $CORBA_TOPDIR" >&6; } 25116 fi 25117 if test "x$with_override_jaxp" != x; then 25118 CURDIR="$PWD" 25119 cd "$with_override_jaxp" 25120 JAXP_TOPDIR="`pwd`" 25121 cd "$CURDIR" 25122 if ! test -f $JAXP_TOPDIR/make/Makefile; then 25123 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 25124 fi 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 25126 $as_echo_n "checking if jaxp should be overridden... " >&6; } 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 25128 $as_echo "yes with $JAXP_TOPDIR" >&6; } 25129 fi 25130 if test "x$with_override_jaxws" != x; then 25131 CURDIR="$PWD" 25132 cd "$with_override_jaxws" 25133 JAXWS_TOPDIR="`pwd`" 25134 cd "$CURDIR" 25135 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 25136 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 25137 fi 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 25139 $as_echo_n "checking if jaxws should be overridden... " >&6; } 25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 25141 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 25142 fi 25143 if test "x$with_override_hotspot" != x; then 25144 CURDIR="$PWD" 25145 cd "$with_override_hotspot" 25146 HOTSPOT_TOPDIR="`pwd`" 25147 cd "$CURDIR" 25148 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 25149 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 25150 fi 25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 25152 $as_echo_n "checking if hotspot should be overridden... " >&6; } 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 25154 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 25155 fi 25156 if test "x$with_override_nashorn" != x; then 25157 CURDIR="$PWD" 25158 cd "$with_override_nashorn" 25159 NASHORN_TOPDIR="`pwd`" 25160 cd "$CURDIR" 25161 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 25162 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 25163 fi 25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 25165 $as_echo_n "checking if nashorn should be overridden... " >&6; } 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 25167 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 25168 fi 25169 if test "x$with_override_jdk" != x; then 25170 CURDIR="$PWD" 25171 cd "$with_override_jdk" 25172 JDK_TOPDIR="`pwd`" 25173 cd "$CURDIR" 25174 if ! test -f $JDK_TOPDIR/make/Makefile; then 25175 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 25176 fi 25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 25178 $as_echo_n "checking if JDK should be overridden... " >&6; } 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 25180 $as_echo "yes with $JDK_TOPDIR" >&6; } 25181 fi 25182 25183 25184 BUILD_OUTPUT="$OUTPUT_ROOT" 25185 25186 25187 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 25188 BUILD_HOTSPOT=true 25189 25190 25191 25192 # Check whether --with-import-hotspot was given. 25193 if test "${with_import_hotspot+set}" = set; then : 25194 withval=$with_import_hotspot; 25195 fi 25196 25197 if test "x$with_import_hotspot" != x; then 25198 CURDIR="$PWD" 25199 cd "$with_import_hotspot" 25200 HOTSPOT_DIST="`pwd`" 25201 cd "$CURDIR" 25202 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 25203 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 25204 fi 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 25206 $as_echo_n "checking if hotspot should be imported... " >&6; } 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 25208 $as_echo "yes from $HOTSPOT_DIST" >&6; } 25209 BUILD_HOTSPOT=false 25210 fi 25211 25212 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 25213 25214 25215 ############################################################################### 25216 # 25217 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 25218 # native code. 25219 # 25220 ############################################################################### 25221 25222 # First determine the toolchain type (compiler family) 25223 25224 25225 # Check whether --with-toolchain-type was given. 25226 if test "${with_toolchain_type+set}" = set; then : 25227 withval=$with_toolchain_type; 25228 fi 25229 25230 25231 # Use indirect variable referencing 25232 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 25233 VALID_TOOLCHAINS=${!toolchain_var_name} 25234 # First toolchain type in the list is the default 25235 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 25236 25237 if test "x$with_toolchain_type" = xlist; then 25238 # List all toolchains 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 25240 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 25241 for toolchain in $VALID_TOOLCHAINS; do 25242 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 25243 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25244 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 25245 done 25246 25247 exit 0 25248 elif test "x$with_toolchain_type" != x; then 25249 # User override; check that it is valid 25250 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 25252 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 25254 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 25255 as_fn_error $? "Cannot continue." "$LINENO" 5 25256 fi 25257 TOOLCHAIN_TYPE=$with_toolchain_type 25258 else 25259 # No flag given, use default 25260 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 25261 fi 25262 25263 25264 TOOLCHAIN_CC_BINARY_clang="clang" 25265 TOOLCHAIN_CC_BINARY_gcc="gcc" 25266 TOOLCHAIN_CC_BINARY_microsoft="cl" 25267 TOOLCHAIN_CC_BINARY_solstudio="cc" 25268 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 25269 25270 TOOLCHAIN_CXX_BINARY_clang="clang++" 25271 TOOLCHAIN_CXX_BINARY_gcc="g++" 25272 TOOLCHAIN_CXX_BINARY_microsoft="cl" 25273 TOOLCHAIN_CXX_BINARY_solstudio="CC" 25274 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 25275 25276 # Use indirect variable referencing 25277 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 25278 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25279 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 25280 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 25281 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 25282 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 25283 25284 25285 # Define filename patterns 25286 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25287 LIBRARY_PREFIX= 25288 SHARED_LIBRARY_SUFFIX='.dll' 25289 STATIC_LIBRARY_SUFFIX='.lib' 25290 SHARED_LIBRARY='$1.dll' 25291 STATIC_LIBRARY='$1.lib' 25292 OBJ_SUFFIX='.obj' 25293 EXE_SUFFIX='.exe' 25294 else 25295 LIBRARY_PREFIX=lib 25296 SHARED_LIBRARY_SUFFIX='.so' 25297 STATIC_LIBRARY_SUFFIX='.a' 25298 SHARED_LIBRARY='lib$1.so' 25299 STATIC_LIBRARY='lib$1.a' 25300 OBJ_SUFFIX='.o' 25301 EXE_SUFFIX='' 25302 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25303 SHARED_LIBRARY='lib$1.dylib' 25304 SHARED_LIBRARY_SUFFIX='.dylib' 25305 fi 25306 fi 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 25319 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 25320 else 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 25322 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 25323 fi 25324 25325 25326 # Then detect the actual binaries needed 25327 25328 # FIXME: Is this needed? 25329 ac_ext=cpp 25330 ac_cpp='$CXXCPP $CPPFLAGS' 25331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25334 25335 25336 # Store the CFLAGS etal passed to the configure script. 25337 ORG_CFLAGS="$CFLAGS" 25338 ORG_CXXFLAGS="$CXXFLAGS" 25339 ORG_OBJCFLAGS="$OBJCFLAGS" 25340 25341 # autoconf magic only relies on PATH, so update it if tools dir is specified 25342 OLD_PATH="$PATH" 25343 25344 # On Windows, we need to detect the visual studio installation first. 25345 # This will change the PATH, but we need to keep that new PATH even 25346 # after toolchain detection is done, since the compiler (on x86) uses 25347 # it for DLL resolution in runtime. 25348 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 25349 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 25350 25351 # Store path to cygwin link.exe to help excluding it when searching for 25352 # VS linker. This must be done before changing the PATH when looking for VS. 25353 # Extract the first word of "link", so it can be a program name with args. 25354 set dummy link; ac_word=$2 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25356 $as_echo_n "checking for $ac_word... " >&6; } 25357 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 25358 $as_echo_n "(cached) " >&6 25359 else 25360 case $CYGWIN_LINK in 25361 [\\/]* | ?:[\\/]*) 25362 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 25363 ;; 25364 *) 25365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25366 for as_dir in $PATH 25367 do 25368 IFS=$as_save_IFS 25369 test -z "$as_dir" && as_dir=. 25370 for ac_exec_ext in '' $ac_executable_extensions; do 25371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25372 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 25373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25374 break 2 25375 fi 25376 done 25377 done 25378 IFS=$as_save_IFS 25379 25380 ;; 25381 esac 25382 fi 25383 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 25384 if test -n "$CYGWIN_LINK"; then 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 25386 $as_echo "$CYGWIN_LINK" >&6; } 25387 else 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25389 $as_echo "no" >&6; } 25390 fi 25391 25392 25393 if test "x$CYGWIN_LINK" != x; then 25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 25395 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 25396 "$CYGWIN_LINK" --version > /dev/null 25397 if test $? -eq 0 ; then 25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25399 $as_echo "yes" >&6; } 25400 else 25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25402 $as_echo "no" >&6; } 25403 # This might be the VS linker. Don't exclude it later on. 25404 CYGWIN_LINK="" 25405 fi 25406 fi 25407 25408 # First-hand choice is to locate and run the vsvars bat file. 25409 25410 25411 # Check whether --with-toolchain-version was given. 25412 if test "${with_toolchain_version+set}" = set; then : 25413 withval=$with_toolchain_version; 25414 fi 25415 25416 25417 if test "x$with_toolchain_version" = xlist; then 25418 # List all toolchains 25419 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 25420 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 25421 for version in $VALID_VS_VERSIONS; do 25422 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 25423 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 25424 done 25425 25426 exit 0 25427 elif test "x$DEVKIT_VS_VERSION" != x; then 25428 VS_VERSION=$DEVKIT_VS_VERSION 25429 TOOLCHAIN_VERSION=$VS_VERSION 25430 # If the devkit has a name, use that as description 25431 VS_DESCRIPTION="$DEVKIT_NAME" 25432 if test "x$VS_DESCRIPTION" = x; then 25433 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 25434 fi 25435 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 25436 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 25437 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 25438 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 25439 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25440 VS_PATH="$TOOLCHAIN_PATH:$PATH" 25441 25442 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 25443 # can still be exported as INCLUDE for compiler invocations without 25444 # SYSROOT_CFLAGS 25445 OLDIFS="$IFS" 25446 IFS=";" 25447 for i in $DEVKIT_VS_INCLUDE; do 25448 ipath=$i 25449 25450 unix_path="$ipath" 25451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25452 windows_path=`$CYGPATH -m "$unix_path"` 25453 ipath="$windows_path" 25454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25455 windows_path=`cmd //c echo $unix_path` 25456 ipath="$windows_path" 25457 fi 25458 25459 VS_INCLUDE="$VS_INCLUDE;$ipath" 25460 done 25461 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 25462 # as LIB for compiler invocations without SYSROOT_LDFLAGS 25463 for i in $DEVKIT_VS_LIB; do 25464 libpath=$i 25465 25466 unix_path="$libpath" 25467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25468 windows_path=`$CYGPATH -m "$unix_path"` 25469 libpath="$windows_path" 25470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25471 windows_path=`cmd //c echo $unix_path` 25472 libpath="$windows_path" 25473 fi 25474 25475 VS_LIB="$VS_LIB;$libpath" 25476 done 25477 IFS="$OLDIFS" 25478 25479 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 25480 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 25481 25482 elif test "x$with_toolchain_version" != x; then 25483 # User override; check that it is valid 25484 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 25485 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 25486 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 25487 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 25488 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 25489 as_fn_error $? "Cannot continue." "$LINENO" 5 25490 fi 25491 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 25492 else 25493 # No flag given, use default 25494 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 25495 fi 25496 25497 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 25498 25499 VS_VERSION="$VS_VERSION" 25500 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 25501 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 25502 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 25503 eval VS_EDITIONS="\${VS_EDITIONS_${VS_VERSION}}" 25504 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 25505 eval VS_ENV_ARGS="\${VS_ENV_ARGS_${VS_VERSION}}" 25506 25507 # When using --with-tools-dir, assume it points to the correct and default 25508 # version of Visual Studio or that --with-toolchain-version was also set. 25509 if test "x$with_tools_dir" != x; then 25510 25511 if test "x$VS_ENV_CMD" = x; then 25512 VS_VERSION="${VS_VERSION}" 25513 VS_BASE="$with_tools_dir/../.." 25514 METHOD="--with-tools-dir" 25515 25516 25517 windows_path="$VS_BASE" 25518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25519 unix_path=`$CYGPATH -u "$windows_path"` 25520 VS_BASE="$unix_path" 25521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25523 VS_BASE="$unix_path" 25524 fi 25525 25526 # In VS 2017, the default installation is in a subdir named after the edition. 25527 # Find the first one present and use that. 25528 if test "x$VS_EDITIONS" != x; then 25529 for edition in $VS_EDITIONS; do 25530 if test -d "$VS_BASE/$edition"; then 25531 VS_BASE="$VS_BASE/$edition" 25532 break 25533 fi 25534 done 25535 fi 25536 25537 if test -d "$VS_BASE"; then 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25539 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25540 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25541 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25542 else 25543 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25544 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25545 fi 25546 25547 for VCVARSFILE in $VCVARSFILES; do 25548 if test -f "$VS_BASE/$VCVARSFILE"; then 25549 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25550 break 25551 fi 25552 done 25553 25554 if test "x$VS_ENV_CMD" = x; then 25555 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25556 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25557 else 25558 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25559 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25560 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25561 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25562 25563 fi 25564 fi 25565 fi 25566 25567 25568 if test "x$VS_ENV_CMD" = x; then 25569 VS_VERSION="${VS_VERSION}" 25570 VS_BASE="$with_tools_dir/../../.." 25571 METHOD="--with-tools-dir" 25572 25573 25574 windows_path="$VS_BASE" 25575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25576 unix_path=`$CYGPATH -u "$windows_path"` 25577 VS_BASE="$unix_path" 25578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25580 VS_BASE="$unix_path" 25581 fi 25582 25583 # In VS 2017, the default installation is in a subdir named after the edition. 25584 # Find the first one present and use that. 25585 if test "x$VS_EDITIONS" != x; then 25586 for edition in $VS_EDITIONS; do 25587 if test -d "$VS_BASE/$edition"; then 25588 VS_BASE="$VS_BASE/$edition" 25589 break 25590 fi 25591 done 25592 fi 25593 25594 if test -d "$VS_BASE"; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25596 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25597 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25598 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25599 else 25600 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25601 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25602 fi 25603 25604 for VCVARSFILE in $VCVARSFILES; do 25605 if test -f "$VS_BASE/$VCVARSFILE"; then 25606 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25607 break 25608 fi 25609 done 25610 25611 if test "x$VS_ENV_CMD" = x; then 25612 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25613 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25614 else 25615 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25616 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25617 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25618 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25619 25620 fi 25621 fi 25622 fi 25623 25624 if test "x$VS_ENV_CMD" = x; then 25625 # Having specified an argument which is incorrect will produce an instant failure; 25626 # we should not go on looking 25627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 25628 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 25629 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 25630 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 25631 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 25632 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 25633 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25634 fi 25635 fi 25636 25637 VS_ENV_CMD="" 25638 25639 if test "x$VS_COMNTOOLS" != x; then 25640 25641 if test "x$VS_ENV_CMD" = x; then 25642 VS_VERSION="${VS_VERSION}" 25643 VS_BASE="$VS_COMNTOOLS/../.." 25644 METHOD="$VS_COMNTOOLS_VAR variable" 25645 25646 25647 windows_path="$VS_BASE" 25648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25649 unix_path=`$CYGPATH -u "$windows_path"` 25650 VS_BASE="$unix_path" 25651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25653 VS_BASE="$unix_path" 25654 fi 25655 25656 # In VS 2017, the default installation is in a subdir named after the edition. 25657 # Find the first one present and use that. 25658 if test "x$VS_EDITIONS" != x; then 25659 for edition in $VS_EDITIONS; do 25660 if test -d "$VS_BASE/$edition"; then 25661 VS_BASE="$VS_BASE/$edition" 25662 break 25663 fi 25664 done 25665 fi 25666 25667 if test -d "$VS_BASE"; then 25668 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25669 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25670 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25671 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25672 else 25673 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25674 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25675 fi 25676 25677 for VCVARSFILE in $VCVARSFILES; do 25678 if test -f "$VS_BASE/$VCVARSFILE"; then 25679 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25680 break 25681 fi 25682 done 25683 25684 if test "x$VS_ENV_CMD" = x; then 25685 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25686 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25687 else 25688 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25689 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25690 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25691 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25692 25693 fi 25694 fi 25695 fi 25696 25697 fi 25698 if test "x$PROGRAMFILES" != x; then 25699 25700 if test "x$VS_ENV_CMD" = x; then 25701 VS_VERSION="${VS_VERSION}" 25702 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 25703 METHOD="well-known name" 25704 25705 25706 windows_path="$VS_BASE" 25707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25708 unix_path=`$CYGPATH -u "$windows_path"` 25709 VS_BASE="$unix_path" 25710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25712 VS_BASE="$unix_path" 25713 fi 25714 25715 # In VS 2017, the default installation is in a subdir named after the edition. 25716 # Find the first one present and use that. 25717 if test "x$VS_EDITIONS" != x; then 25718 for edition in $VS_EDITIONS; do 25719 if test -d "$VS_BASE/$edition"; then 25720 VS_BASE="$VS_BASE/$edition" 25721 break 25722 fi 25723 done 25724 fi 25725 25726 if test -d "$VS_BASE"; then 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25728 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25729 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25730 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25731 else 25732 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25733 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25734 fi 25735 25736 for VCVARSFILE in $VCVARSFILES; do 25737 if test -f "$VS_BASE/$VCVARSFILE"; then 25738 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25739 break 25740 fi 25741 done 25742 25743 if test "x$VS_ENV_CMD" = x; then 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25745 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25746 else 25747 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25748 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25749 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25750 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25751 25752 fi 25753 fi 25754 fi 25755 25756 fi 25757 # Work around the insanely named ProgramFiles(x86) env variable 25758 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 25759 if test "x$PROGRAMFILES_X86" != x; then 25760 25761 if test "x$VS_ENV_CMD" = x; then 25762 VS_VERSION="${VS_VERSION}" 25763 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 25764 METHOD="well-known name" 25765 25766 25767 windows_path="$VS_BASE" 25768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25769 unix_path=`$CYGPATH -u "$windows_path"` 25770 VS_BASE="$unix_path" 25771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25773 VS_BASE="$unix_path" 25774 fi 25775 25776 # In VS 2017, the default installation is in a subdir named after the edition. 25777 # Find the first one present and use that. 25778 if test "x$VS_EDITIONS" != x; then 25779 for edition in $VS_EDITIONS; do 25780 if test -d "$VS_BASE/$edition"; then 25781 VS_BASE="$VS_BASE/$edition" 25782 break 25783 fi 25784 done 25785 fi 25786 25787 if test -d "$VS_BASE"; then 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25789 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25790 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25791 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25792 else 25793 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25794 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25795 fi 25796 25797 for VCVARSFILE in $VCVARSFILES; do 25798 if test -f "$VS_BASE/$VCVARSFILE"; then 25799 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25800 break 25801 fi 25802 done 25803 25804 if test "x$VS_ENV_CMD" = x; then 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25806 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25807 else 25808 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25809 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25810 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25811 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25812 25813 fi 25814 fi 25815 fi 25816 25817 fi 25818 25819 if test "x$VS_ENV_CMD" = x; then 25820 VS_VERSION="${VS_VERSION}" 25821 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 25822 METHOD="well-known name" 25823 25824 25825 windows_path="$VS_BASE" 25826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25827 unix_path=`$CYGPATH -u "$windows_path"` 25828 VS_BASE="$unix_path" 25829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25831 VS_BASE="$unix_path" 25832 fi 25833 25834 # In VS 2017, the default installation is in a subdir named after the edition. 25835 # Find the first one present and use that. 25836 if test "x$VS_EDITIONS" != x; then 25837 for edition in $VS_EDITIONS; do 25838 if test -d "$VS_BASE/$edition"; then 25839 VS_BASE="$VS_BASE/$edition" 25840 break 25841 fi 25842 done 25843 fi 25844 25845 if test -d "$VS_BASE"; then 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25847 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25848 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25849 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25850 else 25851 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25852 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25853 fi 25854 25855 for VCVARSFILE in $VCVARSFILES; do 25856 if test -f "$VS_BASE/$VCVARSFILE"; then 25857 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25858 break 25859 fi 25860 done 25861 25862 if test "x$VS_ENV_CMD" = x; then 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25864 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25865 else 25866 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25867 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25868 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25869 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25870 25871 fi 25872 fi 25873 fi 25874 25875 25876 if test "x$VS_ENV_CMD" = x; then 25877 VS_VERSION="${VS_VERSION}" 25878 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 25879 METHOD="well-known name" 25880 25881 25882 windows_path="$VS_BASE" 25883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25884 unix_path=`$CYGPATH -u "$windows_path"` 25885 VS_BASE="$unix_path" 25886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25888 VS_BASE="$unix_path" 25889 fi 25890 25891 # In VS 2017, the default installation is in a subdir named after the edition. 25892 # Find the first one present and use that. 25893 if test "x$VS_EDITIONS" != x; then 25894 for edition in $VS_EDITIONS; do 25895 if test -d "$VS_BASE/$edition"; then 25896 VS_BASE="$VS_BASE/$edition" 25897 break 25898 fi 25899 done 25900 fi 25901 25902 if test -d "$VS_BASE"; then 25903 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25904 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25905 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25906 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25907 else 25908 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25909 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25910 fi 25911 25912 for VCVARSFILE in $VCVARSFILES; do 25913 if test -f "$VS_BASE/$VCVARSFILE"; then 25914 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25915 break 25916 fi 25917 done 25918 25919 if test "x$VS_ENV_CMD" = x; then 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25921 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25922 else 25923 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25924 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25925 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25926 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25927 25928 fi 25929 fi 25930 fi 25931 25932 25933 if test "x$SDK_INSTALL_DIR" != x; then 25934 if test "x$ProgramW6432" != x; then 25935 25936 if test "x$VS_ENV_CMD" = x; then 25937 VS_VERSION="${VS_VERSION}" 25938 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 25939 METHOD="well-known name" 25940 25941 windows_path="$WIN_SDK_BASE" 25942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25943 unix_path=`$CYGPATH -u "$windows_path"` 25944 WIN_SDK_BASE="$unix_path" 25945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25947 WIN_SDK_BASE="$unix_path" 25948 fi 25949 25950 if test -d "$WIN_SDK_BASE"; then 25951 # There have been cases of partial or broken SDK installations. A missing 25952 # lib dir is not going to work. 25953 if test ! -d "$WIN_SDK_BASE/lib"; then 25954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25955 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25956 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25957 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25958 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25960 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25961 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 25962 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25963 VS_ENV_ARGS="/x86" 25964 else 25965 VS_ENV_ARGS="/x64" 25966 fi 25967 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 25968 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 25969 # TODO: improve detection for other versions of SDK 25970 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 25971 else 25972 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25973 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25974 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25975 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25976 fi 25977 fi 25978 fi 25979 25980 fi 25981 if test "x$PROGRAMW6432" != x; then 25982 25983 if test "x$VS_ENV_CMD" = x; then 25984 VS_VERSION="${VS_VERSION}" 25985 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 25986 METHOD="well-known name" 25987 25988 windows_path="$WIN_SDK_BASE" 25989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25990 unix_path=`$CYGPATH -u "$windows_path"` 25991 WIN_SDK_BASE="$unix_path" 25992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25994 WIN_SDK_BASE="$unix_path" 25995 fi 25996 25997 if test -d "$WIN_SDK_BASE"; then 25998 # There have been cases of partial or broken SDK installations. A missing 25999 # lib dir is not going to work. 26000 if test ! -d "$WIN_SDK_BASE/lib"; then 26001 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26002 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26003 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26004 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26005 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26007 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26008 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26009 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26010 VS_ENV_ARGS="/x86" 26011 else 26012 VS_ENV_ARGS="/x64" 26013 fi 26014 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26015 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26016 # TODO: improve detection for other versions of SDK 26017 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26018 else 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26020 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26021 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26022 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26023 fi 26024 fi 26025 fi 26026 26027 fi 26028 if test "x$PROGRAMFILES" != x; then 26029 26030 if test "x$VS_ENV_CMD" = x; then 26031 VS_VERSION="${VS_VERSION}" 26032 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 26033 METHOD="well-known name" 26034 26035 windows_path="$WIN_SDK_BASE" 26036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26037 unix_path=`$CYGPATH -u "$windows_path"` 26038 WIN_SDK_BASE="$unix_path" 26039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26041 WIN_SDK_BASE="$unix_path" 26042 fi 26043 26044 if test -d "$WIN_SDK_BASE"; then 26045 # There have been cases of partial or broken SDK installations. A missing 26046 # lib dir is not going to work. 26047 if test ! -d "$WIN_SDK_BASE/lib"; then 26048 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26049 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26051 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26052 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26054 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26055 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26056 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26057 VS_ENV_ARGS="/x86" 26058 else 26059 VS_ENV_ARGS="/x64" 26060 fi 26061 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26062 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26063 # TODO: improve detection for other versions of SDK 26064 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26065 else 26066 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26067 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26068 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26069 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26070 fi 26071 fi 26072 fi 26073 26074 fi 26075 26076 if test "x$VS_ENV_CMD" = x; then 26077 VS_VERSION="${VS_VERSION}" 26078 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 26079 METHOD="well-known name" 26080 26081 windows_path="$WIN_SDK_BASE" 26082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26083 unix_path=`$CYGPATH -u "$windows_path"` 26084 WIN_SDK_BASE="$unix_path" 26085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26087 WIN_SDK_BASE="$unix_path" 26088 fi 26089 26090 if test -d "$WIN_SDK_BASE"; then 26091 # There have been cases of partial or broken SDK installations. A missing 26092 # lib dir is not going to work. 26093 if test ! -d "$WIN_SDK_BASE/lib"; then 26094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26095 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26096 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26097 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26098 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26100 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26101 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26102 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26103 VS_ENV_ARGS="/x86" 26104 else 26105 VS_ENV_ARGS="/x64" 26106 fi 26107 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26108 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26109 # TODO: improve detection for other versions of SDK 26110 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26111 else 26112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26113 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26114 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26115 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26116 fi 26117 fi 26118 fi 26119 26120 26121 if test "x$VS_ENV_CMD" = x; then 26122 VS_VERSION="${VS_VERSION}" 26123 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 26124 METHOD="well-known name" 26125 26126 windows_path="$WIN_SDK_BASE" 26127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26128 unix_path=`$CYGPATH -u "$windows_path"` 26129 WIN_SDK_BASE="$unix_path" 26130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26132 WIN_SDK_BASE="$unix_path" 26133 fi 26134 26135 if test -d "$WIN_SDK_BASE"; then 26136 # There have been cases of partial or broken SDK installations. A missing 26137 # lib dir is not going to work. 26138 if test ! -d "$WIN_SDK_BASE/lib"; then 26139 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26140 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26141 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26142 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26143 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26144 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26145 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26146 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26147 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26148 VS_ENV_ARGS="/x86" 26149 else 26150 VS_ENV_ARGS="/x64" 26151 fi 26152 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26153 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26154 # TODO: improve detection for other versions of SDK 26155 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26156 else 26157 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26158 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26159 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26160 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26161 fi 26162 fi 26163 fi 26164 26165 fi 26166 26167 if test "x$VS_ENV_CMD" != x; then 26168 TOOLCHAIN_VERSION=$VS_VERSION 26169 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 26170 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 26171 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 26172 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 26173 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 26174 # The rest of the variables are already evaled while probing 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 26176 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 26177 break 26178 fi 26179 done 26180 26181 TOOLCHAIN_DESCRIPTION="$VS_DESCRIPTION" 26182 if test "$TOOLCHAIN_VERSION" -gt 2013; then 26183 UNSUPPORTED_TOOLCHAIN_VERSION=yes 26184 fi 26185 26186 26187 # If we have a devkit, skip all of the below. 26188 if test "x$DEVKIT_VS_VERSION" = x; then 26189 if test "x$VS_ENV_CMD" != x; then 26190 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26191 26192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26193 26194 # First separate the path from the arguments. This will split at the first 26195 # space. 26196 complete="$VS_ENV_CMD" 26197 path="${complete%% *}" 26198 tmp="$complete EOL" 26199 arguments="${tmp#* }" 26200 26201 # Input might be given as Windows format, start by converting to 26202 # unix format. 26203 new_path=`$CYGPATH -u "$path"` 26204 26205 # Now try to locate executable using which 26206 new_path=`$WHICH "$new_path" 2> /dev/null` 26207 # bat and cmd files are not always considered executable in cygwin causing which 26208 # to not find them 26209 if test "x$new_path" = x \ 26210 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26211 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26212 new_path=`$CYGPATH -u "$path"` 26213 fi 26214 if test "x$new_path" = x; then 26215 # Oops. Which didn't find the executable. 26216 # The splitting of arguments from the executable at a space might have been incorrect, 26217 # since paths with space are more likely in Windows. Give it another try with the whole 26218 # argument. 26219 path="$complete" 26220 arguments="EOL" 26221 new_path=`$CYGPATH -u "$path"` 26222 new_path=`$WHICH "$new_path" 2> /dev/null` 26223 # bat and cmd files are not always considered executable in cygwin causing which 26224 # to not find them 26225 if test "x$new_path" = x \ 26226 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26227 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26228 new_path=`$CYGPATH -u "$path"` 26229 fi 26230 if test "x$new_path" = x; then 26231 # It's still not found. Now this is an unrecoverable error. 26232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26233 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26234 has_space=`$ECHO "$complete" | $GREP " "` 26235 if test "x$has_space" != x; then 26236 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26238 fi 26239 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26240 fi 26241 fi 26242 26243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26246 # "foo.exe" is OK but "foo" is an error. 26247 # 26248 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26249 # It is also a way to make sure we got the proper file name for the real test later on. 26250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26251 if test "x$test_shortpath" = x; then 26252 # Short path failed, file does not exist as specified. 26253 # Try adding .exe or .cmd 26254 if test -f "${new_path}.exe"; then 26255 input_to_shortpath="${new_path}.exe" 26256 elif test -f "${new_path}.cmd"; then 26257 input_to_shortpath="${new_path}.cmd" 26258 else 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 26260 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 26261 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26262 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26263 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26264 fi 26265 else 26266 input_to_shortpath="$new_path" 26267 fi 26268 26269 # Call helper function which possibly converts this using DOS-style short mode. 26270 # If so, the updated path is stored in $new_path. 26271 new_path="$input_to_shortpath" 26272 26273 input_path="$input_to_shortpath" 26274 # Check if we need to convert this using DOS-style short mode. If the path 26275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26276 # take no chances and rewrite it. 26277 # Note: m4 eats our [], so we need to use [ and ] instead. 26278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26279 if test "x$has_forbidden_chars" != x; then 26280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26281 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26282 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26283 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26284 # Going to short mode and back again did indeed matter. Since short mode is 26285 # case insensitive, let's make it lowercase to improve readability. 26286 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26287 # Now convert it back to Unix-style (cygpath) 26288 input_path=`$CYGPATH -u "$shortmode_path"` 26289 new_path="$input_path" 26290 fi 26291 fi 26292 26293 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26294 if test "x$test_cygdrive_prefix" = x; then 26295 # As a simple fix, exclude /usr/bin since it's not a real path. 26296 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26297 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26298 # a path prefixed by /cygdrive for fixpath to work. 26299 new_path="$CYGWIN_ROOT_PATH$input_path" 26300 fi 26301 fi 26302 26303 # remove trailing .exe if any 26304 new_path="${new_path/%.exe/}" 26305 26306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26307 26308 # First separate the path from the arguments. This will split at the first 26309 # space. 26310 complete="$VS_ENV_CMD" 26311 path="${complete%% *}" 26312 tmp="$complete EOL" 26313 arguments="${tmp#* }" 26314 26315 # Input might be given as Windows format, start by converting to 26316 # unix format. 26317 new_path="$path" 26318 26319 windows_path="$new_path" 26320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26321 unix_path=`$CYGPATH -u "$windows_path"` 26322 new_path="$unix_path" 26323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26325 new_path="$unix_path" 26326 fi 26327 26328 26329 # Now try to locate executable using which 26330 new_path=`$WHICH "$new_path" 2> /dev/null` 26331 26332 if test "x$new_path" = x; then 26333 # Oops. Which didn't find the executable. 26334 # The splitting of arguments from the executable at a space might have been incorrect, 26335 # since paths with space are more likely in Windows. Give it another try with the whole 26336 # argument. 26337 path="$complete" 26338 arguments="EOL" 26339 new_path="$path" 26340 26341 windows_path="$new_path" 26342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26343 unix_path=`$CYGPATH -u "$windows_path"` 26344 new_path="$unix_path" 26345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26347 new_path="$unix_path" 26348 fi 26349 26350 26351 new_path=`$WHICH "$new_path" 2> /dev/null` 26352 # bat and cmd files are not always considered executable in MSYS causing which 26353 # to not find them 26354 if test "x$new_path" = x \ 26355 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26356 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26357 new_path="$path" 26358 26359 windows_path="$new_path" 26360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26361 unix_path=`$CYGPATH -u "$windows_path"` 26362 new_path="$unix_path" 26363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26365 new_path="$unix_path" 26366 fi 26367 26368 fi 26369 26370 if test "x$new_path" = x; then 26371 # It's still not found. Now this is an unrecoverable error. 26372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26373 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26374 has_space=`$ECHO "$complete" | $GREP " "` 26375 if test "x$has_space" != x; then 26376 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26378 fi 26379 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26380 fi 26381 fi 26382 26383 # Now new_path has a complete unix path to the binary 26384 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26385 # Keep paths in /bin as-is, but remove trailing .exe if any 26386 new_path="${new_path/%.exe/}" 26387 # Do not save /bin paths to all_fixpath_prefixes! 26388 else 26389 # Not in mixed or Windows style, start by that. 26390 new_path=`cmd //c echo $new_path` 26391 26392 input_path="$new_path" 26393 # Check if we need to convert this using DOS-style short mode. If the path 26394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26395 # take no chances and rewrite it. 26396 # Note: m4 eats our [], so we need to use [ and ] instead. 26397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26398 if test "x$has_forbidden_chars" != x; then 26399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26401 fi 26402 26403 # Output is in $new_path 26404 26405 windows_path="$new_path" 26406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26407 unix_path=`$CYGPATH -u "$windows_path"` 26408 new_path="$unix_path" 26409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26411 new_path="$unix_path" 26412 fi 26413 26414 # remove trailing .exe if any 26415 new_path="${new_path/%.exe/}" 26416 26417 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26418 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26419 fi 26420 26421 else 26422 # We're on a posix platform. Hooray! :) 26423 # First separate the path from the arguments. This will split at the first 26424 # space. 26425 complete="$VS_ENV_CMD" 26426 path="${complete%% *}" 26427 tmp="$complete EOL" 26428 arguments="${tmp#* }" 26429 26430 # Cannot rely on the command "which" here since it doesn't always work. 26431 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26432 if test -z "$is_absolute_path"; then 26433 # Path to executable is not absolute. Find it. 26434 IFS_save="$IFS" 26435 IFS=: 26436 for p in $PATH; do 26437 if test -f "$p/$path" && test -x "$p/$path"; then 26438 new_path="$p/$path" 26439 break 26440 fi 26441 done 26442 IFS="$IFS_save" 26443 else 26444 # This is an absolute path, we can use it without further modifications. 26445 new_path="$path" 26446 fi 26447 26448 if test "x$new_path" = x; then 26449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26450 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26451 has_space=`$ECHO "$complete" | $GREP " "` 26452 if test "x$has_space" != x; then 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26454 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26455 fi 26456 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26457 fi 26458 fi 26459 26460 # Now join together the path and the arguments once again 26461 if test "x$arguments" != xEOL; then 26462 new_complete="$new_path ${arguments% *}" 26463 else 26464 new_complete="$new_path" 26465 fi 26466 26467 if test "x$complete" != "x$new_complete"; then 26468 VS_ENV_CMD="$new_complete" 26469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 26470 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 26471 fi 26472 26473 26474 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 26475 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 26476 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 26477 26478 # We need to create a couple of temporary files. 26479 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 26480 $MKDIR -p $VS_ENV_TMP_DIR 26481 26482 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 26483 # Instead create a shell script which will set the relevant variables when run. 26484 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 26485 26486 unix_path="$WINPATH_VS_ENV_CMD" 26487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26488 windows_path=`$CYGPATH -m "$unix_path"` 26489 WINPATH_VS_ENV_CMD="$windows_path" 26490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26491 windows_path=`cmd //c echo $unix_path` 26492 WINPATH_VS_ENV_CMD="$windows_path" 26493 fi 26494 26495 WINPATH_BASH="$BASH" 26496 26497 unix_path="$WINPATH_BASH" 26498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26499 windows_path=`$CYGPATH -m "$unix_path"` 26500 WINPATH_BASH="$windows_path" 26501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26502 windows_path=`cmd //c echo $unix_path` 26503 WINPATH_BASH="$windows_path" 26504 fi 26505 26506 26507 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 26508 # script (executable by bash) that will setup the important variables. 26509 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 26510 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 26511 # This will end up something like: 26512 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 26513 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 26514 # In some cases, the VS_ENV_CMD will change directory, change back so 26515 # the set-vs-env.sh ends up in the right place. 26516 $ECHO 'cd %~dp0' >> $EXTRACT_VC_ENV_BAT_FILE 26517 # These will end up something like: 26518 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 26519 # The trailing space for everyone except PATH is no typo, but is needed due 26520 # to trailing \ in the Windows paths. These will be stripped later. 26521 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 26522 >> $EXTRACT_VC_ENV_BAT_FILE 26523 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' \ 26524 >> $EXTRACT_VC_ENV_BAT_FILE 26525 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' \ 26526 >> $EXTRACT_VC_ENV_BAT_FILE 26527 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 26528 >> $EXTRACT_VC_ENV_BAT_FILE 26529 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 26530 >> $EXTRACT_VC_ENV_BAT_FILE 26531 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 26532 >> $EXTRACT_VC_ENV_BAT_FILE 26533 26534 # Now execute the newly created bat file. 26535 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 26536 # Change directory so we don't need to mess with Windows paths in redirects. 26537 cd $VS_ENV_TMP_DIR 26538 cmd /c extract-vs-env.bat | $CAT 26539 cd $CURDIR 26540 26541 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 26543 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26545 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26546 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26547 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26548 as_fn_error $? "Cannot continue" "$LINENO" 5 26549 fi 26550 26551 # Now set all paths and other env variables. This will allow the rest of 26552 # the configure script to find and run the compiler in the proper way. 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 26554 $as_echo "$as_me: Setting extracted environment variables" >&6;} 26555 . $VS_ENV_TMP_DIR/set-vs-env.sh 26556 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 26557 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 26558 else 26559 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 26560 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 26561 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 26562 fi 26563 fi 26564 26565 # At this point, we should have correct variables in the environment, or we can't continue. 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 26567 $as_echo_n "checking for Visual Studio variables... " >&6; } 26568 26569 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 26570 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 26571 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 26573 $as_echo "present but broken" >&6; } 26574 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 26575 else 26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26577 $as_echo "ok" >&6; } 26578 # Remove any trailing "\" and " " from the variables. 26579 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 26580 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 26581 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 26582 WindowsSdkDir=`$ECHO "$WindowsSdkDir" | $SED 's/\\\\* *$//'` 26583 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 26584 if test -z "$WINDOWSSDKDIR"; then 26585 WINDOWSSDKDIR="$WindowsSdkDir" 26586 fi 26587 # Remove any paths containing # (typically F#) as that messes up make. This 26588 # is needed if visual studio was installed with F# support. 26589 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 26590 26591 26592 26593 26594 fi 26595 else 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26597 $as_echo "not found" >&6; } 26598 26599 if test "x$VS_ENV_CMD" = x; then 26600 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 26601 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 26602 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 26603 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 26604 else 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 26606 $as_echo "$as_me: Running the extraction script failed." >&6;} 26607 fi 26608 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26609 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26610 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26611 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26612 as_fn_error $? "Cannot continue" "$LINENO" 5 26613 fi 26614 26615 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 26616 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 26617 PATH="$VS_PATH" 26618 # The microsoft toolchain also requires INCLUDE and LIB to be set. 26619 export INCLUDE="$VS_INCLUDE" 26620 export LIB="$VS_LIB" 26621 fi 26622 26623 # Before we locate the compilers, we need to sanitize the Xcode build environment 26624 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 26625 # determine path to Xcode developer directory 26626 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 26627 SET_DEVELOPER_DIR= 26628 26629 if test -n "$XCODE_PATH"; then 26630 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 26631 fi 26632 26633 # DEVELOPER_DIR could also be provided directly 26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 26635 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 26636 if test -n "$DEVELOPER_DIR"; then 26637 if test ! -d "$DEVELOPER_DIR"; then 26638 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5 26639 fi 26640 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 26641 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 26642 fi 26643 # make it visible to all the tools immediately 26644 export DEVELOPER_DIR 26645 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 26647 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 26648 else 26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26650 $as_echo "no" >&6; } 26651 fi 26652 26653 26654 # Extract the first word of "xcodebuild", so it can be a program name with args. 26655 set dummy xcodebuild; ac_word=$2 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26657 $as_echo_n "checking for $ac_word... " >&6; } 26658 if ${ac_cv_path_XCODEBUILD+:} false; then : 26659 $as_echo_n "(cached) " >&6 26660 else 26661 case $XCODEBUILD in 26662 [\\/]* | ?:[\\/]*) 26663 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 26664 ;; 26665 *) 26666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26667 for as_dir in $PATH 26668 do 26669 IFS=$as_save_IFS 26670 test -z "$as_dir" && as_dir=. 26671 for ac_exec_ext in '' $ac_executable_extensions; do 26672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26673 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 26674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26675 break 2 26676 fi 26677 done 26678 done 26679 IFS=$as_save_IFS 26680 26681 ;; 26682 esac 26683 fi 26684 XCODEBUILD=$ac_cv_path_XCODEBUILD 26685 if test -n "$XCODEBUILD"; then 26686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 26687 $as_echo "$XCODEBUILD" >&6; } 26688 else 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26690 $as_echo "no" >&6; } 26691 fi 26692 26693 26694 if test -z "$XCODEBUILD"; then 26695 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 26696 fi 26697 26698 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 26699 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 26700 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 26701 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 26702 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 26703 fi 26704 26705 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 26706 # clang and clang++, which will break the build. So handle that here if we need to. 26707 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 26708 # use xcrun to find the real gcc and add it's directory to PATH 26709 # then autoconf magic will find it 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 26711 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 26712 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 26713 PATH="$XCODE_BIN_PATH":$PATH 26714 fi 26715 26716 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 26718 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 26719 # allow SDKNAME to be set to override the default SDK selection 26720 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 26721 if test -n "$SDKPATH"; then 26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 26723 $as_echo "$SDKPATH" >&6; } 26724 else 26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 26726 $as_echo "(none, will use system headers and frameworks)" >&6; } 26727 fi 26728 26729 26730 # Perform a basic sanity test 26731 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 26732 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 26733 fi 26734 26735 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 26736 if test -n "$SDKPATH"; then 26737 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 26738 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26739 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26740 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26741 fi 26742 26743 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 26744 # setting this here means it doesn't have to be peppered throughout the forest 26745 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26746 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26747 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26748 fi 26749 26750 # For solaris we really need solaris tools, and not the GNU equivalent. 26751 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 26752 # so add that to path before starting to probe. 26753 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 26754 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 26755 PATH="/usr/ccs/bin:$PATH" 26756 fi 26757 26758 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 26759 # override all other locations. 26760 if test "x$TOOLCHAIN_PATH" != x; then 26761 PATH=$TOOLCHAIN_PATH:$PATH 26762 fi 26763 26764 26765 # 26766 # Setup the compilers (CC and CXX) 26767 # 26768 26769 COMPILER_NAME=C 26770 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26771 26772 if test "x$CC" != x; then 26773 # User has supplied compiler name already, always let that override. 26774 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26775 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26776 if test "x`basename $CC`" = "x$CC"; then 26777 # A command without a complete path is provided, search $PATH. 26778 26779 for ac_prog in $CC 26780 do 26781 # Extract the first word of "$ac_prog", so it can be a program name with args. 26782 set dummy $ac_prog; ac_word=$2 26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26784 $as_echo_n "checking for $ac_word... " >&6; } 26785 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26786 $as_echo_n "(cached) " >&6 26787 else 26788 case $POTENTIAL_CC in 26789 [\\/]* | ?:[\\/]*) 26790 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26791 ;; 26792 *) 26793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26794 for as_dir in $PATH 26795 do 26796 IFS=$as_save_IFS 26797 test -z "$as_dir" && as_dir=. 26798 for ac_exec_ext in '' $ac_executable_extensions; do 26799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26800 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26802 break 2 26803 fi 26804 done 26805 done 26806 IFS=$as_save_IFS 26807 26808 ;; 26809 esac 26810 fi 26811 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26812 if test -n "$POTENTIAL_CC"; then 26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26814 $as_echo "$POTENTIAL_CC" >&6; } 26815 else 26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26817 $as_echo "no" >&6; } 26818 fi 26819 26820 26821 test -n "$POTENTIAL_CC" && break 26822 done 26823 26824 if test "x$POTENTIAL_CC" != x; then 26825 CC=$POTENTIAL_CC 26826 else 26827 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26828 fi 26829 else 26830 # Otherwise it might already be a complete path 26831 if test ! -x "$CC"; then 26832 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26833 fi 26834 fi 26835 else 26836 # No user supplied value. Locate compiler ourselves. 26837 26838 # If we are cross compiling, assume cross compilation tools follows the 26839 # cross compilation standard where they are prefixed with the autoconf 26840 # standard name for the target. For example the binary 26841 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 26842 # If we are not cross compiling, then the default compiler name will be 26843 # used. 26844 26845 CC= 26846 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 26847 # before checking the rest of the PATH. 26848 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 26849 # step, this should not be necessary. 26850 if test -n "$TOOLCHAIN_PATH"; then 26851 PATH_save="$PATH" 26852 PATH="$TOOLCHAIN_PATH" 26853 for ac_prog in $SEARCH_LIST 26854 do 26855 # Extract the first word of "$ac_prog", so it can be a program name with args. 26856 set dummy $ac_prog; ac_word=$2 26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26858 $as_echo_n "checking for $ac_word... " >&6; } 26859 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 26860 $as_echo_n "(cached) " >&6 26861 else 26862 case $TOOLCHAIN_PATH_CC in 26863 [\\/]* | ?:[\\/]*) 26864 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 26865 ;; 26866 *) 26867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26868 for as_dir in $PATH 26869 do 26870 IFS=$as_save_IFS 26871 test -z "$as_dir" && as_dir=. 26872 for ac_exec_ext in '' $ac_executable_extensions; do 26873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26874 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 26875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26876 break 2 26877 fi 26878 done 26879 done 26880 IFS=$as_save_IFS 26881 26882 ;; 26883 esac 26884 fi 26885 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 26886 if test -n "$TOOLCHAIN_PATH_CC"; then 26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 26888 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 26889 else 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26891 $as_echo "no" >&6; } 26892 fi 26893 26894 26895 test -n "$TOOLCHAIN_PATH_CC" && break 26896 done 26897 26898 CC=$TOOLCHAIN_PATH_CC 26899 PATH="$PATH_save" 26900 fi 26901 26902 # AC_PATH_PROGS can't be run multiple times with the same variable, 26903 # so create a new name for this run. 26904 if test "x$CC" = x; then 26905 for ac_prog in $TOOLCHAIN_CC_BINARY 26906 do 26907 # Extract the first word of "$ac_prog", so it can be a program name with args. 26908 set dummy $ac_prog; ac_word=$2 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26910 $as_echo_n "checking for $ac_word... " >&6; } 26911 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26912 $as_echo_n "(cached) " >&6 26913 else 26914 case $POTENTIAL_CC in 26915 [\\/]* | ?:[\\/]*) 26916 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26917 ;; 26918 *) 26919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26920 for as_dir in $PATH 26921 do 26922 IFS=$as_save_IFS 26923 test -z "$as_dir" && as_dir=. 26924 for ac_exec_ext in '' $ac_executable_extensions; do 26925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26926 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26928 break 2 26929 fi 26930 done 26931 done 26932 IFS=$as_save_IFS 26933 26934 ;; 26935 esac 26936 fi 26937 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26938 if test -n "$POTENTIAL_CC"; then 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26940 $as_echo "$POTENTIAL_CC" >&6; } 26941 else 26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26943 $as_echo "no" >&6; } 26944 fi 26945 26946 26947 test -n "$POTENTIAL_CC" && break 26948 done 26949 26950 CC=$POTENTIAL_CC 26951 fi 26952 26953 if test "x$CC" = x; then 26954 26955 # Print a helpful message on how to acquire the necessary build dependency. 26956 # devkit is the help tag: freetype, cups, pulse, alsa etc 26957 MISSING_DEPENDENCY=devkit 26958 26959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26960 cygwin_help $MISSING_DEPENDENCY 26961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26962 msys_help $MISSING_DEPENDENCY 26963 else 26964 PKGHANDLER_COMMAND= 26965 26966 case $PKGHANDLER in 26967 apt-get) 26968 apt_help $MISSING_DEPENDENCY ;; 26969 yum) 26970 yum_help $MISSING_DEPENDENCY ;; 26971 port) 26972 port_help $MISSING_DEPENDENCY ;; 26973 pkgutil) 26974 pkgutil_help $MISSING_DEPENDENCY ;; 26975 pkgadd) 26976 pkgadd_help $MISSING_DEPENDENCY ;; 26977 esac 26978 26979 if test "x$PKGHANDLER_COMMAND" != x; then 26980 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 26981 fi 26982 fi 26983 26984 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 26985 fi 26986 fi 26987 26988 # Now we have a compiler binary in CC. Make sure it's okay. 26989 26990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26991 26992 # First separate the path from the arguments. This will split at the first 26993 # space. 26994 complete="$CC" 26995 path="${complete%% *}" 26996 tmp="$complete EOL" 26997 arguments="${tmp#* }" 26998 26999 # Input might be given as Windows format, start by converting to 27000 # unix format. 27001 new_path=`$CYGPATH -u "$path"` 27002 27003 # Now try to locate executable using which 27004 new_path=`$WHICH "$new_path" 2> /dev/null` 27005 # bat and cmd files are not always considered executable in cygwin causing which 27006 # to not find them 27007 if test "x$new_path" = x \ 27008 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27009 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27010 new_path=`$CYGPATH -u "$path"` 27011 fi 27012 if test "x$new_path" = x; then 27013 # Oops. Which didn't find the executable. 27014 # The splitting of arguments from the executable at a space might have been incorrect, 27015 # since paths with space are more likely in Windows. Give it another try with the whole 27016 # argument. 27017 path="$complete" 27018 arguments="EOL" 27019 new_path=`$CYGPATH -u "$path"` 27020 new_path=`$WHICH "$new_path" 2> /dev/null` 27021 # bat and cmd files are not always considered executable in cygwin causing which 27022 # to not find them 27023 if test "x$new_path" = x \ 27024 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27025 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27026 new_path=`$CYGPATH -u "$path"` 27027 fi 27028 if test "x$new_path" = x; then 27029 # It's still not found. Now this is an unrecoverable error. 27030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27031 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27032 has_space=`$ECHO "$complete" | $GREP " "` 27033 if test "x$has_space" != x; then 27034 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27035 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27036 fi 27037 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27038 fi 27039 fi 27040 27041 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27042 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27043 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27044 # "foo.exe" is OK but "foo" is an error. 27045 # 27046 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27047 # It is also a way to make sure we got the proper file name for the real test later on. 27048 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27049 if test "x$test_shortpath" = x; then 27050 # Short path failed, file does not exist as specified. 27051 # Try adding .exe or .cmd 27052 if test -f "${new_path}.exe"; then 27053 input_to_shortpath="${new_path}.exe" 27054 elif test -f "${new_path}.cmd"; then 27055 input_to_shortpath="${new_path}.cmd" 27056 else 27057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27058 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27060 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27061 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27062 fi 27063 else 27064 input_to_shortpath="$new_path" 27065 fi 27066 27067 # Call helper function which possibly converts this using DOS-style short mode. 27068 # If so, the updated path is stored in $new_path. 27069 new_path="$input_to_shortpath" 27070 27071 input_path="$input_to_shortpath" 27072 # Check if we need to convert this using DOS-style short mode. If the path 27073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27074 # take no chances and rewrite it. 27075 # Note: m4 eats our [], so we need to use [ and ] instead. 27076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27077 if test "x$has_forbidden_chars" != x; then 27078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27079 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27080 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27081 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27082 # Going to short mode and back again did indeed matter. Since short mode is 27083 # case insensitive, let's make it lowercase to improve readability. 27084 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27085 # Now convert it back to Unix-style (cygpath) 27086 input_path=`$CYGPATH -u "$shortmode_path"` 27087 new_path="$input_path" 27088 fi 27089 fi 27090 27091 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27092 if test "x$test_cygdrive_prefix" = x; then 27093 # As a simple fix, exclude /usr/bin since it's not a real path. 27094 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27095 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27096 # a path prefixed by /cygdrive for fixpath to work. 27097 new_path="$CYGWIN_ROOT_PATH$input_path" 27098 fi 27099 fi 27100 27101 # remove trailing .exe if any 27102 new_path="${new_path/%.exe/}" 27103 27104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27105 27106 # First separate the path from the arguments. This will split at the first 27107 # space. 27108 complete="$CC" 27109 path="${complete%% *}" 27110 tmp="$complete EOL" 27111 arguments="${tmp#* }" 27112 27113 # Input might be given as Windows format, start by converting to 27114 # unix format. 27115 new_path="$path" 27116 27117 windows_path="$new_path" 27118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27119 unix_path=`$CYGPATH -u "$windows_path"` 27120 new_path="$unix_path" 27121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27123 new_path="$unix_path" 27124 fi 27125 27126 27127 # Now try to locate executable using which 27128 new_path=`$WHICH "$new_path" 2> /dev/null` 27129 27130 if test "x$new_path" = x; then 27131 # Oops. Which didn't find the executable. 27132 # The splitting of arguments from the executable at a space might have been incorrect, 27133 # since paths with space are more likely in Windows. Give it another try with the whole 27134 # argument. 27135 path="$complete" 27136 arguments="EOL" 27137 new_path="$path" 27138 27139 windows_path="$new_path" 27140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27141 unix_path=`$CYGPATH -u "$windows_path"` 27142 new_path="$unix_path" 27143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27145 new_path="$unix_path" 27146 fi 27147 27148 27149 new_path=`$WHICH "$new_path" 2> /dev/null` 27150 # bat and cmd files are not always considered executable in MSYS causing which 27151 # to not find them 27152 if test "x$new_path" = x \ 27153 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27154 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27155 new_path="$path" 27156 27157 windows_path="$new_path" 27158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27159 unix_path=`$CYGPATH -u "$windows_path"` 27160 new_path="$unix_path" 27161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27163 new_path="$unix_path" 27164 fi 27165 27166 fi 27167 27168 if test "x$new_path" = x; then 27169 # It's still not found. Now this is an unrecoverable error. 27170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27171 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27172 has_space=`$ECHO "$complete" | $GREP " "` 27173 if test "x$has_space" != x; then 27174 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27176 fi 27177 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27178 fi 27179 fi 27180 27181 # Now new_path has a complete unix path to the binary 27182 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27183 # Keep paths in /bin as-is, but remove trailing .exe if any 27184 new_path="${new_path/%.exe/}" 27185 # Do not save /bin paths to all_fixpath_prefixes! 27186 else 27187 # Not in mixed or Windows style, start by that. 27188 new_path=`cmd //c echo $new_path` 27189 27190 input_path="$new_path" 27191 # Check if we need to convert this using DOS-style short mode. If the path 27192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27193 # take no chances and rewrite it. 27194 # Note: m4 eats our [], so we need to use [ and ] instead. 27195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27196 if test "x$has_forbidden_chars" != x; then 27197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27198 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27199 fi 27200 27201 # Output is in $new_path 27202 27203 windows_path="$new_path" 27204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27205 unix_path=`$CYGPATH -u "$windows_path"` 27206 new_path="$unix_path" 27207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27209 new_path="$unix_path" 27210 fi 27211 27212 # remove trailing .exe if any 27213 new_path="${new_path/%.exe/}" 27214 27215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27217 fi 27218 27219 else 27220 # We're on a posix platform. Hooray! :) 27221 # First separate the path from the arguments. This will split at the first 27222 # space. 27223 complete="$CC" 27224 path="${complete%% *}" 27225 tmp="$complete EOL" 27226 arguments="${tmp#* }" 27227 27228 # Cannot rely on the command "which" here since it doesn't always work. 27229 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27230 if test -z "$is_absolute_path"; then 27231 # Path to executable is not absolute. Find it. 27232 IFS_save="$IFS" 27233 IFS=: 27234 for p in $PATH; do 27235 if test -f "$p/$path" && test -x "$p/$path"; then 27236 new_path="$p/$path" 27237 break 27238 fi 27239 done 27240 IFS="$IFS_save" 27241 else 27242 # This is an absolute path, we can use it without further modifications. 27243 new_path="$path" 27244 fi 27245 27246 if test "x$new_path" = x; then 27247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27248 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27249 has_space=`$ECHO "$complete" | $GREP " "` 27250 if test "x$has_space" != x; then 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27252 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27253 fi 27254 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27255 fi 27256 fi 27257 27258 # Now join together the path and the arguments once again 27259 if test "x$arguments" != xEOL; then 27260 new_complete="$new_path ${arguments% *}" 27261 else 27262 new_complete="$new_path" 27263 fi 27264 27265 if test "x$complete" != "x$new_complete"; then 27266 CC="$new_complete" 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27268 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27269 fi 27270 27271 TEST_COMPILER="$CC" 27272 27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27274 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27275 SYMLINK_ORIGINAL="$TEST_COMPILER" 27276 27277 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27278 # Follow a chain of symbolic links. Use readlink 27279 # where it exists, else fall back to horribly 27280 # complicated shell code. 27281 if test "x$READLINK_TESTED" != yes; then 27282 # On MacOSX there is a readlink tool with a different 27283 # purpose than the GNU readlink tool. Check the found readlink. 27284 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27285 if test "x$ISGNU" = x; then 27286 # A readlink that we do not know how to use. 27287 # Are there other non-GNU readlinks out there? 27288 READLINK_TESTED=yes 27289 READLINK= 27290 fi 27291 fi 27292 27293 if test "x$READLINK" != x; then 27294 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 27295 else 27296 # Save the current directory for restoring afterwards 27297 STARTDIR=$PWD 27298 COUNTER=0 27299 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 27300 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 27301 cd $sym_link_dir 27302 # Use -P flag to resolve symlinks in directories. 27303 cd `$THEPWDCMD -P` 27304 sym_link_dir=`$THEPWDCMD -P` 27305 # Resolve file symlinks 27306 while test $COUNTER -lt 20; do 27307 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27308 if test "x$ISLINK" == x; then 27309 # This is not a symbolic link! We are done! 27310 break 27311 fi 27312 # Again resolve directory symlinks since the target of the just found 27313 # link could be in a different directory 27314 cd `$DIRNAME $ISLINK` 27315 sym_link_dir=`$THEPWDCMD -P` 27316 sym_link_file=`$BASENAME $ISLINK` 27317 let COUNTER=COUNTER+1 27318 done 27319 cd $STARTDIR 27320 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 27321 fi 27322 fi 27323 27324 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 27326 $as_echo "no symlink" >&6; } 27327 else 27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 27329 $as_echo "$SYMLINK_ORIGINAL" >&6; } 27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 27331 $as_echo_n "checking if CC is disguised ccache... " >&6; } 27332 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 27333 if test "x$COMPILER_BASENAME" = "xccache"; then 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 27335 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 27336 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 27337 # We want to control ccache invocation ourselves, so ignore this cc and try 27338 # searching again. 27339 27340 # Remove the path to the fake ccache cc from the PATH 27341 RETRY_COMPILER_SAVED_PATH="$PATH" 27342 COMPILER_DIRNAME=`$DIRNAME $CC` 27343 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 27344 # Try again looking for our compiler 27345 if test -n "$ac_tool_prefix"; then 27346 for ac_prog in $TOOLCHAIN_CC_BINARY 27347 do 27348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27351 $as_echo_n "checking for $ac_word... " >&6; } 27352 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 27353 $as_echo_n "(cached) " >&6 27354 else 27355 if test -n "$PROPER_COMPILER_CC"; then 27356 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 27357 else 27358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27359 for as_dir in $PATH 27360 do 27361 IFS=$as_save_IFS 27362 test -z "$as_dir" && as_dir=. 27363 for ac_exec_ext in '' $ac_executable_extensions; do 27364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27365 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 27366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27367 break 2 27368 fi 27369 done 27370 done 27371 IFS=$as_save_IFS 27372 27373 fi 27374 fi 27375 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 27376 if test -n "$PROPER_COMPILER_CC"; then 27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27378 $as_echo "$PROPER_COMPILER_CC" >&6; } 27379 else 27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27381 $as_echo "no" >&6; } 27382 fi 27383 27384 27385 test -n "$PROPER_COMPILER_CC" && break 27386 done 27387 fi 27388 if test -z "$PROPER_COMPILER_CC"; then 27389 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 27390 for ac_prog in $TOOLCHAIN_CC_BINARY 27391 do 27392 # Extract the first word of "$ac_prog", so it can be a program name with args. 27393 set dummy $ac_prog; ac_word=$2 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27395 $as_echo_n "checking for $ac_word... " >&6; } 27396 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 27397 $as_echo_n "(cached) " >&6 27398 else 27399 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27400 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 27401 else 27402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27403 for as_dir in $PATH 27404 do 27405 IFS=$as_save_IFS 27406 test -z "$as_dir" && as_dir=. 27407 for ac_exec_ext in '' $ac_executable_extensions; do 27408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27409 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 27410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27411 break 2 27412 fi 27413 done 27414 done 27415 IFS=$as_save_IFS 27416 27417 fi 27418 fi 27419 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 27420 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 27422 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 27423 else 27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27425 $as_echo "no" >&6; } 27426 fi 27427 27428 27429 test -n "$ac_ct_PROPER_COMPILER_CC" && break 27430 done 27431 27432 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 27433 PROPER_COMPILER_CC="" 27434 else 27435 case $cross_compiling:$ac_tool_warned in 27436 yes:) 27437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27439 ac_tool_warned=yes ;; 27440 esac 27441 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 27442 fi 27443 fi 27444 27445 27446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27447 27448 # First separate the path from the arguments. This will split at the first 27449 # space. 27450 complete="$PROPER_COMPILER_CC" 27451 path="${complete%% *}" 27452 tmp="$complete EOL" 27453 arguments="${tmp#* }" 27454 27455 # Input might be given as Windows format, start by converting to 27456 # unix format. 27457 new_path=`$CYGPATH -u "$path"` 27458 27459 # Now try to locate executable using which 27460 new_path=`$WHICH "$new_path" 2> /dev/null` 27461 # bat and cmd files are not always considered executable in cygwin causing which 27462 # to not find them 27463 if test "x$new_path" = x \ 27464 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27465 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27466 new_path=`$CYGPATH -u "$path"` 27467 fi 27468 if test "x$new_path" = x; then 27469 # Oops. Which didn't find the executable. 27470 # The splitting of arguments from the executable at a space might have been incorrect, 27471 # since paths with space are more likely in Windows. Give it another try with the whole 27472 # argument. 27473 path="$complete" 27474 arguments="EOL" 27475 new_path=`$CYGPATH -u "$path"` 27476 new_path=`$WHICH "$new_path" 2> /dev/null` 27477 # bat and cmd files are not always considered executable in cygwin causing which 27478 # to not find them 27479 if test "x$new_path" = x \ 27480 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27481 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27482 new_path=`$CYGPATH -u "$path"` 27483 fi 27484 if test "x$new_path" = x; then 27485 # It's still not found. Now this is an unrecoverable error. 27486 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27487 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27488 has_space=`$ECHO "$complete" | $GREP " "` 27489 if test "x$has_space" != x; then 27490 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27491 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27492 fi 27493 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27494 fi 27495 fi 27496 27497 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27498 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27499 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27500 # "foo.exe" is OK but "foo" is an error. 27501 # 27502 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27503 # It is also a way to make sure we got the proper file name for the real test later on. 27504 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27505 if test "x$test_shortpath" = x; then 27506 # Short path failed, file does not exist as specified. 27507 # Try adding .exe or .cmd 27508 if test -f "${new_path}.exe"; then 27509 input_to_shortpath="${new_path}.exe" 27510 elif test -f "${new_path}.cmd"; then 27511 input_to_shortpath="${new_path}.cmd" 27512 else 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 27514 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 27515 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27516 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27517 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27518 fi 27519 else 27520 input_to_shortpath="$new_path" 27521 fi 27522 27523 # Call helper function which possibly converts this using DOS-style short mode. 27524 # If so, the updated path is stored in $new_path. 27525 new_path="$input_to_shortpath" 27526 27527 input_path="$input_to_shortpath" 27528 # Check if we need to convert this using DOS-style short mode. If the path 27529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27530 # take no chances and rewrite it. 27531 # Note: m4 eats our [], so we need to use [ and ] instead. 27532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27533 if test "x$has_forbidden_chars" != x; then 27534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27535 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27536 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27537 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27538 # Going to short mode and back again did indeed matter. Since short mode is 27539 # case insensitive, let's make it lowercase to improve readability. 27540 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27541 # Now convert it back to Unix-style (cygpath) 27542 input_path=`$CYGPATH -u "$shortmode_path"` 27543 new_path="$input_path" 27544 fi 27545 fi 27546 27547 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27548 if test "x$test_cygdrive_prefix" = x; then 27549 # As a simple fix, exclude /usr/bin since it's not a real path. 27550 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27551 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27552 # a path prefixed by /cygdrive for fixpath to work. 27553 new_path="$CYGWIN_ROOT_PATH$input_path" 27554 fi 27555 fi 27556 27557 # remove trailing .exe if any 27558 new_path="${new_path/%.exe/}" 27559 27560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27561 27562 # First separate the path from the arguments. This will split at the first 27563 # space. 27564 complete="$PROPER_COMPILER_CC" 27565 path="${complete%% *}" 27566 tmp="$complete EOL" 27567 arguments="${tmp#* }" 27568 27569 # Input might be given as Windows format, start by converting to 27570 # unix format. 27571 new_path="$path" 27572 27573 windows_path="$new_path" 27574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27575 unix_path=`$CYGPATH -u "$windows_path"` 27576 new_path="$unix_path" 27577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27579 new_path="$unix_path" 27580 fi 27581 27582 27583 # Now try to locate executable using which 27584 new_path=`$WHICH "$new_path" 2> /dev/null` 27585 27586 if test "x$new_path" = x; then 27587 # Oops. Which didn't find the executable. 27588 # The splitting of arguments from the executable at a space might have been incorrect, 27589 # since paths with space are more likely in Windows. Give it another try with the whole 27590 # argument. 27591 path="$complete" 27592 arguments="EOL" 27593 new_path="$path" 27594 27595 windows_path="$new_path" 27596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27597 unix_path=`$CYGPATH -u "$windows_path"` 27598 new_path="$unix_path" 27599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27601 new_path="$unix_path" 27602 fi 27603 27604 27605 new_path=`$WHICH "$new_path" 2> /dev/null` 27606 # bat and cmd files are not always considered executable in MSYS causing which 27607 # to not find them 27608 if test "x$new_path" = x \ 27609 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27610 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27611 new_path="$path" 27612 27613 windows_path="$new_path" 27614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27615 unix_path=`$CYGPATH -u "$windows_path"` 27616 new_path="$unix_path" 27617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27619 new_path="$unix_path" 27620 fi 27621 27622 fi 27623 27624 if test "x$new_path" = x; then 27625 # It's still not found. Now this is an unrecoverable error. 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27627 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27628 has_space=`$ECHO "$complete" | $GREP " "` 27629 if test "x$has_space" != x; then 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27631 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27632 fi 27633 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27634 fi 27635 fi 27636 27637 # Now new_path has a complete unix path to the binary 27638 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27639 # Keep paths in /bin as-is, but remove trailing .exe if any 27640 new_path="${new_path/%.exe/}" 27641 # Do not save /bin paths to all_fixpath_prefixes! 27642 else 27643 # Not in mixed or Windows style, start by that. 27644 new_path=`cmd //c echo $new_path` 27645 27646 input_path="$new_path" 27647 # Check if we need to convert this using DOS-style short mode. If the path 27648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27649 # take no chances and rewrite it. 27650 # Note: m4 eats our [], so we need to use [ and ] instead. 27651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27652 if test "x$has_forbidden_chars" != x; then 27653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27654 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27655 fi 27656 27657 # Output is in $new_path 27658 27659 windows_path="$new_path" 27660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27661 unix_path=`$CYGPATH -u "$windows_path"` 27662 new_path="$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 new_path="$unix_path" 27666 fi 27667 27668 # remove trailing .exe if any 27669 new_path="${new_path/%.exe/}" 27670 27671 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27672 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27673 fi 27674 27675 else 27676 # We're on a posix platform. Hooray! :) 27677 # First separate the path from the arguments. This will split at the first 27678 # space. 27679 complete="$PROPER_COMPILER_CC" 27680 path="${complete%% *}" 27681 tmp="$complete EOL" 27682 arguments="${tmp#* }" 27683 27684 # Cannot rely on the command "which" here since it doesn't always work. 27685 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27686 if test -z "$is_absolute_path"; then 27687 # Path to executable is not absolute. Find it. 27688 IFS_save="$IFS" 27689 IFS=: 27690 for p in $PATH; do 27691 if test -f "$p/$path" && test -x "$p/$path"; then 27692 new_path="$p/$path" 27693 break 27694 fi 27695 done 27696 IFS="$IFS_save" 27697 else 27698 # This is an absolute path, we can use it without further modifications. 27699 new_path="$path" 27700 fi 27701 27702 if test "x$new_path" = x; then 27703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27704 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27705 has_space=`$ECHO "$complete" | $GREP " "` 27706 if test "x$has_space" != x; then 27707 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27708 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27709 fi 27710 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27711 fi 27712 fi 27713 27714 # Now join together the path and the arguments once again 27715 if test "x$arguments" != xEOL; then 27716 new_complete="$new_path ${arguments% *}" 27717 else 27718 new_complete="$new_path" 27719 fi 27720 27721 if test "x$complete" != "x$new_complete"; then 27722 PROPER_COMPILER_CC="$new_complete" 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 27724 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 27725 fi 27726 27727 PATH="$RETRY_COMPILER_SAVED_PATH" 27728 27729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 27730 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 27731 27732 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27733 # Follow a chain of symbolic links. Use readlink 27734 # where it exists, else fall back to horribly 27735 # complicated shell code. 27736 if test "x$READLINK_TESTED" != yes; then 27737 # On MacOSX there is a readlink tool with a different 27738 # purpose than the GNU readlink tool. Check the found readlink. 27739 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27740 if test "x$ISGNU" = x; then 27741 # A readlink that we do not know how to use. 27742 # Are there other non-GNU readlinks out there? 27743 READLINK_TESTED=yes 27744 READLINK= 27745 fi 27746 fi 27747 27748 if test "x$READLINK" != x; then 27749 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27750 else 27751 # Save the current directory for restoring afterwards 27752 STARTDIR=$PWD 27753 COUNTER=0 27754 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27755 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27756 cd $sym_link_dir 27757 # Use -P flag to resolve symlinks in directories. 27758 cd `$THEPWDCMD -P` 27759 sym_link_dir=`$THEPWDCMD -P` 27760 # Resolve file symlinks 27761 while test $COUNTER -lt 20; do 27762 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27763 if test "x$ISLINK" == x; then 27764 # This is not a symbolic link! We are done! 27765 break 27766 fi 27767 # Again resolve directory symlinks since the target of the just found 27768 # link could be in a different directory 27769 cd `$DIRNAME $ISLINK` 27770 sym_link_dir=`$THEPWDCMD -P` 27771 sym_link_file=`$BASENAME $ISLINK` 27772 let COUNTER=COUNTER+1 27773 done 27774 cd $STARTDIR 27775 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27776 fi 27777 fi 27778 27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27780 $as_echo "$PROPER_COMPILER_CC" >&6; } 27781 CC="$PROPER_COMPILER_CC" 27782 else 27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27784 $as_echo "no, keeping CC" >&6; } 27785 fi 27786 fi 27787 27788 27789 COMPILER=$CC 27790 COMPILER_NAME=$COMPILER_NAME 27791 27792 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27793 # cc -V output typically looks like 27794 # cc: Sun C 5.12 Linux_i386 2011/11/16 27795 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27796 # Check that this is likely to be the Solaris Studio cc. 27797 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27798 if test $? -ne 0; then 27799 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27800 { $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 27801 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27802 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27803 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27804 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27805 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27806 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27807 fi 27808 # Remove usage instructions (if present), and 27809 # collapse compiler output into a single line 27810 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27811 $SED -e 's/ *[Uu]sage:.*//'` 27812 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27813 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27814 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27815 # xlc -qversion output typically looks like 27816 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27817 # Version: 11.01.0000.0015 27818 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27819 # Check that this is likely to be the IBM XL C compiler. 27820 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27821 if test $? -ne 0; then 27822 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27823 { $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 27824 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27825 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27826 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27827 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27828 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27829 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27830 fi 27831 # Collapse compiler output into a single line 27832 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27833 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27834 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27835 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27836 # There is no specific version flag, but all output starts with a version string. 27837 # First line typically looks something like: 27838 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 27839 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 27840 # Check that this is likely to be Microsoft CL.EXE. 27841 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 27842 if test $? -ne 0; then 27843 { $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 27844 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27845 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27846 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27847 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27848 fi 27849 # Collapse compiler output into a single line 27850 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27851 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27852 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 27853 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27854 # gcc --version output typically looks like 27855 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 27856 # Copyright (C) 2013 Free Software Foundation, Inc. 27857 # This is free software; see the source for copying conditions. There is NO 27858 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27859 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27860 # Check that this is likely to be GCC. 27861 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 27862 if test $? -ne 0; then 27863 { $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 27864 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27865 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 27866 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 27867 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27868 fi 27869 # Remove Copyright and legalese from version string, and 27870 # collapse into a single line 27871 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27872 $SED -e 's/ *Copyright .*//'` 27873 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27874 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 27875 elif test "x$TOOLCHAIN_TYPE" = xclang; then 27876 # clang --version output typically looks like 27877 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 27878 # clang version 3.3 (tags/RELEASE_33/final) 27879 # or 27880 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 27881 # Target: x86_64-pc-linux-gnu 27882 # Thread model: posix 27883 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27884 # Check that this is likely to be clang 27885 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 27886 if test $? -ne 0; then 27887 { $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 27888 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27889 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27890 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27891 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27892 fi 27893 # Collapse compiler output into a single line 27894 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27895 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27896 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 27897 27898 else 27899 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 27900 fi 27901 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 27902 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 27903 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 27904 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 27905 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 27907 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 27908 27909 27910 # Now that we have resolved CC ourself, let autoconf have its go at it 27911 ac_ext=c 27912 ac_cpp='$CPP $CPPFLAGS' 27913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27915 ac_compiler_gnu=$ac_cv_c_compiler_gnu 27916 if test -n "$ac_tool_prefix"; then 27917 for ac_prog in $CC 27918 do 27919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27922 $as_echo_n "checking for $ac_word... " >&6; } 27923 if ${ac_cv_prog_CC+:} false; then : 27924 $as_echo_n "(cached) " >&6 27925 else 27926 if test -n "$CC"; then 27927 ac_cv_prog_CC="$CC" # Let the user override the test. 27928 else 27929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27930 for as_dir in $PATH 27931 do 27932 IFS=$as_save_IFS 27933 test -z "$as_dir" && as_dir=. 27934 for ac_exec_ext in '' $ac_executable_extensions; do 27935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 27937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27938 break 2 27939 fi 27940 done 27941 done 27942 IFS=$as_save_IFS 27943 27944 fi 27945 fi 27946 CC=$ac_cv_prog_CC 27947 if test -n "$CC"; then 27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27949 $as_echo "$CC" >&6; } 27950 else 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27952 $as_echo "no" >&6; } 27953 fi 27954 27955 27956 test -n "$CC" && break 27957 done 27958 fi 27959 if test -z "$CC"; then 27960 ac_ct_CC=$CC 27961 for ac_prog in $CC 27962 do 27963 # Extract the first word of "$ac_prog", so it can be a program name with args. 27964 set dummy $ac_prog; ac_word=$2 27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27966 $as_echo_n "checking for $ac_word... " >&6; } 27967 if ${ac_cv_prog_ac_ct_CC+:} false; then : 27968 $as_echo_n "(cached) " >&6 27969 else 27970 if test -n "$ac_ct_CC"; then 27971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 27972 else 27973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27974 for as_dir in $PATH 27975 do 27976 IFS=$as_save_IFS 27977 test -z "$as_dir" && as_dir=. 27978 for ac_exec_ext in '' $ac_executable_extensions; do 27979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27980 ac_cv_prog_ac_ct_CC="$ac_prog" 27981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27982 break 2 27983 fi 27984 done 27985 done 27986 IFS=$as_save_IFS 27987 27988 fi 27989 fi 27990 ac_ct_CC=$ac_cv_prog_ac_ct_CC 27991 if test -n "$ac_ct_CC"; then 27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 27993 $as_echo "$ac_ct_CC" >&6; } 27994 else 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27996 $as_echo "no" >&6; } 27997 fi 27998 27999 28000 test -n "$ac_ct_CC" && break 28001 done 28002 28003 if test "x$ac_ct_CC" = x; then 28004 CC="" 28005 else 28006 case $cross_compiling:$ac_tool_warned in 28007 yes:) 28008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28010 ac_tool_warned=yes ;; 28011 esac 28012 CC=$ac_ct_CC 28013 fi 28014 fi 28015 28016 28017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28019 as_fn_error $? "no acceptable C compiler found in \$PATH 28020 See \`config.log' for more details" "$LINENO" 5; } 28021 28022 # Provide some information about the compiler. 28023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28024 set X $ac_compile 28025 ac_compiler=$2 28026 for ac_option in --version -v -V -qversion; do 28027 { { ac_try="$ac_compiler $ac_option >&5" 28028 case "(($ac_try" in 28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28030 *) ac_try_echo=$ac_try;; 28031 esac 28032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28033 $as_echo "$ac_try_echo"; } >&5 28034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28035 ac_status=$? 28036 if test -s conftest.err; then 28037 sed '10a\ 28038 ... rest of stderr output deleted ... 28039 10q' conftest.err >conftest.er1 28040 cat conftest.er1 >&5 28041 fi 28042 rm -f conftest.er1 conftest.err 28043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28044 test $ac_status = 0; } 28045 done 28046 28047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28048 /* end confdefs.h. */ 28049 28050 int 28051 main () 28052 { 28053 28054 ; 28055 return 0; 28056 } 28057 _ACEOF 28058 ac_clean_files_save=$ac_clean_files 28059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28060 # Try to create an executable without -o first, disregard a.out. 28061 # It will help us diagnose broken compilers, and finding out an intuition 28062 # of exeext. 28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28064 $as_echo_n "checking whether the C compiler works... " >&6; } 28065 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28066 28067 # The possible output files: 28068 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28069 28070 ac_rmfiles= 28071 for ac_file in $ac_files 28072 do 28073 case $ac_file in 28074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28075 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28076 esac 28077 done 28078 rm -f $ac_rmfiles 28079 28080 if { { ac_try="$ac_link_default" 28081 case "(($ac_try" in 28082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28083 *) ac_try_echo=$ac_try;; 28084 esac 28085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28086 $as_echo "$ac_try_echo"; } >&5 28087 (eval "$ac_link_default") 2>&5 28088 ac_status=$? 28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28090 test $ac_status = 0; }; then : 28091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28092 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28093 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28094 # so that the user can short-circuit this test for compilers unknown to 28095 # Autoconf. 28096 for ac_file in $ac_files '' 28097 do 28098 test -f "$ac_file" || continue 28099 case $ac_file in 28100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28101 ;; 28102 [ab].out ) 28103 # We found the default executable, but exeext='' is most 28104 # certainly right. 28105 break;; 28106 *.* ) 28107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28108 then :; else 28109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28110 fi 28111 # We set ac_cv_exeext here because the later test for it is not 28112 # safe: cross compilers may not add the suffix if given an `-o' 28113 # argument, so we may need to know it at that point already. 28114 # Even if this section looks crufty: it has the advantage of 28115 # actually working. 28116 break;; 28117 * ) 28118 break;; 28119 esac 28120 done 28121 test "$ac_cv_exeext" = no && ac_cv_exeext= 28122 28123 else 28124 ac_file='' 28125 fi 28126 if test -z "$ac_file"; then : 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28128 $as_echo "no" >&6; } 28129 $as_echo "$as_me: failed program was:" >&5 28130 sed 's/^/| /' conftest.$ac_ext >&5 28131 28132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28134 as_fn_error 77 "C compiler cannot create executables 28135 See \`config.log' for more details" "$LINENO" 5; } 28136 else 28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28138 $as_echo "yes" >&6; } 28139 fi 28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28141 $as_echo_n "checking for C compiler default output file name... " >&6; } 28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28143 $as_echo "$ac_file" >&6; } 28144 ac_exeext=$ac_cv_exeext 28145 28146 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28147 ac_clean_files=$ac_clean_files_save 28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28149 $as_echo_n "checking for suffix of executables... " >&6; } 28150 if { { ac_try="$ac_link" 28151 case "(($ac_try" in 28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28153 *) ac_try_echo=$ac_try;; 28154 esac 28155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28156 $as_echo "$ac_try_echo"; } >&5 28157 (eval "$ac_link") 2>&5 28158 ac_status=$? 28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28160 test $ac_status = 0; }; then : 28161 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28162 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28163 # work properly (i.e., refer to `conftest.exe'), while it won't with 28164 # `rm'. 28165 for ac_file in conftest.exe conftest conftest.*; do 28166 test -f "$ac_file" || continue 28167 case $ac_file in 28168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28169 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28170 break;; 28171 * ) break;; 28172 esac 28173 done 28174 else 28175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28177 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28178 See \`config.log' for more details" "$LINENO" 5; } 28179 fi 28180 rm -f conftest conftest$ac_cv_exeext 28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28182 $as_echo "$ac_cv_exeext" >&6; } 28183 28184 rm -f conftest.$ac_ext 28185 EXEEXT=$ac_cv_exeext 28186 ac_exeext=$EXEEXT 28187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28188 /* end confdefs.h. */ 28189 #include <stdio.h> 28190 int 28191 main () 28192 { 28193 FILE *f = fopen ("conftest.out", "w"); 28194 return ferror (f) || fclose (f) != 0; 28195 28196 ; 28197 return 0; 28198 } 28199 _ACEOF 28200 ac_clean_files="$ac_clean_files conftest.out" 28201 # Check that the compiler produces executables we can run. If not, either 28202 # the compiler is broken, or we cross compile. 28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28204 $as_echo_n "checking whether we are cross compiling... " >&6; } 28205 if test "$cross_compiling" != yes; then 28206 { { ac_try="$ac_link" 28207 case "(($ac_try" in 28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28209 *) ac_try_echo=$ac_try;; 28210 esac 28211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28212 $as_echo "$ac_try_echo"; } >&5 28213 (eval "$ac_link") 2>&5 28214 ac_status=$? 28215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28216 test $ac_status = 0; } 28217 if { ac_try='./conftest$ac_cv_exeext' 28218 { { case "(($ac_try" in 28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28220 *) ac_try_echo=$ac_try;; 28221 esac 28222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28223 $as_echo "$ac_try_echo"; } >&5 28224 (eval "$ac_try") 2>&5 28225 ac_status=$? 28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28227 test $ac_status = 0; }; }; then 28228 cross_compiling=no 28229 else 28230 if test "$cross_compiling" = maybe; then 28231 cross_compiling=yes 28232 else 28233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28235 as_fn_error $? "cannot run C compiled programs. 28236 If you meant to cross compile, use \`--host'. 28237 See \`config.log' for more details" "$LINENO" 5; } 28238 fi 28239 fi 28240 fi 28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28242 $as_echo "$cross_compiling" >&6; } 28243 28244 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28245 ac_clean_files=$ac_clean_files_save 28246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28247 $as_echo_n "checking for suffix of object files... " >&6; } 28248 if ${ac_cv_objext+:} false; then : 28249 $as_echo_n "(cached) " >&6 28250 else 28251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28252 /* end confdefs.h. */ 28253 28254 int 28255 main () 28256 { 28257 28258 ; 28259 return 0; 28260 } 28261 _ACEOF 28262 rm -f conftest.o conftest.obj 28263 if { { ac_try="$ac_compile" 28264 case "(($ac_try" in 28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28266 *) ac_try_echo=$ac_try;; 28267 esac 28268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28269 $as_echo "$ac_try_echo"; } >&5 28270 (eval "$ac_compile") 2>&5 28271 ac_status=$? 28272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28273 test $ac_status = 0; }; then : 28274 for ac_file in conftest.o conftest.obj conftest.*; do 28275 test -f "$ac_file" || continue; 28276 case $ac_file in 28277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28279 break;; 28280 esac 28281 done 28282 else 28283 $as_echo "$as_me: failed program was:" >&5 28284 sed 's/^/| /' conftest.$ac_ext >&5 28285 28286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28288 as_fn_error $? "cannot compute suffix of object files: cannot compile 28289 See \`config.log' for more details" "$LINENO" 5; } 28290 fi 28291 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28292 fi 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28294 $as_echo "$ac_cv_objext" >&6; } 28295 OBJEXT=$ac_cv_objext 28296 ac_objext=$OBJEXT 28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28299 if ${ac_cv_c_compiler_gnu+:} false; then : 28300 $as_echo_n "(cached) " >&6 28301 else 28302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28303 /* end confdefs.h. */ 28304 28305 int 28306 main () 28307 { 28308 #ifndef __GNUC__ 28309 choke me 28310 #endif 28311 28312 ; 28313 return 0; 28314 } 28315 _ACEOF 28316 if ac_fn_c_try_compile "$LINENO"; then : 28317 ac_compiler_gnu=yes 28318 else 28319 ac_compiler_gnu=no 28320 fi 28321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28322 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28323 28324 fi 28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28326 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 28327 if test $ac_compiler_gnu = yes; then 28328 GCC=yes 28329 else 28330 GCC= 28331 fi 28332 ac_test_CFLAGS=${CFLAGS+set} 28333 ac_save_CFLAGS=$CFLAGS 28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28335 $as_echo_n "checking whether $CC accepts -g... " >&6; } 28336 if ${ac_cv_prog_cc_g+:} false; then : 28337 $as_echo_n "(cached) " >&6 28338 else 28339 ac_save_c_werror_flag=$ac_c_werror_flag 28340 ac_c_werror_flag=yes 28341 ac_cv_prog_cc_g=no 28342 CFLAGS="-g" 28343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28344 /* end confdefs.h. */ 28345 28346 int 28347 main () 28348 { 28349 28350 ; 28351 return 0; 28352 } 28353 _ACEOF 28354 if ac_fn_c_try_compile "$LINENO"; then : 28355 ac_cv_prog_cc_g=yes 28356 else 28357 CFLAGS="" 28358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28359 /* end confdefs.h. */ 28360 28361 int 28362 main () 28363 { 28364 28365 ; 28366 return 0; 28367 } 28368 _ACEOF 28369 if ac_fn_c_try_compile "$LINENO"; then : 28370 28371 else 28372 ac_c_werror_flag=$ac_save_c_werror_flag 28373 CFLAGS="-g" 28374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28375 /* end confdefs.h. */ 28376 28377 int 28378 main () 28379 { 28380 28381 ; 28382 return 0; 28383 } 28384 _ACEOF 28385 if ac_fn_c_try_compile "$LINENO"; then : 28386 ac_cv_prog_cc_g=yes 28387 fi 28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28389 fi 28390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28391 fi 28392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28393 ac_c_werror_flag=$ac_save_c_werror_flag 28394 fi 28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28396 $as_echo "$ac_cv_prog_cc_g" >&6; } 28397 if test "$ac_test_CFLAGS" = set; then 28398 CFLAGS=$ac_save_CFLAGS 28399 elif test $ac_cv_prog_cc_g = yes; then 28400 if test "$GCC" = yes; then 28401 CFLAGS="-g -O2" 28402 else 28403 CFLAGS="-g" 28404 fi 28405 else 28406 if test "$GCC" = yes; then 28407 CFLAGS="-O2" 28408 else 28409 CFLAGS= 28410 fi 28411 fi 28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 28413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 28414 if ${ac_cv_prog_cc_c89+:} false; then : 28415 $as_echo_n "(cached) " >&6 28416 else 28417 ac_cv_prog_cc_c89=no 28418 ac_save_CC=$CC 28419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28420 /* end confdefs.h. */ 28421 #include <stdarg.h> 28422 #include <stdio.h> 28423 struct stat; 28424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 28425 struct buf { int x; }; 28426 FILE * (*rcsopen) (struct buf *, struct stat *, int); 28427 static char *e (p, i) 28428 char **p; 28429 int i; 28430 { 28431 return p[i]; 28432 } 28433 static char *f (char * (*g) (char **, int), char **p, ...) 28434 { 28435 char *s; 28436 va_list v; 28437 va_start (v,p); 28438 s = g (p, va_arg (v,int)); 28439 va_end (v); 28440 return s; 28441 } 28442 28443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 28444 function prototypes and stuff, but not '\xHH' hex character constants. 28445 These don't provoke an error unfortunately, instead are silently treated 28446 as 'x'. The following induces an error, until -std is added to get 28447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 28448 array size at least. It's necessary to write '\x00'==0 to get something 28449 that's true only with -std. */ 28450 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 28451 28452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 28453 inside strings and character constants. */ 28454 #define FOO(x) 'x' 28455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 28456 28457 int test (int i, double x); 28458 struct s1 {int (*f) (int a);}; 28459 struct s2 {int (*f) (double a);}; 28460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 28461 int argc; 28462 char **argv; 28463 int 28464 main () 28465 { 28466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 28467 ; 28468 return 0; 28469 } 28470 _ACEOF 28471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 28472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 28473 do 28474 CC="$ac_save_CC $ac_arg" 28475 if ac_fn_c_try_compile "$LINENO"; then : 28476 ac_cv_prog_cc_c89=$ac_arg 28477 fi 28478 rm -f core conftest.err conftest.$ac_objext 28479 test "x$ac_cv_prog_cc_c89" != "xno" && break 28480 done 28481 rm -f conftest.$ac_ext 28482 CC=$ac_save_CC 28483 28484 fi 28485 # AC_CACHE_VAL 28486 case "x$ac_cv_prog_cc_c89" in 28487 x) 28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 28489 $as_echo "none needed" >&6; } ;; 28490 xno) 28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 28492 $as_echo "unsupported" >&6; } ;; 28493 *) 28494 CC="$CC $ac_cv_prog_cc_c89" 28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 28496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 28497 esac 28498 if test "x$ac_cv_prog_cc_c89" != xno; then : 28499 28500 fi 28501 28502 ac_ext=cpp 28503 ac_cpp='$CXXCPP $CPPFLAGS' 28504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28507 28508 28509 28510 COMPILER_NAME=C++ 28511 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 28512 28513 if test "x$CXX" != x; then 28514 # User has supplied compiler name already, always let that override. 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 28516 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 28517 if test "x`basename $CXX`" = "x$CXX"; then 28518 # A command without a complete path is provided, search $PATH. 28519 28520 for ac_prog in $CXX 28521 do 28522 # Extract the first word of "$ac_prog", so it can be a program name with args. 28523 set dummy $ac_prog; ac_word=$2 28524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28525 $as_echo_n "checking for $ac_word... " >&6; } 28526 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28527 $as_echo_n "(cached) " >&6 28528 else 28529 case $POTENTIAL_CXX in 28530 [\\/]* | ?:[\\/]*) 28531 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28532 ;; 28533 *) 28534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28535 for as_dir in $PATH 28536 do 28537 IFS=$as_save_IFS 28538 test -z "$as_dir" && as_dir=. 28539 for ac_exec_ext in '' $ac_executable_extensions; do 28540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28541 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28543 break 2 28544 fi 28545 done 28546 done 28547 IFS=$as_save_IFS 28548 28549 ;; 28550 esac 28551 fi 28552 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28553 if test -n "$POTENTIAL_CXX"; then 28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28555 $as_echo "$POTENTIAL_CXX" >&6; } 28556 else 28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28558 $as_echo "no" >&6; } 28559 fi 28560 28561 28562 test -n "$POTENTIAL_CXX" && break 28563 done 28564 28565 if test "x$POTENTIAL_CXX" != x; then 28566 CXX=$POTENTIAL_CXX 28567 else 28568 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 28569 fi 28570 else 28571 # Otherwise it might already be a complete path 28572 if test ! -x "$CXX"; then 28573 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 28574 fi 28575 fi 28576 else 28577 # No user supplied value. Locate compiler ourselves. 28578 28579 # If we are cross compiling, assume cross compilation tools follows the 28580 # cross compilation standard where they are prefixed with the autoconf 28581 # standard name for the target. For example the binary 28582 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28583 # If we are not cross compiling, then the default compiler name will be 28584 # used. 28585 28586 CXX= 28587 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28588 # before checking the rest of the PATH. 28589 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28590 # step, this should not be necessary. 28591 if test -n "$TOOLCHAIN_PATH"; then 28592 PATH_save="$PATH" 28593 PATH="$TOOLCHAIN_PATH" 28594 for ac_prog in $SEARCH_LIST 28595 do 28596 # Extract the first word of "$ac_prog", so it can be a program name with args. 28597 set dummy $ac_prog; ac_word=$2 28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28599 $as_echo_n "checking for $ac_word... " >&6; } 28600 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 28601 $as_echo_n "(cached) " >&6 28602 else 28603 case $TOOLCHAIN_PATH_CXX in 28604 [\\/]* | ?:[\\/]*) 28605 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 28606 ;; 28607 *) 28608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28609 for as_dir in $PATH 28610 do 28611 IFS=$as_save_IFS 28612 test -z "$as_dir" && as_dir=. 28613 for ac_exec_ext in '' $ac_executable_extensions; do 28614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28615 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 28616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28617 break 2 28618 fi 28619 done 28620 done 28621 IFS=$as_save_IFS 28622 28623 ;; 28624 esac 28625 fi 28626 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 28627 if test -n "$TOOLCHAIN_PATH_CXX"; then 28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 28629 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 28630 else 28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28632 $as_echo "no" >&6; } 28633 fi 28634 28635 28636 test -n "$TOOLCHAIN_PATH_CXX" && break 28637 done 28638 28639 CXX=$TOOLCHAIN_PATH_CXX 28640 PATH="$PATH_save" 28641 fi 28642 28643 # AC_PATH_PROGS can't be run multiple times with the same variable, 28644 # so create a new name for this run. 28645 if test "x$CXX" = x; then 28646 for ac_prog in $TOOLCHAIN_CXX_BINARY 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_POTENTIAL_CXX+:} false; then : 28653 $as_echo_n "(cached) " >&6 28654 else 28655 case $POTENTIAL_CXX in 28656 [\\/]* | ?:[\\/]*) 28657 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # 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_POTENTIAL_CXX="$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 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28679 if test -n "$POTENTIAL_CXX"; then 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28681 $as_echo "$POTENTIAL_CXX" >&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 "$POTENTIAL_CXX" && break 28689 done 28690 28691 CXX=$POTENTIAL_CXX 28692 fi 28693 28694 if test "x$CXX" = x; then 28695 28696 # Print a helpful message on how to acquire the necessary build dependency. 28697 # devkit is the help tag: freetype, cups, pulse, alsa etc 28698 MISSING_DEPENDENCY=devkit 28699 28700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28701 cygwin_help $MISSING_DEPENDENCY 28702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28703 msys_help $MISSING_DEPENDENCY 28704 else 28705 PKGHANDLER_COMMAND= 28706 28707 case $PKGHANDLER in 28708 apt-get) 28709 apt_help $MISSING_DEPENDENCY ;; 28710 yum) 28711 yum_help $MISSING_DEPENDENCY ;; 28712 port) 28713 port_help $MISSING_DEPENDENCY ;; 28714 pkgutil) 28715 pkgutil_help $MISSING_DEPENDENCY ;; 28716 pkgadd) 28717 pkgadd_help $MISSING_DEPENDENCY ;; 28718 esac 28719 28720 if test "x$PKGHANDLER_COMMAND" != x; then 28721 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28722 fi 28723 fi 28724 28725 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28726 fi 28727 fi 28728 28729 # Now we have a compiler binary in CXX. Make sure it's okay. 28730 28731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28732 28733 # First separate the path from the arguments. This will split at the first 28734 # space. 28735 complete="$CXX" 28736 path="${complete%% *}" 28737 tmp="$complete EOL" 28738 arguments="${tmp#* }" 28739 28740 # Input might be given as Windows format, start by converting to 28741 # unix format. 28742 new_path=`$CYGPATH -u "$path"` 28743 28744 # Now try to locate executable using which 28745 new_path=`$WHICH "$new_path" 2> /dev/null` 28746 # bat and cmd files are not always considered executable in cygwin causing which 28747 # to not find them 28748 if test "x$new_path" = x \ 28749 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28750 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28751 new_path=`$CYGPATH -u "$path"` 28752 fi 28753 if test "x$new_path" = x; then 28754 # Oops. Which didn't find the executable. 28755 # The splitting of arguments from the executable at a space might have been incorrect, 28756 # since paths with space are more likely in Windows. Give it another try with the whole 28757 # argument. 28758 path="$complete" 28759 arguments="EOL" 28760 new_path=`$CYGPATH -u "$path"` 28761 new_path=`$WHICH "$new_path" 2> /dev/null` 28762 # bat and cmd files are not always considered executable in cygwin causing which 28763 # to not find them 28764 if test "x$new_path" = x \ 28765 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28766 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28767 new_path=`$CYGPATH -u "$path"` 28768 fi 28769 if test "x$new_path" = x; then 28770 # It's still not found. Now this is an unrecoverable error. 28771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28772 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28773 has_space=`$ECHO "$complete" | $GREP " "` 28774 if test "x$has_space" != x; then 28775 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28776 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28777 fi 28778 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28779 fi 28780 fi 28781 28782 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28783 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28784 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28785 # "foo.exe" is OK but "foo" is an error. 28786 # 28787 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28788 # It is also a way to make sure we got the proper file name for the real test later on. 28789 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28790 if test "x$test_shortpath" = x; then 28791 # Short path failed, file does not exist as specified. 28792 # Try adding .exe or .cmd 28793 if test -f "${new_path}.exe"; then 28794 input_to_shortpath="${new_path}.exe" 28795 elif test -f "${new_path}.cmd"; then 28796 input_to_shortpath="${new_path}.cmd" 28797 else 28798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28799 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28800 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28801 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28802 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28803 fi 28804 else 28805 input_to_shortpath="$new_path" 28806 fi 28807 28808 # Call helper function which possibly converts this using DOS-style short mode. 28809 # If so, the updated path is stored in $new_path. 28810 new_path="$input_to_shortpath" 28811 28812 input_path="$input_to_shortpath" 28813 # Check if we need to convert this using DOS-style short mode. If the path 28814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28815 # take no chances and rewrite it. 28816 # Note: m4 eats our [], so we need to use [ and ] instead. 28817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28818 if test "x$has_forbidden_chars" != x; then 28819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28820 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28821 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28822 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28823 # Going to short mode and back again did indeed matter. Since short mode is 28824 # case insensitive, let's make it lowercase to improve readability. 28825 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28826 # Now convert it back to Unix-style (cygpath) 28827 input_path=`$CYGPATH -u "$shortmode_path"` 28828 new_path="$input_path" 28829 fi 28830 fi 28831 28832 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28833 if test "x$test_cygdrive_prefix" = x; then 28834 # As a simple fix, exclude /usr/bin since it's not a real path. 28835 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28836 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28837 # a path prefixed by /cygdrive for fixpath to work. 28838 new_path="$CYGWIN_ROOT_PATH$input_path" 28839 fi 28840 fi 28841 28842 # remove trailing .exe if any 28843 new_path="${new_path/%.exe/}" 28844 28845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28846 28847 # First separate the path from the arguments. This will split at the first 28848 # space. 28849 complete="$CXX" 28850 path="${complete%% *}" 28851 tmp="$complete EOL" 28852 arguments="${tmp#* }" 28853 28854 # Input might be given as Windows format, start by converting to 28855 # unix format. 28856 new_path="$path" 28857 28858 windows_path="$new_path" 28859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28860 unix_path=`$CYGPATH -u "$windows_path"` 28861 new_path="$unix_path" 28862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28864 new_path="$unix_path" 28865 fi 28866 28867 28868 # Now try to locate executable using which 28869 new_path=`$WHICH "$new_path" 2> /dev/null` 28870 28871 if test "x$new_path" = x; then 28872 # Oops. Which didn't find the executable. 28873 # The splitting of arguments from the executable at a space might have been incorrect, 28874 # since paths with space are more likely in Windows. Give it another try with the whole 28875 # argument. 28876 path="$complete" 28877 arguments="EOL" 28878 new_path="$path" 28879 28880 windows_path="$new_path" 28881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28882 unix_path=`$CYGPATH -u "$windows_path"` 28883 new_path="$unix_path" 28884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28886 new_path="$unix_path" 28887 fi 28888 28889 28890 new_path=`$WHICH "$new_path" 2> /dev/null` 28891 # bat and cmd files are not always considered executable in MSYS causing which 28892 # to not find them 28893 if test "x$new_path" = x \ 28894 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28895 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28896 new_path="$path" 28897 28898 windows_path="$new_path" 28899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28900 unix_path=`$CYGPATH -u "$windows_path"` 28901 new_path="$unix_path" 28902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28904 new_path="$unix_path" 28905 fi 28906 28907 fi 28908 28909 if test "x$new_path" = x; then 28910 # It's still not found. Now this is an unrecoverable error. 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28912 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28913 has_space=`$ECHO "$complete" | $GREP " "` 28914 if test "x$has_space" != x; then 28915 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28916 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28917 fi 28918 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28919 fi 28920 fi 28921 28922 # Now new_path has a complete unix path to the binary 28923 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28924 # Keep paths in /bin as-is, but remove trailing .exe if any 28925 new_path="${new_path/%.exe/}" 28926 # Do not save /bin paths to all_fixpath_prefixes! 28927 else 28928 # Not in mixed or Windows style, start by that. 28929 new_path=`cmd //c echo $new_path` 28930 28931 input_path="$new_path" 28932 # Check if we need to convert this using DOS-style short mode. If the path 28933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28934 # take no chances and rewrite it. 28935 # Note: m4 eats our [], so we need to use [ and ] instead. 28936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28937 if test "x$has_forbidden_chars" != x; then 28938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28939 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28940 fi 28941 28942 # Output is in $new_path 28943 28944 windows_path="$new_path" 28945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28946 unix_path=`$CYGPATH -u "$windows_path"` 28947 new_path="$unix_path" 28948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28950 new_path="$unix_path" 28951 fi 28952 28953 # remove trailing .exe if any 28954 new_path="${new_path/%.exe/}" 28955 28956 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28957 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28958 fi 28959 28960 else 28961 # We're on a posix platform. Hooray! :) 28962 # First separate the path from the arguments. This will split at the first 28963 # space. 28964 complete="$CXX" 28965 path="${complete%% *}" 28966 tmp="$complete EOL" 28967 arguments="${tmp#* }" 28968 28969 # Cannot rely on the command "which" here since it doesn't always work. 28970 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28971 if test -z "$is_absolute_path"; then 28972 # Path to executable is not absolute. Find it. 28973 IFS_save="$IFS" 28974 IFS=: 28975 for p in $PATH; do 28976 if test -f "$p/$path" && test -x "$p/$path"; then 28977 new_path="$p/$path" 28978 break 28979 fi 28980 done 28981 IFS="$IFS_save" 28982 else 28983 # This is an absolute path, we can use it without further modifications. 28984 new_path="$path" 28985 fi 28986 28987 if test "x$new_path" = x; then 28988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28989 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28990 has_space=`$ECHO "$complete" | $GREP " "` 28991 if test "x$has_space" != x; then 28992 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28993 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28994 fi 28995 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28996 fi 28997 fi 28998 28999 # Now join together the path and the arguments once again 29000 if test "x$arguments" != xEOL; then 29001 new_complete="$new_path ${arguments% *}" 29002 else 29003 new_complete="$new_path" 29004 fi 29005 29006 if test "x$complete" != "x$new_complete"; then 29007 CXX="$new_complete" 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29009 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29010 fi 29011 29012 TEST_COMPILER="$CXX" 29013 29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29015 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29016 SYMLINK_ORIGINAL="$TEST_COMPILER" 29017 29018 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29019 # Follow a chain of symbolic links. Use readlink 29020 # where it exists, else fall back to horribly 29021 # complicated shell code. 29022 if test "x$READLINK_TESTED" != yes; then 29023 # On MacOSX there is a readlink tool with a different 29024 # purpose than the GNU readlink tool. Check the found readlink. 29025 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29026 if test "x$ISGNU" = x; then 29027 # A readlink that we do not know how to use. 29028 # Are there other non-GNU readlinks out there? 29029 READLINK_TESTED=yes 29030 READLINK= 29031 fi 29032 fi 29033 29034 if test "x$READLINK" != x; then 29035 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 29036 else 29037 # Save the current directory for restoring afterwards 29038 STARTDIR=$PWD 29039 COUNTER=0 29040 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 29041 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 29042 cd $sym_link_dir 29043 # Use -P flag to resolve symlinks in directories. 29044 cd `$THEPWDCMD -P` 29045 sym_link_dir=`$THEPWDCMD -P` 29046 # Resolve file symlinks 29047 while test $COUNTER -lt 20; do 29048 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29049 if test "x$ISLINK" == x; then 29050 # This is not a symbolic link! We are done! 29051 break 29052 fi 29053 # Again resolve directory symlinks since the target of the just found 29054 # link could be in a different directory 29055 cd `$DIRNAME $ISLINK` 29056 sym_link_dir=`$THEPWDCMD -P` 29057 sym_link_file=`$BASENAME $ISLINK` 29058 let COUNTER=COUNTER+1 29059 done 29060 cd $STARTDIR 29061 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 29062 fi 29063 fi 29064 29065 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 29067 $as_echo "no symlink" >&6; } 29068 else 29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 29070 $as_echo "$SYMLINK_ORIGINAL" >&6; } 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29072 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29073 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 29074 if test "x$COMPILER_BASENAME" = "xccache"; then 29075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29076 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29077 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29078 # We want to control ccache invocation ourselves, so ignore this cc and try 29079 # searching again. 29080 29081 # Remove the path to the fake ccache cc from the PATH 29082 RETRY_COMPILER_SAVED_PATH="$PATH" 29083 COMPILER_DIRNAME=`$DIRNAME $CXX` 29084 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29085 # Try again looking for our compiler 29086 if test -n "$ac_tool_prefix"; then 29087 for ac_prog in $TOOLCHAIN_CXX_BINARY 29088 do 29089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29092 $as_echo_n "checking for $ac_word... " >&6; } 29093 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29094 $as_echo_n "(cached) " >&6 29095 else 29096 if test -n "$PROPER_COMPILER_CXX"; then 29097 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29098 else 29099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29100 for as_dir in $PATH 29101 do 29102 IFS=$as_save_IFS 29103 test -z "$as_dir" && as_dir=. 29104 for ac_exec_ext in '' $ac_executable_extensions; do 29105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29106 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29108 break 2 29109 fi 29110 done 29111 done 29112 IFS=$as_save_IFS 29113 29114 fi 29115 fi 29116 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29117 if test -n "$PROPER_COMPILER_CXX"; then 29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29119 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29120 else 29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29122 $as_echo "no" >&6; } 29123 fi 29124 29125 29126 test -n "$PROPER_COMPILER_CXX" && break 29127 done 29128 fi 29129 if test -z "$PROPER_COMPILER_CXX"; then 29130 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29131 for ac_prog in $TOOLCHAIN_CXX_BINARY 29132 do 29133 # Extract the first word of "$ac_prog", so it can be a program name with args. 29134 set dummy $ac_prog; ac_word=$2 29135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29136 $as_echo_n "checking for $ac_word... " >&6; } 29137 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29138 $as_echo_n "(cached) " >&6 29139 else 29140 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29141 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29142 else 29143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29144 for as_dir in $PATH 29145 do 29146 IFS=$as_save_IFS 29147 test -z "$as_dir" && as_dir=. 29148 for ac_exec_ext in '' $ac_executable_extensions; do 29149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29150 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29152 break 2 29153 fi 29154 done 29155 done 29156 IFS=$as_save_IFS 29157 29158 fi 29159 fi 29160 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29161 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29163 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29164 else 29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29166 $as_echo "no" >&6; } 29167 fi 29168 29169 29170 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29171 done 29172 29173 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29174 PROPER_COMPILER_CXX="" 29175 else 29176 case $cross_compiling:$ac_tool_warned in 29177 yes:) 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29180 ac_tool_warned=yes ;; 29181 esac 29182 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29183 fi 29184 fi 29185 29186 29187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29188 29189 # First separate the path from the arguments. This will split at the first 29190 # space. 29191 complete="$PROPER_COMPILER_CXX" 29192 path="${complete%% *}" 29193 tmp="$complete EOL" 29194 arguments="${tmp#* }" 29195 29196 # Input might be given as Windows format, start by converting to 29197 # unix format. 29198 new_path=`$CYGPATH -u "$path"` 29199 29200 # Now try to locate executable using which 29201 new_path=`$WHICH "$new_path" 2> /dev/null` 29202 # bat and cmd files are not always considered executable in cygwin causing which 29203 # to not find them 29204 if test "x$new_path" = x \ 29205 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29206 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29207 new_path=`$CYGPATH -u "$path"` 29208 fi 29209 if test "x$new_path" = x; then 29210 # Oops. Which didn't find the executable. 29211 # The splitting of arguments from the executable at a space might have been incorrect, 29212 # since paths with space are more likely in Windows. Give it another try with the whole 29213 # argument. 29214 path="$complete" 29215 arguments="EOL" 29216 new_path=`$CYGPATH -u "$path"` 29217 new_path=`$WHICH "$new_path" 2> /dev/null` 29218 # bat and cmd files are not always considered executable in cygwin causing which 29219 # to not find them 29220 if test "x$new_path" = x \ 29221 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29222 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29223 new_path=`$CYGPATH -u "$path"` 29224 fi 29225 if test "x$new_path" = x; then 29226 # It's still not found. Now this is an unrecoverable error. 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29228 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29229 has_space=`$ECHO "$complete" | $GREP " "` 29230 if test "x$has_space" != x; then 29231 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29232 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29233 fi 29234 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29235 fi 29236 fi 29237 29238 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29239 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29240 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29241 # "foo.exe" is OK but "foo" is an error. 29242 # 29243 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29244 # It is also a way to make sure we got the proper file name for the real test later on. 29245 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29246 if test "x$test_shortpath" = x; then 29247 # Short path failed, file does not exist as specified. 29248 # Try adding .exe or .cmd 29249 if test -f "${new_path}.exe"; then 29250 input_to_shortpath="${new_path}.exe" 29251 elif test -f "${new_path}.cmd"; then 29252 input_to_shortpath="${new_path}.cmd" 29253 else 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29255 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29256 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29257 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29258 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29259 fi 29260 else 29261 input_to_shortpath="$new_path" 29262 fi 29263 29264 # Call helper function which possibly converts this using DOS-style short mode. 29265 # If so, the updated path is stored in $new_path. 29266 new_path="$input_to_shortpath" 29267 29268 input_path="$input_to_shortpath" 29269 # Check if we need to convert this using DOS-style short mode. If the path 29270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29271 # take no chances and rewrite it. 29272 # Note: m4 eats our [], so we need to use [ and ] instead. 29273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29274 if test "x$has_forbidden_chars" != x; then 29275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29276 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29277 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29278 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29279 # Going to short mode and back again did indeed matter. Since short mode is 29280 # case insensitive, let's make it lowercase to improve readability. 29281 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29282 # Now convert it back to Unix-style (cygpath) 29283 input_path=`$CYGPATH -u "$shortmode_path"` 29284 new_path="$input_path" 29285 fi 29286 fi 29287 29288 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29289 if test "x$test_cygdrive_prefix" = x; then 29290 # As a simple fix, exclude /usr/bin since it's not a real path. 29291 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29292 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29293 # a path prefixed by /cygdrive for fixpath to work. 29294 new_path="$CYGWIN_ROOT_PATH$input_path" 29295 fi 29296 fi 29297 29298 # remove trailing .exe if any 29299 new_path="${new_path/%.exe/}" 29300 29301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29302 29303 # First separate the path from the arguments. This will split at the first 29304 # space. 29305 complete="$PROPER_COMPILER_CXX" 29306 path="${complete%% *}" 29307 tmp="$complete EOL" 29308 arguments="${tmp#* }" 29309 29310 # Input might be given as Windows format, start by converting to 29311 # unix format. 29312 new_path="$path" 29313 29314 windows_path="$new_path" 29315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29316 unix_path=`$CYGPATH -u "$windows_path"` 29317 new_path="$unix_path" 29318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29320 new_path="$unix_path" 29321 fi 29322 29323 29324 # Now try to locate executable using which 29325 new_path=`$WHICH "$new_path" 2> /dev/null` 29326 29327 if test "x$new_path" = x; then 29328 # Oops. Which didn't find the executable. 29329 # The splitting of arguments from the executable at a space might have been incorrect, 29330 # since paths with space are more likely in Windows. Give it another try with the whole 29331 # argument. 29332 path="$complete" 29333 arguments="EOL" 29334 new_path="$path" 29335 29336 windows_path="$new_path" 29337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29338 unix_path=`$CYGPATH -u "$windows_path"` 29339 new_path="$unix_path" 29340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29341 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29342 new_path="$unix_path" 29343 fi 29344 29345 29346 new_path=`$WHICH "$new_path" 2> /dev/null` 29347 # bat and cmd files are not always considered executable in MSYS causing which 29348 # to not find them 29349 if test "x$new_path" = x \ 29350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29352 new_path="$path" 29353 29354 windows_path="$new_path" 29355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29356 unix_path=`$CYGPATH -u "$windows_path"` 29357 new_path="$unix_path" 29358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29360 new_path="$unix_path" 29361 fi 29362 29363 fi 29364 29365 if test "x$new_path" = x; then 29366 # It's still not found. Now this is an unrecoverable error. 29367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29368 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29369 has_space=`$ECHO "$complete" | $GREP " "` 29370 if test "x$has_space" != x; then 29371 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29372 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29373 fi 29374 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29375 fi 29376 fi 29377 29378 # Now new_path has a complete unix path to the binary 29379 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29380 # Keep paths in /bin as-is, but remove trailing .exe if any 29381 new_path="${new_path/%.exe/}" 29382 # Do not save /bin paths to all_fixpath_prefixes! 29383 else 29384 # Not in mixed or Windows style, start by that. 29385 new_path=`cmd //c echo $new_path` 29386 29387 input_path="$new_path" 29388 # Check if we need to convert this using DOS-style short mode. If the path 29389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29390 # take no chances and rewrite it. 29391 # Note: m4 eats our [], so we need to use [ and ] instead. 29392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29393 if test "x$has_forbidden_chars" != x; then 29394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29395 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29396 fi 29397 29398 # Output is in $new_path 29399 29400 windows_path="$new_path" 29401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29402 unix_path=`$CYGPATH -u "$windows_path"` 29403 new_path="$unix_path" 29404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29406 new_path="$unix_path" 29407 fi 29408 29409 # remove trailing .exe if any 29410 new_path="${new_path/%.exe/}" 29411 29412 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29413 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29414 fi 29415 29416 else 29417 # We're on a posix platform. Hooray! :) 29418 # First separate the path from the arguments. This will split at the first 29419 # space. 29420 complete="$PROPER_COMPILER_CXX" 29421 path="${complete%% *}" 29422 tmp="$complete EOL" 29423 arguments="${tmp#* }" 29424 29425 # Cannot rely on the command "which" here since it doesn't always work. 29426 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29427 if test -z "$is_absolute_path"; then 29428 # Path to executable is not absolute. Find it. 29429 IFS_save="$IFS" 29430 IFS=: 29431 for p in $PATH; do 29432 if test -f "$p/$path" && test -x "$p/$path"; then 29433 new_path="$p/$path" 29434 break 29435 fi 29436 done 29437 IFS="$IFS_save" 29438 else 29439 # This is an absolute path, we can use it without further modifications. 29440 new_path="$path" 29441 fi 29442 29443 if test "x$new_path" = x; then 29444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29445 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29446 has_space=`$ECHO "$complete" | $GREP " "` 29447 if test "x$has_space" != x; then 29448 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29449 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29450 fi 29451 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29452 fi 29453 fi 29454 29455 # Now join together the path and the arguments once again 29456 if test "x$arguments" != xEOL; then 29457 new_complete="$new_path ${arguments% *}" 29458 else 29459 new_complete="$new_path" 29460 fi 29461 29462 if test "x$complete" != "x$new_complete"; then 29463 PROPER_COMPILER_CXX="$new_complete" 29464 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 29465 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 29466 fi 29467 29468 PATH="$RETRY_COMPILER_SAVED_PATH" 29469 29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 29471 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 29472 29473 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29474 # Follow a chain of symbolic links. Use readlink 29475 # where it exists, else fall back to horribly 29476 # complicated shell code. 29477 if test "x$READLINK_TESTED" != yes; then 29478 # On MacOSX there is a readlink tool with a different 29479 # purpose than the GNU readlink tool. Check the found readlink. 29480 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29481 if test "x$ISGNU" = x; then 29482 # A readlink that we do not know how to use. 29483 # Are there other non-GNU readlinks out there? 29484 READLINK_TESTED=yes 29485 READLINK= 29486 fi 29487 fi 29488 29489 if test "x$READLINK" != x; then 29490 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 29491 else 29492 # Save the current directory for restoring afterwards 29493 STARTDIR=$PWD 29494 COUNTER=0 29495 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 29496 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 29497 cd $sym_link_dir 29498 # Use -P flag to resolve symlinks in directories. 29499 cd `$THEPWDCMD -P` 29500 sym_link_dir=`$THEPWDCMD -P` 29501 # Resolve file symlinks 29502 while test $COUNTER -lt 20; do 29503 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29504 if test "x$ISLINK" == x; then 29505 # This is not a symbolic link! We are done! 29506 break 29507 fi 29508 # Again resolve directory symlinks since the target of the just found 29509 # link could be in a different directory 29510 cd `$DIRNAME $ISLINK` 29511 sym_link_dir=`$THEPWDCMD -P` 29512 sym_link_file=`$BASENAME $ISLINK` 29513 let COUNTER=COUNTER+1 29514 done 29515 cd $STARTDIR 29516 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 29517 fi 29518 fi 29519 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29521 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29522 CXX="$PROPER_COMPILER_CXX" 29523 else 29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 29525 $as_echo "no, keeping CXX" >&6; } 29526 fi 29527 fi 29528 29529 29530 COMPILER=$CXX 29531 COMPILER_NAME=$COMPILER_NAME 29532 29533 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29534 # cc -V output typically looks like 29535 # cc: Sun C 5.12 Linux_i386 2011/11/16 29536 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29537 # Check that this is likely to be the Solaris Studio cc. 29538 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29539 if test $? -ne 0; then 29540 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29541 { $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 29542 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29543 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29544 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29545 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29546 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29547 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29548 fi 29549 # Remove usage instructions (if present), and 29550 # collapse compiler output into a single line 29551 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29552 $SED -e 's/ *[Uu]sage:.*//'` 29553 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29554 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29555 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29556 # xlc -qversion output typically looks like 29557 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29558 # Version: 11.01.0000.0015 29559 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29560 # Check that this is likely to be the IBM XL C compiler. 29561 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29562 if test $? -ne 0; then 29563 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29564 { $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 29565 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29567 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29569 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29570 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29571 fi 29572 # Collapse compiler output into a single line 29573 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29574 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29575 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29576 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29577 # There is no specific version flag, but all output starts with a version string. 29578 # First line typically looks something like: 29579 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29580 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29581 # Check that this is likely to be Microsoft CL.EXE. 29582 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29583 if test $? -ne 0; then 29584 { $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 29585 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29586 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29587 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29588 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29589 fi 29590 # Collapse compiler output into a single line 29591 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29592 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29593 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29594 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29595 # gcc --version output typically looks like 29596 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29597 # Copyright (C) 2013 Free Software Foundation, Inc. 29598 # This is free software; see the source for copying conditions. There is NO 29599 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29600 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29601 # Check that this is likely to be GCC. 29602 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29603 if test $? -ne 0; then 29604 { $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 29605 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29606 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29607 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29608 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29609 fi 29610 # Remove Copyright and legalese from version string, and 29611 # collapse into a single line 29612 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29613 $SED -e 's/ *Copyright .*//'` 29614 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29615 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29616 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29617 # clang --version output typically looks like 29618 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29619 # clang version 3.3 (tags/RELEASE_33/final) 29620 # or 29621 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29622 # Target: x86_64-pc-linux-gnu 29623 # Thread model: posix 29624 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29625 # Check that this is likely to be clang 29626 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29627 if test $? -ne 0; then 29628 { $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 29629 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29630 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29631 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29632 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29633 fi 29634 # Collapse compiler output into a single line 29635 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29636 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29637 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29638 29639 else 29640 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29641 fi 29642 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29643 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29644 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29645 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 29646 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29648 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29649 29650 29651 # Now that we have resolved CXX ourself, let autoconf have its go at it 29652 ac_ext=cpp 29653 ac_cpp='$CXXCPP $CPPFLAGS' 29654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29657 if test -z "$CXX"; then 29658 if test -n "$CCC"; then 29659 CXX=$CCC 29660 else 29661 if test -n "$ac_tool_prefix"; then 29662 for ac_prog in $CXX 29663 do 29664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29667 $as_echo_n "checking for $ac_word... " >&6; } 29668 if ${ac_cv_prog_CXX+:} false; then : 29669 $as_echo_n "(cached) " >&6 29670 else 29671 if test -n "$CXX"; then 29672 ac_cv_prog_CXX="$CXX" # Let the user override the test. 29673 else 29674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29675 for as_dir in $PATH 29676 do 29677 IFS=$as_save_IFS 29678 test -z "$as_dir" && as_dir=. 29679 for ac_exec_ext in '' $ac_executable_extensions; do 29680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29681 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 29682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29683 break 2 29684 fi 29685 done 29686 done 29687 IFS=$as_save_IFS 29688 29689 fi 29690 fi 29691 CXX=$ac_cv_prog_CXX 29692 if test -n "$CXX"; then 29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 29694 $as_echo "$CXX" >&6; } 29695 else 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29697 $as_echo "no" >&6; } 29698 fi 29699 29700 29701 test -n "$CXX" && break 29702 done 29703 fi 29704 if test -z "$CXX"; then 29705 ac_ct_CXX=$CXX 29706 for ac_prog in $CXX 29707 do 29708 # Extract the first word of "$ac_prog", so it can be a program name with args. 29709 set dummy $ac_prog; ac_word=$2 29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29711 $as_echo_n "checking for $ac_word... " >&6; } 29712 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 29713 $as_echo_n "(cached) " >&6 29714 else 29715 if test -n "$ac_ct_CXX"; then 29716 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 29717 else 29718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29719 for as_dir in $PATH 29720 do 29721 IFS=$as_save_IFS 29722 test -z "$as_dir" && as_dir=. 29723 for ac_exec_ext in '' $ac_executable_extensions; do 29724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29725 ac_cv_prog_ac_ct_CXX="$ac_prog" 29726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29727 break 2 29728 fi 29729 done 29730 done 29731 IFS=$as_save_IFS 29732 29733 fi 29734 fi 29735 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 29736 if test -n "$ac_ct_CXX"; then 29737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 29738 $as_echo "$ac_ct_CXX" >&6; } 29739 else 29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29741 $as_echo "no" >&6; } 29742 fi 29743 29744 29745 test -n "$ac_ct_CXX" && break 29746 done 29747 29748 if test "x$ac_ct_CXX" = x; then 29749 CXX="g++" 29750 else 29751 case $cross_compiling:$ac_tool_warned in 29752 yes:) 29753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29755 ac_tool_warned=yes ;; 29756 esac 29757 CXX=$ac_ct_CXX 29758 fi 29759 fi 29760 29761 fi 29762 fi 29763 # Provide some information about the compiler. 29764 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 29765 set X $ac_compile 29766 ac_compiler=$2 29767 for ac_option in --version -v -V -qversion; do 29768 { { ac_try="$ac_compiler $ac_option >&5" 29769 case "(($ac_try" in 29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29771 *) ac_try_echo=$ac_try;; 29772 esac 29773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29774 $as_echo "$ac_try_echo"; } >&5 29775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29776 ac_status=$? 29777 if test -s conftest.err; then 29778 sed '10a\ 29779 ... rest of stderr output deleted ... 29780 10q' conftest.err >conftest.er1 29781 cat conftest.er1 >&5 29782 fi 29783 rm -f conftest.er1 conftest.err 29784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29785 test $ac_status = 0; } 29786 done 29787 29788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29789 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29790 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29791 $as_echo_n "(cached) " >&6 29792 else 29793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29794 /* end confdefs.h. */ 29795 29796 int 29797 main () 29798 { 29799 #ifndef __GNUC__ 29800 choke me 29801 #endif 29802 29803 ; 29804 return 0; 29805 } 29806 _ACEOF 29807 if ac_fn_cxx_try_compile "$LINENO"; then : 29808 ac_compiler_gnu=yes 29809 else 29810 ac_compiler_gnu=no 29811 fi 29812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29813 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29814 29815 fi 29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29817 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29818 if test $ac_compiler_gnu = yes; then 29819 GXX=yes 29820 else 29821 GXX= 29822 fi 29823 ac_test_CXXFLAGS=${CXXFLAGS+set} 29824 ac_save_CXXFLAGS=$CXXFLAGS 29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29826 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29827 if ${ac_cv_prog_cxx_g+:} false; then : 29828 $as_echo_n "(cached) " >&6 29829 else 29830 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29831 ac_cxx_werror_flag=yes 29832 ac_cv_prog_cxx_g=no 29833 CXXFLAGS="-g" 29834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29835 /* end confdefs.h. */ 29836 29837 int 29838 main () 29839 { 29840 29841 ; 29842 return 0; 29843 } 29844 _ACEOF 29845 if ac_fn_cxx_try_compile "$LINENO"; then : 29846 ac_cv_prog_cxx_g=yes 29847 else 29848 CXXFLAGS="" 29849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29850 /* end confdefs.h. */ 29851 29852 int 29853 main () 29854 { 29855 29856 ; 29857 return 0; 29858 } 29859 _ACEOF 29860 if ac_fn_cxx_try_compile "$LINENO"; then : 29861 29862 else 29863 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29864 CXXFLAGS="-g" 29865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29866 /* end confdefs.h. */ 29867 29868 int 29869 main () 29870 { 29871 29872 ; 29873 return 0; 29874 } 29875 _ACEOF 29876 if ac_fn_cxx_try_compile "$LINENO"; then : 29877 ac_cv_prog_cxx_g=yes 29878 fi 29879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29880 fi 29881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29882 fi 29883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29884 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29885 fi 29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 29887 $as_echo "$ac_cv_prog_cxx_g" >&6; } 29888 if test "$ac_test_CXXFLAGS" = set; then 29889 CXXFLAGS=$ac_save_CXXFLAGS 29890 elif test $ac_cv_prog_cxx_g = yes; then 29891 if test "$GXX" = yes; then 29892 CXXFLAGS="-g -O2" 29893 else 29894 CXXFLAGS="-g" 29895 fi 29896 else 29897 if test "$GXX" = yes; then 29898 CXXFLAGS="-O2" 29899 else 29900 CXXFLAGS= 29901 fi 29902 fi 29903 ac_ext=cpp 29904 ac_cpp='$CXXCPP $CPPFLAGS' 29905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29908 29909 29910 # This is the compiler version number on the form X.Y[.Z] 29911 29912 29913 29914 29915 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 29916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 29917 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 29918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 29919 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 29920 fi 29921 29922 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 29923 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 29924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 29925 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 29926 fi 29927 29928 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 29930 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 29931 fi 29932 29933 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 29934 29935 29936 # 29937 # Setup the preprocessor (CPP and CXXCPP) 29938 # 29939 ac_ext=c 29940 ac_cpp='$CPP $CPPFLAGS' 29941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29943 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 29945 $as_echo_n "checking how to run the C preprocessor... " >&6; } 29946 # On Suns, sometimes $CPP names a directory. 29947 if test -n "$CPP" && test -d "$CPP"; then 29948 CPP= 29949 fi 29950 if test -z "$CPP"; then 29951 if ${ac_cv_prog_CPP+:} false; then : 29952 $as_echo_n "(cached) " >&6 29953 else 29954 # Double quotes because CPP needs to be expanded 29955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 29956 do 29957 ac_preproc_ok=false 29958 for ac_c_preproc_warn_flag in '' yes 29959 do 29960 # Use a header file that comes with gcc, so configuring glibc 29961 # with a fresh cross-compiler works. 29962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29963 # <limits.h> exists even on freestanding compilers. 29964 # On the NeXT, cc -E runs the code through the compiler's parser, 29965 # not just through cpp. "Syntax error" is here to catch this case. 29966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29967 /* end confdefs.h. */ 29968 #ifdef __STDC__ 29969 # include <limits.h> 29970 #else 29971 # include <assert.h> 29972 #endif 29973 Syntax error 29974 _ACEOF 29975 if ac_fn_c_try_cpp "$LINENO"; then : 29976 29977 else 29978 # Broken: fails on valid input. 29979 continue 29980 fi 29981 rm -f conftest.err conftest.i conftest.$ac_ext 29982 29983 # OK, works on sane cases. Now check whether nonexistent headers 29984 # can be detected and how. 29985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29986 /* end confdefs.h. */ 29987 #include <ac_nonexistent.h> 29988 _ACEOF 29989 if ac_fn_c_try_cpp "$LINENO"; then : 29990 # Broken: success on invalid input. 29991 continue 29992 else 29993 # Passes both tests. 29994 ac_preproc_ok=: 29995 break 29996 fi 29997 rm -f conftest.err conftest.i conftest.$ac_ext 29998 29999 done 30000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30001 rm -f conftest.i conftest.err conftest.$ac_ext 30002 if $ac_preproc_ok; then : 30003 break 30004 fi 30005 30006 done 30007 ac_cv_prog_CPP=$CPP 30008 30009 fi 30010 CPP=$ac_cv_prog_CPP 30011 else 30012 ac_cv_prog_CPP=$CPP 30013 fi 30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30015 $as_echo "$CPP" >&6; } 30016 ac_preproc_ok=false 30017 for ac_c_preproc_warn_flag in '' yes 30018 do 30019 # Use a header file that comes with gcc, so configuring glibc 30020 # with a fresh cross-compiler works. 30021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30022 # <limits.h> exists even on freestanding compilers. 30023 # On the NeXT, cc -E runs the code through the compiler's parser, 30024 # not just through cpp. "Syntax error" is here to catch this case. 30025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30026 /* end confdefs.h. */ 30027 #ifdef __STDC__ 30028 # include <limits.h> 30029 #else 30030 # include <assert.h> 30031 #endif 30032 Syntax error 30033 _ACEOF 30034 if ac_fn_c_try_cpp "$LINENO"; then : 30035 30036 else 30037 # Broken: fails on valid input. 30038 continue 30039 fi 30040 rm -f conftest.err conftest.i conftest.$ac_ext 30041 30042 # OK, works on sane cases. Now check whether nonexistent headers 30043 # can be detected and how. 30044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30045 /* end confdefs.h. */ 30046 #include <ac_nonexistent.h> 30047 _ACEOF 30048 if ac_fn_c_try_cpp "$LINENO"; then : 30049 # Broken: success on invalid input. 30050 continue 30051 else 30052 # Passes both tests. 30053 ac_preproc_ok=: 30054 break 30055 fi 30056 rm -f conftest.err conftest.i conftest.$ac_ext 30057 30058 done 30059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30060 rm -f conftest.i conftest.err conftest.$ac_ext 30061 if $ac_preproc_ok; then : 30062 30063 else 30064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30066 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30067 See \`config.log' for more details" "$LINENO" 5; } 30068 fi 30069 30070 ac_ext=cpp 30071 ac_cpp='$CXXCPP $CPPFLAGS' 30072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30075 30076 30077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30078 30079 # First separate the path from the arguments. This will split at the first 30080 # space. 30081 complete="$CPP" 30082 path="${complete%% *}" 30083 tmp="$complete EOL" 30084 arguments="${tmp#* }" 30085 30086 # Input might be given as Windows format, start by converting to 30087 # unix format. 30088 new_path=`$CYGPATH -u "$path"` 30089 30090 # Now try to locate executable using which 30091 new_path=`$WHICH "$new_path" 2> /dev/null` 30092 # bat and cmd files are not always considered executable in cygwin causing which 30093 # to not find them 30094 if test "x$new_path" = x \ 30095 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30096 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30097 new_path=`$CYGPATH -u "$path"` 30098 fi 30099 if test "x$new_path" = x; then 30100 # Oops. Which didn't find the executable. 30101 # The splitting of arguments from the executable at a space might have been incorrect, 30102 # since paths with space are more likely in Windows. Give it another try with the whole 30103 # argument. 30104 path="$complete" 30105 arguments="EOL" 30106 new_path=`$CYGPATH -u "$path"` 30107 new_path=`$WHICH "$new_path" 2> /dev/null` 30108 # bat and cmd files are not always considered executable in cygwin causing which 30109 # to not find them 30110 if test "x$new_path" = x \ 30111 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30112 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30113 new_path=`$CYGPATH -u "$path"` 30114 fi 30115 if test "x$new_path" = x; then 30116 # It's still not found. Now this is an unrecoverable error. 30117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30118 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30119 has_space=`$ECHO "$complete" | $GREP " "` 30120 if test "x$has_space" != x; then 30121 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30122 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30123 fi 30124 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30125 fi 30126 fi 30127 30128 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30129 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30130 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30131 # "foo.exe" is OK but "foo" is an error. 30132 # 30133 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30134 # It is also a way to make sure we got the proper file name for the real test later on. 30135 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30136 if test "x$test_shortpath" = x; then 30137 # Short path failed, file does not exist as specified. 30138 # Try adding .exe or .cmd 30139 if test -f "${new_path}.exe"; then 30140 input_to_shortpath="${new_path}.exe" 30141 elif test -f "${new_path}.cmd"; then 30142 input_to_shortpath="${new_path}.cmd" 30143 else 30144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30145 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30146 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30147 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30148 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30149 fi 30150 else 30151 input_to_shortpath="$new_path" 30152 fi 30153 30154 # Call helper function which possibly converts this using DOS-style short mode. 30155 # If so, the updated path is stored in $new_path. 30156 new_path="$input_to_shortpath" 30157 30158 input_path="$input_to_shortpath" 30159 # Check if we need to convert this using DOS-style short mode. If the path 30160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30161 # take no chances and rewrite it. 30162 # Note: m4 eats our [], so we need to use [ and ] instead. 30163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30164 if test "x$has_forbidden_chars" != x; then 30165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30166 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30167 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30168 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30169 # Going to short mode and back again did indeed matter. Since short mode is 30170 # case insensitive, let's make it lowercase to improve readability. 30171 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30172 # Now convert it back to Unix-style (cygpath) 30173 input_path=`$CYGPATH -u "$shortmode_path"` 30174 new_path="$input_path" 30175 fi 30176 fi 30177 30178 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30179 if test "x$test_cygdrive_prefix" = x; then 30180 # As a simple fix, exclude /usr/bin since it's not a real path. 30181 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30182 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30183 # a path prefixed by /cygdrive for fixpath to work. 30184 new_path="$CYGWIN_ROOT_PATH$input_path" 30185 fi 30186 fi 30187 30188 # remove trailing .exe if any 30189 new_path="${new_path/%.exe/}" 30190 30191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30192 30193 # First separate the path from the arguments. This will split at the first 30194 # space. 30195 complete="$CPP" 30196 path="${complete%% *}" 30197 tmp="$complete EOL" 30198 arguments="${tmp#* }" 30199 30200 # Input might be given as Windows format, start by converting to 30201 # unix format. 30202 new_path="$path" 30203 30204 windows_path="$new_path" 30205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30206 unix_path=`$CYGPATH -u "$windows_path"` 30207 new_path="$unix_path" 30208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30210 new_path="$unix_path" 30211 fi 30212 30213 30214 # Now try to locate executable using which 30215 new_path=`$WHICH "$new_path" 2> /dev/null` 30216 30217 if test "x$new_path" = x; then 30218 # Oops. Which didn't find the executable. 30219 # The splitting of arguments from the executable at a space might have been incorrect, 30220 # since paths with space are more likely in Windows. Give it another try with the whole 30221 # argument. 30222 path="$complete" 30223 arguments="EOL" 30224 new_path="$path" 30225 30226 windows_path="$new_path" 30227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30228 unix_path=`$CYGPATH -u "$windows_path"` 30229 new_path="$unix_path" 30230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30232 new_path="$unix_path" 30233 fi 30234 30235 30236 new_path=`$WHICH "$new_path" 2> /dev/null` 30237 # bat and cmd files are not always considered executable in MSYS causing which 30238 # to not find them 30239 if test "x$new_path" = x \ 30240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30242 new_path="$path" 30243 30244 windows_path="$new_path" 30245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30246 unix_path=`$CYGPATH -u "$windows_path"` 30247 new_path="$unix_path" 30248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30250 new_path="$unix_path" 30251 fi 30252 30253 fi 30254 30255 if test "x$new_path" = x; then 30256 # It's still not found. Now this is an unrecoverable error. 30257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30258 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30259 has_space=`$ECHO "$complete" | $GREP " "` 30260 if test "x$has_space" != x; then 30261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30263 fi 30264 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30265 fi 30266 fi 30267 30268 # Now new_path has a complete unix path to the binary 30269 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30270 # Keep paths in /bin as-is, but remove trailing .exe if any 30271 new_path="${new_path/%.exe/}" 30272 # Do not save /bin paths to all_fixpath_prefixes! 30273 else 30274 # Not in mixed or Windows style, start by that. 30275 new_path=`cmd //c echo $new_path` 30276 30277 input_path="$new_path" 30278 # Check if we need to convert this using DOS-style short mode. If the path 30279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30280 # take no chances and rewrite it. 30281 # Note: m4 eats our [], so we need to use [ and ] instead. 30282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30283 if test "x$has_forbidden_chars" != x; then 30284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30285 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30286 fi 30287 30288 # Output is in $new_path 30289 30290 windows_path="$new_path" 30291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30292 unix_path=`$CYGPATH -u "$windows_path"` 30293 new_path="$unix_path" 30294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30296 new_path="$unix_path" 30297 fi 30298 30299 # remove trailing .exe if any 30300 new_path="${new_path/%.exe/}" 30301 30302 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30303 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30304 fi 30305 30306 else 30307 # We're on a posix platform. Hooray! :) 30308 # First separate the path from the arguments. This will split at the first 30309 # space. 30310 complete="$CPP" 30311 path="${complete%% *}" 30312 tmp="$complete EOL" 30313 arguments="${tmp#* }" 30314 30315 # Cannot rely on the command "which" here since it doesn't always work. 30316 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30317 if test -z "$is_absolute_path"; then 30318 # Path to executable is not absolute. Find it. 30319 IFS_save="$IFS" 30320 IFS=: 30321 for p in $PATH; do 30322 if test -f "$p/$path" && test -x "$p/$path"; then 30323 new_path="$p/$path" 30324 break 30325 fi 30326 done 30327 IFS="$IFS_save" 30328 else 30329 # This is an absolute path, we can use it without further modifications. 30330 new_path="$path" 30331 fi 30332 30333 if test "x$new_path" = x; then 30334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30335 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30336 has_space=`$ECHO "$complete" | $GREP " "` 30337 if test "x$has_space" != x; then 30338 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30339 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30340 fi 30341 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30342 fi 30343 fi 30344 30345 # Now join together the path and the arguments once again 30346 if test "x$arguments" != xEOL; then 30347 new_complete="$new_path ${arguments% *}" 30348 else 30349 new_complete="$new_path" 30350 fi 30351 30352 if test "x$complete" != "x$new_complete"; then 30353 CPP="$new_complete" 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30355 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30356 fi 30357 30358 ac_ext=cpp 30359 ac_cpp='$CXXCPP $CPPFLAGS' 30360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30364 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30365 if test -z "$CXXCPP"; then 30366 if ${ac_cv_prog_CXXCPP+:} false; then : 30367 $as_echo_n "(cached) " >&6 30368 else 30369 # Double quotes because CXXCPP needs to be expanded 30370 for CXXCPP in "$CXX -E" "/lib/cpp" 30371 do 30372 ac_preproc_ok=false 30373 for ac_cxx_preproc_warn_flag in '' yes 30374 do 30375 # Use a header file that comes with gcc, so configuring glibc 30376 # with a fresh cross-compiler works. 30377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30378 # <limits.h> exists even on freestanding compilers. 30379 # On the NeXT, cc -E runs the code through the compiler's parser, 30380 # not just through cpp. "Syntax error" is here to catch this case. 30381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30382 /* end confdefs.h. */ 30383 #ifdef __STDC__ 30384 # include <limits.h> 30385 #else 30386 # include <assert.h> 30387 #endif 30388 Syntax error 30389 _ACEOF 30390 if ac_fn_cxx_try_cpp "$LINENO"; then : 30391 30392 else 30393 # Broken: fails on valid input. 30394 continue 30395 fi 30396 rm -f conftest.err conftest.i conftest.$ac_ext 30397 30398 # OK, works on sane cases. Now check whether nonexistent headers 30399 # can be detected and how. 30400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30401 /* end confdefs.h. */ 30402 #include <ac_nonexistent.h> 30403 _ACEOF 30404 if ac_fn_cxx_try_cpp "$LINENO"; then : 30405 # Broken: success on invalid input. 30406 continue 30407 else 30408 # Passes both tests. 30409 ac_preproc_ok=: 30410 break 30411 fi 30412 rm -f conftest.err conftest.i conftest.$ac_ext 30413 30414 done 30415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30416 rm -f conftest.i conftest.err conftest.$ac_ext 30417 if $ac_preproc_ok; then : 30418 break 30419 fi 30420 30421 done 30422 ac_cv_prog_CXXCPP=$CXXCPP 30423 30424 fi 30425 CXXCPP=$ac_cv_prog_CXXCPP 30426 else 30427 ac_cv_prog_CXXCPP=$CXXCPP 30428 fi 30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 30430 $as_echo "$CXXCPP" >&6; } 30431 ac_preproc_ok=false 30432 for ac_cxx_preproc_warn_flag in '' yes 30433 do 30434 # Use a header file that comes with gcc, so configuring glibc 30435 # with a fresh cross-compiler works. 30436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30437 # <limits.h> exists even on freestanding compilers. 30438 # On the NeXT, cc -E runs the code through the compiler's parser, 30439 # not just through cpp. "Syntax error" is here to catch this case. 30440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30441 /* end confdefs.h. */ 30442 #ifdef __STDC__ 30443 # include <limits.h> 30444 #else 30445 # include <assert.h> 30446 #endif 30447 Syntax error 30448 _ACEOF 30449 if ac_fn_cxx_try_cpp "$LINENO"; then : 30450 30451 else 30452 # Broken: fails on valid input. 30453 continue 30454 fi 30455 rm -f conftest.err conftest.i conftest.$ac_ext 30456 30457 # OK, works on sane cases. Now check whether nonexistent headers 30458 # can be detected and how. 30459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30460 /* end confdefs.h. */ 30461 #include <ac_nonexistent.h> 30462 _ACEOF 30463 if ac_fn_cxx_try_cpp "$LINENO"; then : 30464 # Broken: success on invalid input. 30465 continue 30466 else 30467 # Passes both tests. 30468 ac_preproc_ok=: 30469 break 30470 fi 30471 rm -f conftest.err conftest.i conftest.$ac_ext 30472 30473 done 30474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30475 rm -f conftest.i conftest.err conftest.$ac_ext 30476 if $ac_preproc_ok; then : 30477 30478 else 30479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30481 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 30482 See \`config.log' for more details" "$LINENO" 5; } 30483 fi 30484 30485 ac_ext=cpp 30486 ac_cpp='$CXXCPP $CPPFLAGS' 30487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30490 30491 30492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30493 30494 # First separate the path from the arguments. This will split at the first 30495 # space. 30496 complete="$CXXCPP" 30497 path="${complete%% *}" 30498 tmp="$complete EOL" 30499 arguments="${tmp#* }" 30500 30501 # Input might be given as Windows format, start by converting to 30502 # unix format. 30503 new_path=`$CYGPATH -u "$path"` 30504 30505 # Now try to locate executable using which 30506 new_path=`$WHICH "$new_path" 2> /dev/null` 30507 # bat and cmd files are not always considered executable in cygwin causing which 30508 # to not find them 30509 if test "x$new_path" = x \ 30510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30512 new_path=`$CYGPATH -u "$path"` 30513 fi 30514 if test "x$new_path" = x; then 30515 # Oops. Which didn't find the executable. 30516 # The splitting of arguments from the executable at a space might have been incorrect, 30517 # since paths with space are more likely in Windows. Give it another try with the whole 30518 # argument. 30519 path="$complete" 30520 arguments="EOL" 30521 new_path=`$CYGPATH -u "$path"` 30522 new_path=`$WHICH "$new_path" 2> /dev/null` 30523 # bat and cmd files are not always considered executable in cygwin causing which 30524 # to not find them 30525 if test "x$new_path" = x \ 30526 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30527 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30528 new_path=`$CYGPATH -u "$path"` 30529 fi 30530 if test "x$new_path" = x; then 30531 # It's still not found. Now this is an unrecoverable error. 30532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30533 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30534 has_space=`$ECHO "$complete" | $GREP " "` 30535 if test "x$has_space" != x; then 30536 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30537 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30538 fi 30539 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30540 fi 30541 fi 30542 30543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30546 # "foo.exe" is OK but "foo" is an error. 30547 # 30548 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30549 # It is also a way to make sure we got the proper file name for the real test later on. 30550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30551 if test "x$test_shortpath" = x; then 30552 # Short path failed, file does not exist as specified. 30553 # Try adding .exe or .cmd 30554 if test -f "${new_path}.exe"; then 30555 input_to_shortpath="${new_path}.exe" 30556 elif test -f "${new_path}.cmd"; then 30557 input_to_shortpath="${new_path}.cmd" 30558 else 30559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 30560 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 30561 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30562 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30563 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30564 fi 30565 else 30566 input_to_shortpath="$new_path" 30567 fi 30568 30569 # Call helper function which possibly converts this using DOS-style short mode. 30570 # If so, the updated path is stored in $new_path. 30571 new_path="$input_to_shortpath" 30572 30573 input_path="$input_to_shortpath" 30574 # Check if we need to convert this using DOS-style short mode. If the path 30575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30576 # take no chances and rewrite it. 30577 # Note: m4 eats our [], so we need to use [ and ] instead. 30578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30579 if test "x$has_forbidden_chars" != x; then 30580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30584 # Going to short mode and back again did indeed matter. Since short mode is 30585 # case insensitive, let's make it lowercase to improve readability. 30586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30587 # Now convert it back to Unix-style (cygpath) 30588 input_path=`$CYGPATH -u "$shortmode_path"` 30589 new_path="$input_path" 30590 fi 30591 fi 30592 30593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30594 if test "x$test_cygdrive_prefix" = x; then 30595 # As a simple fix, exclude /usr/bin since it's not a real path. 30596 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30598 # a path prefixed by /cygdrive for fixpath to work. 30599 new_path="$CYGWIN_ROOT_PATH$input_path" 30600 fi 30601 fi 30602 30603 # remove trailing .exe if any 30604 new_path="${new_path/%.exe/}" 30605 30606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30607 30608 # First separate the path from the arguments. This will split at the first 30609 # space. 30610 complete="$CXXCPP" 30611 path="${complete%% *}" 30612 tmp="$complete EOL" 30613 arguments="${tmp#* }" 30614 30615 # Input might be given as Windows format, start by converting to 30616 # unix format. 30617 new_path="$path" 30618 30619 windows_path="$new_path" 30620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30621 unix_path=`$CYGPATH -u "$windows_path"` 30622 new_path="$unix_path" 30623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30625 new_path="$unix_path" 30626 fi 30627 30628 30629 # Now try to locate executable using which 30630 new_path=`$WHICH "$new_path" 2> /dev/null` 30631 30632 if test "x$new_path" = x; then 30633 # Oops. Which didn't find the executable. 30634 # The splitting of arguments from the executable at a space might have been incorrect, 30635 # since paths with space are more likely in Windows. Give it another try with the whole 30636 # argument. 30637 path="$complete" 30638 arguments="EOL" 30639 new_path="$path" 30640 30641 windows_path="$new_path" 30642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30643 unix_path=`$CYGPATH -u "$windows_path"` 30644 new_path="$unix_path" 30645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30647 new_path="$unix_path" 30648 fi 30649 30650 30651 new_path=`$WHICH "$new_path" 2> /dev/null` 30652 # bat and cmd files are not always considered executable in MSYS causing which 30653 # to not find them 30654 if test "x$new_path" = x \ 30655 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30656 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30657 new_path="$path" 30658 30659 windows_path="$new_path" 30660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30661 unix_path=`$CYGPATH -u "$windows_path"` 30662 new_path="$unix_path" 30663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30665 new_path="$unix_path" 30666 fi 30667 30668 fi 30669 30670 if test "x$new_path" = x; then 30671 # It's still not found. Now this is an unrecoverable error. 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30673 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30674 has_space=`$ECHO "$complete" | $GREP " "` 30675 if test "x$has_space" != x; then 30676 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30678 fi 30679 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30680 fi 30681 fi 30682 30683 # Now new_path has a complete unix path to the binary 30684 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30685 # Keep paths in /bin as-is, but remove trailing .exe if any 30686 new_path="${new_path/%.exe/}" 30687 # Do not save /bin paths to all_fixpath_prefixes! 30688 else 30689 # Not in mixed or Windows style, start by that. 30690 new_path=`cmd //c echo $new_path` 30691 30692 input_path="$new_path" 30693 # Check if we need to convert this using DOS-style short mode. If the path 30694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30695 # take no chances and rewrite it. 30696 # Note: m4 eats our [], so we need to use [ and ] instead. 30697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30698 if test "x$has_forbidden_chars" != x; then 30699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30700 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30701 fi 30702 30703 # Output is in $new_path 30704 30705 windows_path="$new_path" 30706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30707 unix_path=`$CYGPATH -u "$windows_path"` 30708 new_path="$unix_path" 30709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30711 new_path="$unix_path" 30712 fi 30713 30714 # remove trailing .exe if any 30715 new_path="${new_path/%.exe/}" 30716 30717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30719 fi 30720 30721 else 30722 # We're on a posix platform. Hooray! :) 30723 # First separate the path from the arguments. This will split at the first 30724 # space. 30725 complete="$CXXCPP" 30726 path="${complete%% *}" 30727 tmp="$complete EOL" 30728 arguments="${tmp#* }" 30729 30730 # Cannot rely on the command "which" here since it doesn't always work. 30731 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30732 if test -z "$is_absolute_path"; then 30733 # Path to executable is not absolute. Find it. 30734 IFS_save="$IFS" 30735 IFS=: 30736 for p in $PATH; do 30737 if test -f "$p/$path" && test -x "$p/$path"; then 30738 new_path="$p/$path" 30739 break 30740 fi 30741 done 30742 IFS="$IFS_save" 30743 else 30744 # This is an absolute path, we can use it without further modifications. 30745 new_path="$path" 30746 fi 30747 30748 if test "x$new_path" = x; then 30749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30750 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30751 has_space=`$ECHO "$complete" | $GREP " "` 30752 if test "x$has_space" != x; then 30753 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30754 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30755 fi 30756 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30757 fi 30758 fi 30759 30760 # Now join together the path and the arguments once again 30761 if test "x$arguments" != xEOL; then 30762 new_complete="$new_path ${arguments% *}" 30763 else 30764 new_complete="$new_path" 30765 fi 30766 30767 if test "x$complete" != "x$new_complete"; then 30768 CXXCPP="$new_complete" 30769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 30770 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 30771 fi 30772 30773 30774 # 30775 # Setup the linker (LD) 30776 # 30777 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30778 # In the Microsoft toolchain we have a separate LD command "link". 30779 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 30780 # a cygwin program for something completely different. 30781 # Extract the first word of "link", so it can be a program name with args. 30782 set dummy link; ac_word=$2 30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30784 $as_echo_n "checking for $ac_word... " >&6; } 30785 if ${ac_cv_prog_LD+:} false; then : 30786 $as_echo_n "(cached) " >&6 30787 else 30788 if test -n "$LD"; then 30789 ac_cv_prog_LD="$LD" # Let the user override the test. 30790 else 30791 ac_prog_rejected=no 30792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30793 for as_dir in $PATH 30794 do 30795 IFS=$as_save_IFS 30796 test -z "$as_dir" && as_dir=. 30797 for ac_exec_ext in '' $ac_executable_extensions; do 30798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30799 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 30800 ac_prog_rejected=yes 30801 continue 30802 fi 30803 ac_cv_prog_LD="link" 30804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30805 break 2 30806 fi 30807 done 30808 done 30809 IFS=$as_save_IFS 30810 30811 if test $ac_prog_rejected = yes; then 30812 # We found a bogon in the path, so make sure we never use it. 30813 set dummy $ac_cv_prog_LD 30814 shift 30815 if test $# != 0; then 30816 # We chose a different compiler from the bogus one. 30817 # However, it has the same basename, so the bogon will be chosen 30818 # first if we set LD to just the basename; use the full file name. 30819 shift 30820 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30821 fi 30822 fi 30823 fi 30824 fi 30825 LD=$ac_cv_prog_LD 30826 if test -n "$LD"; then 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30828 $as_echo "$LD" >&6; } 30829 else 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30831 $as_echo "no" >&6; } 30832 fi 30833 30834 30835 30836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30837 30838 # First separate the path from the arguments. This will split at the first 30839 # space. 30840 complete="$LD" 30841 path="${complete%% *}" 30842 tmp="$complete EOL" 30843 arguments="${tmp#* }" 30844 30845 # Input might be given as Windows format, start by converting to 30846 # unix format. 30847 new_path=`$CYGPATH -u "$path"` 30848 30849 # Now try to locate executable using which 30850 new_path=`$WHICH "$new_path" 2> /dev/null` 30851 # bat and cmd files are not always considered executable in cygwin causing which 30852 # to not find them 30853 if test "x$new_path" = x \ 30854 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30855 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30856 new_path=`$CYGPATH -u "$path"` 30857 fi 30858 if test "x$new_path" = x; then 30859 # Oops. Which didn't find the executable. 30860 # The splitting of arguments from the executable at a space might have been incorrect, 30861 # since paths with space are more likely in Windows. Give it another try with the whole 30862 # argument. 30863 path="$complete" 30864 arguments="EOL" 30865 new_path=`$CYGPATH -u "$path"` 30866 new_path=`$WHICH "$new_path" 2> /dev/null` 30867 # bat and cmd files are not always considered executable in cygwin causing which 30868 # to not find them 30869 if test "x$new_path" = x \ 30870 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30871 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30872 new_path=`$CYGPATH -u "$path"` 30873 fi 30874 if test "x$new_path" = x; then 30875 # It's still not found. Now this is an unrecoverable error. 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30877 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30878 has_space=`$ECHO "$complete" | $GREP " "` 30879 if test "x$has_space" != x; then 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30881 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30882 fi 30883 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30884 fi 30885 fi 30886 30887 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30888 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30889 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30890 # "foo.exe" is OK but "foo" is an error. 30891 # 30892 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30893 # It is also a way to make sure we got the proper file name for the real test later on. 30894 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30895 if test "x$test_shortpath" = x; then 30896 # Short path failed, file does not exist as specified. 30897 # Try adding .exe or .cmd 30898 if test -f "${new_path}.exe"; then 30899 input_to_shortpath="${new_path}.exe" 30900 elif test -f "${new_path}.cmd"; then 30901 input_to_shortpath="${new_path}.cmd" 30902 else 30903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 30904 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 30905 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30906 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30907 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30908 fi 30909 else 30910 input_to_shortpath="$new_path" 30911 fi 30912 30913 # Call helper function which possibly converts this using DOS-style short mode. 30914 # If so, the updated path is stored in $new_path. 30915 new_path="$input_to_shortpath" 30916 30917 input_path="$input_to_shortpath" 30918 # Check if we need to convert this using DOS-style short mode. If the path 30919 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30920 # take no chances and rewrite it. 30921 # Note: m4 eats our [], so we need to use [ and ] instead. 30922 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30923 if test "x$has_forbidden_chars" != x; then 30924 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30925 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30926 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30927 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30928 # Going to short mode and back again did indeed matter. Since short mode is 30929 # case insensitive, let's make it lowercase to improve readability. 30930 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30931 # Now convert it back to Unix-style (cygpath) 30932 input_path=`$CYGPATH -u "$shortmode_path"` 30933 new_path="$input_path" 30934 fi 30935 fi 30936 30937 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30938 if test "x$test_cygdrive_prefix" = x; then 30939 # As a simple fix, exclude /usr/bin since it's not a real path. 30940 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30941 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30942 # a path prefixed by /cygdrive for fixpath to work. 30943 new_path="$CYGWIN_ROOT_PATH$input_path" 30944 fi 30945 fi 30946 30947 # remove trailing .exe if any 30948 new_path="${new_path/%.exe/}" 30949 30950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30951 30952 # First separate the path from the arguments. This will split at the first 30953 # space. 30954 complete="$LD" 30955 path="${complete%% *}" 30956 tmp="$complete EOL" 30957 arguments="${tmp#* }" 30958 30959 # Input might be given as Windows format, start by converting to 30960 # unix format. 30961 new_path="$path" 30962 30963 windows_path="$new_path" 30964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30965 unix_path=`$CYGPATH -u "$windows_path"` 30966 new_path="$unix_path" 30967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30969 new_path="$unix_path" 30970 fi 30971 30972 30973 # Now try to locate executable using which 30974 new_path=`$WHICH "$new_path" 2> /dev/null` 30975 30976 if test "x$new_path" = x; then 30977 # Oops. Which didn't find the executable. 30978 # The splitting of arguments from the executable at a space might have been incorrect, 30979 # since paths with space are more likely in Windows. Give it another try with the whole 30980 # argument. 30981 path="$complete" 30982 arguments="EOL" 30983 new_path="$path" 30984 30985 windows_path="$new_path" 30986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30987 unix_path=`$CYGPATH -u "$windows_path"` 30988 new_path="$unix_path" 30989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30991 new_path="$unix_path" 30992 fi 30993 30994 30995 new_path=`$WHICH "$new_path" 2> /dev/null` 30996 # bat and cmd files are not always considered executable in MSYS causing which 30997 # to not find them 30998 if test "x$new_path" = x \ 30999 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31000 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31001 new_path="$path" 31002 31003 windows_path="$new_path" 31004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31005 unix_path=`$CYGPATH -u "$windows_path"` 31006 new_path="$unix_path" 31007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31009 new_path="$unix_path" 31010 fi 31011 31012 fi 31013 31014 if test "x$new_path" = x; then 31015 # It's still not found. Now this is an unrecoverable error. 31016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31017 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31018 has_space=`$ECHO "$complete" | $GREP " "` 31019 if test "x$has_space" != x; then 31020 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31021 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31022 fi 31023 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31024 fi 31025 fi 31026 31027 # Now new_path has a complete unix path to the binary 31028 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31029 # Keep paths in /bin as-is, but remove trailing .exe if any 31030 new_path="${new_path/%.exe/}" 31031 # Do not save /bin paths to all_fixpath_prefixes! 31032 else 31033 # Not in mixed or Windows style, start by that. 31034 new_path=`cmd //c echo $new_path` 31035 31036 input_path="$new_path" 31037 # Check if we need to convert this using DOS-style short mode. If the path 31038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31039 # take no chances and rewrite it. 31040 # Note: m4 eats our [], so we need to use [ and ] instead. 31041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31042 if test "x$has_forbidden_chars" != x; then 31043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31045 fi 31046 31047 # Output is in $new_path 31048 31049 windows_path="$new_path" 31050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31051 unix_path=`$CYGPATH -u "$windows_path"` 31052 new_path="$unix_path" 31053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31055 new_path="$unix_path" 31056 fi 31057 31058 # remove trailing .exe if any 31059 new_path="${new_path/%.exe/}" 31060 31061 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31062 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31063 fi 31064 31065 else 31066 # We're on a posix platform. Hooray! :) 31067 # First separate the path from the arguments. This will split at the first 31068 # space. 31069 complete="$LD" 31070 path="${complete%% *}" 31071 tmp="$complete EOL" 31072 arguments="${tmp#* }" 31073 31074 # Cannot rely on the command "which" here since it doesn't always work. 31075 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31076 if test -z "$is_absolute_path"; then 31077 # Path to executable is not absolute. Find it. 31078 IFS_save="$IFS" 31079 IFS=: 31080 for p in $PATH; do 31081 if test -f "$p/$path" && test -x "$p/$path"; then 31082 new_path="$p/$path" 31083 break 31084 fi 31085 done 31086 IFS="$IFS_save" 31087 else 31088 # This is an absolute path, we can use it without further modifications. 31089 new_path="$path" 31090 fi 31091 31092 if test "x$new_path" = x; then 31093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31094 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31095 has_space=`$ECHO "$complete" | $GREP " "` 31096 if test "x$has_space" != x; then 31097 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31098 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31099 fi 31100 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31101 fi 31102 fi 31103 31104 # Now join together the path and the arguments once again 31105 if test "x$arguments" != xEOL; then 31106 new_complete="$new_path ${arguments% *}" 31107 else 31108 new_complete="$new_path" 31109 fi 31110 31111 if test "x$complete" != "x$new_complete"; then 31112 LD="$new_complete" 31113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31114 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31115 fi 31116 31117 # Verify that we indeed succeeded with this trick. 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31119 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31120 "$LD" --version > /dev/null 31121 if test $? -eq 0 ; then 31122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31123 $as_echo "no" >&6; } 31124 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31125 else 31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31127 $as_echo "yes" >&6; } 31128 fi 31129 LDCXX="$LD" 31130 else 31131 # All other toolchains use the compiler to link. 31132 LD="$CC" 31133 LDCXX="$CXX" 31134 fi 31135 31136 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31137 31138 31139 # 31140 # Setup the assembler (AS) 31141 # 31142 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31143 # FIXME: should this really be solaris, or solstudio? 31144 31145 31146 # Publish this variable in the help. 31147 31148 31149 if test "x$AS" = x; then 31150 # The variable is not set by user, try to locate tool using the code snippet 31151 for ac_prog in as 31152 do 31153 # Extract the first word of "$ac_prog", so it can be a program name with args. 31154 set dummy $ac_prog; ac_word=$2 31155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31156 $as_echo_n "checking for $ac_word... " >&6; } 31157 if ${ac_cv_path_AS+:} false; then : 31158 $as_echo_n "(cached) " >&6 31159 else 31160 case $AS in 31161 [\\/]* | ?:[\\/]*) 31162 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31163 ;; 31164 *) 31165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31166 for as_dir in $PATH 31167 do 31168 IFS=$as_save_IFS 31169 test -z "$as_dir" && as_dir=. 31170 for ac_exec_ext in '' $ac_executable_extensions; do 31171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31172 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31174 break 2 31175 fi 31176 done 31177 done 31178 IFS=$as_save_IFS 31179 31180 ;; 31181 esac 31182 fi 31183 AS=$ac_cv_path_AS 31184 if test -n "$AS"; then 31185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31186 $as_echo "$AS" >&6; } 31187 else 31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31189 $as_echo "no" >&6; } 31190 fi 31191 31192 31193 test -n "$AS" && break 31194 done 31195 31196 else 31197 # The variable is set, but is it from the command line or the environment? 31198 31199 # Try to remove the string !AS! from our list. 31200 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31201 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31202 # If it failed, the variable was not from the command line. Ignore it, 31203 # but warn the user (except for BASH, which is always set by the calling BASH). 31204 if test "xAS" != xBASH; then 31205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31206 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31207 fi 31208 # Try to locate tool using the code snippet 31209 for ac_prog in as 31210 do 31211 # Extract the first word of "$ac_prog", so it can be a program name with args. 31212 set dummy $ac_prog; ac_word=$2 31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31214 $as_echo_n "checking for $ac_word... " >&6; } 31215 if ${ac_cv_path_AS+:} false; then : 31216 $as_echo_n "(cached) " >&6 31217 else 31218 case $AS in 31219 [\\/]* | ?:[\\/]*) 31220 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31221 ;; 31222 *) 31223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31224 for as_dir in $PATH 31225 do 31226 IFS=$as_save_IFS 31227 test -z "$as_dir" && as_dir=. 31228 for ac_exec_ext in '' $ac_executable_extensions; do 31229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31230 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31232 break 2 31233 fi 31234 done 31235 done 31236 IFS=$as_save_IFS 31237 31238 ;; 31239 esac 31240 fi 31241 AS=$ac_cv_path_AS 31242 if test -n "$AS"; then 31243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31244 $as_echo "$AS" >&6; } 31245 else 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31247 $as_echo "no" >&6; } 31248 fi 31249 31250 31251 test -n "$AS" && break 31252 done 31253 31254 else 31255 # If it succeeded, then it was overridden by the user. We will use it 31256 # for the tool. 31257 31258 # First remove it from the list of overridden variables, so we can test 31259 # for unknown variables in the end. 31260 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31261 31262 # Check if the provided tool contains a complete path. 31263 tool_specified="$AS" 31264 tool_basename="${tool_specified##*/}" 31265 if test "x$tool_basename" = "x$tool_specified"; then 31266 # A command without a complete path is provided, search $PATH. 31267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31268 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31269 # Extract the first word of "$tool_basename", so it can be a program name with args. 31270 set dummy $tool_basename; ac_word=$2 31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31272 $as_echo_n "checking for $ac_word... " >&6; } 31273 if ${ac_cv_path_AS+:} false; then : 31274 $as_echo_n "(cached) " >&6 31275 else 31276 case $AS in 31277 [\\/]* | ?:[\\/]*) 31278 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31279 ;; 31280 *) 31281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31282 for as_dir in $PATH 31283 do 31284 IFS=$as_save_IFS 31285 test -z "$as_dir" && as_dir=. 31286 for ac_exec_ext in '' $ac_executable_extensions; do 31287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31288 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31290 break 2 31291 fi 31292 done 31293 done 31294 IFS=$as_save_IFS 31295 31296 ;; 31297 esac 31298 fi 31299 AS=$ac_cv_path_AS 31300 if test -n "$AS"; then 31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31302 $as_echo "$AS" >&6; } 31303 else 31304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31305 $as_echo "no" >&6; } 31306 fi 31307 31308 31309 if test "x$AS" = x; then 31310 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31311 fi 31312 else 31313 # Otherwise we believe it is a complete path. Use it as it is. 31314 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31315 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31317 $as_echo_n "checking for AS... " >&6; } 31318 if test ! -x "$tool_specified"; then 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31320 $as_echo "not found" >&6; } 31321 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31322 fi 31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31324 $as_echo "$tool_specified" >&6; } 31325 fi 31326 fi 31327 fi 31328 31329 31330 31331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31332 31333 # First separate the path from the arguments. This will split at the first 31334 # space. 31335 complete="$AS" 31336 path="${complete%% *}" 31337 tmp="$complete EOL" 31338 arguments="${tmp#* }" 31339 31340 # Input might be given as Windows format, start by converting to 31341 # unix format. 31342 new_path=`$CYGPATH -u "$path"` 31343 31344 # Now try to locate executable using which 31345 new_path=`$WHICH "$new_path" 2> /dev/null` 31346 # bat and cmd files are not always considered executable in cygwin causing which 31347 # to not find them 31348 if test "x$new_path" = x \ 31349 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31350 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31351 new_path=`$CYGPATH -u "$path"` 31352 fi 31353 if test "x$new_path" = x; then 31354 # Oops. Which didn't find the executable. 31355 # The splitting of arguments from the executable at a space might have been incorrect, 31356 # since paths with space are more likely in Windows. Give it another try with the whole 31357 # argument. 31358 path="$complete" 31359 arguments="EOL" 31360 new_path=`$CYGPATH -u "$path"` 31361 new_path=`$WHICH "$new_path" 2> /dev/null` 31362 # bat and cmd files are not always considered executable in cygwin causing which 31363 # to not find them 31364 if test "x$new_path" = x \ 31365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31367 new_path=`$CYGPATH -u "$path"` 31368 fi 31369 if test "x$new_path" = x; then 31370 # It's still not found. Now this is an unrecoverable error. 31371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31372 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31373 has_space=`$ECHO "$complete" | $GREP " "` 31374 if test "x$has_space" != x; then 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31377 fi 31378 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31379 fi 31380 fi 31381 31382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31385 # "foo.exe" is OK but "foo" is an error. 31386 # 31387 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31388 # It is also a way to make sure we got the proper file name for the real test later on. 31389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31390 if test "x$test_shortpath" = x; then 31391 # Short path failed, file does not exist as specified. 31392 # Try adding .exe or .cmd 31393 if test -f "${new_path}.exe"; then 31394 input_to_shortpath="${new_path}.exe" 31395 elif test -f "${new_path}.cmd"; then 31396 input_to_shortpath="${new_path}.cmd" 31397 else 31398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31399 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31400 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31401 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31402 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31403 fi 31404 else 31405 input_to_shortpath="$new_path" 31406 fi 31407 31408 # Call helper function which possibly converts this using DOS-style short mode. 31409 # If so, the updated path is stored in $new_path. 31410 new_path="$input_to_shortpath" 31411 31412 input_path="$input_to_shortpath" 31413 # Check if we need to convert this using DOS-style short mode. If the path 31414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31415 # take no chances and rewrite it. 31416 # Note: m4 eats our [], so we need to use [ and ] instead. 31417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31418 if test "x$has_forbidden_chars" != x; then 31419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31423 # Going to short mode and back again did indeed matter. Since short mode is 31424 # case insensitive, let's make it lowercase to improve readability. 31425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31426 # Now convert it back to Unix-style (cygpath) 31427 input_path=`$CYGPATH -u "$shortmode_path"` 31428 new_path="$input_path" 31429 fi 31430 fi 31431 31432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31433 if test "x$test_cygdrive_prefix" = x; then 31434 # As a simple fix, exclude /usr/bin since it's not a real path. 31435 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31437 # a path prefixed by /cygdrive for fixpath to work. 31438 new_path="$CYGWIN_ROOT_PATH$input_path" 31439 fi 31440 fi 31441 31442 # remove trailing .exe if any 31443 new_path="${new_path/%.exe/}" 31444 31445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31446 31447 # First separate the path from the arguments. This will split at the first 31448 # space. 31449 complete="$AS" 31450 path="${complete%% *}" 31451 tmp="$complete EOL" 31452 arguments="${tmp#* }" 31453 31454 # Input might be given as Windows format, start by converting to 31455 # unix format. 31456 new_path="$path" 31457 31458 windows_path="$new_path" 31459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31460 unix_path=`$CYGPATH -u "$windows_path"` 31461 new_path="$unix_path" 31462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31464 new_path="$unix_path" 31465 fi 31466 31467 31468 # Now try to locate executable using which 31469 new_path=`$WHICH "$new_path" 2> /dev/null` 31470 31471 if test "x$new_path" = x; then 31472 # Oops. Which didn't find the executable. 31473 # The splitting of arguments from the executable at a space might have been incorrect, 31474 # since paths with space are more likely in Windows. Give it another try with the whole 31475 # argument. 31476 path="$complete" 31477 arguments="EOL" 31478 new_path="$path" 31479 31480 windows_path="$new_path" 31481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31482 unix_path=`$CYGPATH -u "$windows_path"` 31483 new_path="$unix_path" 31484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31486 new_path="$unix_path" 31487 fi 31488 31489 31490 new_path=`$WHICH "$new_path" 2> /dev/null` 31491 # bat and cmd files are not always considered executable in MSYS causing which 31492 # to not find them 31493 if test "x$new_path" = x \ 31494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31496 new_path="$path" 31497 31498 windows_path="$new_path" 31499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31500 unix_path=`$CYGPATH -u "$windows_path"` 31501 new_path="$unix_path" 31502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31504 new_path="$unix_path" 31505 fi 31506 31507 fi 31508 31509 if test "x$new_path" = x; then 31510 # It's still not found. Now this is an unrecoverable error. 31511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31512 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31513 has_space=`$ECHO "$complete" | $GREP " "` 31514 if test "x$has_space" != x; then 31515 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31517 fi 31518 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31519 fi 31520 fi 31521 31522 # Now new_path has a complete unix path to the binary 31523 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31524 # Keep paths in /bin as-is, but remove trailing .exe if any 31525 new_path="${new_path/%.exe/}" 31526 # Do not save /bin paths to all_fixpath_prefixes! 31527 else 31528 # Not in mixed or Windows style, start by that. 31529 new_path=`cmd //c echo $new_path` 31530 31531 input_path="$new_path" 31532 # Check if we need to convert this using DOS-style short mode. If the path 31533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31534 # take no chances and rewrite it. 31535 # Note: m4 eats our [], so we need to use [ and ] instead. 31536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31537 if test "x$has_forbidden_chars" != x; then 31538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31540 fi 31541 31542 # Output is in $new_path 31543 31544 windows_path="$new_path" 31545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31546 unix_path=`$CYGPATH -u "$windows_path"` 31547 new_path="$unix_path" 31548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31550 new_path="$unix_path" 31551 fi 31552 31553 # remove trailing .exe if any 31554 new_path="${new_path/%.exe/}" 31555 31556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31558 fi 31559 31560 else 31561 # We're on a posix platform. Hooray! :) 31562 # First separate the path from the arguments. This will split at the first 31563 # space. 31564 complete="$AS" 31565 path="${complete%% *}" 31566 tmp="$complete EOL" 31567 arguments="${tmp#* }" 31568 31569 # Cannot rely on the command "which" here since it doesn't always work. 31570 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31571 if test -z "$is_absolute_path"; then 31572 # Path to executable is not absolute. Find it. 31573 IFS_save="$IFS" 31574 IFS=: 31575 for p in $PATH; do 31576 if test -f "$p/$path" && test -x "$p/$path"; then 31577 new_path="$p/$path" 31578 break 31579 fi 31580 done 31581 IFS="$IFS_save" 31582 else 31583 # This is an absolute path, we can use it without further modifications. 31584 new_path="$path" 31585 fi 31586 31587 if test "x$new_path" = x; then 31588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31589 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31590 has_space=`$ECHO "$complete" | $GREP " "` 31591 if test "x$has_space" != x; then 31592 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31593 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31594 fi 31595 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31596 fi 31597 fi 31598 31599 # Now join together the path and the arguments once again 31600 if test "x$arguments" != xEOL; then 31601 new_complete="$new_path ${arguments% *}" 31602 else 31603 new_complete="$new_path" 31604 fi 31605 31606 if test "x$complete" != "x$new_complete"; then 31607 AS="$new_complete" 31608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 31609 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 31610 fi 31611 31612 else 31613 # FIXME: is this correct for microsoft? 31614 AS="$CC -c" 31615 fi 31616 31617 31618 # 31619 # Setup the archiver (AR) 31620 # 31621 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31622 # The corresponding ar tool is lib.exe (used to create static libraries) 31623 # Extract the first word of "lib", so it can be a program name with args. 31624 set dummy lib; ac_word=$2 31625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31626 $as_echo_n "checking for $ac_word... " >&6; } 31627 if ${ac_cv_prog_AR+:} false; then : 31628 $as_echo_n "(cached) " >&6 31629 else 31630 if test -n "$AR"; then 31631 ac_cv_prog_AR="$AR" # Let the user override the test. 31632 else 31633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31634 for as_dir in $PATH 31635 do 31636 IFS=$as_save_IFS 31637 test -z "$as_dir" && as_dir=. 31638 for ac_exec_ext in '' $ac_executable_extensions; do 31639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31640 ac_cv_prog_AR="lib" 31641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31642 break 2 31643 fi 31644 done 31645 done 31646 IFS=$as_save_IFS 31647 31648 fi 31649 fi 31650 AR=$ac_cv_prog_AR 31651 if test -n "$AR"; then 31652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31653 $as_echo "$AR" >&6; } 31654 else 31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31656 $as_echo "no" >&6; } 31657 fi 31658 31659 31660 else 31661 31662 31663 # Publish this variable in the help. 31664 31665 31666 if test "x$AR" = x; then 31667 # The variable is not set by user, try to locate tool using the code snippet 31668 if test -n "$ac_tool_prefix"; then 31669 for ac_prog in ar 31670 do 31671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31674 $as_echo_n "checking for $ac_word... " >&6; } 31675 if ${ac_cv_prog_AR+:} false; then : 31676 $as_echo_n "(cached) " >&6 31677 else 31678 if test -n "$AR"; then 31679 ac_cv_prog_AR="$AR" # Let the user override the test. 31680 else 31681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31682 for as_dir in $PATH 31683 do 31684 IFS=$as_save_IFS 31685 test -z "$as_dir" && as_dir=. 31686 for ac_exec_ext in '' $ac_executable_extensions; do 31687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31688 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31690 break 2 31691 fi 31692 done 31693 done 31694 IFS=$as_save_IFS 31695 31696 fi 31697 fi 31698 AR=$ac_cv_prog_AR 31699 if test -n "$AR"; then 31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31701 $as_echo "$AR" >&6; } 31702 else 31703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31704 $as_echo "no" >&6; } 31705 fi 31706 31707 31708 test -n "$AR" && break 31709 done 31710 fi 31711 if test -z "$AR"; then 31712 ac_ct_AR=$AR 31713 for ac_prog in ar 31714 do 31715 # Extract the first word of "$ac_prog", so it can be a program name with args. 31716 set dummy $ac_prog; ac_word=$2 31717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31718 $as_echo_n "checking for $ac_word... " >&6; } 31719 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31720 $as_echo_n "(cached) " >&6 31721 else 31722 if test -n "$ac_ct_AR"; then 31723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31724 else 31725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31726 for as_dir in $PATH 31727 do 31728 IFS=$as_save_IFS 31729 test -z "$as_dir" && as_dir=. 31730 for ac_exec_ext in '' $ac_executable_extensions; do 31731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31732 ac_cv_prog_ac_ct_AR="$ac_prog" 31733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31734 break 2 31735 fi 31736 done 31737 done 31738 IFS=$as_save_IFS 31739 31740 fi 31741 fi 31742 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31743 if test -n "$ac_ct_AR"; then 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31745 $as_echo "$ac_ct_AR" >&6; } 31746 else 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31748 $as_echo "no" >&6; } 31749 fi 31750 31751 31752 test -n "$ac_ct_AR" && break 31753 done 31754 31755 if test "x$ac_ct_AR" = x; then 31756 AR="" 31757 else 31758 case $cross_compiling:$ac_tool_warned in 31759 yes:) 31760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31762 ac_tool_warned=yes ;; 31763 esac 31764 AR=$ac_ct_AR 31765 fi 31766 fi 31767 31768 else 31769 # The variable is set, but is it from the command line or the environment? 31770 31771 # Try to remove the string !AR! from our list. 31772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 31773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31774 # If it failed, the variable was not from the command line. Ignore it, 31775 # but warn the user (except for BASH, which is always set by the calling BASH). 31776 if test "xAR" != xBASH; then 31777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 31778 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 31779 fi 31780 # Try to locate tool using the code snippet 31781 if test -n "$ac_tool_prefix"; then 31782 for ac_prog in ar 31783 do 31784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31787 $as_echo_n "checking for $ac_word... " >&6; } 31788 if ${ac_cv_prog_AR+:} false; then : 31789 $as_echo_n "(cached) " >&6 31790 else 31791 if test -n "$AR"; then 31792 ac_cv_prog_AR="$AR" # Let the user override the test. 31793 else 31794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31795 for as_dir in $PATH 31796 do 31797 IFS=$as_save_IFS 31798 test -z "$as_dir" && as_dir=. 31799 for ac_exec_ext in '' $ac_executable_extensions; do 31800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31801 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31803 break 2 31804 fi 31805 done 31806 done 31807 IFS=$as_save_IFS 31808 31809 fi 31810 fi 31811 AR=$ac_cv_prog_AR 31812 if test -n "$AR"; then 31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31814 $as_echo "$AR" >&6; } 31815 else 31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31817 $as_echo "no" >&6; } 31818 fi 31819 31820 31821 test -n "$AR" && break 31822 done 31823 fi 31824 if test -z "$AR"; then 31825 ac_ct_AR=$AR 31826 for ac_prog in ar 31827 do 31828 # Extract the first word of "$ac_prog", so it can be a program name with args. 31829 set dummy $ac_prog; ac_word=$2 31830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31831 $as_echo_n "checking for $ac_word... " >&6; } 31832 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31833 $as_echo_n "(cached) " >&6 31834 else 31835 if test -n "$ac_ct_AR"; then 31836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31837 else 31838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31839 for as_dir in $PATH 31840 do 31841 IFS=$as_save_IFS 31842 test -z "$as_dir" && as_dir=. 31843 for ac_exec_ext in '' $ac_executable_extensions; do 31844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31845 ac_cv_prog_ac_ct_AR="$ac_prog" 31846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31847 break 2 31848 fi 31849 done 31850 done 31851 IFS=$as_save_IFS 31852 31853 fi 31854 fi 31855 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31856 if test -n "$ac_ct_AR"; then 31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31858 $as_echo "$ac_ct_AR" >&6; } 31859 else 31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31861 $as_echo "no" >&6; } 31862 fi 31863 31864 31865 test -n "$ac_ct_AR" && break 31866 done 31867 31868 if test "x$ac_ct_AR" = x; then 31869 AR="" 31870 else 31871 case $cross_compiling:$ac_tool_warned in 31872 yes:) 31873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31875 ac_tool_warned=yes ;; 31876 esac 31877 AR=$ac_ct_AR 31878 fi 31879 fi 31880 31881 else 31882 # If it succeeded, then it was overridden by the user. We will use it 31883 # for the tool. 31884 31885 # First remove it from the list of overridden variables, so we can test 31886 # for unknown variables in the end. 31887 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31888 31889 # Check if the provided tool contains a complete path. 31890 tool_specified="$AR" 31891 tool_basename="${tool_specified##*/}" 31892 if test "x$tool_basename" = "x$tool_specified"; then 31893 # A command without a complete path is provided, search $PATH. 31894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 31895 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 31896 # Extract the first word of "$tool_basename", so it can be a program name with args. 31897 set dummy $tool_basename; ac_word=$2 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31899 $as_echo_n "checking for $ac_word... " >&6; } 31900 if ${ac_cv_path_AR+:} false; then : 31901 $as_echo_n "(cached) " >&6 31902 else 31903 case $AR in 31904 [\\/]* | ?:[\\/]*) 31905 ac_cv_path_AR="$AR" # Let the user override the test with a path. 31906 ;; 31907 *) 31908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31909 for as_dir in $PATH 31910 do 31911 IFS=$as_save_IFS 31912 test -z "$as_dir" && as_dir=. 31913 for ac_exec_ext in '' $ac_executable_extensions; do 31914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31915 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 31916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31917 break 2 31918 fi 31919 done 31920 done 31921 IFS=$as_save_IFS 31922 31923 ;; 31924 esac 31925 fi 31926 AR=$ac_cv_path_AR 31927 if test -n "$AR"; then 31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31929 $as_echo "$AR" >&6; } 31930 else 31931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31932 $as_echo "no" >&6; } 31933 fi 31934 31935 31936 if test "x$AR" = x; then 31937 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31938 fi 31939 else 31940 # Otherwise we believe it is a complete path. Use it as it is. 31941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 31942 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 31943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 31944 $as_echo_n "checking for AR... " >&6; } 31945 if test ! -x "$tool_specified"; then 31946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31947 $as_echo "not found" >&6; } 31948 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 31949 fi 31950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31951 $as_echo "$tool_specified" >&6; } 31952 fi 31953 fi 31954 fi 31955 31956 31957 fi 31958 31959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31960 31961 # First separate the path from the arguments. This will split at the first 31962 # space. 31963 complete="$AR" 31964 path="${complete%% *}" 31965 tmp="$complete EOL" 31966 arguments="${tmp#* }" 31967 31968 # Input might be given as Windows format, start by converting to 31969 # unix format. 31970 new_path=`$CYGPATH -u "$path"` 31971 31972 # Now try to locate executable using which 31973 new_path=`$WHICH "$new_path" 2> /dev/null` 31974 # bat and cmd files are not always considered executable in cygwin causing which 31975 # to not find them 31976 if test "x$new_path" = x \ 31977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31979 new_path=`$CYGPATH -u "$path"` 31980 fi 31981 if test "x$new_path" = x; then 31982 # Oops. Which didn't find the executable. 31983 # The splitting of arguments from the executable at a space might have been incorrect, 31984 # since paths with space are more likely in Windows. Give it another try with the whole 31985 # argument. 31986 path="$complete" 31987 arguments="EOL" 31988 new_path=`$CYGPATH -u "$path"` 31989 new_path=`$WHICH "$new_path" 2> /dev/null` 31990 # bat and cmd files are not always considered executable in cygwin causing which 31991 # to not find them 31992 if test "x$new_path" = x \ 31993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31995 new_path=`$CYGPATH -u "$path"` 31996 fi 31997 if test "x$new_path" = x; then 31998 # It's still not found. Now this is an unrecoverable error. 31999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32000 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32001 has_space=`$ECHO "$complete" | $GREP " "` 32002 if test "x$has_space" != x; then 32003 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32004 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32005 fi 32006 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32007 fi 32008 fi 32009 32010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32013 # "foo.exe" is OK but "foo" is an error. 32014 # 32015 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32016 # It is also a way to make sure we got the proper file name for the real test later on. 32017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32018 if test "x$test_shortpath" = x; then 32019 # Short path failed, file does not exist as specified. 32020 # Try adding .exe or .cmd 32021 if test -f "${new_path}.exe"; then 32022 input_to_shortpath="${new_path}.exe" 32023 elif test -f "${new_path}.cmd"; then 32024 input_to_shortpath="${new_path}.cmd" 32025 else 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32027 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32029 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32030 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32031 fi 32032 else 32033 input_to_shortpath="$new_path" 32034 fi 32035 32036 # Call helper function which possibly converts this using DOS-style short mode. 32037 # If so, the updated path is stored in $new_path. 32038 new_path="$input_to_shortpath" 32039 32040 input_path="$input_to_shortpath" 32041 # Check if we need to convert this using DOS-style short mode. If the path 32042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32043 # take no chances and rewrite it. 32044 # Note: m4 eats our [], so we need to use [ and ] instead. 32045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32046 if test "x$has_forbidden_chars" != x; then 32047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32051 # Going to short mode and back again did indeed matter. Since short mode is 32052 # case insensitive, let's make it lowercase to improve readability. 32053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32054 # Now convert it back to Unix-style (cygpath) 32055 input_path=`$CYGPATH -u "$shortmode_path"` 32056 new_path="$input_path" 32057 fi 32058 fi 32059 32060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32061 if test "x$test_cygdrive_prefix" = x; then 32062 # As a simple fix, exclude /usr/bin since it's not a real path. 32063 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32065 # a path prefixed by /cygdrive for fixpath to work. 32066 new_path="$CYGWIN_ROOT_PATH$input_path" 32067 fi 32068 fi 32069 32070 # remove trailing .exe if any 32071 new_path="${new_path/%.exe/}" 32072 32073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32074 32075 # First separate the path from the arguments. This will split at the first 32076 # space. 32077 complete="$AR" 32078 path="${complete%% *}" 32079 tmp="$complete EOL" 32080 arguments="${tmp#* }" 32081 32082 # Input might be given as Windows format, start by converting to 32083 # unix format. 32084 new_path="$path" 32085 32086 windows_path="$new_path" 32087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32088 unix_path=`$CYGPATH -u "$windows_path"` 32089 new_path="$unix_path" 32090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32092 new_path="$unix_path" 32093 fi 32094 32095 32096 # Now try to locate executable using which 32097 new_path=`$WHICH "$new_path" 2> /dev/null` 32098 32099 if test "x$new_path" = x; then 32100 # Oops. Which didn't find the executable. 32101 # The splitting of arguments from the executable at a space might have been incorrect, 32102 # since paths with space are more likely in Windows. Give it another try with the whole 32103 # argument. 32104 path="$complete" 32105 arguments="EOL" 32106 new_path="$path" 32107 32108 windows_path="$new_path" 32109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32110 unix_path=`$CYGPATH -u "$windows_path"` 32111 new_path="$unix_path" 32112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32114 new_path="$unix_path" 32115 fi 32116 32117 32118 new_path=`$WHICH "$new_path" 2> /dev/null` 32119 # bat and cmd files are not always considered executable in MSYS causing which 32120 # to not find them 32121 if test "x$new_path" = x \ 32122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32124 new_path="$path" 32125 32126 windows_path="$new_path" 32127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32128 unix_path=`$CYGPATH -u "$windows_path"` 32129 new_path="$unix_path" 32130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32132 new_path="$unix_path" 32133 fi 32134 32135 fi 32136 32137 if test "x$new_path" = x; then 32138 # It's still not found. Now this is an unrecoverable error. 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32140 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32141 has_space=`$ECHO "$complete" | $GREP " "` 32142 if test "x$has_space" != x; then 32143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32145 fi 32146 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32147 fi 32148 fi 32149 32150 # Now new_path has a complete unix path to the binary 32151 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32152 # Keep paths in /bin as-is, but remove trailing .exe if any 32153 new_path="${new_path/%.exe/}" 32154 # Do not save /bin paths to all_fixpath_prefixes! 32155 else 32156 # Not in mixed or Windows style, start by that. 32157 new_path=`cmd //c echo $new_path` 32158 32159 input_path="$new_path" 32160 # Check if we need to convert this using DOS-style short mode. If the path 32161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32162 # take no chances and rewrite it. 32163 # Note: m4 eats our [], so we need to use [ and ] instead. 32164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32165 if test "x$has_forbidden_chars" != x; then 32166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32168 fi 32169 32170 # Output is in $new_path 32171 32172 windows_path="$new_path" 32173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32174 unix_path=`$CYGPATH -u "$windows_path"` 32175 new_path="$unix_path" 32176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32178 new_path="$unix_path" 32179 fi 32180 32181 # remove trailing .exe if any 32182 new_path="${new_path/%.exe/}" 32183 32184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32186 fi 32187 32188 else 32189 # We're on a posix platform. Hooray! :) 32190 # First separate the path from the arguments. This will split at the first 32191 # space. 32192 complete="$AR" 32193 path="${complete%% *}" 32194 tmp="$complete EOL" 32195 arguments="${tmp#* }" 32196 32197 # Cannot rely on the command "which" here since it doesn't always work. 32198 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32199 if test -z "$is_absolute_path"; then 32200 # Path to executable is not absolute. Find it. 32201 IFS_save="$IFS" 32202 IFS=: 32203 for p in $PATH; do 32204 if test -f "$p/$path" && test -x "$p/$path"; then 32205 new_path="$p/$path" 32206 break 32207 fi 32208 done 32209 IFS="$IFS_save" 32210 else 32211 # This is an absolute path, we can use it without further modifications. 32212 new_path="$path" 32213 fi 32214 32215 if test "x$new_path" = x; then 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32217 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32218 has_space=`$ECHO "$complete" | $GREP " "` 32219 if test "x$has_space" != x; then 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32221 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32222 fi 32223 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32224 fi 32225 fi 32226 32227 # Now join together the path and the arguments once again 32228 if test "x$arguments" != xEOL; then 32229 new_complete="$new_path ${arguments% *}" 32230 else 32231 new_complete="$new_path" 32232 fi 32233 32234 if test "x$complete" != "x$new_complete"; then 32235 AR="$new_complete" 32236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32237 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32238 fi 32239 32240 32241 32242 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32243 ac_ext=m 32244 ac_cpp='$OBJCPP $CPPFLAGS' 32245 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32246 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32247 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32248 if test -n "$ac_tool_prefix"; then 32249 for ac_prog in gcc objcc objc cc CC 32250 do 32251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32254 $as_echo_n "checking for $ac_word... " >&6; } 32255 if ${ac_cv_prog_OBJC+:} false; then : 32256 $as_echo_n "(cached) " >&6 32257 else 32258 if test -n "$OBJC"; then 32259 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32260 else 32261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32262 for as_dir in $PATH 32263 do 32264 IFS=$as_save_IFS 32265 test -z "$as_dir" && as_dir=. 32266 for ac_exec_ext in '' $ac_executable_extensions; do 32267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32268 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32270 break 2 32271 fi 32272 done 32273 done 32274 IFS=$as_save_IFS 32275 32276 fi 32277 fi 32278 OBJC=$ac_cv_prog_OBJC 32279 if test -n "$OBJC"; then 32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32281 $as_echo "$OBJC" >&6; } 32282 else 32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32284 $as_echo "no" >&6; } 32285 fi 32286 32287 32288 test -n "$OBJC" && break 32289 done 32290 fi 32291 if test -z "$OBJC"; then 32292 ac_ct_OBJC=$OBJC 32293 for ac_prog in gcc objcc objc cc CC 32294 do 32295 # Extract the first word of "$ac_prog", so it can be a program name with args. 32296 set dummy $ac_prog; ac_word=$2 32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32298 $as_echo_n "checking for $ac_word... " >&6; } 32299 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32300 $as_echo_n "(cached) " >&6 32301 else 32302 if test -n "$ac_ct_OBJC"; then 32303 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32304 else 32305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32306 for as_dir in $PATH 32307 do 32308 IFS=$as_save_IFS 32309 test -z "$as_dir" && as_dir=. 32310 for ac_exec_ext in '' $ac_executable_extensions; do 32311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32312 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32314 break 2 32315 fi 32316 done 32317 done 32318 IFS=$as_save_IFS 32319 32320 fi 32321 fi 32322 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32323 if test -n "$ac_ct_OBJC"; then 32324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32325 $as_echo "$ac_ct_OBJC" >&6; } 32326 else 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32328 $as_echo "no" >&6; } 32329 fi 32330 32331 32332 test -n "$ac_ct_OBJC" && break 32333 done 32334 32335 if test "x$ac_ct_OBJC" = x; then 32336 OBJC="gcc" 32337 else 32338 case $cross_compiling:$ac_tool_warned in 32339 yes:) 32340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32342 ac_tool_warned=yes ;; 32343 esac 32344 OBJC=$ac_ct_OBJC 32345 fi 32346 fi 32347 32348 # Provide some information about the compiler. 32349 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32350 set X $ac_compile 32351 ac_compiler=$2 32352 for ac_option in --version -v -V -qversion; do 32353 { { ac_try="$ac_compiler $ac_option >&5" 32354 case "(($ac_try" in 32355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32356 *) ac_try_echo=$ac_try;; 32357 esac 32358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32359 $as_echo "$ac_try_echo"; } >&5 32360 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32361 ac_status=$? 32362 if test -s conftest.err; then 32363 sed '10a\ 32364 ... rest of stderr output deleted ... 32365 10q' conftest.err >conftest.er1 32366 cat conftest.er1 >&5 32367 fi 32368 rm -f conftest.er1 conftest.err 32369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32370 test $ac_status = 0; } 32371 done 32372 32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32374 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32375 if ${ac_cv_objc_compiler_gnu+:} false; then : 32376 $as_echo_n "(cached) " >&6 32377 else 32378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32379 /* end confdefs.h. */ 32380 32381 int 32382 main () 32383 { 32384 #ifndef __GNUC__ 32385 choke me 32386 #endif 32387 32388 ; 32389 return 0; 32390 } 32391 _ACEOF 32392 if ac_fn_objc_try_compile "$LINENO"; then : 32393 ac_compiler_gnu=yes 32394 else 32395 ac_compiler_gnu=no 32396 fi 32397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32398 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32399 32400 fi 32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32402 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32403 if test $ac_compiler_gnu = yes; then 32404 GOBJC=yes 32405 else 32406 GOBJC= 32407 fi 32408 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32409 ac_save_OBJCFLAGS=$OBJCFLAGS 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32411 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32412 if ${ac_cv_prog_objc_g+:} false; then : 32413 $as_echo_n "(cached) " >&6 32414 else 32415 ac_save_objc_werror_flag=$ac_objc_werror_flag 32416 ac_objc_werror_flag=yes 32417 ac_cv_prog_objc_g=no 32418 OBJCFLAGS="-g" 32419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32420 /* end confdefs.h. */ 32421 32422 int 32423 main () 32424 { 32425 32426 ; 32427 return 0; 32428 } 32429 _ACEOF 32430 if ac_fn_objc_try_compile "$LINENO"; then : 32431 ac_cv_prog_objc_g=yes 32432 else 32433 OBJCFLAGS="" 32434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32435 /* end confdefs.h. */ 32436 32437 int 32438 main () 32439 { 32440 32441 ; 32442 return 0; 32443 } 32444 _ACEOF 32445 if ac_fn_objc_try_compile "$LINENO"; then : 32446 32447 else 32448 ac_objc_werror_flag=$ac_save_objc_werror_flag 32449 OBJCFLAGS="-g" 32450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32451 /* end confdefs.h. */ 32452 32453 int 32454 main () 32455 { 32456 32457 ; 32458 return 0; 32459 } 32460 _ACEOF 32461 if ac_fn_objc_try_compile "$LINENO"; then : 32462 ac_cv_prog_objc_g=yes 32463 fi 32464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32465 fi 32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32467 fi 32468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32469 ac_objc_werror_flag=$ac_save_objc_werror_flag 32470 fi 32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 32472 $as_echo "$ac_cv_prog_objc_g" >&6; } 32473 if test "$ac_test_OBJCFLAGS" = set; then 32474 OBJCFLAGS=$ac_save_OBJCFLAGS 32475 elif test $ac_cv_prog_objc_g = yes; then 32476 if test "$GOBJC" = yes; then 32477 OBJCFLAGS="-g -O2" 32478 else 32479 OBJCFLAGS="-g" 32480 fi 32481 else 32482 if test "$GOBJC" = yes; then 32483 OBJCFLAGS="-O2" 32484 else 32485 OBJCFLAGS= 32486 fi 32487 fi 32488 ac_ext=cpp 32489 ac_cpp='$CXXCPP $CPPFLAGS' 32490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32493 32494 32495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32496 32497 # First separate the path from the arguments. This will split at the first 32498 # space. 32499 complete="$OBJC" 32500 path="${complete%% *}" 32501 tmp="$complete EOL" 32502 arguments="${tmp#* }" 32503 32504 # Input might be given as Windows format, start by converting to 32505 # unix format. 32506 new_path=`$CYGPATH -u "$path"` 32507 32508 # Now try to locate executable using which 32509 new_path=`$WHICH "$new_path" 2> /dev/null` 32510 # bat and cmd files are not always considered executable in cygwin causing which 32511 # to not find them 32512 if test "x$new_path" = x \ 32513 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32514 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32515 new_path=`$CYGPATH -u "$path"` 32516 fi 32517 if test "x$new_path" = x; then 32518 # Oops. Which didn't find the executable. 32519 # The splitting of arguments from the executable at a space might have been incorrect, 32520 # since paths with space are more likely in Windows. Give it another try with the whole 32521 # argument. 32522 path="$complete" 32523 arguments="EOL" 32524 new_path=`$CYGPATH -u "$path"` 32525 new_path=`$WHICH "$new_path" 2> /dev/null` 32526 # bat and cmd files are not always considered executable in cygwin causing which 32527 # to not find them 32528 if test "x$new_path" = x \ 32529 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32530 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32531 new_path=`$CYGPATH -u "$path"` 32532 fi 32533 if test "x$new_path" = x; then 32534 # It's still not found. Now this is an unrecoverable error. 32535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32536 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32537 has_space=`$ECHO "$complete" | $GREP " "` 32538 if test "x$has_space" != x; then 32539 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32540 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32541 fi 32542 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32543 fi 32544 fi 32545 32546 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32547 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32548 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32549 # "foo.exe" is OK but "foo" is an error. 32550 # 32551 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32552 # It is also a way to make sure we got the proper file name for the real test later on. 32553 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32554 if test "x$test_shortpath" = x; then 32555 # Short path failed, file does not exist as specified. 32556 # Try adding .exe or .cmd 32557 if test -f "${new_path}.exe"; then 32558 input_to_shortpath="${new_path}.exe" 32559 elif test -f "${new_path}.cmd"; then 32560 input_to_shortpath="${new_path}.cmd" 32561 else 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 32563 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 32564 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32565 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32566 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32567 fi 32568 else 32569 input_to_shortpath="$new_path" 32570 fi 32571 32572 # Call helper function which possibly converts this using DOS-style short mode. 32573 # If so, the updated path is stored in $new_path. 32574 new_path="$input_to_shortpath" 32575 32576 input_path="$input_to_shortpath" 32577 # Check if we need to convert this using DOS-style short mode. If the path 32578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32579 # take no chances and rewrite it. 32580 # Note: m4 eats our [], so we need to use [ and ] instead. 32581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32582 if test "x$has_forbidden_chars" != x; then 32583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32587 # Going to short mode and back again did indeed matter. Since short mode is 32588 # case insensitive, let's make it lowercase to improve readability. 32589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32590 # Now convert it back to Unix-style (cygpath) 32591 input_path=`$CYGPATH -u "$shortmode_path"` 32592 new_path="$input_path" 32593 fi 32594 fi 32595 32596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32597 if test "x$test_cygdrive_prefix" = x; then 32598 # As a simple fix, exclude /usr/bin since it's not a real path. 32599 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32601 # a path prefixed by /cygdrive for fixpath to work. 32602 new_path="$CYGWIN_ROOT_PATH$input_path" 32603 fi 32604 fi 32605 32606 # remove trailing .exe if any 32607 new_path="${new_path/%.exe/}" 32608 32609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32610 32611 # First separate the path from the arguments. This will split at the first 32612 # space. 32613 complete="$OBJC" 32614 path="${complete%% *}" 32615 tmp="$complete EOL" 32616 arguments="${tmp#* }" 32617 32618 # Input might be given as Windows format, start by converting to 32619 # unix format. 32620 new_path="$path" 32621 32622 windows_path="$new_path" 32623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32624 unix_path=`$CYGPATH -u "$windows_path"` 32625 new_path="$unix_path" 32626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32628 new_path="$unix_path" 32629 fi 32630 32631 32632 # Now try to locate executable using which 32633 new_path=`$WHICH "$new_path" 2> /dev/null` 32634 32635 if test "x$new_path" = x; then 32636 # Oops. Which didn't find the executable. 32637 # The splitting of arguments from the executable at a space might have been incorrect, 32638 # since paths with space are more likely in Windows. Give it another try with the whole 32639 # argument. 32640 path="$complete" 32641 arguments="EOL" 32642 new_path="$path" 32643 32644 windows_path="$new_path" 32645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32646 unix_path=`$CYGPATH -u "$windows_path"` 32647 new_path="$unix_path" 32648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32650 new_path="$unix_path" 32651 fi 32652 32653 32654 new_path=`$WHICH "$new_path" 2> /dev/null` 32655 # bat and cmd files are not always considered executable in MSYS causing which 32656 # to not find them 32657 if test "x$new_path" = x \ 32658 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32659 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32660 new_path="$path" 32661 32662 windows_path="$new_path" 32663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32664 unix_path=`$CYGPATH -u "$windows_path"` 32665 new_path="$unix_path" 32666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32668 new_path="$unix_path" 32669 fi 32670 32671 fi 32672 32673 if test "x$new_path" = x; then 32674 # It's still not found. Now this is an unrecoverable error. 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32676 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32677 has_space=`$ECHO "$complete" | $GREP " "` 32678 if test "x$has_space" != x; then 32679 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32680 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32681 fi 32682 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32683 fi 32684 fi 32685 32686 # Now new_path has a complete unix path to the binary 32687 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32688 # Keep paths in /bin as-is, but remove trailing .exe if any 32689 new_path="${new_path/%.exe/}" 32690 # Do not save /bin paths to all_fixpath_prefixes! 32691 else 32692 # Not in mixed or Windows style, start by that. 32693 new_path=`cmd //c echo $new_path` 32694 32695 input_path="$new_path" 32696 # Check if we need to convert this using DOS-style short mode. If the path 32697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32698 # take no chances and rewrite it. 32699 # Note: m4 eats our [], so we need to use [ and ] instead. 32700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32701 if test "x$has_forbidden_chars" != x; then 32702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32704 fi 32705 32706 # Output is in $new_path 32707 32708 windows_path="$new_path" 32709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32710 unix_path=`$CYGPATH -u "$windows_path"` 32711 new_path="$unix_path" 32712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32714 new_path="$unix_path" 32715 fi 32716 32717 # remove trailing .exe if any 32718 new_path="${new_path/%.exe/}" 32719 32720 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32721 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32722 fi 32723 32724 else 32725 # We're on a posix platform. Hooray! :) 32726 # First separate the path from the arguments. This will split at the first 32727 # space. 32728 complete="$OBJC" 32729 path="${complete%% *}" 32730 tmp="$complete EOL" 32731 arguments="${tmp#* }" 32732 32733 # Cannot rely on the command "which" here since it doesn't always work. 32734 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32735 if test -z "$is_absolute_path"; then 32736 # Path to executable is not absolute. Find it. 32737 IFS_save="$IFS" 32738 IFS=: 32739 for p in $PATH; do 32740 if test -f "$p/$path" && test -x "$p/$path"; then 32741 new_path="$p/$path" 32742 break 32743 fi 32744 done 32745 IFS="$IFS_save" 32746 else 32747 # This is an absolute path, we can use it without further modifications. 32748 new_path="$path" 32749 fi 32750 32751 if test "x$new_path" = x; then 32752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32753 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32754 has_space=`$ECHO "$complete" | $GREP " "` 32755 if test "x$has_space" != x; then 32756 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32757 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32758 fi 32759 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32760 fi 32761 fi 32762 32763 # Now join together the path and the arguments once again 32764 if test "x$arguments" != xEOL; then 32765 new_complete="$new_path ${arguments% *}" 32766 else 32767 new_complete="$new_path" 32768 fi 32769 32770 if test "x$complete" != "x$new_complete"; then 32771 OBJC="$new_complete" 32772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 32773 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 32774 fi 32775 32776 32777 32778 # Publish this variable in the help. 32779 32780 32781 if test "x$LIPO" = x; then 32782 # The variable is not set by user, try to locate tool using the code snippet 32783 for ac_prog in lipo 32784 do 32785 # Extract the first word of "$ac_prog", so it can be a program name with args. 32786 set dummy $ac_prog; ac_word=$2 32787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32788 $as_echo_n "checking for $ac_word... " >&6; } 32789 if ${ac_cv_path_LIPO+:} false; then : 32790 $as_echo_n "(cached) " >&6 32791 else 32792 case $LIPO in 32793 [\\/]* | ?:[\\/]*) 32794 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32795 ;; 32796 *) 32797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32798 for as_dir in $PATH 32799 do 32800 IFS=$as_save_IFS 32801 test -z "$as_dir" && as_dir=. 32802 for ac_exec_ext in '' $ac_executable_extensions; do 32803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32804 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32806 break 2 32807 fi 32808 done 32809 done 32810 IFS=$as_save_IFS 32811 32812 ;; 32813 esac 32814 fi 32815 LIPO=$ac_cv_path_LIPO 32816 if test -n "$LIPO"; then 32817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32818 $as_echo "$LIPO" >&6; } 32819 else 32820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32821 $as_echo "no" >&6; } 32822 fi 32823 32824 32825 test -n "$LIPO" && break 32826 done 32827 32828 else 32829 # The variable is set, but is it from the command line or the environment? 32830 32831 # Try to remove the string !LIPO! from our list. 32832 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 32833 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32834 # If it failed, the variable was not from the command line. Ignore it, 32835 # but warn the user (except for BASH, which is always set by the calling BASH). 32836 if test "xLIPO" != xBASH; then 32837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 32838 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 32839 fi 32840 # Try to locate tool using the code snippet 32841 for ac_prog in lipo 32842 do 32843 # Extract the first word of "$ac_prog", so it can be a program name with args. 32844 set dummy $ac_prog; ac_word=$2 32845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32846 $as_echo_n "checking for $ac_word... " >&6; } 32847 if ${ac_cv_path_LIPO+:} false; then : 32848 $as_echo_n "(cached) " >&6 32849 else 32850 case $LIPO in 32851 [\\/]* | ?:[\\/]*) 32852 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32853 ;; 32854 *) 32855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32856 for as_dir in $PATH 32857 do 32858 IFS=$as_save_IFS 32859 test -z "$as_dir" && as_dir=. 32860 for ac_exec_ext in '' $ac_executable_extensions; do 32861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32862 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32864 break 2 32865 fi 32866 done 32867 done 32868 IFS=$as_save_IFS 32869 32870 ;; 32871 esac 32872 fi 32873 LIPO=$ac_cv_path_LIPO 32874 if test -n "$LIPO"; then 32875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32876 $as_echo "$LIPO" >&6; } 32877 else 32878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32879 $as_echo "no" >&6; } 32880 fi 32881 32882 32883 test -n "$LIPO" && break 32884 done 32885 32886 else 32887 # If it succeeded, then it was overridden by the user. We will use it 32888 # for the tool. 32889 32890 # First remove it from the list of overridden variables, so we can test 32891 # for unknown variables in the end. 32892 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32893 32894 # Check if the provided tool contains a complete path. 32895 tool_specified="$LIPO" 32896 tool_basename="${tool_specified##*/}" 32897 if test "x$tool_basename" = "x$tool_specified"; then 32898 # A command without a complete path is provided, search $PATH. 32899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 32900 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 32901 # Extract the first word of "$tool_basename", so it can be a program name with args. 32902 set dummy $tool_basename; ac_word=$2 32903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32904 $as_echo_n "checking for $ac_word... " >&6; } 32905 if ${ac_cv_path_LIPO+:} false; then : 32906 $as_echo_n "(cached) " >&6 32907 else 32908 case $LIPO in 32909 [\\/]* | ?:[\\/]*) 32910 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32911 ;; 32912 *) 32913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32914 for as_dir in $PATH 32915 do 32916 IFS=$as_save_IFS 32917 test -z "$as_dir" && as_dir=. 32918 for ac_exec_ext in '' $ac_executable_extensions; do 32919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32920 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32922 break 2 32923 fi 32924 done 32925 done 32926 IFS=$as_save_IFS 32927 32928 ;; 32929 esac 32930 fi 32931 LIPO=$ac_cv_path_LIPO 32932 if test -n "$LIPO"; then 32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32934 $as_echo "$LIPO" >&6; } 32935 else 32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32937 $as_echo "no" >&6; } 32938 fi 32939 32940 32941 if test "x$LIPO" = x; then 32942 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32943 fi 32944 else 32945 # Otherwise we believe it is a complete path. Use it as it is. 32946 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 32947 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 32948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 32949 $as_echo_n "checking for LIPO... " >&6; } 32950 if test ! -x "$tool_specified"; then 32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32952 $as_echo "not found" >&6; } 32953 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 32954 fi 32955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32956 $as_echo "$tool_specified" >&6; } 32957 fi 32958 fi 32959 fi 32960 32961 32962 32963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32964 32965 # First separate the path from the arguments. This will split at the first 32966 # space. 32967 complete="$LIPO" 32968 path="${complete%% *}" 32969 tmp="$complete EOL" 32970 arguments="${tmp#* }" 32971 32972 # Input might be given as Windows format, start by converting to 32973 # unix format. 32974 new_path=`$CYGPATH -u "$path"` 32975 32976 # Now try to locate executable using which 32977 new_path=`$WHICH "$new_path" 2> /dev/null` 32978 # bat and cmd files are not always considered executable in cygwin causing which 32979 # to not find them 32980 if test "x$new_path" = x \ 32981 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32982 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32983 new_path=`$CYGPATH -u "$path"` 32984 fi 32985 if test "x$new_path" = x; then 32986 # Oops. Which didn't find the executable. 32987 # The splitting of arguments from the executable at a space might have been incorrect, 32988 # since paths with space are more likely in Windows. Give it another try with the whole 32989 # argument. 32990 path="$complete" 32991 arguments="EOL" 32992 new_path=`$CYGPATH -u "$path"` 32993 new_path=`$WHICH "$new_path" 2> /dev/null` 32994 # bat and cmd files are not always considered executable in cygwin causing which 32995 # to not find them 32996 if test "x$new_path" = x \ 32997 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32998 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32999 new_path=`$CYGPATH -u "$path"` 33000 fi 33001 if test "x$new_path" = x; then 33002 # It's still not found. Now this is an unrecoverable error. 33003 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33004 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33005 has_space=`$ECHO "$complete" | $GREP " "` 33006 if test "x$has_space" != x; then 33007 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33008 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33009 fi 33010 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33011 fi 33012 fi 33013 33014 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33015 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33016 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33017 # "foo.exe" is OK but "foo" is an error. 33018 # 33019 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33020 # It is also a way to make sure we got the proper file name for the real test later on. 33021 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33022 if test "x$test_shortpath" = x; then 33023 # Short path failed, file does not exist as specified. 33024 # Try adding .exe or .cmd 33025 if test -f "${new_path}.exe"; then 33026 input_to_shortpath="${new_path}.exe" 33027 elif test -f "${new_path}.cmd"; then 33028 input_to_shortpath="${new_path}.cmd" 33029 else 33030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33031 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33032 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33033 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33034 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33035 fi 33036 else 33037 input_to_shortpath="$new_path" 33038 fi 33039 33040 # Call helper function which possibly converts this using DOS-style short mode. 33041 # If so, the updated path is stored in $new_path. 33042 new_path="$input_to_shortpath" 33043 33044 input_path="$input_to_shortpath" 33045 # Check if we need to convert this using DOS-style short mode. If the path 33046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33047 # take no chances and rewrite it. 33048 # Note: m4 eats our [], so we need to use [ and ] instead. 33049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33050 if test "x$has_forbidden_chars" != x; then 33051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33052 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33053 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33054 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33055 # Going to short mode and back again did indeed matter. Since short mode is 33056 # case insensitive, let's make it lowercase to improve readability. 33057 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33058 # Now convert it back to Unix-style (cygpath) 33059 input_path=`$CYGPATH -u "$shortmode_path"` 33060 new_path="$input_path" 33061 fi 33062 fi 33063 33064 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33065 if test "x$test_cygdrive_prefix" = x; then 33066 # As a simple fix, exclude /usr/bin since it's not a real path. 33067 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33068 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33069 # a path prefixed by /cygdrive for fixpath to work. 33070 new_path="$CYGWIN_ROOT_PATH$input_path" 33071 fi 33072 fi 33073 33074 # remove trailing .exe if any 33075 new_path="${new_path/%.exe/}" 33076 33077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33078 33079 # First separate the path from the arguments. This will split at the first 33080 # space. 33081 complete="$LIPO" 33082 path="${complete%% *}" 33083 tmp="$complete EOL" 33084 arguments="${tmp#* }" 33085 33086 # Input might be given as Windows format, start by converting to 33087 # unix format. 33088 new_path="$path" 33089 33090 windows_path="$new_path" 33091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33092 unix_path=`$CYGPATH -u "$windows_path"` 33093 new_path="$unix_path" 33094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33096 new_path="$unix_path" 33097 fi 33098 33099 33100 # Now try to locate executable using which 33101 new_path=`$WHICH "$new_path" 2> /dev/null` 33102 33103 if test "x$new_path" = x; then 33104 # Oops. Which didn't find the executable. 33105 # The splitting of arguments from the executable at a space might have been incorrect, 33106 # since paths with space are more likely in Windows. Give it another try with the whole 33107 # argument. 33108 path="$complete" 33109 arguments="EOL" 33110 new_path="$path" 33111 33112 windows_path="$new_path" 33113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33114 unix_path=`$CYGPATH -u "$windows_path"` 33115 new_path="$unix_path" 33116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33118 new_path="$unix_path" 33119 fi 33120 33121 33122 new_path=`$WHICH "$new_path" 2> /dev/null` 33123 # bat and cmd files are not always considered executable in MSYS causing which 33124 # to not find them 33125 if test "x$new_path" = x \ 33126 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33127 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33128 new_path="$path" 33129 33130 windows_path="$new_path" 33131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33132 unix_path=`$CYGPATH -u "$windows_path"` 33133 new_path="$unix_path" 33134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33136 new_path="$unix_path" 33137 fi 33138 33139 fi 33140 33141 if test "x$new_path" = x; then 33142 # It's still not found. Now this is an unrecoverable error. 33143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33144 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33145 has_space=`$ECHO "$complete" | $GREP " "` 33146 if test "x$has_space" != x; then 33147 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33148 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33149 fi 33150 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33151 fi 33152 fi 33153 33154 # Now new_path has a complete unix path to the binary 33155 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33156 # Keep paths in /bin as-is, but remove trailing .exe if any 33157 new_path="${new_path/%.exe/}" 33158 # Do not save /bin paths to all_fixpath_prefixes! 33159 else 33160 # Not in mixed or Windows style, start by that. 33161 new_path=`cmd //c echo $new_path` 33162 33163 input_path="$new_path" 33164 # Check if we need to convert this using DOS-style short mode. If the path 33165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33166 # take no chances and rewrite it. 33167 # Note: m4 eats our [], so we need to use [ and ] instead. 33168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33169 if test "x$has_forbidden_chars" != x; then 33170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33172 fi 33173 33174 # Output is in $new_path 33175 33176 windows_path="$new_path" 33177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33178 unix_path=`$CYGPATH -u "$windows_path"` 33179 new_path="$unix_path" 33180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33181 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33182 new_path="$unix_path" 33183 fi 33184 33185 # remove trailing .exe if any 33186 new_path="${new_path/%.exe/}" 33187 33188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33190 fi 33191 33192 else 33193 # We're on a posix platform. Hooray! :) 33194 # First separate the path from the arguments. This will split at the first 33195 # space. 33196 complete="$LIPO" 33197 path="${complete%% *}" 33198 tmp="$complete EOL" 33199 arguments="${tmp#* }" 33200 33201 # Cannot rely on the command "which" here since it doesn't always work. 33202 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33203 if test -z "$is_absolute_path"; then 33204 # Path to executable is not absolute. Find it. 33205 IFS_save="$IFS" 33206 IFS=: 33207 for p in $PATH; do 33208 if test -f "$p/$path" && test -x "$p/$path"; then 33209 new_path="$p/$path" 33210 break 33211 fi 33212 done 33213 IFS="$IFS_save" 33214 else 33215 # This is an absolute path, we can use it without further modifications. 33216 new_path="$path" 33217 fi 33218 33219 if test "x$new_path" = x; then 33220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33221 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33222 has_space=`$ECHO "$complete" | $GREP " "` 33223 if test "x$has_space" != x; then 33224 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33225 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33226 fi 33227 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33228 fi 33229 fi 33230 33231 # Now join together the path and the arguments once again 33232 if test "x$arguments" != xEOL; then 33233 new_complete="$new_path ${arguments% *}" 33234 else 33235 new_complete="$new_path" 33236 fi 33237 33238 if test "x$complete" != "x$new_complete"; then 33239 LIPO="$new_complete" 33240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33241 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33242 fi 33243 33244 else 33245 OBJC= 33246 fi 33247 33248 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33249 # Extract the first word of "mt", so it can be a program name with args. 33250 set dummy mt; ac_word=$2 33251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33252 $as_echo_n "checking for $ac_word... " >&6; } 33253 if ${ac_cv_prog_MT+:} false; then : 33254 $as_echo_n "(cached) " >&6 33255 else 33256 if test -n "$MT"; then 33257 ac_cv_prog_MT="$MT" # Let the user override the test. 33258 else 33259 ac_prog_rejected=no 33260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33261 for as_dir in $PATH 33262 do 33263 IFS=$as_save_IFS 33264 test -z "$as_dir" && as_dir=. 33265 for ac_exec_ext in '' $ac_executable_extensions; do 33266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33268 ac_prog_rejected=yes 33269 continue 33270 fi 33271 ac_cv_prog_MT="mt" 33272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33273 break 2 33274 fi 33275 done 33276 done 33277 IFS=$as_save_IFS 33278 33279 if test $ac_prog_rejected = yes; then 33280 # We found a bogon in the path, so make sure we never use it. 33281 set dummy $ac_cv_prog_MT 33282 shift 33283 if test $# != 0; then 33284 # We chose a different compiler from the bogus one. 33285 # However, it has the same basename, so the bogon will be chosen 33286 # first if we set MT to just the basename; use the full file name. 33287 shift 33288 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33289 fi 33290 fi 33291 fi 33292 fi 33293 MT=$ac_cv_prog_MT 33294 if test -n "$MT"; then 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33296 $as_echo "$MT" >&6; } 33297 else 33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33299 $as_echo "no" >&6; } 33300 fi 33301 33302 33303 33304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33305 33306 # First separate the path from the arguments. This will split at the first 33307 # space. 33308 complete="$MT" 33309 path="${complete%% *}" 33310 tmp="$complete EOL" 33311 arguments="${tmp#* }" 33312 33313 # Input might be given as Windows format, start by converting to 33314 # unix format. 33315 new_path=`$CYGPATH -u "$path"` 33316 33317 # Now try to locate executable using which 33318 new_path=`$WHICH "$new_path" 2> /dev/null` 33319 # bat and cmd files are not always considered executable in cygwin causing which 33320 # to not find them 33321 if test "x$new_path" = x \ 33322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33324 new_path=`$CYGPATH -u "$path"` 33325 fi 33326 if test "x$new_path" = x; then 33327 # Oops. Which didn't find the executable. 33328 # The splitting of arguments from the executable at a space might have been incorrect, 33329 # since paths with space are more likely in Windows. Give it another try with the whole 33330 # argument. 33331 path="$complete" 33332 arguments="EOL" 33333 new_path=`$CYGPATH -u "$path"` 33334 new_path=`$WHICH "$new_path" 2> /dev/null` 33335 # bat and cmd files are not always considered executable in cygwin causing which 33336 # to not find them 33337 if test "x$new_path" = x \ 33338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33340 new_path=`$CYGPATH -u "$path"` 33341 fi 33342 if test "x$new_path" = x; then 33343 # It's still not found. Now this is an unrecoverable error. 33344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33345 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33346 has_space=`$ECHO "$complete" | $GREP " "` 33347 if test "x$has_space" != x; then 33348 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33349 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33350 fi 33351 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33352 fi 33353 fi 33354 33355 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33356 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33357 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33358 # "foo.exe" is OK but "foo" is an error. 33359 # 33360 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33361 # It is also a way to make sure we got the proper file name for the real test later on. 33362 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33363 if test "x$test_shortpath" = x; then 33364 # Short path failed, file does not exist as specified. 33365 # Try adding .exe or .cmd 33366 if test -f "${new_path}.exe"; then 33367 input_to_shortpath="${new_path}.exe" 33368 elif test -f "${new_path}.cmd"; then 33369 input_to_shortpath="${new_path}.cmd" 33370 else 33371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33372 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33373 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33374 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33375 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33376 fi 33377 else 33378 input_to_shortpath="$new_path" 33379 fi 33380 33381 # Call helper function which possibly converts this using DOS-style short mode. 33382 # If so, the updated path is stored in $new_path. 33383 new_path="$input_to_shortpath" 33384 33385 input_path="$input_to_shortpath" 33386 # Check if we need to convert this using DOS-style short mode. If the path 33387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33388 # take no chances and rewrite it. 33389 # Note: m4 eats our [], so we need to use [ and ] instead. 33390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33391 if test "x$has_forbidden_chars" != x; then 33392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33393 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33394 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33395 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33396 # Going to short mode and back again did indeed matter. Since short mode is 33397 # case insensitive, let's make it lowercase to improve readability. 33398 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33399 # Now convert it back to Unix-style (cygpath) 33400 input_path=`$CYGPATH -u "$shortmode_path"` 33401 new_path="$input_path" 33402 fi 33403 fi 33404 33405 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33406 if test "x$test_cygdrive_prefix" = x; then 33407 # As a simple fix, exclude /usr/bin since it's not a real path. 33408 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33409 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33410 # a path prefixed by /cygdrive for fixpath to work. 33411 new_path="$CYGWIN_ROOT_PATH$input_path" 33412 fi 33413 fi 33414 33415 # remove trailing .exe if any 33416 new_path="${new_path/%.exe/}" 33417 33418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33419 33420 # First separate the path from the arguments. This will split at the first 33421 # space. 33422 complete="$MT" 33423 path="${complete%% *}" 33424 tmp="$complete EOL" 33425 arguments="${tmp#* }" 33426 33427 # Input might be given as Windows format, start by converting to 33428 # unix format. 33429 new_path="$path" 33430 33431 windows_path="$new_path" 33432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33433 unix_path=`$CYGPATH -u "$windows_path"` 33434 new_path="$unix_path" 33435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33437 new_path="$unix_path" 33438 fi 33439 33440 33441 # Now try to locate executable using which 33442 new_path=`$WHICH "$new_path" 2> /dev/null` 33443 33444 if test "x$new_path" = x; then 33445 # Oops. Which didn't find the executable. 33446 # The splitting of arguments from the executable at a space might have been incorrect, 33447 # since paths with space are more likely in Windows. Give it another try with the whole 33448 # argument. 33449 path="$complete" 33450 arguments="EOL" 33451 new_path="$path" 33452 33453 windows_path="$new_path" 33454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33455 unix_path=`$CYGPATH -u "$windows_path"` 33456 new_path="$unix_path" 33457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33459 new_path="$unix_path" 33460 fi 33461 33462 33463 new_path=`$WHICH "$new_path" 2> /dev/null` 33464 # bat and cmd files are not always considered executable in MSYS causing which 33465 # to not find them 33466 if test "x$new_path" = x \ 33467 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33468 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33469 new_path="$path" 33470 33471 windows_path="$new_path" 33472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33473 unix_path=`$CYGPATH -u "$windows_path"` 33474 new_path="$unix_path" 33475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33477 new_path="$unix_path" 33478 fi 33479 33480 fi 33481 33482 if test "x$new_path" = x; then 33483 # It's still not found. Now this is an unrecoverable error. 33484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33485 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33486 has_space=`$ECHO "$complete" | $GREP " "` 33487 if test "x$has_space" != x; then 33488 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33489 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33490 fi 33491 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33492 fi 33493 fi 33494 33495 # Now new_path has a complete unix path to the binary 33496 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33497 # Keep paths in /bin as-is, but remove trailing .exe if any 33498 new_path="${new_path/%.exe/}" 33499 # Do not save /bin paths to all_fixpath_prefixes! 33500 else 33501 # Not in mixed or Windows style, start by that. 33502 new_path=`cmd //c echo $new_path` 33503 33504 input_path="$new_path" 33505 # Check if we need to convert this using DOS-style short mode. If the path 33506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33507 # take no chances and rewrite it. 33508 # Note: m4 eats our [], so we need to use [ and ] instead. 33509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33510 if test "x$has_forbidden_chars" != x; then 33511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33512 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33513 fi 33514 33515 # Output is in $new_path 33516 33517 windows_path="$new_path" 33518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33519 unix_path=`$CYGPATH -u "$windows_path"` 33520 new_path="$unix_path" 33521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33523 new_path="$unix_path" 33524 fi 33525 33526 # remove trailing .exe if any 33527 new_path="${new_path/%.exe/}" 33528 33529 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33530 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33531 fi 33532 33533 else 33534 # We're on a posix platform. Hooray! :) 33535 # First separate the path from the arguments. This will split at the first 33536 # space. 33537 complete="$MT" 33538 path="${complete%% *}" 33539 tmp="$complete EOL" 33540 arguments="${tmp#* }" 33541 33542 # Cannot rely on the command "which" here since it doesn't always work. 33543 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33544 if test -z "$is_absolute_path"; then 33545 # Path to executable is not absolute. Find it. 33546 IFS_save="$IFS" 33547 IFS=: 33548 for p in $PATH; do 33549 if test -f "$p/$path" && test -x "$p/$path"; then 33550 new_path="$p/$path" 33551 break 33552 fi 33553 done 33554 IFS="$IFS_save" 33555 else 33556 # This is an absolute path, we can use it without further modifications. 33557 new_path="$path" 33558 fi 33559 33560 if test "x$new_path" = x; then 33561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33562 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33563 has_space=`$ECHO "$complete" | $GREP " "` 33564 if test "x$has_space" != x; then 33565 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33566 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33567 fi 33568 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33569 fi 33570 fi 33571 33572 # Now join together the path and the arguments once again 33573 if test "x$arguments" != xEOL; then 33574 new_complete="$new_path ${arguments% *}" 33575 else 33576 new_complete="$new_path" 33577 fi 33578 33579 if test "x$complete" != "x$new_complete"; then 33580 MT="$new_complete" 33581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 33582 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 33583 fi 33584 33585 # Setup the resource compiler (RC) 33586 # Extract the first word of "rc", so it can be a program name with args. 33587 set dummy rc; ac_word=$2 33588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33589 $as_echo_n "checking for $ac_word... " >&6; } 33590 if ${ac_cv_prog_RC+:} false; then : 33591 $as_echo_n "(cached) " >&6 33592 else 33593 if test -n "$RC"; then 33594 ac_cv_prog_RC="$RC" # Let the user override the test. 33595 else 33596 ac_prog_rejected=no 33597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33598 for as_dir in $PATH 33599 do 33600 IFS=$as_save_IFS 33601 test -z "$as_dir" && as_dir=. 33602 for ac_exec_ext in '' $ac_executable_extensions; do 33603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 33605 ac_prog_rejected=yes 33606 continue 33607 fi 33608 ac_cv_prog_RC="rc" 33609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33610 break 2 33611 fi 33612 done 33613 done 33614 IFS=$as_save_IFS 33615 33616 if test $ac_prog_rejected = yes; then 33617 # We found a bogon in the path, so make sure we never use it. 33618 set dummy $ac_cv_prog_RC 33619 shift 33620 if test $# != 0; then 33621 # We chose a different compiler from the bogus one. 33622 # However, it has the same basename, so the bogon will be chosen 33623 # first if we set RC to just the basename; use the full file name. 33624 shift 33625 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 33626 fi 33627 fi 33628 fi 33629 fi 33630 RC=$ac_cv_prog_RC 33631 if test -n "$RC"; then 33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 33633 $as_echo "$RC" >&6; } 33634 else 33635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33636 $as_echo "no" >&6; } 33637 fi 33638 33639 33640 33641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33642 33643 # First separate the path from the arguments. This will split at the first 33644 # space. 33645 complete="$RC" 33646 path="${complete%% *}" 33647 tmp="$complete EOL" 33648 arguments="${tmp#* }" 33649 33650 # Input might be given as Windows format, start by converting to 33651 # unix format. 33652 new_path=`$CYGPATH -u "$path"` 33653 33654 # Now try to locate executable using which 33655 new_path=`$WHICH "$new_path" 2> /dev/null` 33656 # bat and cmd files are not always considered executable in cygwin causing which 33657 # to not find them 33658 if test "x$new_path" = x \ 33659 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33660 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33661 new_path=`$CYGPATH -u "$path"` 33662 fi 33663 if test "x$new_path" = x; then 33664 # Oops. Which didn't find the executable. 33665 # The splitting of arguments from the executable at a space might have been incorrect, 33666 # since paths with space are more likely in Windows. Give it another try with the whole 33667 # argument. 33668 path="$complete" 33669 arguments="EOL" 33670 new_path=`$CYGPATH -u "$path"` 33671 new_path=`$WHICH "$new_path" 2> /dev/null` 33672 # bat and cmd files are not always considered executable in cygwin causing which 33673 # to not find them 33674 if test "x$new_path" = x \ 33675 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33676 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33677 new_path=`$CYGPATH -u "$path"` 33678 fi 33679 if test "x$new_path" = x; then 33680 # It's still not found. Now this is an unrecoverable error. 33681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33682 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33683 has_space=`$ECHO "$complete" | $GREP " "` 33684 if test "x$has_space" != x; then 33685 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33686 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33687 fi 33688 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33689 fi 33690 fi 33691 33692 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33693 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33694 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33695 # "foo.exe" is OK but "foo" is an error. 33696 # 33697 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33698 # It is also a way to make sure we got the proper file name for the real test later on. 33699 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33700 if test "x$test_shortpath" = x; then 33701 # Short path failed, file does not exist as specified. 33702 # Try adding .exe or .cmd 33703 if test -f "${new_path}.exe"; then 33704 input_to_shortpath="${new_path}.exe" 33705 elif test -f "${new_path}.cmd"; then 33706 input_to_shortpath="${new_path}.cmd" 33707 else 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 33709 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 33710 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33711 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33712 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33713 fi 33714 else 33715 input_to_shortpath="$new_path" 33716 fi 33717 33718 # Call helper function which possibly converts this using DOS-style short mode. 33719 # If so, the updated path is stored in $new_path. 33720 new_path="$input_to_shortpath" 33721 33722 input_path="$input_to_shortpath" 33723 # Check if we need to convert this using DOS-style short mode. If the path 33724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33725 # take no chances and rewrite it. 33726 # Note: m4 eats our [], so we need to use [ and ] instead. 33727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33728 if test "x$has_forbidden_chars" != x; then 33729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33730 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33731 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33732 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33733 # Going to short mode and back again did indeed matter. Since short mode is 33734 # case insensitive, let's make it lowercase to improve readability. 33735 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33736 # Now convert it back to Unix-style (cygpath) 33737 input_path=`$CYGPATH -u "$shortmode_path"` 33738 new_path="$input_path" 33739 fi 33740 fi 33741 33742 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33743 if test "x$test_cygdrive_prefix" = x; then 33744 # As a simple fix, exclude /usr/bin since it's not a real path. 33745 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33746 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33747 # a path prefixed by /cygdrive for fixpath to work. 33748 new_path="$CYGWIN_ROOT_PATH$input_path" 33749 fi 33750 fi 33751 33752 # remove trailing .exe if any 33753 new_path="${new_path/%.exe/}" 33754 33755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33756 33757 # First separate the path from the arguments. This will split at the first 33758 # space. 33759 complete="$RC" 33760 path="${complete%% *}" 33761 tmp="$complete EOL" 33762 arguments="${tmp#* }" 33763 33764 # Input might be given as Windows format, start by converting to 33765 # unix format. 33766 new_path="$path" 33767 33768 windows_path="$new_path" 33769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33770 unix_path=`$CYGPATH -u "$windows_path"` 33771 new_path="$unix_path" 33772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33773 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33774 new_path="$unix_path" 33775 fi 33776 33777 33778 # Now try to locate executable using which 33779 new_path=`$WHICH "$new_path" 2> /dev/null` 33780 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="$path" 33789 33790 windows_path="$new_path" 33791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33792 unix_path=`$CYGPATH -u "$windows_path"` 33793 new_path="$unix_path" 33794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33796 new_path="$unix_path" 33797 fi 33798 33799 33800 new_path=`$WHICH "$new_path" 2> /dev/null` 33801 # bat and cmd files are not always considered executable in MSYS causing which 33802 # to not find them 33803 if test "x$new_path" = x \ 33804 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33805 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33806 new_path="$path" 33807 33808 windows_path="$new_path" 33809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33810 unix_path=`$CYGPATH -u "$windows_path"` 33811 new_path="$unix_path" 33812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33814 new_path="$unix_path" 33815 fi 33816 33817 fi 33818 33819 if test "x$new_path" = x; then 33820 # It's still not found. Now this is an unrecoverable error. 33821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33822 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33823 has_space=`$ECHO "$complete" | $GREP " "` 33824 if test "x$has_space" != x; then 33825 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33826 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33827 fi 33828 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33829 fi 33830 fi 33831 33832 # Now new_path has a complete unix path to the binary 33833 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33834 # Keep paths in /bin as-is, but remove trailing .exe if any 33835 new_path="${new_path/%.exe/}" 33836 # Do not save /bin paths to all_fixpath_prefixes! 33837 else 33838 # Not in mixed or Windows style, start by that. 33839 new_path=`cmd //c echo $new_path` 33840 33841 input_path="$new_path" 33842 # Check if we need to convert this using DOS-style short mode. If the path 33843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33844 # take no chances and rewrite it. 33845 # Note: m4 eats our [], so we need to use [ and ] instead. 33846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33847 if test "x$has_forbidden_chars" != x; then 33848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33849 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33850 fi 33851 33852 # Output is in $new_path 33853 33854 windows_path="$new_path" 33855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33856 unix_path=`$CYGPATH -u "$windows_path"` 33857 new_path="$unix_path" 33858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33860 new_path="$unix_path" 33861 fi 33862 33863 # remove trailing .exe if any 33864 new_path="${new_path/%.exe/}" 33865 33866 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33867 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33868 fi 33869 33870 else 33871 # We're on a posix platform. Hooray! :) 33872 # First separate the path from the arguments. This will split at the first 33873 # space. 33874 complete="$RC" 33875 path="${complete%% *}" 33876 tmp="$complete EOL" 33877 arguments="${tmp#* }" 33878 33879 # Cannot rely on the command "which" here since it doesn't always work. 33880 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33881 if test -z "$is_absolute_path"; then 33882 # Path to executable is not absolute. Find it. 33883 IFS_save="$IFS" 33884 IFS=: 33885 for p in $PATH; do 33886 if test -f "$p/$path" && test -x "$p/$path"; then 33887 new_path="$p/$path" 33888 break 33889 fi 33890 done 33891 IFS="$IFS_save" 33892 else 33893 # This is an absolute path, we can use it without further modifications. 33894 new_path="$path" 33895 fi 33896 33897 if test "x$new_path" = x; then 33898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33899 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33900 has_space=`$ECHO "$complete" | $GREP " "` 33901 if test "x$has_space" != x; then 33902 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33903 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33904 fi 33905 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33906 fi 33907 fi 33908 33909 # Now join together the path and the arguments once again 33910 if test "x$arguments" != xEOL; then 33911 new_complete="$new_path ${arguments% *}" 33912 else 33913 new_complete="$new_path" 33914 fi 33915 33916 if test "x$complete" != "x$new_complete"; then 33917 RC="$new_complete" 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 33919 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 33920 fi 33921 33922 # Extract the first word of "dumpbin", so it can be a program name with args. 33923 set dummy dumpbin; ac_word=$2 33924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33925 $as_echo_n "checking for $ac_word... " >&6; } 33926 if ${ac_cv_prog_DUMPBIN+:} false; then : 33927 $as_echo_n "(cached) " >&6 33928 else 33929 if test -n "$DUMPBIN"; then 33930 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 33931 else 33932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33933 for as_dir in $PATH 33934 do 33935 IFS=$as_save_IFS 33936 test -z "$as_dir" && as_dir=. 33937 for ac_exec_ext in '' $ac_executable_extensions; do 33938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33939 ac_cv_prog_DUMPBIN="dumpbin" 33940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33941 break 2 33942 fi 33943 done 33944 done 33945 IFS=$as_save_IFS 33946 33947 fi 33948 fi 33949 DUMPBIN=$ac_cv_prog_DUMPBIN 33950 if test -n "$DUMPBIN"; then 33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 33952 $as_echo "$DUMPBIN" >&6; } 33953 else 33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33955 $as_echo "no" >&6; } 33956 fi 33957 33958 33959 33960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33961 33962 # First separate the path from the arguments. This will split at the first 33963 # space. 33964 complete="$DUMPBIN" 33965 path="${complete%% *}" 33966 tmp="$complete EOL" 33967 arguments="${tmp#* }" 33968 33969 # Input might be given as Windows format, start by converting to 33970 # unix format. 33971 new_path=`$CYGPATH -u "$path"` 33972 33973 # Now try to locate executable using which 33974 new_path=`$WHICH "$new_path" 2> /dev/null` 33975 # bat and cmd files are not always considered executable in cygwin causing which 33976 # to not find them 33977 if test "x$new_path" = x \ 33978 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33979 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33980 new_path=`$CYGPATH -u "$path"` 33981 fi 33982 if test "x$new_path" = x; then 33983 # Oops. Which didn't find the executable. 33984 # The splitting of arguments from the executable at a space might have been incorrect, 33985 # since paths with space are more likely in Windows. Give it another try with the whole 33986 # argument. 33987 path="$complete" 33988 arguments="EOL" 33989 new_path=`$CYGPATH -u "$path"` 33990 new_path=`$WHICH "$new_path" 2> /dev/null` 33991 # bat and cmd files are not always considered executable in cygwin causing which 33992 # to not find them 33993 if test "x$new_path" = x \ 33994 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33995 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33996 new_path=`$CYGPATH -u "$path"` 33997 fi 33998 if test "x$new_path" = x; then 33999 # It's still not found. Now this is an unrecoverable error. 34000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34001 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34002 has_space=`$ECHO "$complete" | $GREP " "` 34003 if test "x$has_space" != x; then 34004 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34005 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34006 fi 34007 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34008 fi 34009 fi 34010 34011 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34012 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34013 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34014 # "foo.exe" is OK but "foo" is an error. 34015 # 34016 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34017 # It is also a way to make sure we got the proper file name for the real test later on. 34018 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34019 if test "x$test_shortpath" = x; then 34020 # Short path failed, file does not exist as specified. 34021 # Try adding .exe or .cmd 34022 if test -f "${new_path}.exe"; then 34023 input_to_shortpath="${new_path}.exe" 34024 elif test -f "${new_path}.cmd"; then 34025 input_to_shortpath="${new_path}.cmd" 34026 else 34027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34028 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34029 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34030 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34031 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34032 fi 34033 else 34034 input_to_shortpath="$new_path" 34035 fi 34036 34037 # Call helper function which possibly converts this using DOS-style short mode. 34038 # If so, the updated path is stored in $new_path. 34039 new_path="$input_to_shortpath" 34040 34041 input_path="$input_to_shortpath" 34042 # Check if we need to convert this using DOS-style short mode. If the path 34043 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34044 # take no chances and rewrite it. 34045 # Note: m4 eats our [], so we need to use [ and ] instead. 34046 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34047 if test "x$has_forbidden_chars" != x; then 34048 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34049 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34050 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34051 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34052 # Going to short mode and back again did indeed matter. Since short mode is 34053 # case insensitive, let's make it lowercase to improve readability. 34054 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34055 # Now convert it back to Unix-style (cygpath) 34056 input_path=`$CYGPATH -u "$shortmode_path"` 34057 new_path="$input_path" 34058 fi 34059 fi 34060 34061 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34062 if test "x$test_cygdrive_prefix" = x; then 34063 # As a simple fix, exclude /usr/bin since it's not a real path. 34064 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34065 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34066 # a path prefixed by /cygdrive for fixpath to work. 34067 new_path="$CYGWIN_ROOT_PATH$input_path" 34068 fi 34069 fi 34070 34071 # remove trailing .exe if any 34072 new_path="${new_path/%.exe/}" 34073 34074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34075 34076 # First separate the path from the arguments. This will split at the first 34077 # space. 34078 complete="$DUMPBIN" 34079 path="${complete%% *}" 34080 tmp="$complete EOL" 34081 arguments="${tmp#* }" 34082 34083 # Input might be given as Windows format, start by converting to 34084 # unix format. 34085 new_path="$path" 34086 34087 windows_path="$new_path" 34088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34089 unix_path=`$CYGPATH -u "$windows_path"` 34090 new_path="$unix_path" 34091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34093 new_path="$unix_path" 34094 fi 34095 34096 34097 # Now try to locate executable using which 34098 new_path=`$WHICH "$new_path" 2> /dev/null` 34099 34100 if test "x$new_path" = x; then 34101 # Oops. Which didn't find the executable. 34102 # The splitting of arguments from the executable at a space might have been incorrect, 34103 # since paths with space are more likely in Windows. Give it another try with the whole 34104 # argument. 34105 path="$complete" 34106 arguments="EOL" 34107 new_path="$path" 34108 34109 windows_path="$new_path" 34110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34111 unix_path=`$CYGPATH -u "$windows_path"` 34112 new_path="$unix_path" 34113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34115 new_path="$unix_path" 34116 fi 34117 34118 34119 new_path=`$WHICH "$new_path" 2> /dev/null` 34120 # bat and cmd files are not always considered executable in MSYS causing which 34121 # to not find them 34122 if test "x$new_path" = x \ 34123 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34124 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34125 new_path="$path" 34126 34127 windows_path="$new_path" 34128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34129 unix_path=`$CYGPATH -u "$windows_path"` 34130 new_path="$unix_path" 34131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34133 new_path="$unix_path" 34134 fi 34135 34136 fi 34137 34138 if test "x$new_path" = x; then 34139 # It's still not found. Now this is an unrecoverable error. 34140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34141 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34142 has_space=`$ECHO "$complete" | $GREP " "` 34143 if test "x$has_space" != x; then 34144 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34145 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34146 fi 34147 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34148 fi 34149 fi 34150 34151 # Now new_path has a complete unix path to the binary 34152 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34153 # Keep paths in /bin as-is, but remove trailing .exe if any 34154 new_path="${new_path/%.exe/}" 34155 # Do not save /bin paths to all_fixpath_prefixes! 34156 else 34157 # Not in mixed or Windows style, start by that. 34158 new_path=`cmd //c echo $new_path` 34159 34160 input_path="$new_path" 34161 # Check if we need to convert this using DOS-style short mode. If the path 34162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34163 # take no chances and rewrite it. 34164 # Note: m4 eats our [], so we need to use [ and ] instead. 34165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34166 if test "x$has_forbidden_chars" != x; then 34167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34168 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34169 fi 34170 34171 # Output is in $new_path 34172 34173 windows_path="$new_path" 34174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34175 unix_path=`$CYGPATH -u "$windows_path"` 34176 new_path="$unix_path" 34177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34179 new_path="$unix_path" 34180 fi 34181 34182 # remove trailing .exe if any 34183 new_path="${new_path/%.exe/}" 34184 34185 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34186 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34187 fi 34188 34189 else 34190 # We're on a posix platform. Hooray! :) 34191 # First separate the path from the arguments. This will split at the first 34192 # space. 34193 complete="$DUMPBIN" 34194 path="${complete%% *}" 34195 tmp="$complete EOL" 34196 arguments="${tmp#* }" 34197 34198 # Cannot rely on the command "which" here since it doesn't always work. 34199 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34200 if test -z "$is_absolute_path"; then 34201 # Path to executable is not absolute. Find it. 34202 IFS_save="$IFS" 34203 IFS=: 34204 for p in $PATH; do 34205 if test -f "$p/$path" && test -x "$p/$path"; then 34206 new_path="$p/$path" 34207 break 34208 fi 34209 done 34210 IFS="$IFS_save" 34211 else 34212 # This is an absolute path, we can use it without further modifications. 34213 new_path="$path" 34214 fi 34215 34216 if test "x$new_path" = x; then 34217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34218 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34219 has_space=`$ECHO "$complete" | $GREP " "` 34220 if test "x$has_space" != x; then 34221 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34222 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34223 fi 34224 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34225 fi 34226 fi 34227 34228 # Now join together the path and the arguments once again 34229 if test "x$arguments" != xEOL; then 34230 new_complete="$new_path ${arguments% *}" 34231 else 34232 new_complete="$new_path" 34233 fi 34234 34235 if test "x$complete" != "x$new_complete"; then 34236 DUMPBIN="$new_complete" 34237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34238 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34239 fi 34240 34241 # We need to check for 'msbuild.exe' because at the place where we expect to 34242 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34243 # won't find the 'msbuild.exe' executable in that case (and the 34244 # 'ac_executable_extensions' is unusable due to performance reasons). 34245 # Notice that we intentionally don't fix up the path to MSBUILD because we 34246 # will call it in a DOS shell during freetype detection on Windows (see 34247 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34248 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34249 set dummy msbuild.exe; ac_word=$2 34250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34251 $as_echo_n "checking for $ac_word... " >&6; } 34252 if ${ac_cv_prog_MSBUILD+:} false; then : 34253 $as_echo_n "(cached) " >&6 34254 else 34255 if test -n "$MSBUILD"; then 34256 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34257 else 34258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34259 for as_dir in $PATH 34260 do 34261 IFS=$as_save_IFS 34262 test -z "$as_dir" && as_dir=. 34263 for ac_exec_ext in '' $ac_executable_extensions; do 34264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34265 ac_cv_prog_MSBUILD="msbuild.exe" 34266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34267 break 2 34268 fi 34269 done 34270 done 34271 IFS=$as_save_IFS 34272 34273 fi 34274 fi 34275 MSBUILD=$ac_cv_prog_MSBUILD 34276 if test -n "$MSBUILD"; then 34277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 34278 $as_echo "$MSBUILD" >&6; } 34279 else 34280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34281 $as_echo "no" >&6; } 34282 fi 34283 34284 34285 fi 34286 34287 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34288 34289 34290 # Publish this variable in the help. 34291 34292 34293 if test "x$STRIP" = x; then 34294 # The variable is not set by user, try to locate tool using the code snippet 34295 for ac_prog in strip 34296 do 34297 # Extract the first word of "$ac_prog", so it can be a program name with args. 34298 set dummy $ac_prog; ac_word=$2 34299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34300 $as_echo_n "checking for $ac_word... " >&6; } 34301 if ${ac_cv_path_STRIP+:} false; then : 34302 $as_echo_n "(cached) " >&6 34303 else 34304 case $STRIP in 34305 [\\/]* | ?:[\\/]*) 34306 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34307 ;; 34308 *) 34309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34310 for as_dir in $PATH 34311 do 34312 IFS=$as_save_IFS 34313 test -z "$as_dir" && as_dir=. 34314 for ac_exec_ext in '' $ac_executable_extensions; do 34315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34316 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34318 break 2 34319 fi 34320 done 34321 done 34322 IFS=$as_save_IFS 34323 34324 ;; 34325 esac 34326 fi 34327 STRIP=$ac_cv_path_STRIP 34328 if test -n "$STRIP"; then 34329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34330 $as_echo "$STRIP" >&6; } 34331 else 34332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34333 $as_echo "no" >&6; } 34334 fi 34335 34336 34337 test -n "$STRIP" && break 34338 done 34339 34340 else 34341 # The variable is set, but is it from the command line or the environment? 34342 34343 # Try to remove the string !STRIP! from our list. 34344 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34345 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34346 # If it failed, the variable was not from the command line. Ignore it, 34347 # but warn the user (except for BASH, which is always set by the calling BASH). 34348 if test "xSTRIP" != xBASH; then 34349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34350 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34351 fi 34352 # Try to locate tool using the code snippet 34353 for ac_prog in strip 34354 do 34355 # Extract the first word of "$ac_prog", so it can be a program name with args. 34356 set dummy $ac_prog; ac_word=$2 34357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34358 $as_echo_n "checking for $ac_word... " >&6; } 34359 if ${ac_cv_path_STRIP+:} false; then : 34360 $as_echo_n "(cached) " >&6 34361 else 34362 case $STRIP in 34363 [\\/]* | ?:[\\/]*) 34364 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34365 ;; 34366 *) 34367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34368 for as_dir in $PATH 34369 do 34370 IFS=$as_save_IFS 34371 test -z "$as_dir" && as_dir=. 34372 for ac_exec_ext in '' $ac_executable_extensions; do 34373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34374 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34376 break 2 34377 fi 34378 done 34379 done 34380 IFS=$as_save_IFS 34381 34382 ;; 34383 esac 34384 fi 34385 STRIP=$ac_cv_path_STRIP 34386 if test -n "$STRIP"; then 34387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34388 $as_echo "$STRIP" >&6; } 34389 else 34390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34391 $as_echo "no" >&6; } 34392 fi 34393 34394 34395 test -n "$STRIP" && break 34396 done 34397 34398 else 34399 # If it succeeded, then it was overridden by the user. We will use it 34400 # for the tool. 34401 34402 # First remove it from the list of overridden variables, so we can test 34403 # for unknown variables in the end. 34404 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34405 34406 # Check if the provided tool contains a complete path. 34407 tool_specified="$STRIP" 34408 tool_basename="${tool_specified##*/}" 34409 if test "x$tool_basename" = "x$tool_specified"; then 34410 # A command without a complete path is provided, search $PATH. 34411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34412 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34413 # Extract the first word of "$tool_basename", so it can be a program name with args. 34414 set dummy $tool_basename; ac_word=$2 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34416 $as_echo_n "checking for $ac_word... " >&6; } 34417 if ${ac_cv_path_STRIP+:} false; then : 34418 $as_echo_n "(cached) " >&6 34419 else 34420 case $STRIP in 34421 [\\/]* | ?:[\\/]*) 34422 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34423 ;; 34424 *) 34425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34426 for as_dir in $PATH 34427 do 34428 IFS=$as_save_IFS 34429 test -z "$as_dir" && as_dir=. 34430 for ac_exec_ext in '' $ac_executable_extensions; do 34431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34432 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34434 break 2 34435 fi 34436 done 34437 done 34438 IFS=$as_save_IFS 34439 34440 ;; 34441 esac 34442 fi 34443 STRIP=$ac_cv_path_STRIP 34444 if test -n "$STRIP"; then 34445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34446 $as_echo "$STRIP" >&6; } 34447 else 34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34449 $as_echo "no" >&6; } 34450 fi 34451 34452 34453 if test "x$STRIP" = x; then 34454 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34455 fi 34456 else 34457 # Otherwise we believe it is a complete path. Use it as it is. 34458 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34459 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34461 $as_echo_n "checking for STRIP... " >&6; } 34462 if test ! -x "$tool_specified"; then 34463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34464 $as_echo "not found" >&6; } 34465 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34466 fi 34467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34468 $as_echo "$tool_specified" >&6; } 34469 fi 34470 fi 34471 fi 34472 34473 34474 34475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34476 34477 # First separate the path from the arguments. This will split at the first 34478 # space. 34479 complete="$STRIP" 34480 path="${complete%% *}" 34481 tmp="$complete EOL" 34482 arguments="${tmp#* }" 34483 34484 # Input might be given as Windows format, start by converting to 34485 # unix format. 34486 new_path=`$CYGPATH -u "$path"` 34487 34488 # Now try to locate executable using which 34489 new_path=`$WHICH "$new_path" 2> /dev/null` 34490 # bat and cmd files are not always considered executable in cygwin causing which 34491 # to not find them 34492 if test "x$new_path" = x \ 34493 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34494 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34495 new_path=`$CYGPATH -u "$path"` 34496 fi 34497 if test "x$new_path" = x; then 34498 # Oops. Which didn't find the executable. 34499 # The splitting of arguments from the executable at a space might have been incorrect, 34500 # since paths with space are more likely in Windows. Give it another try with the whole 34501 # argument. 34502 path="$complete" 34503 arguments="EOL" 34504 new_path=`$CYGPATH -u "$path"` 34505 new_path=`$WHICH "$new_path" 2> /dev/null` 34506 # bat and cmd files are not always considered executable in cygwin causing which 34507 # to not find them 34508 if test "x$new_path" = x \ 34509 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34510 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34511 new_path=`$CYGPATH -u "$path"` 34512 fi 34513 if test "x$new_path" = x; then 34514 # It's still not found. Now this is an unrecoverable error. 34515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34516 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34517 has_space=`$ECHO "$complete" | $GREP " "` 34518 if test "x$has_space" != x; then 34519 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34520 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34521 fi 34522 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34523 fi 34524 fi 34525 34526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34529 # "foo.exe" is OK but "foo" is an error. 34530 # 34531 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34532 # It is also a way to make sure we got the proper file name for the real test later on. 34533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34534 if test "x$test_shortpath" = x; then 34535 # Short path failed, file does not exist as specified. 34536 # Try adding .exe or .cmd 34537 if test -f "${new_path}.exe"; then 34538 input_to_shortpath="${new_path}.exe" 34539 elif test -f "${new_path}.cmd"; then 34540 input_to_shortpath="${new_path}.cmd" 34541 else 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34543 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34544 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34545 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34546 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34547 fi 34548 else 34549 input_to_shortpath="$new_path" 34550 fi 34551 34552 # Call helper function which possibly converts this using DOS-style short mode. 34553 # If so, the updated path is stored in $new_path. 34554 new_path="$input_to_shortpath" 34555 34556 input_path="$input_to_shortpath" 34557 # Check if we need to convert this using DOS-style short mode. If the path 34558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34559 # take no chances and rewrite it. 34560 # Note: m4 eats our [], so we need to use [ and ] instead. 34561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34562 if test "x$has_forbidden_chars" != x; then 34563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34567 # Going to short mode and back again did indeed matter. Since short mode is 34568 # case insensitive, let's make it lowercase to improve readability. 34569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34570 # Now convert it back to Unix-style (cygpath) 34571 input_path=`$CYGPATH -u "$shortmode_path"` 34572 new_path="$input_path" 34573 fi 34574 fi 34575 34576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34577 if test "x$test_cygdrive_prefix" = x; then 34578 # As a simple fix, exclude /usr/bin since it's not a real path. 34579 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34581 # a path prefixed by /cygdrive for fixpath to work. 34582 new_path="$CYGWIN_ROOT_PATH$input_path" 34583 fi 34584 fi 34585 34586 # remove trailing .exe if any 34587 new_path="${new_path/%.exe/}" 34588 34589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34590 34591 # First separate the path from the arguments. This will split at the first 34592 # space. 34593 complete="$STRIP" 34594 path="${complete%% *}" 34595 tmp="$complete EOL" 34596 arguments="${tmp#* }" 34597 34598 # Input might be given as Windows format, start by converting to 34599 # unix format. 34600 new_path="$path" 34601 34602 windows_path="$new_path" 34603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34604 unix_path=`$CYGPATH -u "$windows_path"` 34605 new_path="$unix_path" 34606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34608 new_path="$unix_path" 34609 fi 34610 34611 34612 # Now try to locate executable using which 34613 new_path=`$WHICH "$new_path" 2> /dev/null` 34614 34615 if test "x$new_path" = x; then 34616 # Oops. Which didn't find the executable. 34617 # The splitting of arguments from the executable at a space might have been incorrect, 34618 # since paths with space are more likely in Windows. Give it another try with the whole 34619 # argument. 34620 path="$complete" 34621 arguments="EOL" 34622 new_path="$path" 34623 34624 windows_path="$new_path" 34625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34626 unix_path=`$CYGPATH -u "$windows_path"` 34627 new_path="$unix_path" 34628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34630 new_path="$unix_path" 34631 fi 34632 34633 34634 new_path=`$WHICH "$new_path" 2> /dev/null` 34635 # bat and cmd files are not always considered executable in MSYS causing which 34636 # to not find them 34637 if test "x$new_path" = x \ 34638 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34639 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34640 new_path="$path" 34641 34642 windows_path="$new_path" 34643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34644 unix_path=`$CYGPATH -u "$windows_path"` 34645 new_path="$unix_path" 34646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34648 new_path="$unix_path" 34649 fi 34650 34651 fi 34652 34653 if test "x$new_path" = x; then 34654 # It's still not found. Now this is an unrecoverable error. 34655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34656 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34657 has_space=`$ECHO "$complete" | $GREP " "` 34658 if test "x$has_space" != x; then 34659 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34660 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34661 fi 34662 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34663 fi 34664 fi 34665 34666 # Now new_path has a complete unix path to the binary 34667 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34668 # Keep paths in /bin as-is, but remove trailing .exe if any 34669 new_path="${new_path/%.exe/}" 34670 # Do not save /bin paths to all_fixpath_prefixes! 34671 else 34672 # Not in mixed or Windows style, start by that. 34673 new_path=`cmd //c echo $new_path` 34674 34675 input_path="$new_path" 34676 # Check if we need to convert this using DOS-style short mode. If the path 34677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34678 # take no chances and rewrite it. 34679 # Note: m4 eats our [], so we need to use [ and ] instead. 34680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34681 if test "x$has_forbidden_chars" != x; then 34682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34684 fi 34685 34686 # Output is in $new_path 34687 34688 windows_path="$new_path" 34689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34690 unix_path=`$CYGPATH -u "$windows_path"` 34691 new_path="$unix_path" 34692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34694 new_path="$unix_path" 34695 fi 34696 34697 # remove trailing .exe if any 34698 new_path="${new_path/%.exe/}" 34699 34700 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34701 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34702 fi 34703 34704 else 34705 # We're on a posix platform. Hooray! :) 34706 # First separate the path from the arguments. This will split at the first 34707 # space. 34708 complete="$STRIP" 34709 path="${complete%% *}" 34710 tmp="$complete EOL" 34711 arguments="${tmp#* }" 34712 34713 # Cannot rely on the command "which" here since it doesn't always work. 34714 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34715 if test -z "$is_absolute_path"; then 34716 # Path to executable is not absolute. Find it. 34717 IFS_save="$IFS" 34718 IFS=: 34719 for p in $PATH; do 34720 if test -f "$p/$path" && test -x "$p/$path"; then 34721 new_path="$p/$path" 34722 break 34723 fi 34724 done 34725 IFS="$IFS_save" 34726 else 34727 # This is an absolute path, we can use it without further modifications. 34728 new_path="$path" 34729 fi 34730 34731 if test "x$new_path" = x; then 34732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34733 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34734 has_space=`$ECHO "$complete" | $GREP " "` 34735 if test "x$has_space" != x; then 34736 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34737 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34738 fi 34739 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34740 fi 34741 fi 34742 34743 # Now join together the path and the arguments once again 34744 if test "x$arguments" != xEOL; then 34745 new_complete="$new_path ${arguments% *}" 34746 else 34747 new_complete="$new_path" 34748 fi 34749 34750 if test "x$complete" != "x$new_complete"; then 34751 STRIP="$new_complete" 34752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 34753 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 34754 fi 34755 34756 34757 34758 # Publish this variable in the help. 34759 34760 34761 if test "x$NM" = x; then 34762 # The variable is not set by user, try to locate tool using the code snippet 34763 for ac_prog in nm 34764 do 34765 # Extract the first word of "$ac_prog", so it can be a program name with args. 34766 set dummy $ac_prog; ac_word=$2 34767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34768 $as_echo_n "checking for $ac_word... " >&6; } 34769 if ${ac_cv_path_NM+:} false; then : 34770 $as_echo_n "(cached) " >&6 34771 else 34772 case $NM in 34773 [\\/]* | ?:[\\/]*) 34774 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34775 ;; 34776 *) 34777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34778 for as_dir in $PATH 34779 do 34780 IFS=$as_save_IFS 34781 test -z "$as_dir" && as_dir=. 34782 for ac_exec_ext in '' $ac_executable_extensions; do 34783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34784 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34786 break 2 34787 fi 34788 done 34789 done 34790 IFS=$as_save_IFS 34791 34792 ;; 34793 esac 34794 fi 34795 NM=$ac_cv_path_NM 34796 if test -n "$NM"; then 34797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34798 $as_echo "$NM" >&6; } 34799 else 34800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34801 $as_echo "no" >&6; } 34802 fi 34803 34804 34805 test -n "$NM" && break 34806 done 34807 34808 else 34809 # The variable is set, but is it from the command line or the environment? 34810 34811 # Try to remove the string !NM! from our list. 34812 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 34813 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34814 # If it failed, the variable was not from the command line. Ignore it, 34815 # but warn the user (except for BASH, which is always set by the calling BASH). 34816 if test "xNM" != xBASH; then 34817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 34818 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 34819 fi 34820 # Try to locate tool using the code snippet 34821 for ac_prog in nm 34822 do 34823 # Extract the first word of "$ac_prog", so it can be a program name with args. 34824 set dummy $ac_prog; ac_word=$2 34825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34826 $as_echo_n "checking for $ac_word... " >&6; } 34827 if ${ac_cv_path_NM+:} false; then : 34828 $as_echo_n "(cached) " >&6 34829 else 34830 case $NM in 34831 [\\/]* | ?:[\\/]*) 34832 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34833 ;; 34834 *) 34835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34836 for as_dir in $PATH 34837 do 34838 IFS=$as_save_IFS 34839 test -z "$as_dir" && as_dir=. 34840 for ac_exec_ext in '' $ac_executable_extensions; do 34841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34842 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34844 break 2 34845 fi 34846 done 34847 done 34848 IFS=$as_save_IFS 34849 34850 ;; 34851 esac 34852 fi 34853 NM=$ac_cv_path_NM 34854 if test -n "$NM"; then 34855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34856 $as_echo "$NM" >&6; } 34857 else 34858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34859 $as_echo "no" >&6; } 34860 fi 34861 34862 34863 test -n "$NM" && break 34864 done 34865 34866 else 34867 # If it succeeded, then it was overridden by the user. We will use it 34868 # for the tool. 34869 34870 # First remove it from the list of overridden variables, so we can test 34871 # for unknown variables in the end. 34872 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34873 34874 # Check if the provided tool contains a complete path. 34875 tool_specified="$NM" 34876 tool_basename="${tool_specified##*/}" 34877 if test "x$tool_basename" = "x$tool_specified"; then 34878 # A command without a complete path is provided, search $PATH. 34879 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 34880 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 34881 # Extract the first word of "$tool_basename", so it can be a program name with args. 34882 set dummy $tool_basename; ac_word=$2 34883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34884 $as_echo_n "checking for $ac_word... " >&6; } 34885 if ${ac_cv_path_NM+:} false; then : 34886 $as_echo_n "(cached) " >&6 34887 else 34888 case $NM in 34889 [\\/]* | ?:[\\/]*) 34890 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34891 ;; 34892 *) 34893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34894 for as_dir in $PATH 34895 do 34896 IFS=$as_save_IFS 34897 test -z "$as_dir" && as_dir=. 34898 for ac_exec_ext in '' $ac_executable_extensions; do 34899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34900 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34902 break 2 34903 fi 34904 done 34905 done 34906 IFS=$as_save_IFS 34907 34908 ;; 34909 esac 34910 fi 34911 NM=$ac_cv_path_NM 34912 if test -n "$NM"; then 34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34914 $as_echo "$NM" >&6; } 34915 else 34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34917 $as_echo "no" >&6; } 34918 fi 34919 34920 34921 if test "x$NM" = x; then 34922 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34923 fi 34924 else 34925 # Otherwise we believe it is a complete path. Use it as it is. 34926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 34927 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 34928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 34929 $as_echo_n "checking for NM... " >&6; } 34930 if test ! -x "$tool_specified"; then 34931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34932 $as_echo "not found" >&6; } 34933 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 34934 fi 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34936 $as_echo "$tool_specified" >&6; } 34937 fi 34938 fi 34939 fi 34940 34941 34942 34943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34944 34945 # First separate the path from the arguments. This will split at the first 34946 # space. 34947 complete="$NM" 34948 path="${complete%% *}" 34949 tmp="$complete EOL" 34950 arguments="${tmp#* }" 34951 34952 # Input might be given as Windows format, start by converting to 34953 # unix format. 34954 new_path=`$CYGPATH -u "$path"` 34955 34956 # Now try to locate executable using which 34957 new_path=`$WHICH "$new_path" 2> /dev/null` 34958 # bat and cmd files are not always considered executable in cygwin causing which 34959 # to not find them 34960 if test "x$new_path" = x \ 34961 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34962 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34963 new_path=`$CYGPATH -u "$path"` 34964 fi 34965 if test "x$new_path" = x; then 34966 # Oops. Which didn't find the executable. 34967 # The splitting of arguments from the executable at a space might have been incorrect, 34968 # since paths with space are more likely in Windows. Give it another try with the whole 34969 # argument. 34970 path="$complete" 34971 arguments="EOL" 34972 new_path=`$CYGPATH -u "$path"` 34973 new_path=`$WHICH "$new_path" 2> /dev/null` 34974 # bat and cmd files are not always considered executable in cygwin causing which 34975 # to not find them 34976 if test "x$new_path" = x \ 34977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34979 new_path=`$CYGPATH -u "$path"` 34980 fi 34981 if test "x$new_path" = x; then 34982 # It's still not found. Now this is an unrecoverable error. 34983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34984 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34985 has_space=`$ECHO "$complete" | $GREP " "` 34986 if test "x$has_space" != x; then 34987 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34989 fi 34990 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34991 fi 34992 fi 34993 34994 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34995 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34996 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34997 # "foo.exe" is OK but "foo" is an error. 34998 # 34999 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35000 # It is also a way to make sure we got the proper file name for the real test later on. 35001 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35002 if test "x$test_shortpath" = x; then 35003 # Short path failed, file does not exist as specified. 35004 # Try adding .exe or .cmd 35005 if test -f "${new_path}.exe"; then 35006 input_to_shortpath="${new_path}.exe" 35007 elif test -f "${new_path}.cmd"; then 35008 input_to_shortpath="${new_path}.cmd" 35009 else 35010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35011 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35012 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35013 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35014 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35015 fi 35016 else 35017 input_to_shortpath="$new_path" 35018 fi 35019 35020 # Call helper function which possibly converts this using DOS-style short mode. 35021 # If so, the updated path is stored in $new_path. 35022 new_path="$input_to_shortpath" 35023 35024 input_path="$input_to_shortpath" 35025 # Check if we need to convert this using DOS-style short mode. If the path 35026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35027 # take no chances and rewrite it. 35028 # Note: m4 eats our [], so we need to use [ and ] instead. 35029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35030 if test "x$has_forbidden_chars" != x; then 35031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35032 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35033 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35034 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35035 # Going to short mode and back again did indeed matter. Since short mode is 35036 # case insensitive, let's make it lowercase to improve readability. 35037 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35038 # Now convert it back to Unix-style (cygpath) 35039 input_path=`$CYGPATH -u "$shortmode_path"` 35040 new_path="$input_path" 35041 fi 35042 fi 35043 35044 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35045 if test "x$test_cygdrive_prefix" = x; then 35046 # As a simple fix, exclude /usr/bin since it's not a real path. 35047 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35048 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35049 # a path prefixed by /cygdrive for fixpath to work. 35050 new_path="$CYGWIN_ROOT_PATH$input_path" 35051 fi 35052 fi 35053 35054 # remove trailing .exe if any 35055 new_path="${new_path/%.exe/}" 35056 35057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35058 35059 # First separate the path from the arguments. This will split at the first 35060 # space. 35061 complete="$NM" 35062 path="${complete%% *}" 35063 tmp="$complete EOL" 35064 arguments="${tmp#* }" 35065 35066 # Input might be given as Windows format, start by converting to 35067 # unix format. 35068 new_path="$path" 35069 35070 windows_path="$new_path" 35071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35072 unix_path=`$CYGPATH -u "$windows_path"` 35073 new_path="$unix_path" 35074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35076 new_path="$unix_path" 35077 fi 35078 35079 35080 # Now try to locate executable using which 35081 new_path=`$WHICH "$new_path" 2> /dev/null` 35082 35083 if test "x$new_path" = x; then 35084 # Oops. Which didn't find the executable. 35085 # The splitting of arguments from the executable at a space might have been incorrect, 35086 # since paths with space are more likely in Windows. Give it another try with the whole 35087 # argument. 35088 path="$complete" 35089 arguments="EOL" 35090 new_path="$path" 35091 35092 windows_path="$new_path" 35093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35094 unix_path=`$CYGPATH -u "$windows_path"` 35095 new_path="$unix_path" 35096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35098 new_path="$unix_path" 35099 fi 35100 35101 35102 new_path=`$WHICH "$new_path" 2> /dev/null` 35103 # bat and cmd files are not always considered executable in MSYS causing which 35104 # to not find them 35105 if test "x$new_path" = x \ 35106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35108 new_path="$path" 35109 35110 windows_path="$new_path" 35111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35112 unix_path=`$CYGPATH -u "$windows_path"` 35113 new_path="$unix_path" 35114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35116 new_path="$unix_path" 35117 fi 35118 35119 fi 35120 35121 if test "x$new_path" = x; then 35122 # It's still not found. Now this is an unrecoverable error. 35123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35124 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35125 has_space=`$ECHO "$complete" | $GREP " "` 35126 if test "x$has_space" != x; then 35127 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35129 fi 35130 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35131 fi 35132 fi 35133 35134 # Now new_path has a complete unix path to the binary 35135 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35136 # Keep paths in /bin as-is, but remove trailing .exe if any 35137 new_path="${new_path/%.exe/}" 35138 # Do not save /bin paths to all_fixpath_prefixes! 35139 else 35140 # Not in mixed or Windows style, start by that. 35141 new_path=`cmd //c echo $new_path` 35142 35143 input_path="$new_path" 35144 # Check if we need to convert this using DOS-style short mode. If the path 35145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35146 # take no chances and rewrite it. 35147 # Note: m4 eats our [], so we need to use [ and ] instead. 35148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35149 if test "x$has_forbidden_chars" != x; then 35150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35151 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35152 fi 35153 35154 # Output is in $new_path 35155 35156 windows_path="$new_path" 35157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35158 unix_path=`$CYGPATH -u "$windows_path"` 35159 new_path="$unix_path" 35160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35162 new_path="$unix_path" 35163 fi 35164 35165 # remove trailing .exe if any 35166 new_path="${new_path/%.exe/}" 35167 35168 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35169 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35170 fi 35171 35172 else 35173 # We're on a posix platform. Hooray! :) 35174 # First separate the path from the arguments. This will split at the first 35175 # space. 35176 complete="$NM" 35177 path="${complete%% *}" 35178 tmp="$complete EOL" 35179 arguments="${tmp#* }" 35180 35181 # Cannot rely on the command "which" here since it doesn't always work. 35182 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35183 if test -z "$is_absolute_path"; then 35184 # Path to executable is not absolute. Find it. 35185 IFS_save="$IFS" 35186 IFS=: 35187 for p in $PATH; do 35188 if test -f "$p/$path" && test -x "$p/$path"; then 35189 new_path="$p/$path" 35190 break 35191 fi 35192 done 35193 IFS="$IFS_save" 35194 else 35195 # This is an absolute path, we can use it without further modifications. 35196 new_path="$path" 35197 fi 35198 35199 if test "x$new_path" = x; then 35200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35201 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35202 has_space=`$ECHO "$complete" | $GREP " "` 35203 if test "x$has_space" != x; then 35204 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35205 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35206 fi 35207 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35208 fi 35209 fi 35210 35211 # Now join together the path and the arguments once again 35212 if test "x$arguments" != xEOL; then 35213 new_complete="$new_path ${arguments% *}" 35214 else 35215 new_complete="$new_path" 35216 fi 35217 35218 if test "x$complete" != "x$new_complete"; then 35219 NM="$new_complete" 35220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35221 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35222 fi 35223 35224 35225 35226 # Publish this variable in the help. 35227 35228 35229 if test "x$GNM" = x; then 35230 # The variable is not set by user, try to locate tool using the code snippet 35231 for ac_prog in gnm 35232 do 35233 # Extract the first word of "$ac_prog", so it can be a program name with args. 35234 set dummy $ac_prog; ac_word=$2 35235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35236 $as_echo_n "checking for $ac_word... " >&6; } 35237 if ${ac_cv_path_GNM+:} false; then : 35238 $as_echo_n "(cached) " >&6 35239 else 35240 case $GNM in 35241 [\\/]* | ?:[\\/]*) 35242 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35243 ;; 35244 *) 35245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35246 for as_dir in $PATH 35247 do 35248 IFS=$as_save_IFS 35249 test -z "$as_dir" && as_dir=. 35250 for ac_exec_ext in '' $ac_executable_extensions; do 35251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35252 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35254 break 2 35255 fi 35256 done 35257 done 35258 IFS=$as_save_IFS 35259 35260 ;; 35261 esac 35262 fi 35263 GNM=$ac_cv_path_GNM 35264 if test -n "$GNM"; then 35265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35266 $as_echo "$GNM" >&6; } 35267 else 35268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35269 $as_echo "no" >&6; } 35270 fi 35271 35272 35273 test -n "$GNM" && break 35274 done 35275 35276 else 35277 # The variable is set, but is it from the command line or the environment? 35278 35279 # Try to remove the string !GNM! from our list. 35280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35282 # If it failed, the variable was not from the command line. Ignore it, 35283 # but warn the user (except for BASH, which is always set by the calling BASH). 35284 if test "xGNM" != xBASH; then 35285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35286 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35287 fi 35288 # Try to locate tool using the code snippet 35289 for ac_prog in gnm 35290 do 35291 # Extract the first word of "$ac_prog", so it can be a program name with args. 35292 set dummy $ac_prog; ac_word=$2 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35294 $as_echo_n "checking for $ac_word... " >&6; } 35295 if ${ac_cv_path_GNM+:} false; then : 35296 $as_echo_n "(cached) " >&6 35297 else 35298 case $GNM in 35299 [\\/]* | ?:[\\/]*) 35300 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35301 ;; 35302 *) 35303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35304 for as_dir in $PATH 35305 do 35306 IFS=$as_save_IFS 35307 test -z "$as_dir" && as_dir=. 35308 for ac_exec_ext in '' $ac_executable_extensions; do 35309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35310 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35312 break 2 35313 fi 35314 done 35315 done 35316 IFS=$as_save_IFS 35317 35318 ;; 35319 esac 35320 fi 35321 GNM=$ac_cv_path_GNM 35322 if test -n "$GNM"; then 35323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35324 $as_echo "$GNM" >&6; } 35325 else 35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35327 $as_echo "no" >&6; } 35328 fi 35329 35330 35331 test -n "$GNM" && break 35332 done 35333 35334 else 35335 # If it succeeded, then it was overridden by the user. We will use it 35336 # for the tool. 35337 35338 # First remove it from the list of overridden variables, so we can test 35339 # for unknown variables in the end. 35340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35341 35342 # Check if the provided tool contains a complete path. 35343 tool_specified="$GNM" 35344 tool_basename="${tool_specified##*/}" 35345 if test "x$tool_basename" = "x$tool_specified"; then 35346 # A command without a complete path is provided, search $PATH. 35347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35348 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35349 # Extract the first word of "$tool_basename", so it can be a program name with args. 35350 set dummy $tool_basename; ac_word=$2 35351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35352 $as_echo_n "checking for $ac_word... " >&6; } 35353 if ${ac_cv_path_GNM+:} false; then : 35354 $as_echo_n "(cached) " >&6 35355 else 35356 case $GNM in 35357 [\\/]* | ?:[\\/]*) 35358 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35359 ;; 35360 *) 35361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35362 for as_dir in $PATH 35363 do 35364 IFS=$as_save_IFS 35365 test -z "$as_dir" && as_dir=. 35366 for ac_exec_ext in '' $ac_executable_extensions; do 35367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35368 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35370 break 2 35371 fi 35372 done 35373 done 35374 IFS=$as_save_IFS 35375 35376 ;; 35377 esac 35378 fi 35379 GNM=$ac_cv_path_GNM 35380 if test -n "$GNM"; then 35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35382 $as_echo "$GNM" >&6; } 35383 else 35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35385 $as_echo "no" >&6; } 35386 fi 35387 35388 35389 if test "x$GNM" = x; then 35390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35391 fi 35392 else 35393 # Otherwise we believe it is a complete path. Use it as it is. 35394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35395 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35397 $as_echo_n "checking for GNM... " >&6; } 35398 if test ! -x "$tool_specified"; then 35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35400 $as_echo "not found" >&6; } 35401 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35402 fi 35403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35404 $as_echo "$tool_specified" >&6; } 35405 fi 35406 fi 35407 fi 35408 35409 35410 35411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35412 35413 # First separate the path from the arguments. This will split at the first 35414 # space. 35415 complete="$GNM" 35416 path="${complete%% *}" 35417 tmp="$complete EOL" 35418 arguments="${tmp#* }" 35419 35420 # Input might be given as Windows format, start by converting to 35421 # unix format. 35422 new_path=`$CYGPATH -u "$path"` 35423 35424 # Now try to locate executable using which 35425 new_path=`$WHICH "$new_path" 2> /dev/null` 35426 # bat and cmd files are not always considered executable in cygwin causing which 35427 # to not find them 35428 if test "x$new_path" = x \ 35429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35431 new_path=`$CYGPATH -u "$path"` 35432 fi 35433 if test "x$new_path" = x; then 35434 # Oops. Which didn't find the executable. 35435 # The splitting of arguments from the executable at a space might have been incorrect, 35436 # since paths with space are more likely in Windows. Give it another try with the whole 35437 # argument. 35438 path="$complete" 35439 arguments="EOL" 35440 new_path=`$CYGPATH -u "$path"` 35441 new_path=`$WHICH "$new_path" 2> /dev/null` 35442 # bat and cmd files are not always considered executable in cygwin causing which 35443 # to not find them 35444 if test "x$new_path" = x \ 35445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35447 new_path=`$CYGPATH -u "$path"` 35448 fi 35449 if test "x$new_path" = x; then 35450 # It's still not found. Now this is an unrecoverable error. 35451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35452 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35453 has_space=`$ECHO "$complete" | $GREP " "` 35454 if test "x$has_space" != x; then 35455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35457 fi 35458 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35459 fi 35460 fi 35461 35462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35465 # "foo.exe" is OK but "foo" is an error. 35466 # 35467 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35468 # It is also a way to make sure we got the proper file name for the real test later on. 35469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35470 if test "x$test_shortpath" = x; then 35471 # Short path failed, file does not exist as specified. 35472 # Try adding .exe or .cmd 35473 if test -f "${new_path}.exe"; then 35474 input_to_shortpath="${new_path}.exe" 35475 elif test -f "${new_path}.cmd"; then 35476 input_to_shortpath="${new_path}.cmd" 35477 else 35478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35479 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35480 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35481 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35482 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35483 fi 35484 else 35485 input_to_shortpath="$new_path" 35486 fi 35487 35488 # Call helper function which possibly converts this using DOS-style short mode. 35489 # If so, the updated path is stored in $new_path. 35490 new_path="$input_to_shortpath" 35491 35492 input_path="$input_to_shortpath" 35493 # Check if we need to convert this using DOS-style short mode. If the path 35494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35495 # take no chances and rewrite it. 35496 # Note: m4 eats our [], so we need to use [ and ] instead. 35497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35498 if test "x$has_forbidden_chars" != x; then 35499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35500 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35501 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35502 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35503 # Going to short mode and back again did indeed matter. Since short mode is 35504 # case insensitive, let's make it lowercase to improve readability. 35505 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35506 # Now convert it back to Unix-style (cygpath) 35507 input_path=`$CYGPATH -u "$shortmode_path"` 35508 new_path="$input_path" 35509 fi 35510 fi 35511 35512 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35513 if test "x$test_cygdrive_prefix" = x; then 35514 # As a simple fix, exclude /usr/bin since it's not a real path. 35515 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35516 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35517 # a path prefixed by /cygdrive for fixpath to work. 35518 new_path="$CYGWIN_ROOT_PATH$input_path" 35519 fi 35520 fi 35521 35522 # remove trailing .exe if any 35523 new_path="${new_path/%.exe/}" 35524 35525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35526 35527 # First separate the path from the arguments. This will split at the first 35528 # space. 35529 complete="$GNM" 35530 path="${complete%% *}" 35531 tmp="$complete EOL" 35532 arguments="${tmp#* }" 35533 35534 # Input might be given as Windows format, start by converting to 35535 # unix format. 35536 new_path="$path" 35537 35538 windows_path="$new_path" 35539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35540 unix_path=`$CYGPATH -u "$windows_path"` 35541 new_path="$unix_path" 35542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35544 new_path="$unix_path" 35545 fi 35546 35547 35548 # Now try to locate executable using which 35549 new_path=`$WHICH "$new_path" 2> /dev/null` 35550 35551 if test "x$new_path" = x; then 35552 # Oops. Which didn't find the executable. 35553 # The splitting of arguments from the executable at a space might have been incorrect, 35554 # since paths with space are more likely in Windows. Give it another try with the whole 35555 # argument. 35556 path="$complete" 35557 arguments="EOL" 35558 new_path="$path" 35559 35560 windows_path="$new_path" 35561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35562 unix_path=`$CYGPATH -u "$windows_path"` 35563 new_path="$unix_path" 35564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35566 new_path="$unix_path" 35567 fi 35568 35569 35570 new_path=`$WHICH "$new_path" 2> /dev/null` 35571 # bat and cmd files are not always considered executable in MSYS causing which 35572 # to not find them 35573 if test "x$new_path" = x \ 35574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35576 new_path="$path" 35577 35578 windows_path="$new_path" 35579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35580 unix_path=`$CYGPATH -u "$windows_path"` 35581 new_path="$unix_path" 35582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35584 new_path="$unix_path" 35585 fi 35586 35587 fi 35588 35589 if test "x$new_path" = x; then 35590 # It's still not found. Now this is an unrecoverable error. 35591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35592 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35593 has_space=`$ECHO "$complete" | $GREP " "` 35594 if test "x$has_space" != x; then 35595 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35596 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35597 fi 35598 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35599 fi 35600 fi 35601 35602 # Now new_path has a complete unix path to the binary 35603 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35604 # Keep paths in /bin as-is, but remove trailing .exe if any 35605 new_path="${new_path/%.exe/}" 35606 # Do not save /bin paths to all_fixpath_prefixes! 35607 else 35608 # Not in mixed or Windows style, start by that. 35609 new_path=`cmd //c echo $new_path` 35610 35611 input_path="$new_path" 35612 # Check if we need to convert this using DOS-style short mode. If the path 35613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35614 # take no chances and rewrite it. 35615 # Note: m4 eats our [], so we need to use [ and ] instead. 35616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35617 if test "x$has_forbidden_chars" != x; then 35618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35619 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35620 fi 35621 35622 # Output is in $new_path 35623 35624 windows_path="$new_path" 35625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35626 unix_path=`$CYGPATH -u "$windows_path"` 35627 new_path="$unix_path" 35628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35630 new_path="$unix_path" 35631 fi 35632 35633 # remove trailing .exe if any 35634 new_path="${new_path/%.exe/}" 35635 35636 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35637 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35638 fi 35639 35640 else 35641 # We're on a posix platform. Hooray! :) 35642 # First separate the path from the arguments. This will split at the first 35643 # space. 35644 complete="$GNM" 35645 path="${complete%% *}" 35646 tmp="$complete EOL" 35647 arguments="${tmp#* }" 35648 35649 # Cannot rely on the command "which" here since it doesn't always work. 35650 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35651 if test -z "$is_absolute_path"; then 35652 # Path to executable is not absolute. Find it. 35653 IFS_save="$IFS" 35654 IFS=: 35655 for p in $PATH; do 35656 if test -f "$p/$path" && test -x "$p/$path"; then 35657 new_path="$p/$path" 35658 break 35659 fi 35660 done 35661 IFS="$IFS_save" 35662 else 35663 # This is an absolute path, we can use it without further modifications. 35664 new_path="$path" 35665 fi 35666 35667 if test "x$new_path" = x; then 35668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35669 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35670 has_space=`$ECHO "$complete" | $GREP " "` 35671 if test "x$has_space" != x; then 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35673 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35674 fi 35675 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35676 fi 35677 fi 35678 35679 # Now join together the path and the arguments once again 35680 if test "x$arguments" != xEOL; then 35681 new_complete="$new_path ${arguments% *}" 35682 else 35683 new_complete="$new_path" 35684 fi 35685 35686 if test "x$complete" != "x$new_complete"; then 35687 GNM="$new_complete" 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 35689 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 35690 fi 35691 35692 35693 35694 35695 # Publish this variable in the help. 35696 35697 35698 if test "x$MCS" = x; then 35699 # The variable is not set by user, try to locate tool using the code snippet 35700 for ac_prog in mcs 35701 do 35702 # Extract the first word of "$ac_prog", so it can be a program name with args. 35703 set dummy $ac_prog; ac_word=$2 35704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35705 $as_echo_n "checking for $ac_word... " >&6; } 35706 if ${ac_cv_path_MCS+:} false; then : 35707 $as_echo_n "(cached) " >&6 35708 else 35709 case $MCS in 35710 [\\/]* | ?:[\\/]*) 35711 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35712 ;; 35713 *) 35714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35715 for as_dir in $PATH 35716 do 35717 IFS=$as_save_IFS 35718 test -z "$as_dir" && as_dir=. 35719 for ac_exec_ext in '' $ac_executable_extensions; do 35720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35721 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35723 break 2 35724 fi 35725 done 35726 done 35727 IFS=$as_save_IFS 35728 35729 ;; 35730 esac 35731 fi 35732 MCS=$ac_cv_path_MCS 35733 if test -n "$MCS"; then 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35735 $as_echo "$MCS" >&6; } 35736 else 35737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35738 $as_echo "no" >&6; } 35739 fi 35740 35741 35742 test -n "$MCS" && break 35743 done 35744 35745 else 35746 # The variable is set, but is it from the command line or the environment? 35747 35748 # Try to remove the string !MCS! from our list. 35749 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 35750 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35751 # If it failed, the variable was not from the command line. Ignore it, 35752 # but warn the user (except for BASH, which is always set by the calling BASH). 35753 if test "xMCS" != xBASH; then 35754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 35755 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 35756 fi 35757 # Try to locate tool using the code snippet 35758 for ac_prog in mcs 35759 do 35760 # Extract the first word of "$ac_prog", so it can be a program name with args. 35761 set dummy $ac_prog; ac_word=$2 35762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35763 $as_echo_n "checking for $ac_word... " >&6; } 35764 if ${ac_cv_path_MCS+:} false; then : 35765 $as_echo_n "(cached) " >&6 35766 else 35767 case $MCS in 35768 [\\/]* | ?:[\\/]*) 35769 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35770 ;; 35771 *) 35772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35773 for as_dir in $PATH 35774 do 35775 IFS=$as_save_IFS 35776 test -z "$as_dir" && as_dir=. 35777 for ac_exec_ext in '' $ac_executable_extensions; do 35778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35779 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35781 break 2 35782 fi 35783 done 35784 done 35785 IFS=$as_save_IFS 35786 35787 ;; 35788 esac 35789 fi 35790 MCS=$ac_cv_path_MCS 35791 if test -n "$MCS"; then 35792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35793 $as_echo "$MCS" >&6; } 35794 else 35795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35796 $as_echo "no" >&6; } 35797 fi 35798 35799 35800 test -n "$MCS" && break 35801 done 35802 35803 else 35804 # If it succeeded, then it was overridden by the user. We will use it 35805 # for the tool. 35806 35807 # First remove it from the list of overridden variables, so we can test 35808 # for unknown variables in the end. 35809 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35810 35811 # Check if the provided tool contains a complete path. 35812 tool_specified="$MCS" 35813 tool_basename="${tool_specified##*/}" 35814 if test "x$tool_basename" = "x$tool_specified"; then 35815 # A command without a complete path is provided, search $PATH. 35816 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 35817 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 35818 # Extract the first word of "$tool_basename", so it can be a program name with args. 35819 set dummy $tool_basename; ac_word=$2 35820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35821 $as_echo_n "checking for $ac_word... " >&6; } 35822 if ${ac_cv_path_MCS+:} false; then : 35823 $as_echo_n "(cached) " >&6 35824 else 35825 case $MCS in 35826 [\\/]* | ?:[\\/]*) 35827 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35828 ;; 35829 *) 35830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35831 for as_dir in $PATH 35832 do 35833 IFS=$as_save_IFS 35834 test -z "$as_dir" && as_dir=. 35835 for ac_exec_ext in '' $ac_executable_extensions; do 35836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35837 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35839 break 2 35840 fi 35841 done 35842 done 35843 IFS=$as_save_IFS 35844 35845 ;; 35846 esac 35847 fi 35848 MCS=$ac_cv_path_MCS 35849 if test -n "$MCS"; then 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35851 $as_echo "$MCS" >&6; } 35852 else 35853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35854 $as_echo "no" >&6; } 35855 fi 35856 35857 35858 if test "x$MCS" = x; then 35859 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35860 fi 35861 else 35862 # Otherwise we believe it is a complete path. Use it as it is. 35863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 35864 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 35865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 35866 $as_echo_n "checking for MCS... " >&6; } 35867 if test ! -x "$tool_specified"; then 35868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35869 $as_echo "not found" >&6; } 35870 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 35871 fi 35872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35873 $as_echo "$tool_specified" >&6; } 35874 fi 35875 fi 35876 fi 35877 35878 35879 35880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35881 35882 # First separate the path from the arguments. This will split at the first 35883 # space. 35884 complete="$MCS" 35885 path="${complete%% *}" 35886 tmp="$complete EOL" 35887 arguments="${tmp#* }" 35888 35889 # Input might be given as Windows format, start by converting to 35890 # unix format. 35891 new_path=`$CYGPATH -u "$path"` 35892 35893 # Now try to locate executable using which 35894 new_path=`$WHICH "$new_path" 2> /dev/null` 35895 # bat and cmd files are not always considered executable in cygwin causing which 35896 # to not find them 35897 if test "x$new_path" = x \ 35898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35900 new_path=`$CYGPATH -u "$path"` 35901 fi 35902 if test "x$new_path" = x; then 35903 # Oops. Which didn't find the executable. 35904 # The splitting of arguments from the executable at a space might have been incorrect, 35905 # since paths with space are more likely in Windows. Give it another try with the whole 35906 # argument. 35907 path="$complete" 35908 arguments="EOL" 35909 new_path=`$CYGPATH -u "$path"` 35910 new_path=`$WHICH "$new_path" 2> /dev/null` 35911 # bat and cmd files are not always considered executable in cygwin causing which 35912 # to not find them 35913 if test "x$new_path" = x \ 35914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35916 new_path=`$CYGPATH -u "$path"` 35917 fi 35918 if test "x$new_path" = x; then 35919 # It's still not found. Now this is an unrecoverable error. 35920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 35921 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 35922 has_space=`$ECHO "$complete" | $GREP " "` 35923 if test "x$has_space" != x; then 35924 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35925 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35926 fi 35927 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35928 fi 35929 fi 35930 35931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35934 # "foo.exe" is OK but "foo" is an error. 35935 # 35936 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35937 # It is also a way to make sure we got the proper file name for the real test later on. 35938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35939 if test "x$test_shortpath" = x; then 35940 # Short path failed, file does not exist as specified. 35941 # Try adding .exe or .cmd 35942 if test -f "${new_path}.exe"; then 35943 input_to_shortpath="${new_path}.exe" 35944 elif test -f "${new_path}.cmd"; then 35945 input_to_shortpath="${new_path}.cmd" 35946 else 35947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 35948 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 35949 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35950 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35951 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35952 fi 35953 else 35954 input_to_shortpath="$new_path" 35955 fi 35956 35957 # Call helper function which possibly converts this using DOS-style short mode. 35958 # If so, the updated path is stored in $new_path. 35959 new_path="$input_to_shortpath" 35960 35961 input_path="$input_to_shortpath" 35962 # Check if we need to convert this using DOS-style short mode. If the path 35963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35964 # take no chances and rewrite it. 35965 # Note: m4 eats our [], so we need to use [ and ] instead. 35966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35967 if test "x$has_forbidden_chars" != x; then 35968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35969 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35970 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35971 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35972 # Going to short mode and back again did indeed matter. Since short mode is 35973 # case insensitive, let's make it lowercase to improve readability. 35974 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35975 # Now convert it back to Unix-style (cygpath) 35976 input_path=`$CYGPATH -u "$shortmode_path"` 35977 new_path="$input_path" 35978 fi 35979 fi 35980 35981 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35982 if test "x$test_cygdrive_prefix" = x; then 35983 # As a simple fix, exclude /usr/bin since it's not a real path. 35984 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35985 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35986 # a path prefixed by /cygdrive for fixpath to work. 35987 new_path="$CYGWIN_ROOT_PATH$input_path" 35988 fi 35989 fi 35990 35991 # remove trailing .exe if any 35992 new_path="${new_path/%.exe/}" 35993 35994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35995 35996 # First separate the path from the arguments. This will split at the first 35997 # space. 35998 complete="$MCS" 35999 path="${complete%% *}" 36000 tmp="$complete EOL" 36001 arguments="${tmp#* }" 36002 36003 # Input might be given as Windows format, start by converting to 36004 # unix format. 36005 new_path="$path" 36006 36007 windows_path="$new_path" 36008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36009 unix_path=`$CYGPATH -u "$windows_path"` 36010 new_path="$unix_path" 36011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36013 new_path="$unix_path" 36014 fi 36015 36016 36017 # Now try to locate executable using which 36018 new_path=`$WHICH "$new_path" 2> /dev/null` 36019 36020 if test "x$new_path" = x; then 36021 # Oops. Which didn't find the executable. 36022 # The splitting of arguments from the executable at a space might have been incorrect, 36023 # since paths with space are more likely in Windows. Give it another try with the whole 36024 # argument. 36025 path="$complete" 36026 arguments="EOL" 36027 new_path="$path" 36028 36029 windows_path="$new_path" 36030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36031 unix_path=`$CYGPATH -u "$windows_path"` 36032 new_path="$unix_path" 36033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36035 new_path="$unix_path" 36036 fi 36037 36038 36039 new_path=`$WHICH "$new_path" 2> /dev/null` 36040 # bat and cmd files are not always considered executable in MSYS causing which 36041 # to not find them 36042 if test "x$new_path" = x \ 36043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36045 new_path="$path" 36046 36047 windows_path="$new_path" 36048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36049 unix_path=`$CYGPATH -u "$windows_path"` 36050 new_path="$unix_path" 36051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36052 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36053 new_path="$unix_path" 36054 fi 36055 36056 fi 36057 36058 if test "x$new_path" = x; then 36059 # It's still not found. Now this is an unrecoverable error. 36060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36061 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36062 has_space=`$ECHO "$complete" | $GREP " "` 36063 if test "x$has_space" != x; then 36064 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36065 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36066 fi 36067 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36068 fi 36069 fi 36070 36071 # Now new_path has a complete unix path to the binary 36072 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36073 # Keep paths in /bin as-is, but remove trailing .exe if any 36074 new_path="${new_path/%.exe/}" 36075 # Do not save /bin paths to all_fixpath_prefixes! 36076 else 36077 # Not in mixed or Windows style, start by that. 36078 new_path=`cmd //c echo $new_path` 36079 36080 input_path="$new_path" 36081 # Check if we need to convert this using DOS-style short mode. If the path 36082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36083 # take no chances and rewrite it. 36084 # Note: m4 eats our [], so we need to use [ and ] instead. 36085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36086 if test "x$has_forbidden_chars" != x; then 36087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36089 fi 36090 36091 # Output is in $new_path 36092 36093 windows_path="$new_path" 36094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36095 unix_path=`$CYGPATH -u "$windows_path"` 36096 new_path="$unix_path" 36097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36099 new_path="$unix_path" 36100 fi 36101 36102 # remove trailing .exe if any 36103 new_path="${new_path/%.exe/}" 36104 36105 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36106 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36107 fi 36108 36109 else 36110 # We're on a posix platform. Hooray! :) 36111 # First separate the path from the arguments. This will split at the first 36112 # space. 36113 complete="$MCS" 36114 path="${complete%% *}" 36115 tmp="$complete EOL" 36116 arguments="${tmp#* }" 36117 36118 # Cannot rely on the command "which" here since it doesn't always work. 36119 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36120 if test -z "$is_absolute_path"; then 36121 # Path to executable is not absolute. Find it. 36122 IFS_save="$IFS" 36123 IFS=: 36124 for p in $PATH; do 36125 if test -f "$p/$path" && test -x "$p/$path"; then 36126 new_path="$p/$path" 36127 break 36128 fi 36129 done 36130 IFS="$IFS_save" 36131 else 36132 # This is an absolute path, we can use it without further modifications. 36133 new_path="$path" 36134 fi 36135 36136 if test "x$new_path" = x; then 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36138 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36139 has_space=`$ECHO "$complete" | $GREP " "` 36140 if test "x$has_space" != x; then 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36142 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36143 fi 36144 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36145 fi 36146 fi 36147 36148 # Now join together the path and the arguments once again 36149 if test "x$arguments" != xEOL; then 36150 new_complete="$new_path ${arguments% *}" 36151 else 36152 new_complete="$new_path" 36153 fi 36154 36155 if test "x$complete" != "x$new_complete"; then 36156 MCS="$new_complete" 36157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36158 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36159 fi 36160 36161 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36162 # FIXME: we should unify this with the solaris case above. 36163 36164 36165 # Publish this variable in the help. 36166 36167 36168 if test "x$STRIP" = x; then 36169 # The variable is not set by user, try to locate tool using the code snippet 36170 if test -n "$ac_tool_prefix"; then 36171 for ac_prog in strip 36172 do 36173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36176 $as_echo_n "checking for $ac_word... " >&6; } 36177 if ${ac_cv_prog_STRIP+:} false; then : 36178 $as_echo_n "(cached) " >&6 36179 else 36180 if test -n "$STRIP"; then 36181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36182 else 36183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36184 for as_dir in $PATH 36185 do 36186 IFS=$as_save_IFS 36187 test -z "$as_dir" && as_dir=. 36188 for ac_exec_ext in '' $ac_executable_extensions; do 36189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36190 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36192 break 2 36193 fi 36194 done 36195 done 36196 IFS=$as_save_IFS 36197 36198 fi 36199 fi 36200 STRIP=$ac_cv_prog_STRIP 36201 if test -n "$STRIP"; then 36202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36203 $as_echo "$STRIP" >&6; } 36204 else 36205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36206 $as_echo "no" >&6; } 36207 fi 36208 36209 36210 test -n "$STRIP" && break 36211 done 36212 fi 36213 if test -z "$STRIP"; then 36214 ac_ct_STRIP=$STRIP 36215 for ac_prog in strip 36216 do 36217 # Extract the first word of "$ac_prog", so it can be a program name with args. 36218 set dummy $ac_prog; ac_word=$2 36219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36220 $as_echo_n "checking for $ac_word... " >&6; } 36221 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36222 $as_echo_n "(cached) " >&6 36223 else 36224 if test -n "$ac_ct_STRIP"; then 36225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36226 else 36227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36228 for as_dir in $PATH 36229 do 36230 IFS=$as_save_IFS 36231 test -z "$as_dir" && as_dir=. 36232 for ac_exec_ext in '' $ac_executable_extensions; do 36233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36234 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36236 break 2 36237 fi 36238 done 36239 done 36240 IFS=$as_save_IFS 36241 36242 fi 36243 fi 36244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36245 if test -n "$ac_ct_STRIP"; then 36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36247 $as_echo "$ac_ct_STRIP" >&6; } 36248 else 36249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36250 $as_echo "no" >&6; } 36251 fi 36252 36253 36254 test -n "$ac_ct_STRIP" && break 36255 done 36256 36257 if test "x$ac_ct_STRIP" = x; then 36258 STRIP="" 36259 else 36260 case $cross_compiling:$ac_tool_warned in 36261 yes:) 36262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36264 ac_tool_warned=yes ;; 36265 esac 36266 STRIP=$ac_ct_STRIP 36267 fi 36268 fi 36269 36270 else 36271 # The variable is set, but is it from the command line or the environment? 36272 36273 # Try to remove the string !STRIP! from our list. 36274 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36275 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36276 # If it failed, the variable was not from the command line. Ignore it, 36277 # but warn the user (except for BASH, which is always set by the calling BASH). 36278 if test "xSTRIP" != xBASH; then 36279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36280 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36281 fi 36282 # Try to locate tool using the code snippet 36283 if test -n "$ac_tool_prefix"; then 36284 for ac_prog in strip 36285 do 36286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36289 $as_echo_n "checking for $ac_word... " >&6; } 36290 if ${ac_cv_prog_STRIP+:} false; then : 36291 $as_echo_n "(cached) " >&6 36292 else 36293 if test -n "$STRIP"; then 36294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36295 else 36296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36297 for as_dir in $PATH 36298 do 36299 IFS=$as_save_IFS 36300 test -z "$as_dir" && as_dir=. 36301 for ac_exec_ext in '' $ac_executable_extensions; do 36302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36303 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36305 break 2 36306 fi 36307 done 36308 done 36309 IFS=$as_save_IFS 36310 36311 fi 36312 fi 36313 STRIP=$ac_cv_prog_STRIP 36314 if test -n "$STRIP"; then 36315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36316 $as_echo "$STRIP" >&6; } 36317 else 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36319 $as_echo "no" >&6; } 36320 fi 36321 36322 36323 test -n "$STRIP" && break 36324 done 36325 fi 36326 if test -z "$STRIP"; then 36327 ac_ct_STRIP=$STRIP 36328 for ac_prog in strip 36329 do 36330 # Extract the first word of "$ac_prog", so it can be a program name with args. 36331 set dummy $ac_prog; ac_word=$2 36332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36333 $as_echo_n "checking for $ac_word... " >&6; } 36334 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36335 $as_echo_n "(cached) " >&6 36336 else 36337 if test -n "$ac_ct_STRIP"; then 36338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36339 else 36340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36341 for as_dir in $PATH 36342 do 36343 IFS=$as_save_IFS 36344 test -z "$as_dir" && as_dir=. 36345 for ac_exec_ext in '' $ac_executable_extensions; do 36346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36347 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36349 break 2 36350 fi 36351 done 36352 done 36353 IFS=$as_save_IFS 36354 36355 fi 36356 fi 36357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36358 if test -n "$ac_ct_STRIP"; then 36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36360 $as_echo "$ac_ct_STRIP" >&6; } 36361 else 36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36363 $as_echo "no" >&6; } 36364 fi 36365 36366 36367 test -n "$ac_ct_STRIP" && break 36368 done 36369 36370 if test "x$ac_ct_STRIP" = x; then 36371 STRIP="" 36372 else 36373 case $cross_compiling:$ac_tool_warned in 36374 yes:) 36375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36377 ac_tool_warned=yes ;; 36378 esac 36379 STRIP=$ac_ct_STRIP 36380 fi 36381 fi 36382 36383 else 36384 # If it succeeded, then it was overridden by the user. We will use it 36385 # for the tool. 36386 36387 # First remove it from the list of overridden variables, so we can test 36388 # for unknown variables in the end. 36389 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36390 36391 # Check if the provided tool contains a complete path. 36392 tool_specified="$STRIP" 36393 tool_basename="${tool_specified##*/}" 36394 if test "x$tool_basename" = "x$tool_specified"; then 36395 # A command without a complete path is provided, search $PATH. 36396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36397 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36398 # Extract the first word of "$tool_basename", so it can be a program name with args. 36399 set dummy $tool_basename; ac_word=$2 36400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36401 $as_echo_n "checking for $ac_word... " >&6; } 36402 if ${ac_cv_path_STRIP+:} false; then : 36403 $as_echo_n "(cached) " >&6 36404 else 36405 case $STRIP in 36406 [\\/]* | ?:[\\/]*) 36407 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36408 ;; 36409 *) 36410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36411 for as_dir in $PATH 36412 do 36413 IFS=$as_save_IFS 36414 test -z "$as_dir" && as_dir=. 36415 for ac_exec_ext in '' $ac_executable_extensions; do 36416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36417 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36419 break 2 36420 fi 36421 done 36422 done 36423 IFS=$as_save_IFS 36424 36425 ;; 36426 esac 36427 fi 36428 STRIP=$ac_cv_path_STRIP 36429 if test -n "$STRIP"; then 36430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36431 $as_echo "$STRIP" >&6; } 36432 else 36433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36434 $as_echo "no" >&6; } 36435 fi 36436 36437 36438 if test "x$STRIP" = x; then 36439 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36440 fi 36441 else 36442 # Otherwise we believe it is a complete path. Use it as it is. 36443 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36444 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36446 $as_echo_n "checking for STRIP... " >&6; } 36447 if test ! -x "$tool_specified"; then 36448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36449 $as_echo "not found" >&6; } 36450 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36451 fi 36452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36453 $as_echo "$tool_specified" >&6; } 36454 fi 36455 fi 36456 fi 36457 36458 36459 36460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36461 36462 # First separate the path from the arguments. This will split at the first 36463 # space. 36464 complete="$STRIP" 36465 path="${complete%% *}" 36466 tmp="$complete EOL" 36467 arguments="${tmp#* }" 36468 36469 # Input might be given as Windows format, start by converting to 36470 # unix format. 36471 new_path=`$CYGPATH -u "$path"` 36472 36473 # Now try to locate executable using which 36474 new_path=`$WHICH "$new_path" 2> /dev/null` 36475 # bat and cmd files are not always considered executable in cygwin causing which 36476 # to not find them 36477 if test "x$new_path" = x \ 36478 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36479 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36480 new_path=`$CYGPATH -u "$path"` 36481 fi 36482 if test "x$new_path" = x; then 36483 # Oops. Which didn't find the executable. 36484 # The splitting of arguments from the executable at a space might have been incorrect, 36485 # since paths with space are more likely in Windows. Give it another try with the whole 36486 # argument. 36487 path="$complete" 36488 arguments="EOL" 36489 new_path=`$CYGPATH -u "$path"` 36490 new_path=`$WHICH "$new_path" 2> /dev/null` 36491 # bat and cmd files are not always considered executable in cygwin causing which 36492 # to not find them 36493 if test "x$new_path" = x \ 36494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36496 new_path=`$CYGPATH -u "$path"` 36497 fi 36498 if test "x$new_path" = x; then 36499 # It's still not found. Now this is an unrecoverable error. 36500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36501 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36502 has_space=`$ECHO "$complete" | $GREP " "` 36503 if test "x$has_space" != x; then 36504 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36506 fi 36507 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36508 fi 36509 fi 36510 36511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36514 # "foo.exe" is OK but "foo" is an error. 36515 # 36516 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36517 # It is also a way to make sure we got the proper file name for the real test later on. 36518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36519 if test "x$test_shortpath" = x; then 36520 # Short path failed, file does not exist as specified. 36521 # Try adding .exe or .cmd 36522 if test -f "${new_path}.exe"; then 36523 input_to_shortpath="${new_path}.exe" 36524 elif test -f "${new_path}.cmd"; then 36525 input_to_shortpath="${new_path}.cmd" 36526 else 36527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36528 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36529 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36530 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36531 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36532 fi 36533 else 36534 input_to_shortpath="$new_path" 36535 fi 36536 36537 # Call helper function which possibly converts this using DOS-style short mode. 36538 # If so, the updated path is stored in $new_path. 36539 new_path="$input_to_shortpath" 36540 36541 input_path="$input_to_shortpath" 36542 # Check if we need to convert this using DOS-style short mode. If the path 36543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36544 # take no chances and rewrite it. 36545 # Note: m4 eats our [], so we need to use [ and ] instead. 36546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36547 if test "x$has_forbidden_chars" != x; then 36548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36549 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36550 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36551 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36552 # Going to short mode and back again did indeed matter. Since short mode is 36553 # case insensitive, let's make it lowercase to improve readability. 36554 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36555 # Now convert it back to Unix-style (cygpath) 36556 input_path=`$CYGPATH -u "$shortmode_path"` 36557 new_path="$input_path" 36558 fi 36559 fi 36560 36561 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36562 if test "x$test_cygdrive_prefix" = x; then 36563 # As a simple fix, exclude /usr/bin since it's not a real path. 36564 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36565 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36566 # a path prefixed by /cygdrive for fixpath to work. 36567 new_path="$CYGWIN_ROOT_PATH$input_path" 36568 fi 36569 fi 36570 36571 # remove trailing .exe if any 36572 new_path="${new_path/%.exe/}" 36573 36574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36575 36576 # First separate the path from the arguments. This will split at the first 36577 # space. 36578 complete="$STRIP" 36579 path="${complete%% *}" 36580 tmp="$complete EOL" 36581 arguments="${tmp#* }" 36582 36583 # Input might be given as Windows format, start by converting to 36584 # unix format. 36585 new_path="$path" 36586 36587 windows_path="$new_path" 36588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36589 unix_path=`$CYGPATH -u "$windows_path"` 36590 new_path="$unix_path" 36591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36593 new_path="$unix_path" 36594 fi 36595 36596 36597 # Now try to locate executable using which 36598 new_path=`$WHICH "$new_path" 2> /dev/null` 36599 36600 if test "x$new_path" = x; then 36601 # Oops. Which didn't find the executable. 36602 # The splitting of arguments from the executable at a space might have been incorrect, 36603 # since paths with space are more likely in Windows. Give it another try with the whole 36604 # argument. 36605 path="$complete" 36606 arguments="EOL" 36607 new_path="$path" 36608 36609 windows_path="$new_path" 36610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36611 unix_path=`$CYGPATH -u "$windows_path"` 36612 new_path="$unix_path" 36613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36615 new_path="$unix_path" 36616 fi 36617 36618 36619 new_path=`$WHICH "$new_path" 2> /dev/null` 36620 # bat and cmd files are not always considered executable in MSYS causing which 36621 # to not find them 36622 if test "x$new_path" = x \ 36623 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36624 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36625 new_path="$path" 36626 36627 windows_path="$new_path" 36628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36629 unix_path=`$CYGPATH -u "$windows_path"` 36630 new_path="$unix_path" 36631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36633 new_path="$unix_path" 36634 fi 36635 36636 fi 36637 36638 if test "x$new_path" = x; then 36639 # It's still not found. Now this is an unrecoverable error. 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36641 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36642 has_space=`$ECHO "$complete" | $GREP " "` 36643 if test "x$has_space" != x; then 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36645 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36646 fi 36647 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36648 fi 36649 fi 36650 36651 # Now new_path has a complete unix path to the binary 36652 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36653 # Keep paths in /bin as-is, but remove trailing .exe if any 36654 new_path="${new_path/%.exe/}" 36655 # Do not save /bin paths to all_fixpath_prefixes! 36656 else 36657 # Not in mixed or Windows style, start by that. 36658 new_path=`cmd //c echo $new_path` 36659 36660 input_path="$new_path" 36661 # Check if we need to convert this using DOS-style short mode. If the path 36662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36663 # take no chances and rewrite it. 36664 # Note: m4 eats our [], so we need to use [ and ] instead. 36665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36666 if test "x$has_forbidden_chars" != x; then 36667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36669 fi 36670 36671 # Output is in $new_path 36672 36673 windows_path="$new_path" 36674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36675 unix_path=`$CYGPATH -u "$windows_path"` 36676 new_path="$unix_path" 36677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36679 new_path="$unix_path" 36680 fi 36681 36682 # remove trailing .exe if any 36683 new_path="${new_path/%.exe/}" 36684 36685 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36686 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36687 fi 36688 36689 else 36690 # We're on a posix platform. Hooray! :) 36691 # First separate the path from the arguments. This will split at the first 36692 # space. 36693 complete="$STRIP" 36694 path="${complete%% *}" 36695 tmp="$complete EOL" 36696 arguments="${tmp#* }" 36697 36698 # Cannot rely on the command "which" here since it doesn't always work. 36699 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36700 if test -z "$is_absolute_path"; then 36701 # Path to executable is not absolute. Find it. 36702 IFS_save="$IFS" 36703 IFS=: 36704 for p in $PATH; do 36705 if test -f "$p/$path" && test -x "$p/$path"; then 36706 new_path="$p/$path" 36707 break 36708 fi 36709 done 36710 IFS="$IFS_save" 36711 else 36712 # This is an absolute path, we can use it without further modifications. 36713 new_path="$path" 36714 fi 36715 36716 if test "x$new_path" = x; then 36717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36718 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36719 has_space=`$ECHO "$complete" | $GREP " "` 36720 if test "x$has_space" != x; then 36721 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36722 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36723 fi 36724 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36725 fi 36726 fi 36727 36728 # Now join together the path and the arguments once again 36729 if test "x$arguments" != xEOL; then 36730 new_complete="$new_path ${arguments% *}" 36731 else 36732 new_complete="$new_path" 36733 fi 36734 36735 if test "x$complete" != "x$new_complete"; then 36736 STRIP="$new_complete" 36737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36738 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36739 fi 36740 36741 # Extract the first word of "otool", so it can be a program name with args. 36742 set dummy otool; ac_word=$2 36743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36744 $as_echo_n "checking for $ac_word... " >&6; } 36745 if ${ac_cv_path_OTOOL+:} false; then : 36746 $as_echo_n "(cached) " >&6 36747 else 36748 case $OTOOL in 36749 [\\/]* | ?:[\\/]*) 36750 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 36751 ;; 36752 *) 36753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36754 for as_dir in $PATH 36755 do 36756 IFS=$as_save_IFS 36757 test -z "$as_dir" && as_dir=. 36758 for ac_exec_ext in '' $ac_executable_extensions; do 36759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36760 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 36761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36762 break 2 36763 fi 36764 done 36765 done 36766 IFS=$as_save_IFS 36767 36768 ;; 36769 esac 36770 fi 36771 OTOOL=$ac_cv_path_OTOOL 36772 if test -n "$OTOOL"; then 36773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 36774 $as_echo "$OTOOL" >&6; } 36775 else 36776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36777 $as_echo "no" >&6; } 36778 fi 36779 36780 36781 if test "x$OTOOL" = "x"; then 36782 OTOOL="true" 36783 fi 36784 36785 36786 # Publish this variable in the help. 36787 36788 36789 if test "x$NM" = x; then 36790 # The variable is not set by user, try to locate tool using the code snippet 36791 if test -n "$ac_tool_prefix"; then 36792 for ac_prog in nm 36793 do 36794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36797 $as_echo_n "checking for $ac_word... " >&6; } 36798 if ${ac_cv_prog_NM+:} false; then : 36799 $as_echo_n "(cached) " >&6 36800 else 36801 if test -n "$NM"; then 36802 ac_cv_prog_NM="$NM" # Let the user override the test. 36803 else 36804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36805 for as_dir in $PATH 36806 do 36807 IFS=$as_save_IFS 36808 test -z "$as_dir" && as_dir=. 36809 for ac_exec_ext in '' $ac_executable_extensions; do 36810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36811 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 36812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36813 break 2 36814 fi 36815 done 36816 done 36817 IFS=$as_save_IFS 36818 36819 fi 36820 fi 36821 NM=$ac_cv_prog_NM 36822 if test -n "$NM"; then 36823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36824 $as_echo "$NM" >&6; } 36825 else 36826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36827 $as_echo "no" >&6; } 36828 fi 36829 36830 36831 test -n "$NM" && break 36832 done 36833 fi 36834 if test -z "$NM"; then 36835 ac_ct_NM=$NM 36836 for ac_prog in nm 36837 do 36838 # Extract the first word of "$ac_prog", so it can be a program name with args. 36839 set dummy $ac_prog; ac_word=$2 36840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36841 $as_echo_n "checking for $ac_word... " >&6; } 36842 if ${ac_cv_prog_ac_ct_NM+:} false; then : 36843 $as_echo_n "(cached) " >&6 36844 else 36845 if test -n "$ac_ct_NM"; then 36846 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 36847 else 36848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36849 for as_dir in $PATH 36850 do 36851 IFS=$as_save_IFS 36852 test -z "$as_dir" && as_dir=. 36853 for ac_exec_ext in '' $ac_executable_extensions; do 36854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36855 ac_cv_prog_ac_ct_NM="$ac_prog" 36856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36857 break 2 36858 fi 36859 done 36860 done 36861 IFS=$as_save_IFS 36862 36863 fi 36864 fi 36865 ac_ct_NM=$ac_cv_prog_ac_ct_NM 36866 if test -n "$ac_ct_NM"; then 36867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 36868 $as_echo "$ac_ct_NM" >&6; } 36869 else 36870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36871 $as_echo "no" >&6; } 36872 fi 36873 36874 36875 test -n "$ac_ct_NM" && break 36876 done 36877 36878 if test "x$ac_ct_NM" = x; then 36879 NM="" 36880 else 36881 case $cross_compiling:$ac_tool_warned in 36882 yes:) 36883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36885 ac_tool_warned=yes ;; 36886 esac 36887 NM=$ac_ct_NM 36888 fi 36889 fi 36890 36891 else 36892 # The variable is set, but is it from the command line or the environment? 36893 36894 # Try to remove the string !NM! from our list. 36895 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 36896 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36897 # If it failed, the variable was not from the command line. Ignore it, 36898 # but warn the user (except for BASH, which is always set by the calling BASH). 36899 if test "xNM" != xBASH; then 36900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 36901 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 36902 fi 36903 # Try to locate tool using the code snippet 36904 if test -n "$ac_tool_prefix"; then 36905 for ac_prog in nm 36906 do 36907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36910 $as_echo_n "checking for $ac_word... " >&6; } 36911 if ${ac_cv_prog_NM+:} false; then : 36912 $as_echo_n "(cached) " >&6 36913 else 36914 if test -n "$NM"; then 36915 ac_cv_prog_NM="$NM" # Let the user override the test. 36916 else 36917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36918 for as_dir in $PATH 36919 do 36920 IFS=$as_save_IFS 36921 test -z "$as_dir" && as_dir=. 36922 for ac_exec_ext in '' $ac_executable_extensions; do 36923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36924 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 36925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36926 break 2 36927 fi 36928 done 36929 done 36930 IFS=$as_save_IFS 36931 36932 fi 36933 fi 36934 NM=$ac_cv_prog_NM 36935 if test -n "$NM"; then 36936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36937 $as_echo "$NM" >&6; } 36938 else 36939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36940 $as_echo "no" >&6; } 36941 fi 36942 36943 36944 test -n "$NM" && break 36945 done 36946 fi 36947 if test -z "$NM"; then 36948 ac_ct_NM=$NM 36949 for ac_prog in nm 36950 do 36951 # Extract the first word of "$ac_prog", so it can be a program name with args. 36952 set dummy $ac_prog; ac_word=$2 36953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36954 $as_echo_n "checking for $ac_word... " >&6; } 36955 if ${ac_cv_prog_ac_ct_NM+:} false; then : 36956 $as_echo_n "(cached) " >&6 36957 else 36958 if test -n "$ac_ct_NM"; then 36959 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 36960 else 36961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36962 for as_dir in $PATH 36963 do 36964 IFS=$as_save_IFS 36965 test -z "$as_dir" && as_dir=. 36966 for ac_exec_ext in '' $ac_executable_extensions; do 36967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36968 ac_cv_prog_ac_ct_NM="$ac_prog" 36969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36970 break 2 36971 fi 36972 done 36973 done 36974 IFS=$as_save_IFS 36975 36976 fi 36977 fi 36978 ac_ct_NM=$ac_cv_prog_ac_ct_NM 36979 if test -n "$ac_ct_NM"; then 36980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 36981 $as_echo "$ac_ct_NM" >&6; } 36982 else 36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36984 $as_echo "no" >&6; } 36985 fi 36986 36987 36988 test -n "$ac_ct_NM" && break 36989 done 36990 36991 if test "x$ac_ct_NM" = x; then 36992 NM="" 36993 else 36994 case $cross_compiling:$ac_tool_warned in 36995 yes:) 36996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36998 ac_tool_warned=yes ;; 36999 esac 37000 NM=$ac_ct_NM 37001 fi 37002 fi 37003 37004 else 37005 # If it succeeded, then it was overridden by the user. We will use it 37006 # for the tool. 37007 37008 # First remove it from the list of overridden variables, so we can test 37009 # for unknown variables in the end. 37010 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37011 37012 # Check if the provided tool contains a complete path. 37013 tool_specified="$NM" 37014 tool_basename="${tool_specified##*/}" 37015 if test "x$tool_basename" = "x$tool_specified"; then 37016 # A command without a complete path is provided, search $PATH. 37017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37018 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37019 # Extract the first word of "$tool_basename", so it can be a program name with args. 37020 set dummy $tool_basename; ac_word=$2 37021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37022 $as_echo_n "checking for $ac_word... " >&6; } 37023 if ${ac_cv_path_NM+:} false; then : 37024 $as_echo_n "(cached) " >&6 37025 else 37026 case $NM in 37027 [\\/]* | ?:[\\/]*) 37028 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37029 ;; 37030 *) 37031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37032 for as_dir in $PATH 37033 do 37034 IFS=$as_save_IFS 37035 test -z "$as_dir" && as_dir=. 37036 for ac_exec_ext in '' $ac_executable_extensions; do 37037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37038 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37040 break 2 37041 fi 37042 done 37043 done 37044 IFS=$as_save_IFS 37045 37046 ;; 37047 esac 37048 fi 37049 NM=$ac_cv_path_NM 37050 if test -n "$NM"; then 37051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37052 $as_echo "$NM" >&6; } 37053 else 37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37055 $as_echo "no" >&6; } 37056 fi 37057 37058 37059 if test "x$NM" = x; then 37060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37061 fi 37062 else 37063 # Otherwise we believe it is a complete path. Use it as it is. 37064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37065 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37067 $as_echo_n "checking for NM... " >&6; } 37068 if test ! -x "$tool_specified"; then 37069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37070 $as_echo "not found" >&6; } 37071 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37072 fi 37073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37074 $as_echo "$tool_specified" >&6; } 37075 fi 37076 fi 37077 fi 37078 37079 37080 37081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37082 37083 # First separate the path from the arguments. This will split at the first 37084 # space. 37085 complete="$NM" 37086 path="${complete%% *}" 37087 tmp="$complete EOL" 37088 arguments="${tmp#* }" 37089 37090 # Input might be given as Windows format, start by converting to 37091 # unix format. 37092 new_path=`$CYGPATH -u "$path"` 37093 37094 # Now try to locate executable using which 37095 new_path=`$WHICH "$new_path" 2> /dev/null` 37096 # bat and cmd files are not always considered executable in cygwin causing which 37097 # to not find them 37098 if test "x$new_path" = x \ 37099 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37100 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37101 new_path=`$CYGPATH -u "$path"` 37102 fi 37103 if test "x$new_path" = x; then 37104 # Oops. Which didn't find the executable. 37105 # The splitting of arguments from the executable at a space might have been incorrect, 37106 # since paths with space are more likely in Windows. Give it another try with the whole 37107 # argument. 37108 path="$complete" 37109 arguments="EOL" 37110 new_path=`$CYGPATH -u "$path"` 37111 new_path=`$WHICH "$new_path" 2> /dev/null` 37112 # bat and cmd files are not always considered executable in cygwin causing which 37113 # to not find them 37114 if test "x$new_path" = x \ 37115 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37116 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37117 new_path=`$CYGPATH -u "$path"` 37118 fi 37119 if test "x$new_path" = x; then 37120 # It's still not found. Now this is an unrecoverable error. 37121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37122 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37123 has_space=`$ECHO "$complete" | $GREP " "` 37124 if test "x$has_space" != x; then 37125 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37126 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37127 fi 37128 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37129 fi 37130 fi 37131 37132 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37133 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37134 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37135 # "foo.exe" is OK but "foo" is an error. 37136 # 37137 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37138 # It is also a way to make sure we got the proper file name for the real test later on. 37139 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37140 if test "x$test_shortpath" = x; then 37141 # Short path failed, file does not exist as specified. 37142 # Try adding .exe or .cmd 37143 if test -f "${new_path}.exe"; then 37144 input_to_shortpath="${new_path}.exe" 37145 elif test -f "${new_path}.cmd"; then 37146 input_to_shortpath="${new_path}.cmd" 37147 else 37148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37149 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37150 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37151 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37152 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37153 fi 37154 else 37155 input_to_shortpath="$new_path" 37156 fi 37157 37158 # Call helper function which possibly converts this using DOS-style short mode. 37159 # If so, the updated path is stored in $new_path. 37160 new_path="$input_to_shortpath" 37161 37162 input_path="$input_to_shortpath" 37163 # Check if we need to convert this using DOS-style short mode. If the path 37164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37165 # take no chances and rewrite it. 37166 # Note: m4 eats our [], so we need to use [ and ] instead. 37167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37168 if test "x$has_forbidden_chars" != x; then 37169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37173 # Going to short mode and back again did indeed matter. Since short mode is 37174 # case insensitive, let's make it lowercase to improve readability. 37175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37176 # Now convert it back to Unix-style (cygpath) 37177 input_path=`$CYGPATH -u "$shortmode_path"` 37178 new_path="$input_path" 37179 fi 37180 fi 37181 37182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37183 if test "x$test_cygdrive_prefix" = x; then 37184 # As a simple fix, exclude /usr/bin since it's not a real path. 37185 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37187 # a path prefixed by /cygdrive for fixpath to work. 37188 new_path="$CYGWIN_ROOT_PATH$input_path" 37189 fi 37190 fi 37191 37192 # remove trailing .exe if any 37193 new_path="${new_path/%.exe/}" 37194 37195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37196 37197 # First separate the path from the arguments. This will split at the first 37198 # space. 37199 complete="$NM" 37200 path="${complete%% *}" 37201 tmp="$complete EOL" 37202 arguments="${tmp#* }" 37203 37204 # Input might be given as Windows format, start by converting to 37205 # unix format. 37206 new_path="$path" 37207 37208 windows_path="$new_path" 37209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37210 unix_path=`$CYGPATH -u "$windows_path"` 37211 new_path="$unix_path" 37212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37214 new_path="$unix_path" 37215 fi 37216 37217 37218 # Now try to locate executable using which 37219 new_path=`$WHICH "$new_path" 2> /dev/null` 37220 37221 if test "x$new_path" = x; then 37222 # Oops. Which didn't find the executable. 37223 # The splitting of arguments from the executable at a space might have been incorrect, 37224 # since paths with space are more likely in Windows. Give it another try with the whole 37225 # argument. 37226 path="$complete" 37227 arguments="EOL" 37228 new_path="$path" 37229 37230 windows_path="$new_path" 37231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37232 unix_path=`$CYGPATH -u "$windows_path"` 37233 new_path="$unix_path" 37234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37236 new_path="$unix_path" 37237 fi 37238 37239 37240 new_path=`$WHICH "$new_path" 2> /dev/null` 37241 # bat and cmd files are not always considered executable in MSYS causing which 37242 # to not find them 37243 if test "x$new_path" = x \ 37244 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37245 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37246 new_path="$path" 37247 37248 windows_path="$new_path" 37249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37250 unix_path=`$CYGPATH -u "$windows_path"` 37251 new_path="$unix_path" 37252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37254 new_path="$unix_path" 37255 fi 37256 37257 fi 37258 37259 if test "x$new_path" = x; then 37260 # It's still not found. Now this is an unrecoverable error. 37261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37262 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37263 has_space=`$ECHO "$complete" | $GREP " "` 37264 if test "x$has_space" != x; then 37265 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37266 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37267 fi 37268 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37269 fi 37270 fi 37271 37272 # Now new_path has a complete unix path to the binary 37273 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37274 # Keep paths in /bin as-is, but remove trailing .exe if any 37275 new_path="${new_path/%.exe/}" 37276 # Do not save /bin paths to all_fixpath_prefixes! 37277 else 37278 # Not in mixed or Windows style, start by that. 37279 new_path=`cmd //c echo $new_path` 37280 37281 input_path="$new_path" 37282 # Check if we need to convert this using DOS-style short mode. If the path 37283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37284 # take no chances and rewrite it. 37285 # Note: m4 eats our [], so we need to use [ and ] instead. 37286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37287 if test "x$has_forbidden_chars" != x; then 37288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37289 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37290 fi 37291 37292 # Output is in $new_path 37293 37294 windows_path="$new_path" 37295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37296 unix_path=`$CYGPATH -u "$windows_path"` 37297 new_path="$unix_path" 37298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37300 new_path="$unix_path" 37301 fi 37302 37303 # remove trailing .exe if any 37304 new_path="${new_path/%.exe/}" 37305 37306 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37307 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37308 fi 37309 37310 else 37311 # We're on a posix platform. Hooray! :) 37312 # First separate the path from the arguments. This will split at the first 37313 # space. 37314 complete="$NM" 37315 path="${complete%% *}" 37316 tmp="$complete EOL" 37317 arguments="${tmp#* }" 37318 37319 # Cannot rely on the command "which" here since it doesn't always work. 37320 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37321 if test -z "$is_absolute_path"; then 37322 # Path to executable is not absolute. Find it. 37323 IFS_save="$IFS" 37324 IFS=: 37325 for p in $PATH; do 37326 if test -f "$p/$path" && test -x "$p/$path"; then 37327 new_path="$p/$path" 37328 break 37329 fi 37330 done 37331 IFS="$IFS_save" 37332 else 37333 # This is an absolute path, we can use it without further modifications. 37334 new_path="$path" 37335 fi 37336 37337 if test "x$new_path" = x; then 37338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37339 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37340 has_space=`$ECHO "$complete" | $GREP " "` 37341 if test "x$has_space" != x; then 37342 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37343 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37344 fi 37345 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37346 fi 37347 fi 37348 37349 # Now join together the path and the arguments once again 37350 if test "x$arguments" != xEOL; then 37351 new_complete="$new_path ${arguments% *}" 37352 else 37353 new_complete="$new_path" 37354 fi 37355 37356 if test "x$complete" != "x$new_complete"; then 37357 NM="$new_complete" 37358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37359 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37360 fi 37361 37362 GNM="$NM" 37363 37364 fi 37365 37366 # objcopy is used for moving debug symbols to separate files when 37367 # full debug symbols are enabled. 37368 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37369 37370 37371 # Publish this variable in the help. 37372 37373 37374 if test "x$OBJCOPY" = x; then 37375 # The variable is not set by user, try to locate tool using the code snippet 37376 if test -n "$ac_tool_prefix"; then 37377 for ac_prog in gobjcopy objcopy 37378 do 37379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37382 $as_echo_n "checking for $ac_word... " >&6; } 37383 if ${ac_cv_prog_OBJCOPY+:} false; then : 37384 $as_echo_n "(cached) " >&6 37385 else 37386 if test -n "$OBJCOPY"; then 37387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37388 else 37389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37390 for as_dir in $PATH 37391 do 37392 IFS=$as_save_IFS 37393 test -z "$as_dir" && as_dir=. 37394 for ac_exec_ext in '' $ac_executable_extensions; do 37395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37396 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37398 break 2 37399 fi 37400 done 37401 done 37402 IFS=$as_save_IFS 37403 37404 fi 37405 fi 37406 OBJCOPY=$ac_cv_prog_OBJCOPY 37407 if test -n "$OBJCOPY"; then 37408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37409 $as_echo "$OBJCOPY" >&6; } 37410 else 37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37412 $as_echo "no" >&6; } 37413 fi 37414 37415 37416 test -n "$OBJCOPY" && break 37417 done 37418 fi 37419 if test -z "$OBJCOPY"; then 37420 ac_ct_OBJCOPY=$OBJCOPY 37421 for ac_prog in gobjcopy objcopy 37422 do 37423 # Extract the first word of "$ac_prog", so it can be a program name with args. 37424 set dummy $ac_prog; ac_word=$2 37425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37426 $as_echo_n "checking for $ac_word... " >&6; } 37427 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37428 $as_echo_n "(cached) " >&6 37429 else 37430 if test -n "$ac_ct_OBJCOPY"; then 37431 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37432 else 37433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37434 for as_dir in $PATH 37435 do 37436 IFS=$as_save_IFS 37437 test -z "$as_dir" && as_dir=. 37438 for ac_exec_ext in '' $ac_executable_extensions; do 37439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37440 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37442 break 2 37443 fi 37444 done 37445 done 37446 IFS=$as_save_IFS 37447 37448 fi 37449 fi 37450 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37451 if test -n "$ac_ct_OBJCOPY"; then 37452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37453 $as_echo "$ac_ct_OBJCOPY" >&6; } 37454 else 37455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37456 $as_echo "no" >&6; } 37457 fi 37458 37459 37460 test -n "$ac_ct_OBJCOPY" && break 37461 done 37462 37463 if test "x$ac_ct_OBJCOPY" = x; then 37464 OBJCOPY="" 37465 else 37466 case $cross_compiling:$ac_tool_warned in 37467 yes:) 37468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37470 ac_tool_warned=yes ;; 37471 esac 37472 OBJCOPY=$ac_ct_OBJCOPY 37473 fi 37474 fi 37475 37476 else 37477 # The variable is set, but is it from the command line or the environment? 37478 37479 # Try to remove the string !OBJCOPY! from our list. 37480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37482 # If it failed, the variable was not from the command line. Ignore it, 37483 # but warn the user (except for BASH, which is always set by the calling BASH). 37484 if test "xOBJCOPY" != xBASH; then 37485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37486 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37487 fi 37488 # Try to locate tool using the code snippet 37489 if test -n "$ac_tool_prefix"; then 37490 for ac_prog in gobjcopy objcopy 37491 do 37492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37495 $as_echo_n "checking for $ac_word... " >&6; } 37496 if ${ac_cv_prog_OBJCOPY+:} false; then : 37497 $as_echo_n "(cached) " >&6 37498 else 37499 if test -n "$OBJCOPY"; then 37500 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37501 else 37502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37503 for as_dir in $PATH 37504 do 37505 IFS=$as_save_IFS 37506 test -z "$as_dir" && as_dir=. 37507 for ac_exec_ext in '' $ac_executable_extensions; do 37508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37509 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37511 break 2 37512 fi 37513 done 37514 done 37515 IFS=$as_save_IFS 37516 37517 fi 37518 fi 37519 OBJCOPY=$ac_cv_prog_OBJCOPY 37520 if test -n "$OBJCOPY"; then 37521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37522 $as_echo "$OBJCOPY" >&6; } 37523 else 37524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37525 $as_echo "no" >&6; } 37526 fi 37527 37528 37529 test -n "$OBJCOPY" && break 37530 done 37531 fi 37532 if test -z "$OBJCOPY"; then 37533 ac_ct_OBJCOPY=$OBJCOPY 37534 for ac_prog in gobjcopy objcopy 37535 do 37536 # Extract the first word of "$ac_prog", so it can be a program name with args. 37537 set dummy $ac_prog; ac_word=$2 37538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37539 $as_echo_n "checking for $ac_word... " >&6; } 37540 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37541 $as_echo_n "(cached) " >&6 37542 else 37543 if test -n "$ac_ct_OBJCOPY"; then 37544 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37545 else 37546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37547 for as_dir in $PATH 37548 do 37549 IFS=$as_save_IFS 37550 test -z "$as_dir" && as_dir=. 37551 for ac_exec_ext in '' $ac_executable_extensions; do 37552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37553 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37555 break 2 37556 fi 37557 done 37558 done 37559 IFS=$as_save_IFS 37560 37561 fi 37562 fi 37563 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37564 if test -n "$ac_ct_OBJCOPY"; then 37565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37566 $as_echo "$ac_ct_OBJCOPY" >&6; } 37567 else 37568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37569 $as_echo "no" >&6; } 37570 fi 37571 37572 37573 test -n "$ac_ct_OBJCOPY" && break 37574 done 37575 37576 if test "x$ac_ct_OBJCOPY" = x; then 37577 OBJCOPY="" 37578 else 37579 case $cross_compiling:$ac_tool_warned in 37580 yes:) 37581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37583 ac_tool_warned=yes ;; 37584 esac 37585 OBJCOPY=$ac_ct_OBJCOPY 37586 fi 37587 fi 37588 37589 else 37590 # If it succeeded, then it was overridden by the user. We will use it 37591 # for the tool. 37592 37593 # First remove it from the list of overridden variables, so we can test 37594 # for unknown variables in the end. 37595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37596 37597 # Check if the provided tool contains a complete path. 37598 tool_specified="$OBJCOPY" 37599 tool_basename="${tool_specified##*/}" 37600 if test "x$tool_basename" = "x$tool_specified"; then 37601 # A command without a complete path is provided, search $PATH. 37602 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37603 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37604 # Extract the first word of "$tool_basename", so it can be a program name with args. 37605 set dummy $tool_basename; ac_word=$2 37606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37607 $as_echo_n "checking for $ac_word... " >&6; } 37608 if ${ac_cv_path_OBJCOPY+:} false; then : 37609 $as_echo_n "(cached) " >&6 37610 else 37611 case $OBJCOPY in 37612 [\\/]* | ?:[\\/]*) 37613 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37614 ;; 37615 *) 37616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37617 for as_dir in $PATH 37618 do 37619 IFS=$as_save_IFS 37620 test -z "$as_dir" && as_dir=. 37621 for ac_exec_ext in '' $ac_executable_extensions; do 37622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37623 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37625 break 2 37626 fi 37627 done 37628 done 37629 IFS=$as_save_IFS 37630 37631 ;; 37632 esac 37633 fi 37634 OBJCOPY=$ac_cv_path_OBJCOPY 37635 if test -n "$OBJCOPY"; then 37636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37637 $as_echo "$OBJCOPY" >&6; } 37638 else 37639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37640 $as_echo "no" >&6; } 37641 fi 37642 37643 37644 if test "x$OBJCOPY" = x; then 37645 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37646 fi 37647 else 37648 # Otherwise we believe it is a complete path. Use it as it is. 37649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37650 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37652 $as_echo_n "checking for OBJCOPY... " >&6; } 37653 if test ! -x "$tool_specified"; then 37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37655 $as_echo "not found" >&6; } 37656 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37657 fi 37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37659 $as_echo "$tool_specified" >&6; } 37660 fi 37661 fi 37662 fi 37663 37664 37665 # Only call fixup if objcopy was found. 37666 if test -n "$OBJCOPY"; then 37667 37668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37669 37670 # First separate the path from the arguments. This will split at the first 37671 # space. 37672 complete="$OBJCOPY" 37673 path="${complete%% *}" 37674 tmp="$complete EOL" 37675 arguments="${tmp#* }" 37676 37677 # Input might be given as Windows format, start by converting to 37678 # unix format. 37679 new_path=`$CYGPATH -u "$path"` 37680 37681 # Now try to locate executable using which 37682 new_path=`$WHICH "$new_path" 2> /dev/null` 37683 # bat and cmd files are not always considered executable in cygwin causing which 37684 # to not find them 37685 if test "x$new_path" = x \ 37686 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37687 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37688 new_path=`$CYGPATH -u "$path"` 37689 fi 37690 if test "x$new_path" = x; then 37691 # Oops. Which didn't find the executable. 37692 # The splitting of arguments from the executable at a space might have been incorrect, 37693 # since paths with space are more likely in Windows. Give it another try with the whole 37694 # argument. 37695 path="$complete" 37696 arguments="EOL" 37697 new_path=`$CYGPATH -u "$path"` 37698 new_path=`$WHICH "$new_path" 2> /dev/null` 37699 # bat and cmd files are not always considered executable in cygwin causing which 37700 # to not find them 37701 if test "x$new_path" = x \ 37702 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37703 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37704 new_path=`$CYGPATH -u "$path"` 37705 fi 37706 if test "x$new_path" = x; then 37707 # It's still not found. Now this is an unrecoverable error. 37708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37709 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37710 has_space=`$ECHO "$complete" | $GREP " "` 37711 if test "x$has_space" != x; then 37712 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37713 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37714 fi 37715 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37716 fi 37717 fi 37718 37719 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37720 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37721 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37722 # "foo.exe" is OK but "foo" is an error. 37723 # 37724 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37725 # It is also a way to make sure we got the proper file name for the real test later on. 37726 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37727 if test "x$test_shortpath" = x; then 37728 # Short path failed, file does not exist as specified. 37729 # Try adding .exe or .cmd 37730 if test -f "${new_path}.exe"; then 37731 input_to_shortpath="${new_path}.exe" 37732 elif test -f "${new_path}.cmd"; then 37733 input_to_shortpath="${new_path}.cmd" 37734 else 37735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 37736 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 37737 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37738 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37739 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37740 fi 37741 else 37742 input_to_shortpath="$new_path" 37743 fi 37744 37745 # Call helper function which possibly converts this using DOS-style short mode. 37746 # If so, the updated path is stored in $new_path. 37747 new_path="$input_to_shortpath" 37748 37749 input_path="$input_to_shortpath" 37750 # Check if we need to convert this using DOS-style short mode. If the path 37751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37752 # take no chances and rewrite it. 37753 # Note: m4 eats our [], so we need to use [ and ] instead. 37754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37755 if test "x$has_forbidden_chars" != x; then 37756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37760 # Going to short mode and back again did indeed matter. Since short mode is 37761 # case insensitive, let's make it lowercase to improve readability. 37762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37763 # Now convert it back to Unix-style (cygpath) 37764 input_path=`$CYGPATH -u "$shortmode_path"` 37765 new_path="$input_path" 37766 fi 37767 fi 37768 37769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37770 if test "x$test_cygdrive_prefix" = x; then 37771 # As a simple fix, exclude /usr/bin since it's not a real path. 37772 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37774 # a path prefixed by /cygdrive for fixpath to work. 37775 new_path="$CYGWIN_ROOT_PATH$input_path" 37776 fi 37777 fi 37778 37779 # remove trailing .exe if any 37780 new_path="${new_path/%.exe/}" 37781 37782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37783 37784 # First separate the path from the arguments. This will split at the first 37785 # space. 37786 complete="$OBJCOPY" 37787 path="${complete%% *}" 37788 tmp="$complete EOL" 37789 arguments="${tmp#* }" 37790 37791 # Input might be given as Windows format, start by converting to 37792 # unix format. 37793 new_path="$path" 37794 37795 windows_path="$new_path" 37796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37797 unix_path=`$CYGPATH -u "$windows_path"` 37798 new_path="$unix_path" 37799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37801 new_path="$unix_path" 37802 fi 37803 37804 37805 # Now try to locate executable using which 37806 new_path=`$WHICH "$new_path" 2> /dev/null` 37807 37808 if test "x$new_path" = x; then 37809 # Oops. Which didn't find the executable. 37810 # The splitting of arguments from the executable at a space might have been incorrect, 37811 # since paths with space are more likely in Windows. Give it another try with the whole 37812 # argument. 37813 path="$complete" 37814 arguments="EOL" 37815 new_path="$path" 37816 37817 windows_path="$new_path" 37818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37819 unix_path=`$CYGPATH -u "$windows_path"` 37820 new_path="$unix_path" 37821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37823 new_path="$unix_path" 37824 fi 37825 37826 37827 new_path=`$WHICH "$new_path" 2> /dev/null` 37828 # bat and cmd files are not always considered executable in MSYS causing which 37829 # to not find them 37830 if test "x$new_path" = x \ 37831 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37832 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37833 new_path="$path" 37834 37835 windows_path="$new_path" 37836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37837 unix_path=`$CYGPATH -u "$windows_path"` 37838 new_path="$unix_path" 37839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37841 new_path="$unix_path" 37842 fi 37843 37844 fi 37845 37846 if test "x$new_path" = x; then 37847 # It's still not found. Now this is an unrecoverable error. 37848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37849 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37850 has_space=`$ECHO "$complete" | $GREP " "` 37851 if test "x$has_space" != x; then 37852 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37853 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37854 fi 37855 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37856 fi 37857 fi 37858 37859 # Now new_path has a complete unix path to the binary 37860 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37861 # Keep paths in /bin as-is, but remove trailing .exe if any 37862 new_path="${new_path/%.exe/}" 37863 # Do not save /bin paths to all_fixpath_prefixes! 37864 else 37865 # Not in mixed or Windows style, start by that. 37866 new_path=`cmd //c echo $new_path` 37867 37868 input_path="$new_path" 37869 # Check if we need to convert this using DOS-style short mode. If the path 37870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37871 # take no chances and rewrite it. 37872 # Note: m4 eats our [], so we need to use [ and ] instead. 37873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37874 if test "x$has_forbidden_chars" != x; then 37875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37877 fi 37878 37879 # Output is in $new_path 37880 37881 windows_path="$new_path" 37882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37883 unix_path=`$CYGPATH -u "$windows_path"` 37884 new_path="$unix_path" 37885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37887 new_path="$unix_path" 37888 fi 37889 37890 # remove trailing .exe if any 37891 new_path="${new_path/%.exe/}" 37892 37893 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37894 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37895 fi 37896 37897 else 37898 # We're on a posix platform. Hooray! :) 37899 # First separate the path from the arguments. This will split at the first 37900 # space. 37901 complete="$OBJCOPY" 37902 path="${complete%% *}" 37903 tmp="$complete EOL" 37904 arguments="${tmp#* }" 37905 37906 # Cannot rely on the command "which" here since it doesn't always work. 37907 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37908 if test -z "$is_absolute_path"; then 37909 # Path to executable is not absolute. Find it. 37910 IFS_save="$IFS" 37911 IFS=: 37912 for p in $PATH; do 37913 if test -f "$p/$path" && test -x "$p/$path"; then 37914 new_path="$p/$path" 37915 break 37916 fi 37917 done 37918 IFS="$IFS_save" 37919 else 37920 # This is an absolute path, we can use it without further modifications. 37921 new_path="$path" 37922 fi 37923 37924 if test "x$new_path" = x; then 37925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37926 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37927 has_space=`$ECHO "$complete" | $GREP " "` 37928 if test "x$has_space" != x; then 37929 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37930 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37931 fi 37932 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37933 fi 37934 fi 37935 37936 # Now join together the path and the arguments once again 37937 if test "x$arguments" != xEOL; then 37938 new_complete="$new_path ${arguments% *}" 37939 else 37940 new_complete="$new_path" 37941 fi 37942 37943 if test "x$complete" != "x$new_complete"; then 37944 OBJCOPY="$new_complete" 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 37946 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 37947 fi 37948 37949 fi 37950 fi 37951 37952 37953 37954 # Publish this variable in the help. 37955 37956 37957 if test "x$OBJDUMP" = x; then 37958 # The variable is not set by user, try to locate tool using the code snippet 37959 if test -n "$ac_tool_prefix"; then 37960 for ac_prog in gobjdump objdump 37961 do 37962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37965 $as_echo_n "checking for $ac_word... " >&6; } 37966 if ${ac_cv_prog_OBJDUMP+:} false; then : 37967 $as_echo_n "(cached) " >&6 37968 else 37969 if test -n "$OBJDUMP"; then 37970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 37971 else 37972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37973 for as_dir in $PATH 37974 do 37975 IFS=$as_save_IFS 37976 test -z "$as_dir" && as_dir=. 37977 for ac_exec_ext in '' $ac_executable_extensions; do 37978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37979 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 37980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37981 break 2 37982 fi 37983 done 37984 done 37985 IFS=$as_save_IFS 37986 37987 fi 37988 fi 37989 OBJDUMP=$ac_cv_prog_OBJDUMP 37990 if test -n "$OBJDUMP"; then 37991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 37992 $as_echo "$OBJDUMP" >&6; } 37993 else 37994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37995 $as_echo "no" >&6; } 37996 fi 37997 37998 37999 test -n "$OBJDUMP" && break 38000 done 38001 fi 38002 if test -z "$OBJDUMP"; then 38003 ac_ct_OBJDUMP=$OBJDUMP 38004 for ac_prog in gobjdump objdump 38005 do 38006 # Extract the first word of "$ac_prog", so it can be a program name with args. 38007 set dummy $ac_prog; ac_word=$2 38008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38009 $as_echo_n "checking for $ac_word... " >&6; } 38010 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38011 $as_echo_n "(cached) " >&6 38012 else 38013 if test -n "$ac_ct_OBJDUMP"; then 38014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38015 else 38016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38017 for as_dir in $PATH 38018 do 38019 IFS=$as_save_IFS 38020 test -z "$as_dir" && as_dir=. 38021 for ac_exec_ext in '' $ac_executable_extensions; do 38022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38023 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38025 break 2 38026 fi 38027 done 38028 done 38029 IFS=$as_save_IFS 38030 38031 fi 38032 fi 38033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38034 if test -n "$ac_ct_OBJDUMP"; then 38035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38036 $as_echo "$ac_ct_OBJDUMP" >&6; } 38037 else 38038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38039 $as_echo "no" >&6; } 38040 fi 38041 38042 38043 test -n "$ac_ct_OBJDUMP" && break 38044 done 38045 38046 if test "x$ac_ct_OBJDUMP" = x; then 38047 OBJDUMP="" 38048 else 38049 case $cross_compiling:$ac_tool_warned in 38050 yes:) 38051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38053 ac_tool_warned=yes ;; 38054 esac 38055 OBJDUMP=$ac_ct_OBJDUMP 38056 fi 38057 fi 38058 38059 else 38060 # The variable is set, but is it from the command line or the environment? 38061 38062 # Try to remove the string !OBJDUMP! from our list. 38063 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38064 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38065 # If it failed, the variable was not from the command line. Ignore it, 38066 # but warn the user (except for BASH, which is always set by the calling BASH). 38067 if test "xOBJDUMP" != xBASH; then 38068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38069 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38070 fi 38071 # Try to locate tool using the code snippet 38072 if test -n "$ac_tool_prefix"; then 38073 for ac_prog in gobjdump objdump 38074 do 38075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38078 $as_echo_n "checking for $ac_word... " >&6; } 38079 if ${ac_cv_prog_OBJDUMP+:} false; then : 38080 $as_echo_n "(cached) " >&6 38081 else 38082 if test -n "$OBJDUMP"; then 38083 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38084 else 38085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38086 for as_dir in $PATH 38087 do 38088 IFS=$as_save_IFS 38089 test -z "$as_dir" && as_dir=. 38090 for ac_exec_ext in '' $ac_executable_extensions; do 38091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38092 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38094 break 2 38095 fi 38096 done 38097 done 38098 IFS=$as_save_IFS 38099 38100 fi 38101 fi 38102 OBJDUMP=$ac_cv_prog_OBJDUMP 38103 if test -n "$OBJDUMP"; then 38104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38105 $as_echo "$OBJDUMP" >&6; } 38106 else 38107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38108 $as_echo "no" >&6; } 38109 fi 38110 38111 38112 test -n "$OBJDUMP" && break 38113 done 38114 fi 38115 if test -z "$OBJDUMP"; then 38116 ac_ct_OBJDUMP=$OBJDUMP 38117 for ac_prog in gobjdump objdump 38118 do 38119 # Extract the first word of "$ac_prog", so it can be a program name with args. 38120 set dummy $ac_prog; ac_word=$2 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38122 $as_echo_n "checking for $ac_word... " >&6; } 38123 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38124 $as_echo_n "(cached) " >&6 38125 else 38126 if test -n "$ac_ct_OBJDUMP"; then 38127 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38128 else 38129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38130 for as_dir in $PATH 38131 do 38132 IFS=$as_save_IFS 38133 test -z "$as_dir" && as_dir=. 38134 for ac_exec_ext in '' $ac_executable_extensions; do 38135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38136 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38138 break 2 38139 fi 38140 done 38141 done 38142 IFS=$as_save_IFS 38143 38144 fi 38145 fi 38146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38147 if test -n "$ac_ct_OBJDUMP"; then 38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38149 $as_echo "$ac_ct_OBJDUMP" >&6; } 38150 else 38151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38152 $as_echo "no" >&6; } 38153 fi 38154 38155 38156 test -n "$ac_ct_OBJDUMP" && break 38157 done 38158 38159 if test "x$ac_ct_OBJDUMP" = x; then 38160 OBJDUMP="" 38161 else 38162 case $cross_compiling:$ac_tool_warned in 38163 yes:) 38164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38166 ac_tool_warned=yes ;; 38167 esac 38168 OBJDUMP=$ac_ct_OBJDUMP 38169 fi 38170 fi 38171 38172 else 38173 # If it succeeded, then it was overridden by the user. We will use it 38174 # for the tool. 38175 38176 # First remove it from the list of overridden variables, so we can test 38177 # for unknown variables in the end. 38178 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38179 38180 # Check if the provided tool contains a complete path. 38181 tool_specified="$OBJDUMP" 38182 tool_basename="${tool_specified##*/}" 38183 if test "x$tool_basename" = "x$tool_specified"; then 38184 # A command without a complete path is provided, search $PATH. 38185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38186 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38187 # Extract the first word of "$tool_basename", so it can be a program name with args. 38188 set dummy $tool_basename; ac_word=$2 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38190 $as_echo_n "checking for $ac_word... " >&6; } 38191 if ${ac_cv_path_OBJDUMP+:} false; then : 38192 $as_echo_n "(cached) " >&6 38193 else 38194 case $OBJDUMP in 38195 [\\/]* | ?:[\\/]*) 38196 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38197 ;; 38198 *) 38199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38200 for as_dir in $PATH 38201 do 38202 IFS=$as_save_IFS 38203 test -z "$as_dir" && as_dir=. 38204 for ac_exec_ext in '' $ac_executable_extensions; do 38205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38206 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38208 break 2 38209 fi 38210 done 38211 done 38212 IFS=$as_save_IFS 38213 38214 ;; 38215 esac 38216 fi 38217 OBJDUMP=$ac_cv_path_OBJDUMP 38218 if test -n "$OBJDUMP"; then 38219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38220 $as_echo "$OBJDUMP" >&6; } 38221 else 38222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38223 $as_echo "no" >&6; } 38224 fi 38225 38226 38227 if test "x$OBJDUMP" = x; then 38228 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38229 fi 38230 else 38231 # Otherwise we believe it is a complete path. Use it as it is. 38232 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38233 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38235 $as_echo_n "checking for OBJDUMP... " >&6; } 38236 if test ! -x "$tool_specified"; then 38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38238 $as_echo "not found" >&6; } 38239 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38240 fi 38241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38242 $as_echo "$tool_specified" >&6; } 38243 fi 38244 fi 38245 fi 38246 38247 38248 if test "x$OBJDUMP" != x; then 38249 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38250 # bails if argument is missing. 38251 38252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38253 38254 # First separate the path from the arguments. This will split at the first 38255 # space. 38256 complete="$OBJDUMP" 38257 path="${complete%% *}" 38258 tmp="$complete EOL" 38259 arguments="${tmp#* }" 38260 38261 # Input might be given as Windows format, start by converting to 38262 # unix format. 38263 new_path=`$CYGPATH -u "$path"` 38264 38265 # Now try to locate executable using which 38266 new_path=`$WHICH "$new_path" 2> /dev/null` 38267 # bat and cmd files are not always considered executable in cygwin causing which 38268 # to not find them 38269 if test "x$new_path" = x \ 38270 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38271 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38272 new_path=`$CYGPATH -u "$path"` 38273 fi 38274 if test "x$new_path" = x; then 38275 # Oops. Which didn't find the executable. 38276 # The splitting of arguments from the executable at a space might have been incorrect, 38277 # since paths with space are more likely in Windows. Give it another try with the whole 38278 # argument. 38279 path="$complete" 38280 arguments="EOL" 38281 new_path=`$CYGPATH -u "$path"` 38282 new_path=`$WHICH "$new_path" 2> /dev/null` 38283 # bat and cmd files are not always considered executable in cygwin causing which 38284 # to not find them 38285 if test "x$new_path" = x \ 38286 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38287 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38288 new_path=`$CYGPATH -u "$path"` 38289 fi 38290 if test "x$new_path" = x; then 38291 # It's still not found. Now this is an unrecoverable error. 38292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38293 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38294 has_space=`$ECHO "$complete" | $GREP " "` 38295 if test "x$has_space" != x; then 38296 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38297 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38298 fi 38299 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38300 fi 38301 fi 38302 38303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38306 # "foo.exe" is OK but "foo" is an error. 38307 # 38308 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38309 # It is also a way to make sure we got the proper file name for the real test later on. 38310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38311 if test "x$test_shortpath" = x; then 38312 # Short path failed, file does not exist as specified. 38313 # Try adding .exe or .cmd 38314 if test -f "${new_path}.exe"; then 38315 input_to_shortpath="${new_path}.exe" 38316 elif test -f "${new_path}.cmd"; then 38317 input_to_shortpath="${new_path}.cmd" 38318 else 38319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38320 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38321 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38322 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38323 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38324 fi 38325 else 38326 input_to_shortpath="$new_path" 38327 fi 38328 38329 # Call helper function which possibly converts this using DOS-style short mode. 38330 # If so, the updated path is stored in $new_path. 38331 new_path="$input_to_shortpath" 38332 38333 input_path="$input_to_shortpath" 38334 # Check if we need to convert this using DOS-style short mode. If the path 38335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38336 # take no chances and rewrite it. 38337 # Note: m4 eats our [], so we need to use [ and ] instead. 38338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38339 if test "x$has_forbidden_chars" != x; then 38340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38344 # Going to short mode and back again did indeed matter. Since short mode is 38345 # case insensitive, let's make it lowercase to improve readability. 38346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38347 # Now convert it back to Unix-style (cygpath) 38348 input_path=`$CYGPATH -u "$shortmode_path"` 38349 new_path="$input_path" 38350 fi 38351 fi 38352 38353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38354 if test "x$test_cygdrive_prefix" = x; then 38355 # As a simple fix, exclude /usr/bin since it's not a real path. 38356 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38358 # a path prefixed by /cygdrive for fixpath to work. 38359 new_path="$CYGWIN_ROOT_PATH$input_path" 38360 fi 38361 fi 38362 38363 # remove trailing .exe if any 38364 new_path="${new_path/%.exe/}" 38365 38366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38367 38368 # First separate the path from the arguments. This will split at the first 38369 # space. 38370 complete="$OBJDUMP" 38371 path="${complete%% *}" 38372 tmp="$complete EOL" 38373 arguments="${tmp#* }" 38374 38375 # Input might be given as Windows format, start by converting to 38376 # unix format. 38377 new_path="$path" 38378 38379 windows_path="$new_path" 38380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38381 unix_path=`$CYGPATH -u "$windows_path"` 38382 new_path="$unix_path" 38383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38385 new_path="$unix_path" 38386 fi 38387 38388 38389 # Now try to locate executable using which 38390 new_path=`$WHICH "$new_path" 2> /dev/null` 38391 38392 if test "x$new_path" = x; then 38393 # Oops. Which didn't find the executable. 38394 # The splitting of arguments from the executable at a space might have been incorrect, 38395 # since paths with space are more likely in Windows. Give it another try with the whole 38396 # argument. 38397 path="$complete" 38398 arguments="EOL" 38399 new_path="$path" 38400 38401 windows_path="$new_path" 38402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38403 unix_path=`$CYGPATH -u "$windows_path"` 38404 new_path="$unix_path" 38405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38407 new_path="$unix_path" 38408 fi 38409 38410 38411 new_path=`$WHICH "$new_path" 2> /dev/null` 38412 # bat and cmd files are not always considered executable in MSYS causing which 38413 # to not find them 38414 if test "x$new_path" = x \ 38415 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38416 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38417 new_path="$path" 38418 38419 windows_path="$new_path" 38420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38421 unix_path=`$CYGPATH -u "$windows_path"` 38422 new_path="$unix_path" 38423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38425 new_path="$unix_path" 38426 fi 38427 38428 fi 38429 38430 if test "x$new_path" = x; then 38431 # It's still not found. Now this is an unrecoverable error. 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38433 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38434 has_space=`$ECHO "$complete" | $GREP " "` 38435 if test "x$has_space" != x; then 38436 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38437 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38438 fi 38439 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38440 fi 38441 fi 38442 38443 # Now new_path has a complete unix path to the binary 38444 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38445 # Keep paths in /bin as-is, but remove trailing .exe if any 38446 new_path="${new_path/%.exe/}" 38447 # Do not save /bin paths to all_fixpath_prefixes! 38448 else 38449 # Not in mixed or Windows style, start by that. 38450 new_path=`cmd //c echo $new_path` 38451 38452 input_path="$new_path" 38453 # Check if we need to convert this using DOS-style short mode. If the path 38454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38455 # take no chances and rewrite it. 38456 # Note: m4 eats our [], so we need to use [ and ] instead. 38457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38458 if test "x$has_forbidden_chars" != x; then 38459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38461 fi 38462 38463 # Output is in $new_path 38464 38465 windows_path="$new_path" 38466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38467 unix_path=`$CYGPATH -u "$windows_path"` 38468 new_path="$unix_path" 38469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38471 new_path="$unix_path" 38472 fi 38473 38474 # remove trailing .exe if any 38475 new_path="${new_path/%.exe/}" 38476 38477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38479 fi 38480 38481 else 38482 # We're on a posix platform. Hooray! :) 38483 # First separate the path from the arguments. This will split at the first 38484 # space. 38485 complete="$OBJDUMP" 38486 path="${complete%% *}" 38487 tmp="$complete EOL" 38488 arguments="${tmp#* }" 38489 38490 # Cannot rely on the command "which" here since it doesn't always work. 38491 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38492 if test -z "$is_absolute_path"; then 38493 # Path to executable is not absolute. Find it. 38494 IFS_save="$IFS" 38495 IFS=: 38496 for p in $PATH; do 38497 if test -f "$p/$path" && test -x "$p/$path"; then 38498 new_path="$p/$path" 38499 break 38500 fi 38501 done 38502 IFS="$IFS_save" 38503 else 38504 # This is an absolute path, we can use it without further modifications. 38505 new_path="$path" 38506 fi 38507 38508 if test "x$new_path" = x; then 38509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38510 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38511 has_space=`$ECHO "$complete" | $GREP " "` 38512 if test "x$has_space" != x; then 38513 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38514 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38515 fi 38516 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38517 fi 38518 fi 38519 38520 # Now join together the path and the arguments once again 38521 if test "x$arguments" != xEOL; then 38522 new_complete="$new_path ${arguments% *}" 38523 else 38524 new_complete="$new_path" 38525 fi 38526 38527 if test "x$complete" != "x$new_complete"; then 38528 OBJDUMP="$new_complete" 38529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38530 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38531 fi 38532 38533 fi 38534 38535 38536 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 38537 # to remain in place. Otherwise the compiler will not work in some situations 38538 # in later configure checks. 38539 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 38540 PATH="$OLD_PATH" 38541 fi 38542 38543 # Restore the flags to the user specified values. 38544 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38545 CFLAGS="$ORG_CFLAGS" 38546 CXXFLAGS="$ORG_CXXFLAGS" 38547 OBJCFLAGS="$ORG_OBJCFLAGS" 38548 38549 38550 # Finally do some processing after the detection phase 38551 38552 if test "x$COMPILE_TYPE" = "xcross"; then 38553 # Now we need to find a C/C++ compiler that can build executables for the 38554 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38555 # used once. Also, we need to do this without adding a tools dir to the 38556 # path, otherwise we might pick up cross-compilers which don't use standard 38557 # naming. 38558 38559 # FIXME: we should list the discovered compilers as an exclude pattern! 38560 # If we do that, we can do this detection before POST_DETECTION, and still 38561 # find the build compilers in the tools dir, if needed. 38562 38563 38564 # Publish this variable in the help. 38565 38566 38567 if test "x$BUILD_CC" = x; then 38568 # The variable is not set by user, try to locate tool using the code snippet 38569 for ac_prog in cl cc gcc 38570 do 38571 # Extract the first word of "$ac_prog", so it can be a program name with args. 38572 set dummy $ac_prog; ac_word=$2 38573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38574 $as_echo_n "checking for $ac_word... " >&6; } 38575 if ${ac_cv_path_BUILD_CC+:} false; then : 38576 $as_echo_n "(cached) " >&6 38577 else 38578 case $BUILD_CC in 38579 [\\/]* | ?:[\\/]*) 38580 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38581 ;; 38582 *) 38583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38584 for as_dir in $PATH 38585 do 38586 IFS=$as_save_IFS 38587 test -z "$as_dir" && as_dir=. 38588 for ac_exec_ext in '' $ac_executable_extensions; do 38589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38590 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38592 break 2 38593 fi 38594 done 38595 done 38596 IFS=$as_save_IFS 38597 38598 ;; 38599 esac 38600 fi 38601 BUILD_CC=$ac_cv_path_BUILD_CC 38602 if test -n "$BUILD_CC"; then 38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38604 $as_echo "$BUILD_CC" >&6; } 38605 else 38606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38607 $as_echo "no" >&6; } 38608 fi 38609 38610 38611 test -n "$BUILD_CC" && break 38612 done 38613 38614 else 38615 # The variable is set, but is it from the command line or the environment? 38616 38617 # Try to remove the string !BUILD_CC! from our list. 38618 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38619 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38620 # If it failed, the variable was not from the command line. Ignore it, 38621 # but warn the user (except for BASH, which is always set by the calling BASH). 38622 if test "xBUILD_CC" != xBASH; then 38623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38624 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38625 fi 38626 # Try to locate tool using the code snippet 38627 for ac_prog in cl cc gcc 38628 do 38629 # Extract the first word of "$ac_prog", so it can be a program name with args. 38630 set dummy $ac_prog; ac_word=$2 38631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38632 $as_echo_n "checking for $ac_word... " >&6; } 38633 if ${ac_cv_path_BUILD_CC+:} false; then : 38634 $as_echo_n "(cached) " >&6 38635 else 38636 case $BUILD_CC in 38637 [\\/]* | ?:[\\/]*) 38638 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38639 ;; 38640 *) 38641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38642 for as_dir in $PATH 38643 do 38644 IFS=$as_save_IFS 38645 test -z "$as_dir" && as_dir=. 38646 for ac_exec_ext in '' $ac_executable_extensions; do 38647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38648 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38650 break 2 38651 fi 38652 done 38653 done 38654 IFS=$as_save_IFS 38655 38656 ;; 38657 esac 38658 fi 38659 BUILD_CC=$ac_cv_path_BUILD_CC 38660 if test -n "$BUILD_CC"; then 38661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38662 $as_echo "$BUILD_CC" >&6; } 38663 else 38664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38665 $as_echo "no" >&6; } 38666 fi 38667 38668 38669 test -n "$BUILD_CC" && break 38670 done 38671 38672 else 38673 # If it succeeded, then it was overridden by the user. We will use it 38674 # for the tool. 38675 38676 # First remove it from the list of overridden variables, so we can test 38677 # for unknown variables in the end. 38678 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38679 38680 # Check if the provided tool contains a complete path. 38681 tool_specified="$BUILD_CC" 38682 tool_basename="${tool_specified##*/}" 38683 if test "x$tool_basename" = "x$tool_specified"; then 38684 # A command without a complete path is provided, search $PATH. 38685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38686 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38687 # Extract the first word of "$tool_basename", so it can be a program name with args. 38688 set dummy $tool_basename; ac_word=$2 38689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38690 $as_echo_n "checking for $ac_word... " >&6; } 38691 if ${ac_cv_path_BUILD_CC+:} false; then : 38692 $as_echo_n "(cached) " >&6 38693 else 38694 case $BUILD_CC in 38695 [\\/]* | ?:[\\/]*) 38696 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38697 ;; 38698 *) 38699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38700 for as_dir in $PATH 38701 do 38702 IFS=$as_save_IFS 38703 test -z "$as_dir" && as_dir=. 38704 for ac_exec_ext in '' $ac_executable_extensions; do 38705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38706 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38708 break 2 38709 fi 38710 done 38711 done 38712 IFS=$as_save_IFS 38713 38714 ;; 38715 esac 38716 fi 38717 BUILD_CC=$ac_cv_path_BUILD_CC 38718 if test -n "$BUILD_CC"; then 38719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38720 $as_echo "$BUILD_CC" >&6; } 38721 else 38722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38723 $as_echo "no" >&6; } 38724 fi 38725 38726 38727 if test "x$BUILD_CC" = x; then 38728 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38729 fi 38730 else 38731 # Otherwise we believe it is a complete path. Use it as it is. 38732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38733 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38735 $as_echo_n "checking for BUILD_CC... " >&6; } 38736 if test ! -x "$tool_specified"; then 38737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38738 $as_echo "not found" >&6; } 38739 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38740 fi 38741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38742 $as_echo "$tool_specified" >&6; } 38743 fi 38744 fi 38745 fi 38746 38747 38748 38749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38750 38751 # First separate the path from the arguments. This will split at the first 38752 # space. 38753 complete="$BUILD_CC" 38754 path="${complete%% *}" 38755 tmp="$complete EOL" 38756 arguments="${tmp#* }" 38757 38758 # Input might be given as Windows format, start by converting to 38759 # unix format. 38760 new_path=`$CYGPATH -u "$path"` 38761 38762 # Now try to locate executable using which 38763 new_path=`$WHICH "$new_path" 2> /dev/null` 38764 # bat and cmd files are not always considered executable in cygwin causing which 38765 # to not find them 38766 if test "x$new_path" = x \ 38767 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38768 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38769 new_path=`$CYGPATH -u "$path"` 38770 fi 38771 if test "x$new_path" = x; then 38772 # Oops. Which didn't find the executable. 38773 # The splitting of arguments from the executable at a space might have been incorrect, 38774 # since paths with space are more likely in Windows. Give it another try with the whole 38775 # argument. 38776 path="$complete" 38777 arguments="EOL" 38778 new_path=`$CYGPATH -u "$path"` 38779 new_path=`$WHICH "$new_path" 2> /dev/null` 38780 # bat and cmd files are not always considered executable in cygwin causing which 38781 # to not find them 38782 if test "x$new_path" = x \ 38783 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38784 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38785 new_path=`$CYGPATH -u "$path"` 38786 fi 38787 if test "x$new_path" = x; then 38788 # It's still not found. Now this is an unrecoverable error. 38789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 38790 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 38791 has_space=`$ECHO "$complete" | $GREP " "` 38792 if test "x$has_space" != x; then 38793 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38794 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38795 fi 38796 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38797 fi 38798 fi 38799 38800 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38801 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38802 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38803 # "foo.exe" is OK but "foo" is an error. 38804 # 38805 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38806 # It is also a way to make sure we got the proper file name for the real test later on. 38807 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38808 if test "x$test_shortpath" = x; then 38809 # Short path failed, file does not exist as specified. 38810 # Try adding .exe or .cmd 38811 if test -f "${new_path}.exe"; then 38812 input_to_shortpath="${new_path}.exe" 38813 elif test -f "${new_path}.cmd"; then 38814 input_to_shortpath="${new_path}.cmd" 38815 else 38816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 38817 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 38818 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38819 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38820 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38821 fi 38822 else 38823 input_to_shortpath="$new_path" 38824 fi 38825 38826 # Call helper function which possibly converts this using DOS-style short mode. 38827 # If so, the updated path is stored in $new_path. 38828 new_path="$input_to_shortpath" 38829 38830 input_path="$input_to_shortpath" 38831 # Check if we need to convert this using DOS-style short mode. If the path 38832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38833 # take no chances and rewrite it. 38834 # Note: m4 eats our [], so we need to use [ and ] instead. 38835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38836 if test "x$has_forbidden_chars" != x; then 38837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38838 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38839 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38840 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38841 # Going to short mode and back again did indeed matter. Since short mode is 38842 # case insensitive, let's make it lowercase to improve readability. 38843 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38844 # Now convert it back to Unix-style (cygpath) 38845 input_path=`$CYGPATH -u "$shortmode_path"` 38846 new_path="$input_path" 38847 fi 38848 fi 38849 38850 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38851 if test "x$test_cygdrive_prefix" = x; then 38852 # As a simple fix, exclude /usr/bin since it's not a real path. 38853 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38854 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38855 # a path prefixed by /cygdrive for fixpath to work. 38856 new_path="$CYGWIN_ROOT_PATH$input_path" 38857 fi 38858 fi 38859 38860 # remove trailing .exe if any 38861 new_path="${new_path/%.exe/}" 38862 38863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38864 38865 # First separate the path from the arguments. This will split at the first 38866 # space. 38867 complete="$BUILD_CC" 38868 path="${complete%% *}" 38869 tmp="$complete EOL" 38870 arguments="${tmp#* }" 38871 38872 # Input might be given as Windows format, start by converting to 38873 # unix format. 38874 new_path="$path" 38875 38876 windows_path="$new_path" 38877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38878 unix_path=`$CYGPATH -u "$windows_path"` 38879 new_path="$unix_path" 38880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38882 new_path="$unix_path" 38883 fi 38884 38885 38886 # Now try to locate executable using which 38887 new_path=`$WHICH "$new_path" 2> /dev/null` 38888 38889 if test "x$new_path" = x; then 38890 # Oops. Which didn't find the executable. 38891 # The splitting of arguments from the executable at a space might have been incorrect, 38892 # since paths with space are more likely in Windows. Give it another try with the whole 38893 # argument. 38894 path="$complete" 38895 arguments="EOL" 38896 new_path="$path" 38897 38898 windows_path="$new_path" 38899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38900 unix_path=`$CYGPATH -u "$windows_path"` 38901 new_path="$unix_path" 38902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38904 new_path="$unix_path" 38905 fi 38906 38907 38908 new_path=`$WHICH "$new_path" 2> /dev/null` 38909 # bat and cmd files are not always considered executable in MSYS causing which 38910 # to not find them 38911 if test "x$new_path" = x \ 38912 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38913 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38914 new_path="$path" 38915 38916 windows_path="$new_path" 38917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38918 unix_path=`$CYGPATH -u "$windows_path"` 38919 new_path="$unix_path" 38920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38922 new_path="$unix_path" 38923 fi 38924 38925 fi 38926 38927 if test "x$new_path" = x; then 38928 # It's still not found. Now this is an unrecoverable error. 38929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 38930 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 38931 has_space=`$ECHO "$complete" | $GREP " "` 38932 if test "x$has_space" != x; then 38933 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38934 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38935 fi 38936 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38937 fi 38938 fi 38939 38940 # Now new_path has a complete unix path to the binary 38941 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38942 # Keep paths in /bin as-is, but remove trailing .exe if any 38943 new_path="${new_path/%.exe/}" 38944 # Do not save /bin paths to all_fixpath_prefixes! 38945 else 38946 # Not in mixed or Windows style, start by that. 38947 new_path=`cmd //c echo $new_path` 38948 38949 input_path="$new_path" 38950 # Check if we need to convert this using DOS-style short mode. If the path 38951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38952 # take no chances and rewrite it. 38953 # Note: m4 eats our [], so we need to use [ and ] instead. 38954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38955 if test "x$has_forbidden_chars" != x; then 38956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38958 fi 38959 38960 # Output is in $new_path 38961 38962 windows_path="$new_path" 38963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38964 unix_path=`$CYGPATH -u "$windows_path"` 38965 new_path="$unix_path" 38966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38968 new_path="$unix_path" 38969 fi 38970 38971 # remove trailing .exe if any 38972 new_path="${new_path/%.exe/}" 38973 38974 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38975 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38976 fi 38977 38978 else 38979 # We're on a posix platform. Hooray! :) 38980 # First separate the path from the arguments. This will split at the first 38981 # space. 38982 complete="$BUILD_CC" 38983 path="${complete%% *}" 38984 tmp="$complete EOL" 38985 arguments="${tmp#* }" 38986 38987 # Cannot rely on the command "which" here since it doesn't always work. 38988 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38989 if test -z "$is_absolute_path"; then 38990 # Path to executable is not absolute. Find it. 38991 IFS_save="$IFS" 38992 IFS=: 38993 for p in $PATH; do 38994 if test -f "$p/$path" && test -x "$p/$path"; then 38995 new_path="$p/$path" 38996 break 38997 fi 38998 done 38999 IFS="$IFS_save" 39000 else 39001 # This is an absolute path, we can use it without further modifications. 39002 new_path="$path" 39003 fi 39004 39005 if test "x$new_path" = x; then 39006 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39007 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39008 has_space=`$ECHO "$complete" | $GREP " "` 39009 if test "x$has_space" != x; then 39010 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39011 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39012 fi 39013 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39014 fi 39015 fi 39016 39017 # Now join together the path and the arguments once again 39018 if test "x$arguments" != xEOL; then 39019 new_complete="$new_path ${arguments% *}" 39020 else 39021 new_complete="$new_path" 39022 fi 39023 39024 if test "x$complete" != "x$new_complete"; then 39025 BUILD_CC="$new_complete" 39026 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39027 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39028 fi 39029 39030 39031 39032 # Publish this variable in the help. 39033 39034 39035 if test "x$BUILD_CXX" = x; then 39036 # The variable is not set by user, try to locate tool using the code snippet 39037 for ac_prog in cl CC g++ 39038 do 39039 # Extract the first word of "$ac_prog", so it can be a program name with args. 39040 set dummy $ac_prog; ac_word=$2 39041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39042 $as_echo_n "checking for $ac_word... " >&6; } 39043 if ${ac_cv_path_BUILD_CXX+:} false; then : 39044 $as_echo_n "(cached) " >&6 39045 else 39046 case $BUILD_CXX in 39047 [\\/]* | ?:[\\/]*) 39048 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39049 ;; 39050 *) 39051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39052 for as_dir in $PATH 39053 do 39054 IFS=$as_save_IFS 39055 test -z "$as_dir" && as_dir=. 39056 for ac_exec_ext in '' $ac_executable_extensions; do 39057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39058 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39060 break 2 39061 fi 39062 done 39063 done 39064 IFS=$as_save_IFS 39065 39066 ;; 39067 esac 39068 fi 39069 BUILD_CXX=$ac_cv_path_BUILD_CXX 39070 if test -n "$BUILD_CXX"; then 39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39072 $as_echo "$BUILD_CXX" >&6; } 39073 else 39074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39075 $as_echo "no" >&6; } 39076 fi 39077 39078 39079 test -n "$BUILD_CXX" && break 39080 done 39081 39082 else 39083 # The variable is set, but is it from the command line or the environment? 39084 39085 # Try to remove the string !BUILD_CXX! from our list. 39086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39088 # If it failed, the variable was not from the command line. Ignore it, 39089 # but warn the user (except for BASH, which is always set by the calling BASH). 39090 if test "xBUILD_CXX" != xBASH; then 39091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39092 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39093 fi 39094 # Try to locate tool using the code snippet 39095 for ac_prog in cl CC g++ 39096 do 39097 # Extract the first word of "$ac_prog", so it can be a program name with args. 39098 set dummy $ac_prog; ac_word=$2 39099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39100 $as_echo_n "checking for $ac_word... " >&6; } 39101 if ${ac_cv_path_BUILD_CXX+:} false; then : 39102 $as_echo_n "(cached) " >&6 39103 else 39104 case $BUILD_CXX in 39105 [\\/]* | ?:[\\/]*) 39106 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39107 ;; 39108 *) 39109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39110 for as_dir in $PATH 39111 do 39112 IFS=$as_save_IFS 39113 test -z "$as_dir" && as_dir=. 39114 for ac_exec_ext in '' $ac_executable_extensions; do 39115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39116 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39118 break 2 39119 fi 39120 done 39121 done 39122 IFS=$as_save_IFS 39123 39124 ;; 39125 esac 39126 fi 39127 BUILD_CXX=$ac_cv_path_BUILD_CXX 39128 if test -n "$BUILD_CXX"; then 39129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39130 $as_echo "$BUILD_CXX" >&6; } 39131 else 39132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39133 $as_echo "no" >&6; } 39134 fi 39135 39136 39137 test -n "$BUILD_CXX" && break 39138 done 39139 39140 else 39141 # If it succeeded, then it was overridden by the user. We will use it 39142 # for the tool. 39143 39144 # First remove it from the list of overridden variables, so we can test 39145 # for unknown variables in the end. 39146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39147 39148 # Check if the provided tool contains a complete path. 39149 tool_specified="$BUILD_CXX" 39150 tool_basename="${tool_specified##*/}" 39151 if test "x$tool_basename" = "x$tool_specified"; then 39152 # A command without a complete path is provided, search $PATH. 39153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39154 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39155 # Extract the first word of "$tool_basename", so it can be a program name with args. 39156 set dummy $tool_basename; ac_word=$2 39157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39158 $as_echo_n "checking for $ac_word... " >&6; } 39159 if ${ac_cv_path_BUILD_CXX+:} false; then : 39160 $as_echo_n "(cached) " >&6 39161 else 39162 case $BUILD_CXX in 39163 [\\/]* | ?:[\\/]*) 39164 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39165 ;; 39166 *) 39167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39168 for as_dir in $PATH 39169 do 39170 IFS=$as_save_IFS 39171 test -z "$as_dir" && as_dir=. 39172 for ac_exec_ext in '' $ac_executable_extensions; do 39173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39174 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39176 break 2 39177 fi 39178 done 39179 done 39180 IFS=$as_save_IFS 39181 39182 ;; 39183 esac 39184 fi 39185 BUILD_CXX=$ac_cv_path_BUILD_CXX 39186 if test -n "$BUILD_CXX"; then 39187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39188 $as_echo "$BUILD_CXX" >&6; } 39189 else 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39191 $as_echo "no" >&6; } 39192 fi 39193 39194 39195 if test "x$BUILD_CXX" = x; then 39196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39197 fi 39198 else 39199 # Otherwise we believe it is a complete path. Use it as it is. 39200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39201 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39203 $as_echo_n "checking for BUILD_CXX... " >&6; } 39204 if test ! -x "$tool_specified"; then 39205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39206 $as_echo "not found" >&6; } 39207 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39208 fi 39209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39210 $as_echo "$tool_specified" >&6; } 39211 fi 39212 fi 39213 fi 39214 39215 39216 39217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39218 39219 # First separate the path from the arguments. This will split at the first 39220 # space. 39221 complete="$BUILD_CXX" 39222 path="${complete%% *}" 39223 tmp="$complete EOL" 39224 arguments="${tmp#* }" 39225 39226 # Input might be given as Windows format, start by converting to 39227 # unix format. 39228 new_path=`$CYGPATH -u "$path"` 39229 39230 # Now try to locate executable using which 39231 new_path=`$WHICH "$new_path" 2> /dev/null` 39232 # bat and cmd files are not always considered executable in cygwin causing which 39233 # to not find them 39234 if test "x$new_path" = x \ 39235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39237 new_path=`$CYGPATH -u "$path"` 39238 fi 39239 if test "x$new_path" = x; then 39240 # Oops. Which didn't find the executable. 39241 # The splitting of arguments from the executable at a space might have been incorrect, 39242 # since paths with space are more likely in Windows. Give it another try with the whole 39243 # argument. 39244 path="$complete" 39245 arguments="EOL" 39246 new_path=`$CYGPATH -u "$path"` 39247 new_path=`$WHICH "$new_path" 2> /dev/null` 39248 # bat and cmd files are not always considered executable in cygwin causing which 39249 # to not find them 39250 if test "x$new_path" = x \ 39251 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39253 new_path=`$CYGPATH -u "$path"` 39254 fi 39255 if test "x$new_path" = x; then 39256 # It's still not found. Now this is an unrecoverable error. 39257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39258 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39259 has_space=`$ECHO "$complete" | $GREP " "` 39260 if test "x$has_space" != x; then 39261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39263 fi 39264 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39265 fi 39266 fi 39267 39268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39271 # "foo.exe" is OK but "foo" is an error. 39272 # 39273 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39274 # It is also a way to make sure we got the proper file name for the real test later on. 39275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39276 if test "x$test_shortpath" = x; then 39277 # Short path failed, file does not exist as specified. 39278 # Try adding .exe or .cmd 39279 if test -f "${new_path}.exe"; then 39280 input_to_shortpath="${new_path}.exe" 39281 elif test -f "${new_path}.cmd"; then 39282 input_to_shortpath="${new_path}.cmd" 39283 else 39284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39285 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39286 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39287 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39288 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39289 fi 39290 else 39291 input_to_shortpath="$new_path" 39292 fi 39293 39294 # Call helper function which possibly converts this using DOS-style short mode. 39295 # If so, the updated path is stored in $new_path. 39296 new_path="$input_to_shortpath" 39297 39298 input_path="$input_to_shortpath" 39299 # Check if we need to convert this using DOS-style short mode. If the path 39300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39301 # take no chances and rewrite it. 39302 # Note: m4 eats our [], so we need to use [ and ] instead. 39303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39304 if test "x$has_forbidden_chars" != x; then 39305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39306 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39307 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39308 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39309 # Going to short mode and back again did indeed matter. Since short mode is 39310 # case insensitive, let's make it lowercase to improve readability. 39311 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39312 # Now convert it back to Unix-style (cygpath) 39313 input_path=`$CYGPATH -u "$shortmode_path"` 39314 new_path="$input_path" 39315 fi 39316 fi 39317 39318 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39319 if test "x$test_cygdrive_prefix" = x; then 39320 # As a simple fix, exclude /usr/bin since it's not a real path. 39321 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39322 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39323 # a path prefixed by /cygdrive for fixpath to work. 39324 new_path="$CYGWIN_ROOT_PATH$input_path" 39325 fi 39326 fi 39327 39328 # remove trailing .exe if any 39329 new_path="${new_path/%.exe/}" 39330 39331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39332 39333 # First separate the path from the arguments. This will split at the first 39334 # space. 39335 complete="$BUILD_CXX" 39336 path="${complete%% *}" 39337 tmp="$complete EOL" 39338 arguments="${tmp#* }" 39339 39340 # Input might be given as Windows format, start by converting to 39341 # unix format. 39342 new_path="$path" 39343 39344 windows_path="$new_path" 39345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39346 unix_path=`$CYGPATH -u "$windows_path"` 39347 new_path="$unix_path" 39348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39350 new_path="$unix_path" 39351 fi 39352 39353 39354 # Now try to locate executable using which 39355 new_path=`$WHICH "$new_path" 2> /dev/null` 39356 39357 if test "x$new_path" = x; then 39358 # Oops. Which didn't find the executable. 39359 # The splitting of arguments from the executable at a space might have been incorrect, 39360 # since paths with space are more likely in Windows. Give it another try with the whole 39361 # argument. 39362 path="$complete" 39363 arguments="EOL" 39364 new_path="$path" 39365 39366 windows_path="$new_path" 39367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39368 unix_path=`$CYGPATH -u "$windows_path"` 39369 new_path="$unix_path" 39370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39372 new_path="$unix_path" 39373 fi 39374 39375 39376 new_path=`$WHICH "$new_path" 2> /dev/null` 39377 # bat and cmd files are not always considered executable in MSYS causing which 39378 # to not find them 39379 if test "x$new_path" = x \ 39380 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39381 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39382 new_path="$path" 39383 39384 windows_path="$new_path" 39385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39386 unix_path=`$CYGPATH -u "$windows_path"` 39387 new_path="$unix_path" 39388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39390 new_path="$unix_path" 39391 fi 39392 39393 fi 39394 39395 if test "x$new_path" = x; then 39396 # It's still not found. Now this is an unrecoverable error. 39397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39398 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39399 has_space=`$ECHO "$complete" | $GREP " "` 39400 if test "x$has_space" != x; then 39401 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39402 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39403 fi 39404 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39405 fi 39406 fi 39407 39408 # Now new_path has a complete unix path to the binary 39409 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39410 # Keep paths in /bin as-is, but remove trailing .exe if any 39411 new_path="${new_path/%.exe/}" 39412 # Do not save /bin paths to all_fixpath_prefixes! 39413 else 39414 # Not in mixed or Windows style, start by that. 39415 new_path=`cmd //c echo $new_path` 39416 39417 input_path="$new_path" 39418 # Check if we need to convert this using DOS-style short mode. If the path 39419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39420 # take no chances and rewrite it. 39421 # Note: m4 eats our [], so we need to use [ and ] instead. 39422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39423 if test "x$has_forbidden_chars" != x; then 39424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39425 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39426 fi 39427 39428 # Output is in $new_path 39429 39430 windows_path="$new_path" 39431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39432 unix_path=`$CYGPATH -u "$windows_path"` 39433 new_path="$unix_path" 39434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39436 new_path="$unix_path" 39437 fi 39438 39439 # remove trailing .exe if any 39440 new_path="${new_path/%.exe/}" 39441 39442 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39443 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39444 fi 39445 39446 else 39447 # We're on a posix platform. Hooray! :) 39448 # First separate the path from the arguments. This will split at the first 39449 # space. 39450 complete="$BUILD_CXX" 39451 path="${complete%% *}" 39452 tmp="$complete EOL" 39453 arguments="${tmp#* }" 39454 39455 # Cannot rely on the command "which" here since it doesn't always work. 39456 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39457 if test -z "$is_absolute_path"; then 39458 # Path to executable is not absolute. Find it. 39459 IFS_save="$IFS" 39460 IFS=: 39461 for p in $PATH; do 39462 if test -f "$p/$path" && test -x "$p/$path"; then 39463 new_path="$p/$path" 39464 break 39465 fi 39466 done 39467 IFS="$IFS_save" 39468 else 39469 # This is an absolute path, we can use it without further modifications. 39470 new_path="$path" 39471 fi 39472 39473 if test "x$new_path" = x; then 39474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39475 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39476 has_space=`$ECHO "$complete" | $GREP " "` 39477 if test "x$has_space" != x; then 39478 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39479 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39480 fi 39481 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39482 fi 39483 fi 39484 39485 # Now join together the path and the arguments once again 39486 if test "x$arguments" != xEOL; then 39487 new_complete="$new_path ${arguments% *}" 39488 else 39489 new_complete="$new_path" 39490 fi 39491 39492 if test "x$complete" != "x$new_complete"; then 39493 BUILD_CXX="$new_complete" 39494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39495 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39496 fi 39497 39498 39499 39500 # Publish this variable in the help. 39501 39502 39503 if test "x$BUILD_LD" = x; then 39504 # The variable is not set by user, try to locate tool using the code snippet 39505 for ac_prog in ld 39506 do 39507 # Extract the first word of "$ac_prog", so it can be a program name with args. 39508 set dummy $ac_prog; ac_word=$2 39509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39510 $as_echo_n "checking for $ac_word... " >&6; } 39511 if ${ac_cv_path_BUILD_LD+:} false; then : 39512 $as_echo_n "(cached) " >&6 39513 else 39514 case $BUILD_LD in 39515 [\\/]* | ?:[\\/]*) 39516 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39517 ;; 39518 *) 39519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39520 for as_dir in $PATH 39521 do 39522 IFS=$as_save_IFS 39523 test -z "$as_dir" && as_dir=. 39524 for ac_exec_ext in '' $ac_executable_extensions; do 39525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39526 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39528 break 2 39529 fi 39530 done 39531 done 39532 IFS=$as_save_IFS 39533 39534 ;; 39535 esac 39536 fi 39537 BUILD_LD=$ac_cv_path_BUILD_LD 39538 if test -n "$BUILD_LD"; then 39539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39540 $as_echo "$BUILD_LD" >&6; } 39541 else 39542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39543 $as_echo "no" >&6; } 39544 fi 39545 39546 39547 test -n "$BUILD_LD" && break 39548 done 39549 39550 else 39551 # The variable is set, but is it from the command line or the environment? 39552 39553 # Try to remove the string !BUILD_LD! from our list. 39554 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39555 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39556 # If it failed, the variable was not from the command line. Ignore it, 39557 # but warn the user (except for BASH, which is always set by the calling BASH). 39558 if test "xBUILD_LD" != xBASH; then 39559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39560 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39561 fi 39562 # Try to locate tool using the code snippet 39563 for ac_prog in ld 39564 do 39565 # Extract the first word of "$ac_prog", so it can be a program name with args. 39566 set dummy $ac_prog; ac_word=$2 39567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39568 $as_echo_n "checking for $ac_word... " >&6; } 39569 if ${ac_cv_path_BUILD_LD+:} false; then : 39570 $as_echo_n "(cached) " >&6 39571 else 39572 case $BUILD_LD in 39573 [\\/]* | ?:[\\/]*) 39574 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39575 ;; 39576 *) 39577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39578 for as_dir in $PATH 39579 do 39580 IFS=$as_save_IFS 39581 test -z "$as_dir" && as_dir=. 39582 for ac_exec_ext in '' $ac_executable_extensions; do 39583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39584 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39586 break 2 39587 fi 39588 done 39589 done 39590 IFS=$as_save_IFS 39591 39592 ;; 39593 esac 39594 fi 39595 BUILD_LD=$ac_cv_path_BUILD_LD 39596 if test -n "$BUILD_LD"; then 39597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39598 $as_echo "$BUILD_LD" >&6; } 39599 else 39600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39601 $as_echo "no" >&6; } 39602 fi 39603 39604 39605 test -n "$BUILD_LD" && break 39606 done 39607 39608 else 39609 # If it succeeded, then it was overridden by the user. We will use it 39610 # for the tool. 39611 39612 # First remove it from the list of overridden variables, so we can test 39613 # for unknown variables in the end. 39614 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39615 39616 # Check if the provided tool contains a complete path. 39617 tool_specified="$BUILD_LD" 39618 tool_basename="${tool_specified##*/}" 39619 if test "x$tool_basename" = "x$tool_specified"; then 39620 # A command without a complete path is provided, search $PATH. 39621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39622 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39623 # Extract the first word of "$tool_basename", so it can be a program name with args. 39624 set dummy $tool_basename; ac_word=$2 39625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39626 $as_echo_n "checking for $ac_word... " >&6; } 39627 if ${ac_cv_path_BUILD_LD+:} false; then : 39628 $as_echo_n "(cached) " >&6 39629 else 39630 case $BUILD_LD in 39631 [\\/]* | ?:[\\/]*) 39632 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39633 ;; 39634 *) 39635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39636 for as_dir in $PATH 39637 do 39638 IFS=$as_save_IFS 39639 test -z "$as_dir" && as_dir=. 39640 for ac_exec_ext in '' $ac_executable_extensions; do 39641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39642 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39644 break 2 39645 fi 39646 done 39647 done 39648 IFS=$as_save_IFS 39649 39650 ;; 39651 esac 39652 fi 39653 BUILD_LD=$ac_cv_path_BUILD_LD 39654 if test -n "$BUILD_LD"; then 39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39656 $as_echo "$BUILD_LD" >&6; } 39657 else 39658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39659 $as_echo "no" >&6; } 39660 fi 39661 39662 39663 if test "x$BUILD_LD" = x; then 39664 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39665 fi 39666 else 39667 # Otherwise we believe it is a complete path. Use it as it is. 39668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39669 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39671 $as_echo_n "checking for BUILD_LD... " >&6; } 39672 if test ! -x "$tool_specified"; then 39673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39674 $as_echo "not found" >&6; } 39675 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39676 fi 39677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39678 $as_echo "$tool_specified" >&6; } 39679 fi 39680 fi 39681 fi 39682 39683 39684 39685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39686 39687 # First separate the path from the arguments. This will split at the first 39688 # space. 39689 complete="$BUILD_LD" 39690 path="${complete%% *}" 39691 tmp="$complete EOL" 39692 arguments="${tmp#* }" 39693 39694 # Input might be given as Windows format, start by converting to 39695 # unix format. 39696 new_path=`$CYGPATH -u "$path"` 39697 39698 # Now try to locate executable using which 39699 new_path=`$WHICH "$new_path" 2> /dev/null` 39700 # bat and cmd files are not always considered executable in cygwin causing which 39701 # to not find them 39702 if test "x$new_path" = x \ 39703 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39704 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39705 new_path=`$CYGPATH -u "$path"` 39706 fi 39707 if test "x$new_path" = x; then 39708 # Oops. Which didn't find the executable. 39709 # The splitting of arguments from the executable at a space might have been incorrect, 39710 # since paths with space are more likely in Windows. Give it another try with the whole 39711 # argument. 39712 path="$complete" 39713 arguments="EOL" 39714 new_path=`$CYGPATH -u "$path"` 39715 new_path=`$WHICH "$new_path" 2> /dev/null` 39716 # bat and cmd files are not always considered executable in cygwin causing which 39717 # to not find them 39718 if test "x$new_path" = x \ 39719 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39720 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39721 new_path=`$CYGPATH -u "$path"` 39722 fi 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_LD, which resolves as \"$complete\", is not found." >&5 39726 $as_echo "$as_me: The path of BUILD_LD, 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_LD" "$LINENO" 5 39733 fi 39734 fi 39735 39736 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39737 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39738 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39739 # "foo.exe" is OK but "foo" is an error. 39740 # 39741 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39742 # It is also a way to make sure we got the proper file name for the real test later on. 39743 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39744 if test "x$test_shortpath" = x; then 39745 # Short path failed, file does not exist as specified. 39746 # Try adding .exe or .cmd 39747 if test -f "${new_path}.exe"; then 39748 input_to_shortpath="${new_path}.exe" 39749 elif test -f "${new_path}.cmd"; then 39750 input_to_shortpath="${new_path}.cmd" 39751 else 39752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39753 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39754 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39755 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39756 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39757 fi 39758 else 39759 input_to_shortpath="$new_path" 39760 fi 39761 39762 # Call helper function which possibly converts this using DOS-style short mode. 39763 # If so, the updated path is stored in $new_path. 39764 new_path="$input_to_shortpath" 39765 39766 input_path="$input_to_shortpath" 39767 # Check if we need to convert this using DOS-style short mode. If the path 39768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39769 # take no chances and rewrite it. 39770 # Note: m4 eats our [], so we need to use [ and ] instead. 39771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39772 if test "x$has_forbidden_chars" != x; then 39773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39774 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39775 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39776 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39777 # Going to short mode and back again did indeed matter. Since short mode is 39778 # case insensitive, let's make it lowercase to improve readability. 39779 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39780 # Now convert it back to Unix-style (cygpath) 39781 input_path=`$CYGPATH -u "$shortmode_path"` 39782 new_path="$input_path" 39783 fi 39784 fi 39785 39786 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39787 if test "x$test_cygdrive_prefix" = x; then 39788 # As a simple fix, exclude /usr/bin since it's not a real path. 39789 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39790 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39791 # a path prefixed by /cygdrive for fixpath to work. 39792 new_path="$CYGWIN_ROOT_PATH$input_path" 39793 fi 39794 fi 39795 39796 # remove trailing .exe if any 39797 new_path="${new_path/%.exe/}" 39798 39799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39800 39801 # First separate the path from the arguments. This will split at the first 39802 # space. 39803 complete="$BUILD_LD" 39804 path="${complete%% *}" 39805 tmp="$complete EOL" 39806 arguments="${tmp#* }" 39807 39808 # Input might be given as Windows format, start by converting to 39809 # unix format. 39810 new_path="$path" 39811 39812 windows_path="$new_path" 39813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39814 unix_path=`$CYGPATH -u "$windows_path"` 39815 new_path="$unix_path" 39816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39818 new_path="$unix_path" 39819 fi 39820 39821 39822 # Now try to locate executable using which 39823 new_path=`$WHICH "$new_path" 2> /dev/null` 39824 39825 if test "x$new_path" = x; then 39826 # Oops. Which didn't find the executable. 39827 # The splitting of arguments from the executable at a space might have been incorrect, 39828 # since paths with space are more likely in Windows. Give it another try with the whole 39829 # argument. 39830 path="$complete" 39831 arguments="EOL" 39832 new_path="$path" 39833 39834 windows_path="$new_path" 39835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39836 unix_path=`$CYGPATH -u "$windows_path"` 39837 new_path="$unix_path" 39838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39840 new_path="$unix_path" 39841 fi 39842 39843 39844 new_path=`$WHICH "$new_path" 2> /dev/null` 39845 # bat and cmd files are not always considered executable in MSYS causing which 39846 # to not find them 39847 if test "x$new_path" = x \ 39848 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39849 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39850 new_path="$path" 39851 39852 windows_path="$new_path" 39853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39854 unix_path=`$CYGPATH -u "$windows_path"` 39855 new_path="$unix_path" 39856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39858 new_path="$unix_path" 39859 fi 39860 39861 fi 39862 39863 if test "x$new_path" = x; then 39864 # It's still not found. Now this is an unrecoverable error. 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39866 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39867 has_space=`$ECHO "$complete" | $GREP " "` 39868 if test "x$has_space" != x; then 39869 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39871 fi 39872 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39873 fi 39874 fi 39875 39876 # Now new_path has a complete unix path to the binary 39877 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39878 # Keep paths in /bin as-is, but remove trailing .exe if any 39879 new_path="${new_path/%.exe/}" 39880 # Do not save /bin paths to all_fixpath_prefixes! 39881 else 39882 # Not in mixed or Windows style, start by that. 39883 new_path=`cmd //c echo $new_path` 39884 39885 input_path="$new_path" 39886 # Check if we need to convert this using DOS-style short mode. If the path 39887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39888 # take no chances and rewrite it. 39889 # Note: m4 eats our [], so we need to use [ and ] instead. 39890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39891 if test "x$has_forbidden_chars" != x; then 39892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39893 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39894 fi 39895 39896 # Output is in $new_path 39897 39898 windows_path="$new_path" 39899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39900 unix_path=`$CYGPATH -u "$windows_path"` 39901 new_path="$unix_path" 39902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39904 new_path="$unix_path" 39905 fi 39906 39907 # remove trailing .exe if any 39908 new_path="${new_path/%.exe/}" 39909 39910 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39911 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39912 fi 39913 39914 else 39915 # We're on a posix platform. Hooray! :) 39916 # First separate the path from the arguments. This will split at the first 39917 # space. 39918 complete="$BUILD_LD" 39919 path="${complete%% *}" 39920 tmp="$complete EOL" 39921 arguments="${tmp#* }" 39922 39923 # Cannot rely on the command "which" here since it doesn't always work. 39924 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39925 if test -z "$is_absolute_path"; then 39926 # Path to executable is not absolute. Find it. 39927 IFS_save="$IFS" 39928 IFS=: 39929 for p in $PATH; do 39930 if test -f "$p/$path" && test -x "$p/$path"; then 39931 new_path="$p/$path" 39932 break 39933 fi 39934 done 39935 IFS="$IFS_save" 39936 else 39937 # This is an absolute path, we can use it without further modifications. 39938 new_path="$path" 39939 fi 39940 39941 if test "x$new_path" = x; then 39942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39943 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39944 has_space=`$ECHO "$complete" | $GREP " "` 39945 if test "x$has_space" != x; then 39946 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39947 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39948 fi 39949 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39950 fi 39951 fi 39952 39953 # Now join together the path and the arguments once again 39954 if test "x$arguments" != xEOL; then 39955 new_complete="$new_path ${arguments% *}" 39956 else 39957 new_complete="$new_path" 39958 fi 39959 39960 if test "x$complete" != "x$new_complete"; then 39961 BUILD_LD="$new_complete" 39962 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 39963 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 39964 fi 39965 39966 else 39967 # If we are not cross compiling, use the normal target compilers for 39968 # building the build platform executables. 39969 BUILD_CC="$CC" 39970 BUILD_CXX="$CXX" 39971 BUILD_LD="$LD" 39972 fi 39973 39974 39975 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39976 # For hotspot, we need these in Windows mixed path, 39977 # so rewrite them all. Need added .exe suffix. 39978 HOTSPOT_CXX="$CXX.exe" 39979 HOTSPOT_LD="$LD.exe" 39980 HOTSPOT_MT="$MT.exe" 39981 HOTSPOT_RC="$RC.exe" 39982 39983 unix_path="$HOTSPOT_CXX" 39984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39985 windows_path=`$CYGPATH -m "$unix_path"` 39986 HOTSPOT_CXX="$windows_path" 39987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39988 windows_path=`cmd //c echo $unix_path` 39989 HOTSPOT_CXX="$windows_path" 39990 fi 39991 39992 39993 unix_path="$HOTSPOT_LD" 39994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39995 windows_path=`$CYGPATH -m "$unix_path"` 39996 HOTSPOT_LD="$windows_path" 39997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39998 windows_path=`cmd //c echo $unix_path` 39999 HOTSPOT_LD="$windows_path" 40000 fi 40001 40002 40003 unix_path="$HOTSPOT_MT" 40004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40005 windows_path=`$CYGPATH -m "$unix_path"` 40006 HOTSPOT_MT="$windows_path" 40007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40008 windows_path=`cmd //c echo $unix_path` 40009 HOTSPOT_MT="$windows_path" 40010 fi 40011 40012 40013 unix_path="$HOTSPOT_RC" 40014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40015 windows_path=`$CYGPATH -m "$unix_path"` 40016 HOTSPOT_RC="$windows_path" 40017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40018 windows_path=`cmd //c echo $unix_path` 40019 HOTSPOT_RC="$windows_path" 40020 fi 40021 40022 40023 40024 else 40025 HOTSPOT_CXX="$CXX" 40026 HOTSPOT_LD="$LD" 40027 fi 40028 40029 40030 40031 if test "x$TOOLCHAIN_TYPE" = xclang; then 40032 USE_CLANG=true 40033 fi 40034 40035 40036 # LDEXE is the linker to use, when creating executables. Not really used. 40037 # FIXME: These should just be removed! 40038 LDEXE="$LD" 40039 LDEXECXX="$LDCXX" 40040 40041 40042 40043 40044 # The package path is used only on macosx? 40045 # FIXME: clean this up, and/or move it elsewhere. 40046 PACKAGE_PATH=/opt/local 40047 40048 40049 # Check for extra potential brokenness. 40050 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40051 # On Windows, double-check that we got the right compiler. 40052 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40053 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40054 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40055 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40056 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 40057 fi 40058 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40059 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40060 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40061 fi 40062 fi 40063 fi 40064 40065 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40066 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40067 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40068 # This is later checked when setting flags. 40069 fi 40070 40071 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40072 # in executable.' 40073 USING_BROKEN_SUSE_LD=no 40074 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40076 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40077 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40078 echo "int main() { }" > main.c 40079 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40081 $as_echo "no" >&6; } 40082 USING_BROKEN_SUSE_LD=no 40083 else 40084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40085 $as_echo "yes" >&6; } 40086 USING_BROKEN_SUSE_LD=yes 40087 fi 40088 rm -rf version-script.map main.c 40089 fi 40090 40091 40092 40093 # Setup the JTReg Regression Test Harness. 40094 40095 40096 # Check whether --with-jtreg was given. 40097 if test "${with_jtreg+set}" = set; then : 40098 withval=$with_jtreg; 40099 else 40100 with_jtreg=no 40101 fi 40102 40103 40104 if test "x$with_jtreg" = xno; then 40105 # jtreg disabled 40106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40107 $as_echo_n "checking for jtreg... " >&6; } 40108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40109 $as_echo "no" >&6; } 40110 else 40111 if test "x$with_jtreg" != xyes; then 40112 # with path specified. 40113 JT_HOME="$with_jtreg" 40114 fi 40115 40116 if test "x$JT_HOME" != x; then 40117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40118 $as_echo_n "checking for jtreg... " >&6; } 40119 40120 # use JT_HOME enviroment var. 40121 40122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40123 40124 # Input might be given as Windows format, start by converting to 40125 # unix format. 40126 path="$JT_HOME" 40127 new_path=`$CYGPATH -u "$path"` 40128 40129 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40130 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40131 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40132 # "foo.exe" is OK but "foo" is an error. 40133 # 40134 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40135 # It is also a way to make sure we got the proper file name for the real test later on. 40136 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40137 if test "x$test_shortpath" = x; then 40138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40139 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40140 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40141 fi 40142 40143 # Call helper function which possibly converts this using DOS-style short mode. 40144 # If so, the updated path is stored in $new_path. 40145 40146 input_path="$new_path" 40147 # Check if we need to convert this using DOS-style short mode. If the path 40148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40149 # take no chances and rewrite it. 40150 # Note: m4 eats our [], so we need to use [ and ] instead. 40151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40152 if test "x$has_forbidden_chars" != x; then 40153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40154 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40155 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40156 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40157 # Going to short mode and back again did indeed matter. Since short mode is 40158 # case insensitive, let's make it lowercase to improve readability. 40159 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40160 # Now convert it back to Unix-style (cygpath) 40161 input_path=`$CYGPATH -u "$shortmode_path"` 40162 new_path="$input_path" 40163 fi 40164 fi 40165 40166 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40167 if test "x$test_cygdrive_prefix" = x; then 40168 # As a simple fix, exclude /usr/bin since it's not a real path. 40169 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40170 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40171 # a path prefixed by /cygdrive for fixpath to work. 40172 new_path="$CYGWIN_ROOT_PATH$input_path" 40173 fi 40174 fi 40175 40176 40177 if test "x$path" != "x$new_path"; then 40178 JT_HOME="$new_path" 40179 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40180 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40181 fi 40182 40183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40184 40185 path="$JT_HOME" 40186 has_colon=`$ECHO $path | $GREP ^.:` 40187 new_path="$path" 40188 if test "x$has_colon" = x; then 40189 # Not in mixed or Windows style, start by that. 40190 new_path=`cmd //c echo $path` 40191 fi 40192 40193 40194 input_path="$new_path" 40195 # Check if we need to convert this using DOS-style short mode. If the path 40196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40197 # take no chances and rewrite it. 40198 # Note: m4 eats our [], so we need to use [ and ] instead. 40199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40200 if test "x$has_forbidden_chars" != x; then 40201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40202 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40203 fi 40204 40205 40206 windows_path="$new_path" 40207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40208 unix_path=`$CYGPATH -u "$windows_path"` 40209 new_path="$unix_path" 40210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40212 new_path="$unix_path" 40213 fi 40214 40215 if test "x$path" != "x$new_path"; then 40216 JT_HOME="$new_path" 40217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40218 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40219 fi 40220 40221 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40222 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40223 40224 else 40225 # We're on a posix platform. Hooray! :) 40226 path="$JT_HOME" 40227 has_space=`$ECHO "$path" | $GREP " "` 40228 if test "x$has_space" != x; then 40229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40230 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40231 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40232 fi 40233 40234 # Use eval to expand a potential ~ 40235 eval path="$path" 40236 if test ! -f "$path" && test ! -d "$path"; then 40237 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40238 fi 40239 40240 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40241 fi 40242 40243 40244 # jtreg win32 script works for everybody 40245 JTREGEXE="$JT_HOME/bin/jtreg" 40246 40247 if test ! -f "$JTREGEXE"; then 40248 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40249 fi 40250 40251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40252 $as_echo "$JTREGEXE" >&6; } 40253 else 40254 # try to find jtreg on path 40255 40256 40257 40258 # Publish this variable in the help. 40259 40260 40261 if test "x$JTREGEXE" = x; then 40262 # The variable is not set by user, try to locate tool using the code snippet 40263 for ac_prog in jtreg 40264 do 40265 # Extract the first word of "$ac_prog", so it can be a program name with args. 40266 set dummy $ac_prog; ac_word=$2 40267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40268 $as_echo_n "checking for $ac_word... " >&6; } 40269 if ${ac_cv_path_JTREGEXE+:} false; then : 40270 $as_echo_n "(cached) " >&6 40271 else 40272 case $JTREGEXE in 40273 [\\/]* | ?:[\\/]*) 40274 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40275 ;; 40276 *) 40277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40278 for as_dir in $PATH 40279 do 40280 IFS=$as_save_IFS 40281 test -z "$as_dir" && as_dir=. 40282 for ac_exec_ext in '' $ac_executable_extensions; do 40283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40284 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40286 break 2 40287 fi 40288 done 40289 done 40290 IFS=$as_save_IFS 40291 40292 ;; 40293 esac 40294 fi 40295 JTREGEXE=$ac_cv_path_JTREGEXE 40296 if test -n "$JTREGEXE"; then 40297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40298 $as_echo "$JTREGEXE" >&6; } 40299 else 40300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40301 $as_echo "no" >&6; } 40302 fi 40303 40304 40305 test -n "$JTREGEXE" && break 40306 done 40307 40308 else 40309 # The variable is set, but is it from the command line or the environment? 40310 40311 # Try to remove the string !JTREGEXE! from our list. 40312 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40313 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40314 # If it failed, the variable was not from the command line. Ignore it, 40315 # but warn the user (except for BASH, which is always set by the calling BASH). 40316 if test "xJTREGEXE" != xBASH; then 40317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40318 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40319 fi 40320 # Try to locate tool using the code snippet 40321 for ac_prog in jtreg 40322 do 40323 # Extract the first word of "$ac_prog", so it can be a program name with args. 40324 set dummy $ac_prog; ac_word=$2 40325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40326 $as_echo_n "checking for $ac_word... " >&6; } 40327 if ${ac_cv_path_JTREGEXE+:} false; then : 40328 $as_echo_n "(cached) " >&6 40329 else 40330 case $JTREGEXE in 40331 [\\/]* | ?:[\\/]*) 40332 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40333 ;; 40334 *) 40335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40336 for as_dir in $PATH 40337 do 40338 IFS=$as_save_IFS 40339 test -z "$as_dir" && as_dir=. 40340 for ac_exec_ext in '' $ac_executable_extensions; do 40341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40342 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40344 break 2 40345 fi 40346 done 40347 done 40348 IFS=$as_save_IFS 40349 40350 ;; 40351 esac 40352 fi 40353 JTREGEXE=$ac_cv_path_JTREGEXE 40354 if test -n "$JTREGEXE"; then 40355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40356 $as_echo "$JTREGEXE" >&6; } 40357 else 40358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40359 $as_echo "no" >&6; } 40360 fi 40361 40362 40363 test -n "$JTREGEXE" && break 40364 done 40365 40366 else 40367 # If it succeeded, then it was overridden by the user. We will use it 40368 # for the tool. 40369 40370 # First remove it from the list of overridden variables, so we can test 40371 # for unknown variables in the end. 40372 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40373 40374 # Check if the provided tool contains a complete path. 40375 tool_specified="$JTREGEXE" 40376 tool_basename="${tool_specified##*/}" 40377 if test "x$tool_basename" = "x$tool_specified"; then 40378 # A command without a complete path is provided, search $PATH. 40379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40380 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40381 # Extract the first word of "$tool_basename", so it can be a program name with args. 40382 set dummy $tool_basename; ac_word=$2 40383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40384 $as_echo_n "checking for $ac_word... " >&6; } 40385 if ${ac_cv_path_JTREGEXE+:} false; then : 40386 $as_echo_n "(cached) " >&6 40387 else 40388 case $JTREGEXE in 40389 [\\/]* | ?:[\\/]*) 40390 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40391 ;; 40392 *) 40393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40394 for as_dir in $PATH 40395 do 40396 IFS=$as_save_IFS 40397 test -z "$as_dir" && as_dir=. 40398 for ac_exec_ext in '' $ac_executable_extensions; do 40399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40400 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40402 break 2 40403 fi 40404 done 40405 done 40406 IFS=$as_save_IFS 40407 40408 ;; 40409 esac 40410 fi 40411 JTREGEXE=$ac_cv_path_JTREGEXE 40412 if test -n "$JTREGEXE"; then 40413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40414 $as_echo "$JTREGEXE" >&6; } 40415 else 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40417 $as_echo "no" >&6; } 40418 fi 40419 40420 40421 if test "x$JTREGEXE" = x; then 40422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40423 fi 40424 else 40425 # Otherwise we believe it is a complete path. Use it as it is. 40426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40427 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40429 $as_echo_n "checking for JTREGEXE... " >&6; } 40430 if test ! -x "$tool_specified"; then 40431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40432 $as_echo "not found" >&6; } 40433 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40434 fi 40435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40436 $as_echo "$tool_specified" >&6; } 40437 fi 40438 fi 40439 fi 40440 40441 40442 40443 if test "x$JTREGEXE" = x; then 40444 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40445 fi 40446 40447 40448 JT_HOME="`$DIRNAME $JTREGEXE`" 40449 fi 40450 fi 40451 40452 40453 40454 40455 40456 40457 # Option used to tell the compiler whether to create 32- or 64-bit executables 40458 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40459 COMPILER_TARGET_BITS_FLAG="-q" 40460 else 40461 COMPILER_TARGET_BITS_FLAG="-m" 40462 fi 40463 40464 40465 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40466 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40467 ARFLAGS="-r" 40468 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40469 ARFLAGS="-X64" 40470 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40471 # lib.exe is used as AR to create static libraries. 40472 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40473 else 40474 ARFLAGS="" 40475 fi 40476 40477 40478 ## Setup strip. 40479 # FIXME: should this really be per platform, or should it be per toolchain type? 40480 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40481 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40482 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40483 STRIPFLAGS="-g" 40484 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40485 STRIPFLAGS="-x" 40486 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40487 STRIPFLAGS="-S" 40488 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40489 STRIPFLAGS="-X32_64" 40490 fi 40491 40492 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40493 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40494 fi 40495 40496 40497 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40498 # FIXME: break out into MCSFLAGS 40499 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40500 fi 40501 40502 40503 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40504 CC_OUT_OPTION=-Fo 40505 EXE_OUT_OPTION=-out: 40506 LD_OUT_OPTION=-out: 40507 AR_OUT_OPTION=-out: 40508 else 40509 # The option used to specify the target .o,.a or .so file. 40510 # When compiling, how to specify the to be created object file. 40511 CC_OUT_OPTION='-o$(SPACE)' 40512 # When linking, how to specify the to be created executable. 40513 EXE_OUT_OPTION='-o$(SPACE)' 40514 # When linking, how to specify the to be created dynamically linkable library. 40515 LD_OUT_OPTION='-o$(SPACE)' 40516 # When archiving, how to specify the to be create static archive for object files. 40517 AR_OUT_OPTION='rcs$(SPACE)' 40518 fi 40519 40520 40521 40522 40523 40524 # On Windows, we need to set RC flags. 40525 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40526 RC_FLAGS="-nologo -l 0x409 -r" 40527 if test "x$VARIANT" = xOPT; then 40528 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40529 fi 40530 40531 # The version variables used to create RC_FLAGS may be overridden 40532 # in a custom configure script, or possibly the command line. 40533 # Let those variables be expanded at make time in spec.gmk. 40534 # The \$ are escaped to the shell, and the $(...) variables 40535 # are evaluated by make. 40536 RC_FLAGS="$RC_FLAGS \ 40537 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40538 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40539 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40540 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \ 40541 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40542 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40543 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40544 fi 40545 40546 40547 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40548 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40549 CCXXFLAGS="$CCXXFLAGS -nologo" 40550 fi 40551 40552 if test "x$SYSROOT" != "x"; then 40553 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40554 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40555 # Solaris Studio does not have a concept of sysroot. Instead we must 40556 # make sure the default include and lib dirs are appended to each 40557 # compile and link command line. 40558 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 40559 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 40560 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 40561 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 40562 fi 40563 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40564 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 40565 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 40566 elif test "x$TOOLCHAIN_TYPE" = xclang; then 40567 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 40568 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 40569 fi 40570 # Propagate the sysroot args to hotspot 40571 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 40572 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 40573 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 40574 fi 40575 40576 40577 40578 40579 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40580 40581 # Now we can test some aspects on the target using configure macros. 40582 40583 40584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40585 $as_echo_n "checking for ANSI C header files... " >&6; } 40586 if ${ac_cv_header_stdc+:} false; then : 40587 $as_echo_n "(cached) " >&6 40588 else 40589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40590 /* end confdefs.h. */ 40591 #include <stdlib.h> 40592 #include <stdarg.h> 40593 #include <string.h> 40594 #include <float.h> 40595 40596 int 40597 main () 40598 { 40599 40600 ; 40601 return 0; 40602 } 40603 _ACEOF 40604 if ac_fn_cxx_try_compile "$LINENO"; then : 40605 ac_cv_header_stdc=yes 40606 else 40607 ac_cv_header_stdc=no 40608 fi 40609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40610 40611 if test $ac_cv_header_stdc = yes; then 40612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40614 /* end confdefs.h. */ 40615 #include <string.h> 40616 40617 _ACEOF 40618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40619 $EGREP "memchr" >/dev/null 2>&1; then : 40620 40621 else 40622 ac_cv_header_stdc=no 40623 fi 40624 rm -f conftest* 40625 40626 fi 40627 40628 if test $ac_cv_header_stdc = yes; then 40629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40631 /* end confdefs.h. */ 40632 #include <stdlib.h> 40633 40634 _ACEOF 40635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40636 $EGREP "free" >/dev/null 2>&1; then : 40637 40638 else 40639 ac_cv_header_stdc=no 40640 fi 40641 rm -f conftest* 40642 40643 fi 40644 40645 if test $ac_cv_header_stdc = yes; then 40646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40647 if test "$cross_compiling" = yes; then : 40648 : 40649 else 40650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40651 /* end confdefs.h. */ 40652 #include <ctype.h> 40653 #include <stdlib.h> 40654 #if ((' ' & 0x0FF) == 0x020) 40655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40657 #else 40658 # define ISLOWER(c) \ 40659 (('a' <= (c) && (c) <= 'i') \ 40660 || ('j' <= (c) && (c) <= 'r') \ 40661 || ('s' <= (c) && (c) <= 'z')) 40662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40663 #endif 40664 40665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40666 int 40667 main () 40668 { 40669 int i; 40670 for (i = 0; i < 256; i++) 40671 if (XOR (islower (i), ISLOWER (i)) 40672 || toupper (i) != TOUPPER (i)) 40673 return 2; 40674 return 0; 40675 } 40676 _ACEOF 40677 if ac_fn_cxx_try_run "$LINENO"; then : 40678 40679 else 40680 ac_cv_header_stdc=no 40681 fi 40682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40683 conftest.$ac_objext conftest.beam conftest.$ac_ext 40684 fi 40685 40686 fi 40687 fi 40688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40689 $as_echo "$ac_cv_header_stdc" >&6; } 40690 if test $ac_cv_header_stdc = yes; then 40691 40692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40693 40694 fi 40695 40696 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40697 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40698 inttypes.h stdint.h unistd.h 40699 do : 40700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40701 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40702 " 40703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40704 cat >>confdefs.h <<_ACEOF 40705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40706 _ACEOF 40707 40708 fi 40709 40710 done 40711 40712 40713 40714 ############################################################################### 40715 # 40716 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40717 # (The JVM can use 32 or 64 bit Java pointers but that decision 40718 # is made at runtime.) 40719 # 40720 40721 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40722 # Always specify -m flag on Solaris 40723 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40724 40725 # When we add flags to the "official" CFLAGS etc, we need to 40726 # keep track of these additions in ADDED_CFLAGS etc. These 40727 # will later be checked to make sure only controlled additions 40728 # have been made to CFLAGS etc. 40729 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40730 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40731 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40732 40733 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40734 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40735 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40736 40737 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40738 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40739 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40740 40741 elif test "x$COMPILE_TYPE" = xreduced; then 40742 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40743 # Specify -m if running reduced on other Posix platforms 40744 40745 # When we add flags to the "official" CFLAGS etc, we need to 40746 # keep track of these additions in ADDED_CFLAGS etc. These 40747 # will later be checked to make sure only controlled additions 40748 # have been made to CFLAGS etc. 40749 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40750 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40751 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40752 40753 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40754 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40755 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40756 40757 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40758 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40759 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40760 40761 fi 40762 fi 40763 40764 # Make compilation sanity check 40765 for ac_header in stdio.h 40766 do : 40767 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40768 if test "x$ac_cv_header_stdio_h" = xyes; then : 40769 cat >>confdefs.h <<_ACEOF 40770 #define HAVE_STDIO_H 1 40771 _ACEOF 40772 40773 else 40774 40775 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40776 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40777 if test "x$COMPILE_TYPE" = xreduced; then 40778 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40779 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40780 elif test "x$COMPILE_TYPE" = xcross; then 40781 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40782 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40783 fi 40784 as_fn_error $? "Cannot continue." "$LINENO" 5 40785 40786 fi 40787 40788 done 40789 40790 40791 # The cast to long int works around a bug in the HP C Compiler 40792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40794 # This bug is HP SR number 8606223364. 40795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40796 $as_echo_n "checking size of int *... " >&6; } 40797 if ${ac_cv_sizeof_int_p+:} false; then : 40798 $as_echo_n "(cached) " >&6 40799 else 40800 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40801 40802 else 40803 if test "$ac_cv_type_int_p" = yes; then 40804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40806 as_fn_error 77 "cannot compute sizeof (int *) 40807 See \`config.log' for more details" "$LINENO" 5; } 40808 else 40809 ac_cv_sizeof_int_p=0 40810 fi 40811 fi 40812 40813 fi 40814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40815 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40816 40817 40818 40819 cat >>confdefs.h <<_ACEOF 40820 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40821 _ACEOF 40822 40823 40824 40825 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40826 if test "x$ac_cv_sizeof_int_p" = x; then 40827 # The test failed, lets stick to the assumed value. 40828 { $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 40829 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 40830 else 40831 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 40832 40833 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 40834 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 40835 # Let's try to implicitely set the compilers target architecture and retry the test 40836 { $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 40837 $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;} 40838 { $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 40839 $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;} 40840 40841 # When we add flags to the "official" CFLAGS etc, we need to 40842 # keep track of these additions in ADDED_CFLAGS etc. These 40843 # will later be checked to make sure only controlled additions 40844 # have been made to CFLAGS etc. 40845 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40846 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40847 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40848 40849 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40850 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40851 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40852 40853 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40854 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40855 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40856 40857 40858 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 40859 unset ac_cv_sizeof_int_p 40860 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 40861 cat >>confdefs.h <<_ACEOF 40862 #undef SIZEOF_INT_P 40863 _ACEOF 40864 40865 # The cast to long int works around a bug in the HP C Compiler 40866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40868 # This bug is HP SR number 8606223364. 40869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40870 $as_echo_n "checking size of int *... " >&6; } 40871 if ${ac_cv_sizeof_int_p+:} false; then : 40872 $as_echo_n "(cached) " >&6 40873 else 40874 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40875 40876 else 40877 if test "$ac_cv_type_int_p" = yes; then 40878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40880 as_fn_error 77 "cannot compute sizeof (int *) 40881 See \`config.log' for more details" "$LINENO" 5; } 40882 else 40883 ac_cv_sizeof_int_p=0 40884 fi 40885 fi 40886 40887 fi 40888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40889 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40890 40891 40892 40893 cat >>confdefs.h <<_ACEOF 40894 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40895 _ACEOF 40896 40897 40898 40899 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 40900 40901 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 40902 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 40903 fi 40904 fi 40905 fi 40906 40907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 40908 $as_echo_n "checking for target address size... " >&6; } 40909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 40910 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 40911 40912 40913 ############################################################################### 40914 # 40915 # Is the target little of big endian? 40916 # 40917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 40918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 40919 if ${ac_cv_c_bigendian+:} false; then : 40920 $as_echo_n "(cached) " >&6 40921 else 40922 ac_cv_c_bigendian=unknown 40923 # See if we're dealing with a universal compiler. 40924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40925 /* end confdefs.h. */ 40926 #ifndef __APPLE_CC__ 40927 not a universal capable compiler 40928 #endif 40929 typedef int dummy; 40930 40931 _ACEOF 40932 if ac_fn_cxx_try_compile "$LINENO"; then : 40933 40934 # Check for potential -arch flags. It is not universal unless 40935 # there are at least two -arch flags with different values. 40936 ac_arch= 40937 ac_prev= 40938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 40939 if test -n "$ac_prev"; then 40940 case $ac_word in 40941 i?86 | x86_64 | ppc | ppc64) 40942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 40943 ac_arch=$ac_word 40944 else 40945 ac_cv_c_bigendian=universal 40946 break 40947 fi 40948 ;; 40949 esac 40950 ac_prev= 40951 elif test "x$ac_word" = "x-arch"; then 40952 ac_prev=arch 40953 fi 40954 done 40955 fi 40956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40957 if test $ac_cv_c_bigendian = unknown; then 40958 # See if sys/param.h defines the BYTE_ORDER macro. 40959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40960 /* end confdefs.h. */ 40961 #include <sys/types.h> 40962 #include <sys/param.h> 40963 40964 int 40965 main () 40966 { 40967 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 40968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 40969 && LITTLE_ENDIAN) 40970 bogus endian macros 40971 #endif 40972 40973 ; 40974 return 0; 40975 } 40976 _ACEOF 40977 if ac_fn_cxx_try_compile "$LINENO"; then : 40978 # It does; now see whether it defined to BIG_ENDIAN or not. 40979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40980 /* end confdefs.h. */ 40981 #include <sys/types.h> 40982 #include <sys/param.h> 40983 40984 int 40985 main () 40986 { 40987 #if BYTE_ORDER != BIG_ENDIAN 40988 not big endian 40989 #endif 40990 40991 ; 40992 return 0; 40993 } 40994 _ACEOF 40995 if ac_fn_cxx_try_compile "$LINENO"; then : 40996 ac_cv_c_bigendian=yes 40997 else 40998 ac_cv_c_bigendian=no 40999 fi 41000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41001 fi 41002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41003 fi 41004 if test $ac_cv_c_bigendian = unknown; then 41005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41007 /* end confdefs.h. */ 41008 #include <limits.h> 41009 41010 int 41011 main () 41012 { 41013 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41014 bogus endian macros 41015 #endif 41016 41017 ; 41018 return 0; 41019 } 41020 _ACEOF 41021 if ac_fn_cxx_try_compile "$LINENO"; then : 41022 # It does; now see whether it defined to _BIG_ENDIAN or not. 41023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41024 /* end confdefs.h. */ 41025 #include <limits.h> 41026 41027 int 41028 main () 41029 { 41030 #ifndef _BIG_ENDIAN 41031 not big endian 41032 #endif 41033 41034 ; 41035 return 0; 41036 } 41037 _ACEOF 41038 if ac_fn_cxx_try_compile "$LINENO"; then : 41039 ac_cv_c_bigendian=yes 41040 else 41041 ac_cv_c_bigendian=no 41042 fi 41043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41044 fi 41045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41046 fi 41047 if test $ac_cv_c_bigendian = unknown; then 41048 # Compile a test program. 41049 if test "$cross_compiling" = yes; then : 41050 # Try to guess by grepping values from an object file. 41051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41052 /* end confdefs.h. */ 41053 short int ascii_mm[] = 41054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41055 short int ascii_ii[] = 41056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41057 int use_ascii (int i) { 41058 return ascii_mm[i] + ascii_ii[i]; 41059 } 41060 short int ebcdic_ii[] = 41061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41062 short int ebcdic_mm[] = 41063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41064 int use_ebcdic (int i) { 41065 return ebcdic_mm[i] + ebcdic_ii[i]; 41066 } 41067 extern int foo; 41068 41069 int 41070 main () 41071 { 41072 return use_ascii (foo) == use_ebcdic (foo); 41073 ; 41074 return 0; 41075 } 41076 _ACEOF 41077 if ac_fn_cxx_try_compile "$LINENO"; then : 41078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41079 ac_cv_c_bigendian=yes 41080 fi 41081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41082 if test "$ac_cv_c_bigendian" = unknown; then 41083 ac_cv_c_bigendian=no 41084 else 41085 # finding both strings is unlikely to happen, but who knows? 41086 ac_cv_c_bigendian=unknown 41087 fi 41088 fi 41089 fi 41090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41091 else 41092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41093 /* end confdefs.h. */ 41094 $ac_includes_default 41095 int 41096 main () 41097 { 41098 41099 /* Are we little or big endian? From Harbison&Steele. */ 41100 union 41101 { 41102 long int l; 41103 char c[sizeof (long int)]; 41104 } u; 41105 u.l = 1; 41106 return u.c[sizeof (long int) - 1] == 1; 41107 41108 ; 41109 return 0; 41110 } 41111 _ACEOF 41112 if ac_fn_cxx_try_run "$LINENO"; then : 41113 ac_cv_c_bigendian=no 41114 else 41115 ac_cv_c_bigendian=yes 41116 fi 41117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41118 conftest.$ac_objext conftest.beam conftest.$ac_ext 41119 fi 41120 41121 fi 41122 fi 41123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41124 $as_echo "$ac_cv_c_bigendian" >&6; } 41125 case $ac_cv_c_bigendian in #( 41126 yes) 41127 ENDIAN="big";; #( 41128 no) 41129 ENDIAN="little" ;; #( 41130 universal) 41131 ENDIAN="universal_endianness" 41132 ;; #( 41133 *) 41134 ENDIAN="unknown" ;; 41135 esac 41136 41137 41138 if test "x$ENDIAN" = xuniversal_endianness; then 41139 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41140 fi 41141 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41142 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 41143 fi 41144 41145 41146 # Configure flags for the tools 41147 41148 ############################################################################### 41149 # 41150 # How to compile shared libraries. 41151 # 41152 41153 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41154 PICFLAG="-fPIC" 41155 C_FLAG_REORDER='' 41156 CXX_FLAG_REORDER='' 41157 41158 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41159 # Linking is different on MacOSX 41160 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41161 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41162 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41163 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41164 SET_SHARED_LIBRARY_MAPFILE='' 41165 else 41166 # Default works for linux, might work on other platforms as well. 41167 SHARED_LIBRARY_FLAGS='-shared' 41168 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41169 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41170 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41171 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41172 fi 41173 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41174 PICFLAG="-KPIC" 41175 C_FLAG_REORDER='-xF' 41176 CXX_FLAG_REORDER='-xF' 41177 SHARED_LIBRARY_FLAGS="-G" 41178 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41179 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41180 SET_SHARED_LIBRARY_NAME='' 41181 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41182 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41183 PICFLAG="-qpic=large" 41184 C_FLAG_REORDER='' 41185 CXX_FLAG_REORDER='' 41186 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41187 SET_EXECUTABLE_ORIGIN="" 41188 SET_SHARED_LIBRARY_ORIGIN='' 41189 SET_SHARED_LIBRARY_NAME='' 41190 SET_SHARED_LIBRARY_MAPFILE='' 41191 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41192 PICFLAG="" 41193 C_FLAG_REORDER='' 41194 CXX_FLAG_REORDER='' 41195 SHARED_LIBRARY_FLAGS="-LD" 41196 SET_EXECUTABLE_ORIGIN='' 41197 SET_SHARED_LIBRARY_ORIGIN='' 41198 SET_SHARED_LIBRARY_NAME='' 41199 SET_SHARED_LIBRARY_MAPFILE='' 41200 fi 41201 41202 41203 41204 41205 41206 41207 41208 41209 41210 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41211 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41212 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41213 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41214 fi 41215 # The (cross) compiler is now configured, we can now test capabilities 41216 # of the target platform. 41217 41218 41219 41220 ############################################################################### 41221 # 41222 # Setup the opt flags for different compilers 41223 # and different operating systems. 41224 # 41225 41226 # FIXME: this was indirectly the old default, but just inherited. 41227 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41228 # C_FLAG_DEPS="-MMD -MF" 41229 # fi 41230 41231 # Generate make dependency files 41232 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41233 C_FLAG_DEPS="-MMD -MF" 41234 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41235 C_FLAG_DEPS="-xMMD -xMF" 41236 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41237 C_FLAG_DEPS="-qmakedep=gcc -MF" 41238 fi 41239 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41240 41241 41242 41243 # Debug symbols 41244 # 41245 # By default don't set any specific assembler debug 41246 # info flags for toolchains unless we know they work. 41247 # See JDK-8207057. 41248 ASFLAGS_DEBUG_SYMBOLS="" 41249 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41250 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41251 CFLAGS_DEBUG_SYMBOLS="-g1" 41252 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41253 else 41254 CFLAGS_DEBUG_SYMBOLS="-g" 41255 CXXFLAGS_DEBUG_SYMBOLS="-g" 41256 fi 41257 ASFLAGS_DEBUG_SYMBOLS="-g" 41258 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41259 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41260 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41261 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41262 CFLAGS_DEBUG_SYMBOLS="-g" 41263 CXXFLAGS_DEBUG_SYMBOLS="-g" 41264 fi 41265 41266 41267 41268 41269 # Optimization levels 41270 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41271 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41272 41273 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41274 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41275 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 41276 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41277 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41278 C_O_FLAG_NONE="-xregs=no%frameptr" 41279 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41280 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41281 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41282 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41283 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41284 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41285 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41286 fi 41287 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41288 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41289 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41290 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41291 C_O_FLAG_NONE="" 41292 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41293 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41294 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41295 CXX_O_FLAG_NONE="" 41296 fi 41297 else 41298 # The remaining toolchains share opt flags between CC and CXX; 41299 # setup for C and duplicate afterwards. 41300 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41301 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41302 # On MacOSX we optimize for size, something 41303 # we should do for all platforms? 41304 C_O_FLAG_HIGHEST="-Os" 41305 C_O_FLAG_HI="-Os" 41306 C_O_FLAG_NORM="-Os" 41307 C_O_FLAG_NONE="" 41308 else 41309 C_O_FLAG_HIGHEST="-O3" 41310 C_O_FLAG_HI="-O3" 41311 C_O_FLAG_NORM="-O2" 41312 C_O_FLAG_NONE="-O0" 41313 fi 41314 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41315 C_O_FLAG_HIGHEST="-O3" 41316 C_O_FLAG_HI="-O3 -qstrict" 41317 C_O_FLAG_NORM="-O2" 41318 C_O_FLAG_NONE="" 41319 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41320 C_O_FLAG_HIGHEST="-O2" 41321 C_O_FLAG_HI="-O1" 41322 C_O_FLAG_NORM="-O1" 41323 C_O_FLAG_NONE="-Od" 41324 fi 41325 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41326 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41327 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41328 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41329 fi 41330 41331 41332 41333 41334 41335 41336 41337 41338 41339 41340 41341 # Special extras... 41342 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41343 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41344 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41345 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41346 fi 41347 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41348 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41349 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41350 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41351 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41352 case $OPENJDK_TARGET_CPU_ARCH in 41353 x86 ) 41354 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector" 41355 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector" 41356 ;; 41357 x86_64 ) 41358 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector" 41359 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector" 41360 ;; 41361 esac 41362 if test "x$OPENJDK_TARGET_OS" != xmacosx; then 41363 LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,relro" 41364 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro" 41365 fi 41366 CXXSTD_CXXFLAG="-std=gnu++98" 41367 41368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 41369 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 41370 supports=yes 41371 41372 saved_cxxflags="$CXXFLAGS" 41373 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 41374 ac_ext=cpp 41375 ac_cpp='$CXXCPP $CPPFLAGS' 41376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41379 41380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41381 /* end confdefs.h. */ 41382 int i; 41383 _ACEOF 41384 if ac_fn_cxx_try_compile "$LINENO"; then : 41385 41386 else 41387 supports=no 41388 fi 41389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41390 ac_ext=cpp 41391 ac_cpp='$CXXCPP $CPPFLAGS' 41392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41395 41396 CXXFLAGS="$saved_cxxflags" 41397 41398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41399 $as_echo "$supports" >&6; } 41400 if test "x$supports" = "xyes" ; then 41401 : 41402 else 41403 CXXSTD_CXXFLAG="" 41404 fi 41405 41406 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 41407 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 41408 41409 fi 41410 41411 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41413 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41414 fi 41415 41416 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41418 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41419 fi 41420 41421 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41423 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41424 fi 41425 41426 41427 # Check whether --with-extra-cflags was given. 41428 if test "${with_extra_cflags+set}" = set; then : 41429 withval=$with_extra_cflags; 41430 fi 41431 41432 41433 41434 # Check whether --with-extra-cxxflags was given. 41435 if test "${with_extra_cxxflags+set}" = set; then : 41436 withval=$with_extra_cxxflags; 41437 fi 41438 41439 41440 41441 # Check whether --with-extra-ldflags was given. 41442 if test "${with_extra_ldflags+set}" = set; then : 41443 withval=$with_extra_ldflags; 41444 fi 41445 41446 41447 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41448 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41449 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41450 41451 # Hotspot needs these set in their legacy form 41452 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 41453 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 41454 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 41455 41456 41457 41458 41459 41460 ############################################################################### 41461 # 41462 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41463 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41464 # 41465 41466 # Setup compiler/platform specific flags to CFLAGS_JDK, 41467 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41468 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41469 # these options are used for both C and C++ compiles 41470 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41471 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41472 case $OPENJDK_TARGET_CPU_ARCH in 41473 arm ) 41474 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41475 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41476 ;; 41477 ppc ) 41478 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41479 ;; 41480 x86 ) 41481 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer -fstack-protector" 41482 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing -fstack-protector" 41483 ;; 41484 * ) 41485 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41486 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41487 ;; 41488 esac 41489 41490 REFERENCE_VERSION=6 41491 41492 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 41493 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 41494 fi 41495 41496 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 41497 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 41498 fi 41499 41500 # Version comparison method inspired by http://stackoverflow.com/a/24067243 41501 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 41502 41503 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 41504 41505 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 41506 # runs afoul of the more aggressive versions of these optimisations. 41507 # Notably, value range propagation now assumes that the this pointer of C++ 41508 # member functions is non-null. 41509 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 41510 41511 41512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41513 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41514 supports=yes 41515 41516 saved_cflags="$CFLAGS" 41517 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41518 ac_ext=c 41519 ac_cpp='$CPP $CPPFLAGS' 41520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41522 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41523 41524 41525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41526 /* end confdefs.h. */ 41527 int i; 41528 _ACEOF 41529 if ac_fn_c_try_compile "$LINENO"; then : 41530 41531 else 41532 supports=no 41533 fi 41534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41535 ac_ext=cpp 41536 ac_cpp='$CXXCPP $CPPFLAGS' 41537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41540 41541 CFLAGS="$saved_cflags" 41542 41543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41544 $as_echo "$supports" >&6; } 41545 if test "x$supports" = "xyes" ; then 41546 C_COMP_SUPPORTS="yes" 41547 else 41548 C_COMP_SUPPORTS="no" 41549 fi 41550 41551 41552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41553 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41554 supports=yes 41555 41556 saved_cxxflags="$CXXFLAGS" 41557 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41558 ac_ext=cpp 41559 ac_cpp='$CXXCPP $CPPFLAGS' 41560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41563 41564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41565 /* end confdefs.h. */ 41566 int i; 41567 _ACEOF 41568 if ac_fn_cxx_try_compile "$LINENO"; then : 41569 41570 else 41571 supports=no 41572 fi 41573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41574 ac_ext=cpp 41575 ac_cpp='$CXXCPP $CPPFLAGS' 41576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41579 41580 CXXFLAGS="$saved_cxxflags" 41581 41582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41583 $as_echo "$supports" >&6; } 41584 if test "x$supports" = "xyes" ; then 41585 CXX_COMP_SUPPORTS="yes" 41586 else 41587 CXX_COMP_SUPPORTS="no" 41588 fi 41589 41590 41591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41592 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41593 supports=no 41594 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41595 41596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41597 $as_echo "$supports" >&6; } 41598 if test "x$supports" = "xyes" ; then 41599 : 41600 else 41601 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 41602 fi 41603 41604 41605 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 41606 41607 41608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41609 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41610 supports=yes 41611 41612 saved_cflags="$CFLAGS" 41613 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 41614 ac_ext=c 41615 ac_cpp='$CPP $CPPFLAGS' 41616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41618 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41619 41620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41621 /* end confdefs.h. */ 41622 int i; 41623 _ACEOF 41624 if ac_fn_c_try_compile "$LINENO"; then : 41625 41626 else 41627 supports=no 41628 fi 41629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41630 ac_ext=cpp 41631 ac_cpp='$CXXCPP $CPPFLAGS' 41632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41635 41636 CFLAGS="$saved_cflags" 41637 41638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41639 $as_echo "$supports" >&6; } 41640 if test "x$supports" = "xyes" ; then 41641 C_COMP_SUPPORTS="yes" 41642 else 41643 C_COMP_SUPPORTS="no" 41644 fi 41645 41646 41647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41648 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41649 supports=yes 41650 41651 saved_cxxflags="$CXXFLAGS" 41652 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 41653 ac_ext=cpp 41654 ac_cpp='$CXXCPP $CPPFLAGS' 41655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41658 41659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41660 /* end confdefs.h. */ 41661 int i; 41662 _ACEOF 41663 if ac_fn_cxx_try_compile "$LINENO"; then : 41664 41665 else 41666 supports=no 41667 fi 41668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41669 ac_ext=cpp 41670 ac_cpp='$CXXCPP $CPPFLAGS' 41671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41674 41675 CXXFLAGS="$saved_cxxflags" 41676 41677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41678 $as_echo "$supports" >&6; } 41679 if test "x$supports" = "xyes" ; then 41680 CXX_COMP_SUPPORTS="yes" 41681 else 41682 CXX_COMP_SUPPORTS="no" 41683 fi 41684 41685 41686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41687 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41688 supports=no 41689 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41690 41691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41692 $as_echo "$supports" >&6; } 41693 if test "x$supports" = "xyes" ; then 41694 : 41695 else 41696 NO_LIFETIME_DSE_CFLAG="" 41697 fi 41698 41699 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 41700 41701 41702 41703 else 41704 : 41705 fi 41706 41707 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41708 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41709 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41710 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41711 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41712 fi 41713 41714 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 41715 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 41716 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41717 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41718 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41719 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41720 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \ 41721 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 41722 -DWIN32_LEAN_AND_MEAN \ 41723 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 41724 -DWIN32 -DIAL" 41725 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 41726 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 41727 else 41728 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 41729 fi 41730 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 41731 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 41732 # studio. 41733 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 41734 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 41735 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 41736 fi 41737 fi 41738 41739 ############################################################################### 41740 41741 # Adjust flags according to debug level. 41742 case $DEBUG_LEVEL in 41743 fastdebug ) 41744 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41745 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41746 C_O_FLAG_HI="$C_O_FLAG_NORM" 41747 C_O_FLAG_NORM="$C_O_FLAG_NORM" 41748 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 41749 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 41750 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41751 ;; 41752 slowdebug ) 41753 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41754 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41755 C_O_FLAG_HI="$C_O_FLAG_NONE" 41756 C_O_FLAG_NORM="$C_O_FLAG_NONE" 41757 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 41758 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 41759 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41760 ;; 41761 esac 41762 41763 # Setup LP64 41764 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 41765 41766 # Set some common defines. These works for all compilers, but assume 41767 # -D is universally accepted. 41768 41769 # Setup endianness 41770 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 41771 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 41772 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 41773 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 41774 # Note: -Dmacro is the same as #define macro 1 41775 # -Dmacro= is the same as #define macro 41776 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41777 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 41778 else 41779 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 41780 fi 41781 else 41782 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 41783 # are defined in the system? 41784 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41785 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 41786 else 41787 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 41788 fi 41789 fi 41790 if test "x$OPENJDK_TARGET_CPU" = xppc64le; then 41791 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" 41792 fi 41793 41794 # Setup target OS define. Use OS target name but in upper case. 41795 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 41796 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 41797 41798 # Setup target CPU 41799 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 41800 41801 # Setup debug/release defines 41802 if test "x$DEBUG_LEVEL" = xrelease; then 41803 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 41804 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41805 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 41806 fi 41807 else 41808 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 41809 fi 41810 41811 # Setup release name 41812 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 41813 41814 41815 # Set some additional per-OS defines. 41816 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41817 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 41818 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41819 # FIXME: PPC64 should not be here. 41820 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 41821 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 41822 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 41823 fi 41824 41825 # Additional macosx handling 41826 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41827 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41828 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 41829 # FIXME: clean this up, and/or move it elsewhere. 41830 41831 # Setting these parameters makes it an error to link to macosx APIs that are 41832 # newer than the given OS version and makes the linked binaries compatible 41833 # even if built on a newer version of the OS. 41834 # The expected format is X.Y.Z 41835 MACOSX_VERSION_MIN=10.7.0 41836 41837 41838 # The macro takes the version with no dots, ex: 1070 41839 # Let the flags variables get resolved in make for easier override on make 41840 # command line. 41841 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41842 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41843 fi 41844 fi 41845 41846 # Setup some hard coded includes 41847 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 41848 -I${JDK_OUTPUTDIR}/include \ 41849 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 41850 -I${JDK_TOPDIR}/src/share/javavm/export \ 41851 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 41852 -I${JDK_TOPDIR}/src/share/native/common \ 41853 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 41854 41855 # The shared libraries are compiled using the picflag. 41856 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 41857 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 41858 41859 # Executable flags 41860 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 41861 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 41862 41863 41864 41865 41866 41867 41868 # Setup LDFLAGS et al. 41869 # 41870 # Now this is odd. The JDK native libraries have to link against libjvm.so 41871 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 41872 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 41873 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 41874 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 41875 # libraries will link to whatever is in memory. Yuck. 41876 # 41877 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 41878 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41879 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 41880 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41881 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 41882 fi 41883 # TODO: make -debug optional "--disable-full-debug-symbols" 41884 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 41885 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 41886 LDFLAGS_JDKLIB_SUFFIX="" 41887 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 41888 LDFLAGS_STACK_SIZE=1048576 41889 else 41890 LDFLAGS_STACK_SIZE=327680 41891 fi 41892 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 41893 else 41894 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41895 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41896 # We have previously set HAS_GNU_HASH if this is the case 41897 if test -n "$HAS_GNU_HASH"; then 41898 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 41899 fi 41900 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41901 # And since we now know that the linker is gnu, then add: 41902 # -z defs, to forbid undefined symbols in object files 41903 # -z noexecstack, to mark stack regions as non-executable 41904 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" 41905 if test "x$DEBUG_LEVEL" = "xrelease"; then 41906 # When building release libraries, tell the linker optimize them. 41907 # Should this be supplied to the OSS linker as well? 41908 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 41909 fi 41910 fi 41911 fi 41912 41913 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41914 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 41915 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 41916 fi 41917 41918 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 41919 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 41920 41921 # On some platforms (mac) the linker warns about non existing -L dirs. 41922 # Add server first if available. Linking aginst client does not always produce the same results. 41923 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 41924 # Default to server for other variants. 41925 if test "x$JVM_VARIANT_SERVER" = xtrue; then 41926 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41927 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 41928 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 41929 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 41930 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 41931 else 41932 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41933 fi 41934 41935 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 41936 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41937 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 41938 fi 41939 41940 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 41941 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41942 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 41943 fi 41944 fi 41945 41946 41947 41948 41949 41950 41951 41952 # Some Zero and Shark settings. 41953 # ZERO_ARCHFLAG tells the compiler which mode to build for 41954 case "${OPENJDK_TARGET_CPU}" in 41955 s390) 41956 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 41957 ;; 41958 *) 41959 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41960 esac 41961 41962 41963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 41964 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 41965 supports=yes 41966 41967 saved_cflags="$CFLAGS" 41968 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 41969 ac_ext=c 41970 ac_cpp='$CPP $CPPFLAGS' 41971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41973 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41974 41975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41976 /* end confdefs.h. */ 41977 int i; 41978 _ACEOF 41979 if ac_fn_c_try_compile "$LINENO"; then : 41980 41981 else 41982 supports=no 41983 fi 41984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41985 ac_ext=cpp 41986 ac_cpp='$CXXCPP $CPPFLAGS' 41987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41990 41991 CFLAGS="$saved_cflags" 41992 41993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41994 $as_echo "$supports" >&6; } 41995 if test "x$supports" = "xyes" ; then 41996 C_COMP_SUPPORTS="yes" 41997 else 41998 C_COMP_SUPPORTS="no" 41999 fi 42000 42001 42002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 42003 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42004 supports=yes 42005 42006 saved_cxxflags="$CXXFLAGS" 42007 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42008 ac_ext=cpp 42009 ac_cpp='$CXXCPP $CPPFLAGS' 42010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42013 42014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42015 /* end confdefs.h. */ 42016 int i; 42017 _ACEOF 42018 if ac_fn_cxx_try_compile "$LINENO"; then : 42019 42020 else 42021 supports=no 42022 fi 42023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42024 ac_ext=cpp 42025 ac_cpp='$CXXCPP $CPPFLAGS' 42026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42029 42030 CXXFLAGS="$saved_cxxflags" 42031 42032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42033 $as_echo "$supports" >&6; } 42034 if test "x$supports" = "xyes" ; then 42035 CXX_COMP_SUPPORTS="yes" 42036 else 42037 CXX_COMP_SUPPORTS="no" 42038 fi 42039 42040 42041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 42042 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 42043 supports=no 42044 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42045 42046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42047 $as_echo "$supports" >&6; } 42048 if test "x$supports" = "xyes" ; then 42049 : 42050 else 42051 ZERO_ARCHFLAG="" 42052 fi 42053 42054 42055 42056 # Check that the compiler supports -mX (or -qX on AIX) flags 42057 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42058 42059 42060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42061 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42062 supports=yes 42063 42064 saved_cflags="$CFLAGS" 42065 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42066 ac_ext=c 42067 ac_cpp='$CPP $CPPFLAGS' 42068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42070 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42071 42072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42073 /* end confdefs.h. */ 42074 int i; 42075 _ACEOF 42076 if ac_fn_c_try_compile "$LINENO"; then : 42077 42078 else 42079 supports=no 42080 fi 42081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42082 ac_ext=cpp 42083 ac_cpp='$CXXCPP $CPPFLAGS' 42084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42087 42088 CFLAGS="$saved_cflags" 42089 42090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42091 $as_echo "$supports" >&6; } 42092 if test "x$supports" = "xyes" ; then 42093 C_COMP_SUPPORTS="yes" 42094 else 42095 C_COMP_SUPPORTS="no" 42096 fi 42097 42098 42099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42100 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42101 supports=yes 42102 42103 saved_cxxflags="$CXXFLAGS" 42104 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42105 ac_ext=cpp 42106 ac_cpp='$CXXCPP $CPPFLAGS' 42107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42110 42111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42112 /* end confdefs.h. */ 42113 int i; 42114 _ACEOF 42115 if ac_fn_cxx_try_compile "$LINENO"; then : 42116 42117 else 42118 supports=no 42119 fi 42120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42121 ac_ext=cpp 42122 ac_cpp='$CXXCPP $CPPFLAGS' 42123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42126 42127 CXXFLAGS="$saved_cxxflags" 42128 42129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42130 $as_echo "$supports" >&6; } 42131 if test "x$supports" = "xyes" ; then 42132 CXX_COMP_SUPPORTS="yes" 42133 else 42134 CXX_COMP_SUPPORTS="no" 42135 fi 42136 42137 42138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42139 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42140 supports=no 42141 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42142 42143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42144 $as_echo "$supports" >&6; } 42145 if test "x$supports" = "xyes" ; then 42146 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42147 else 42148 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42149 fi 42150 42151 42152 42153 42154 # Setup debug symbols (need objcopy from the toolchain for that) 42155 42156 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42157 # but if somebody does not specify it via configure, we still want to preserve old 42158 # behaviour of --disable-debug-symbols 42159 # 42160 # ENABLE_DEBUG_SYMBOLS 42161 # This must be done after the toolchain is setup, since we're looking at objcopy. 42162 # 42163 # Check whether --enable-debug-symbols was given. 42164 if test "${enable_debug_symbols+set}" = set; then : 42165 enableval=$enable_debug_symbols; 42166 fi 42167 42168 42169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42170 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42171 42172 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42173 # explicit enabling of enable-debug-symbols and can't find objcopy 42174 # this is an error 42175 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42176 fi 42177 42178 if test "x$enable_debug_symbols" = "xyes"; then 42179 ENABLE_DEBUG_SYMBOLS=true 42180 elif test "x$enable_debug_symbols" = "xno"; then 42181 ENABLE_DEBUG_SYMBOLS=false 42182 else 42183 # Default is on if objcopy is found 42184 if test "x$OBJCOPY" != x; then 42185 ENABLE_DEBUG_SYMBOLS=true 42186 # MacOS X and Windows don't use objcopy but default is on for those OSes 42187 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42188 ENABLE_DEBUG_SYMBOLS=true 42189 else 42190 ENABLE_DEBUG_SYMBOLS=false 42191 fi 42192 fi 42193 42194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42195 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42196 42197 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42198 # but if somebody does not specify it via configure, we still want to preserve old 42199 # behaviour of --disable-zip-debug-info. 42200 # 42201 # ZIP_DEBUGINFO_FILES 42202 # 42203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42204 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42205 # Check whether --enable-zip-debug-info was given. 42206 if test "${enable_zip_debug_info+set}" = set; then : 42207 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42208 else 42209 enable_zip_debug_info="yes" 42210 fi 42211 42212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42213 $as_echo "${enable_zip_debug_info}" >&6; } 42214 42215 if test "x${enable_zip_debug_info}" = "xno"; then 42216 ZIP_DEBUGINFO_FILES=false 42217 elif test "x${enable_zip_debug_info}" = "xyes"; then 42218 ZIP_DEBUGINFO_FILES=true 42219 fi 42220 42221 # 42222 # NATIVE_DEBUG_SYMBOLS 42223 # This must be done after the toolchain is setup, since we're looking at objcopy. 42224 # In addition, this must be done after ENABLE_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES 42225 # checking in order to preserve backwards compatibility post JDK-8207234. 42226 # 42227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use (this will override previous settings)" >&5 42228 $as_echo_n "checking what type of native debug symbols to use (this will override previous settings)... " >&6; } 42229 42230 # Check whether --with-native-debug-symbols was given. 42231 if test "${with_native_debug_symbols+set}" = set; then : 42232 withval=$with_native_debug_symbols; 42233 if test "x$OPENJDK_TARGET_OS" = xaix; then 42234 if test "x$with_native_debug_symbols" = xexternal || test "x$with_native_debug_symbols" = xzipped; then 42235 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 42236 fi 42237 fi 42238 42239 else 42240 42241 # Default to unset for backwards compatibility 42242 with_native_debug_symbols="" 42243 42244 fi 42245 42246 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 42247 if test "x$NATIVE_DEBUG_SYMBOLS" = x; then 42248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5 42249 $as_echo "not specified" >&6; } 42250 else 42251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 42252 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 42253 fi 42254 # Default is empty 42255 DEBUG_BINARIES= 42256 # Default is min_strip. Possible values are min_strip, all_strip, no_strip 42257 STRIP_POLICY=min_strip 42258 42259 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 42260 42261 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42262 if test "x$OBJCOPY" = x; then 42263 # enabling of enable-debug-symbols and can't find objcopy 42264 # this is an error 42265 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42266 fi 42267 fi 42268 42269 ENABLE_DEBUG_SYMBOLS=true 42270 STRIP_POLICY=min_strip 42271 ZIP_DEBUGINFO_FILES=true 42272 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 42273 ENABLE_DEBUG_SYMBOLS=false 42274 STRIP_POLICY=min_strip 42275 ZIP_DEBUGINFO_FILES=false 42276 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 42277 ENABLE_DEBUG_SYMBOLS=true 42278 STRIP_POLICY=no_strip 42279 ZIP_DEBUGINFO_FILES=false 42280 POST_STRIP_CMD= 42281 DEBUG_BINARIES=true 42282 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 42283 42284 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42285 if test "x$OBJCOPY" = x; then 42286 # enabling of enable-debug-symbols and can't find objcopy 42287 # this is an error 42288 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42289 fi 42290 fi 42291 42292 ENABLE_DEBUG_SYMBOLS=true 42293 STRIP_POLICY=min_strip 42294 ZIP_DEBUGINFO_FILES=false 42295 elif test "x$NATIVE_DEBUG_SYMBOLS" != x; then 42296 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 42297 else 42298 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&5 42299 $as_echo "$as_me: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&6;} 42300 fi 42301 42302 42303 42304 42305 42306 42307 42308 42309 ############################################################################### 42310 # 42311 # Check dependencies for external and internal libraries. 42312 # 42313 ############################################################################### 42314 42315 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42316 42317 # When using cygwin or msys, we need a wrapper binary that renames 42318 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42319 # @files and rewrites these too! This wrapper binary is 42320 # called fixpath. 42321 FIXPATH= 42322 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42324 $as_echo_n "checking if fixpath can be created... " >&6; } 42325 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42326 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42327 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42328 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42329 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42330 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42331 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42332 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42333 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42334 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42335 42336 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42337 # @ was chosen as separator to minimize risk of other tools messing around with it 42338 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42339 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42340 42341 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42342 fi 42343 rm -f $OUTPUT_ROOT/fixpath* 42344 cd $OUTPUT_ROOT 42345 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42346 cd $CURDIR 42347 42348 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42350 $as_echo "no" >&6; } 42351 cat $OUTPUT_ROOT/fixpath1.log 42352 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42353 fi 42354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42355 $as_echo "yes" >&6; } 42356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42357 $as_echo_n "checking if fixpath.exe works... " >&6; } 42358 cd $OUTPUT_ROOT 42359 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42360 cd $CURDIR 42361 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42363 $as_echo "no" >&6; } 42364 cat $OUTPUT_ROOT/fixpath2.log 42365 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42366 fi 42367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42368 $as_echo "yes" >&6; } 42369 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42370 fi 42371 42372 42373 42374 42375 42376 42377 ############################################################################### 42378 # 42379 # OS specific settings that we never will need to probe. 42380 # 42381 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42383 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42384 PULSE_NOT_NEEDED=yes 42385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42386 $as_echo "pulse" >&6; } 42387 fi 42388 42389 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42391 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42392 ALSA_NOT_NEEDED=yes 42393 PULSE_NOT_NEEDED=yes 42394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42395 $as_echo "alsa pulse" >&6; } 42396 fi 42397 42398 if test "x$OPENJDK_TARGET_OS" = xaix; then 42399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42400 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42401 ALSA_NOT_NEEDED=yes 42402 PULSE_NOT_NEEDED=yes 42403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42404 $as_echo "alsa pulse" >&6; } 42405 fi 42406 42407 42408 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42410 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42411 CUPS_NOT_NEEDED=yes 42412 ALSA_NOT_NEEDED=yes 42413 PULSE_NOT_NEEDED=yes 42414 X11_NOT_NEEDED=yes 42415 FONTCONFIG_NOT_NEEDED=yes 42416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42417 $as_echo "alsa cups pulse x11" >&6; } 42418 fi 42419 42420 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42422 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42423 ALSA_NOT_NEEDED=yes 42424 PULSE_NOT_NEEDED=yes 42425 X11_NOT_NEEDED=yes 42426 FONTCONFIG_NOT_NEEDED=yes 42427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42428 $as_echo "alsa pulse x11" >&6; } 42429 fi 42430 42431 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42433 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42434 ALSA_NOT_NEEDED=yes 42435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42436 $as_echo "alsa" >&6; } 42437 fi 42438 42439 if test "x$OPENJDK" = "xfalse"; then 42440 FREETYPE_NOT_NEEDED=yes 42441 fi 42442 42443 if test "x$SUPPORT_HEADFUL" = xno; then 42444 X11_NOT_NEEDED=yes 42445 fi 42446 42447 # Deprecated and now ignored 42448 42449 # Check whether --enable-macosx-runtime-support was given. 42450 if test "${enable_macosx_runtime_support+set}" = set; then : 42451 enableval=$enable_macosx_runtime_support; 42452 fi 42453 42454 if test "x$enable_macosx_runtime_support" != x; then 42455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42456 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42457 fi 42458 42459 42460 42461 42462 ############################################################################### 42463 # 42464 # Check for X Windows 42465 # 42466 42467 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42468 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42469 # --x-libraries for the sysroot, if that seems to be correct. 42470 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 42471 if test "x$SYSROOT" != "x"; then 42472 if test "x$x_includes" = xNONE; then 42473 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 42474 x_includes="$SYSROOT/usr/X11R6/include" 42475 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 42476 x_includes="$SYSROOT/usr/include" 42477 fi 42478 fi 42479 if test "x$x_libraries" = xNONE; then 42480 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 42481 x_libraries="$SYSROOT/usr/X11R6/lib" 42482 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42483 x_libraries="$SYSROOT/usr/lib64" 42484 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 42485 x_libraries="$SYSROOT/usr/lib" 42486 fi 42487 fi 42488 fi 42489 fi 42490 42491 # Now let autoconf do it's magic 42492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42493 $as_echo_n "checking for X... " >&6; } 42494 42495 42496 # Check whether --with-x was given. 42497 if test "${with_x+set}" = set; then : 42498 withval=$with_x; 42499 fi 42500 42501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42502 if test "x$with_x" = xno; then 42503 # The user explicitly disabled X. 42504 have_x=disabled 42505 else 42506 case $x_includes,$x_libraries in #( 42507 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42508 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42509 $as_echo_n "(cached) " >&6 42510 else 42511 # One or both of the vars are not set, and there is no cached value. 42512 ac_x_includes=no ac_x_libraries=no 42513 rm -f -r conftest.dir 42514 if mkdir conftest.dir; then 42515 cd conftest.dir 42516 cat >Imakefile <<'_ACEOF' 42517 incroot: 42518 @echo incroot='${INCROOT}' 42519 usrlibdir: 42520 @echo usrlibdir='${USRLIBDIR}' 42521 libdir: 42522 @echo libdir='${LIBDIR}' 42523 _ACEOF 42524 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42525 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42526 for ac_var in incroot usrlibdir libdir; do 42527 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42528 done 42529 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42530 for ac_extension in a so sl dylib la dll; do 42531 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42532 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42533 ac_im_usrlibdir=$ac_im_libdir; break 42534 fi 42535 done 42536 # Screen out bogus values from the imake configuration. They are 42537 # bogus both because they are the default anyway, and because 42538 # using them would break gcc on systems where it needs fixed includes. 42539 case $ac_im_incroot in 42540 /usr/include) ac_x_includes= ;; 42541 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42542 esac 42543 case $ac_im_usrlibdir in 42544 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42545 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42546 esac 42547 fi 42548 cd .. 42549 rm -f -r conftest.dir 42550 fi 42551 42552 # Standard set of common directories for X headers. 42553 # Check X11 before X11Rn because it is often a symlink to the current release. 42554 ac_x_header_dirs=' 42555 /usr/X11/include 42556 /usr/X11R7/include 42557 /usr/X11R6/include 42558 /usr/X11R5/include 42559 /usr/X11R4/include 42560 42561 /usr/include/X11 42562 /usr/include/X11R7 42563 /usr/include/X11R6 42564 /usr/include/X11R5 42565 /usr/include/X11R4 42566 42567 /usr/local/X11/include 42568 /usr/local/X11R7/include 42569 /usr/local/X11R6/include 42570 /usr/local/X11R5/include 42571 /usr/local/X11R4/include 42572 42573 /usr/local/include/X11 42574 /usr/local/include/X11R7 42575 /usr/local/include/X11R6 42576 /usr/local/include/X11R5 42577 /usr/local/include/X11R4 42578 42579 /usr/X386/include 42580 /usr/x386/include 42581 /usr/XFree86/include/X11 42582 42583 /usr/include 42584 /usr/local/include 42585 /usr/unsupported/include 42586 /usr/athena/include 42587 /usr/local/x11r5/include 42588 /usr/lpp/Xamples/include 42589 42590 /usr/openwin/include 42591 /usr/openwin/share/include' 42592 42593 if test "$ac_x_includes" = no; then 42594 # Guess where to find include files, by looking for Xlib.h. 42595 # First, try using that file with no special directory specified. 42596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42597 /* end confdefs.h. */ 42598 #include <X11/Xlib.h> 42599 _ACEOF 42600 if ac_fn_cxx_try_cpp "$LINENO"; then : 42601 # We can compile using X headers with no special include directory. 42602 ac_x_includes= 42603 else 42604 for ac_dir in $ac_x_header_dirs; do 42605 if test -r "$ac_dir/X11/Xlib.h"; then 42606 ac_x_includes=$ac_dir 42607 break 42608 fi 42609 done 42610 fi 42611 rm -f conftest.err conftest.i conftest.$ac_ext 42612 fi # $ac_x_includes = no 42613 42614 if test "$ac_x_libraries" = no; then 42615 # Check for the libraries. 42616 # See if we find them without any special options. 42617 # Don't add to $LIBS permanently. 42618 ac_save_LIBS=$LIBS 42619 LIBS="-lX11 $LIBS" 42620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42621 /* end confdefs.h. */ 42622 #include <X11/Xlib.h> 42623 int 42624 main () 42625 { 42626 XrmInitialize () 42627 ; 42628 return 0; 42629 } 42630 _ACEOF 42631 if ac_fn_cxx_try_link "$LINENO"; then : 42632 LIBS=$ac_save_LIBS 42633 # We can link X programs with no special library path. 42634 ac_x_libraries= 42635 else 42636 LIBS=$ac_save_LIBS 42637 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42638 do 42639 # Don't even attempt the hair of trying to link an X program! 42640 for ac_extension in a so sl dylib la dll; do 42641 if test -r "$ac_dir/libX11.$ac_extension"; then 42642 ac_x_libraries=$ac_dir 42643 break 2 42644 fi 42645 done 42646 done 42647 fi 42648 rm -f core conftest.err conftest.$ac_objext \ 42649 conftest$ac_exeext conftest.$ac_ext 42650 fi # $ac_x_libraries = no 42651 42652 case $ac_x_includes,$ac_x_libraries in #( 42653 no,* | *,no | *\'*) 42654 # Didn't find X, or a directory has "'" in its name. 42655 ac_cv_have_x="have_x=no";; #( 42656 *) 42657 # Record where we found X for the cache. 42658 ac_cv_have_x="have_x=yes\ 42659 ac_x_includes='$ac_x_includes'\ 42660 ac_x_libraries='$ac_x_libraries'" 42661 esac 42662 fi 42663 ;; #( 42664 *) have_x=yes;; 42665 esac 42666 eval "$ac_cv_have_x" 42667 fi # $with_x != no 42668 42669 if test "$have_x" != yes; then 42670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42671 $as_echo "$have_x" >&6; } 42672 no_x=yes 42673 else 42674 # If each of the values was on the command line, it overrides each guess. 42675 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42676 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42677 # Update the cache value to reflect the command line values. 42678 ac_cv_have_x="have_x=yes\ 42679 ac_x_includes='$x_includes'\ 42680 ac_x_libraries='$x_libraries'" 42681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42682 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42683 fi 42684 42685 if test "$no_x" = yes; then 42686 # Not all programs may use this symbol, but it does not hurt to define it. 42687 42688 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42689 42690 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42691 else 42692 if test -n "$x_includes"; then 42693 X_CFLAGS="$X_CFLAGS -I$x_includes" 42694 fi 42695 42696 # It would also be nice to do this for all -L options, not just this one. 42697 if test -n "$x_libraries"; then 42698 X_LIBS="$X_LIBS -L$x_libraries" 42699 # For Solaris; some versions of Sun CC require a space after -R and 42700 # others require no space. Words are not sufficient . . . . 42701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42702 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42703 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42704 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42705 ac_cxx_werror_flag=yes 42706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42707 /* end confdefs.h. */ 42708 42709 int 42710 main () 42711 { 42712 42713 ; 42714 return 0; 42715 } 42716 _ACEOF 42717 if ac_fn_cxx_try_link "$LINENO"; then : 42718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42719 $as_echo "no" >&6; } 42720 X_LIBS="$X_LIBS -R$x_libraries" 42721 else 42722 LIBS="$ac_xsave_LIBS -R $x_libraries" 42723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42724 /* end confdefs.h. */ 42725 42726 int 42727 main () 42728 { 42729 42730 ; 42731 return 0; 42732 } 42733 _ACEOF 42734 if ac_fn_cxx_try_link "$LINENO"; then : 42735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42736 $as_echo "yes" >&6; } 42737 X_LIBS="$X_LIBS -R $x_libraries" 42738 else 42739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 42740 $as_echo "neither works" >&6; } 42741 fi 42742 rm -f core conftest.err conftest.$ac_objext \ 42743 conftest$ac_exeext conftest.$ac_ext 42744 fi 42745 rm -f core conftest.err conftest.$ac_objext \ 42746 conftest$ac_exeext conftest.$ac_ext 42747 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 42748 LIBS=$ac_xsave_LIBS 42749 fi 42750 42751 # Check for system-dependent libraries X programs must link with. 42752 # Do this before checking for the system-independent R6 libraries 42753 # (-lICE), since we may need -lsocket or whatever for X linking. 42754 42755 if test "$ISC" = yes; then 42756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 42757 else 42758 # Martyn Johnson says this is needed for Ultrix, if the X 42759 # libraries were built with DECnet support. And Karl Berry says 42760 # the Alpha needs dnet_stub (dnet does not exist). 42761 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 42762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42763 /* end confdefs.h. */ 42764 42765 /* Override any GCC internal prototype to avoid an error. 42766 Use char because int might match the return type of a GCC 42767 builtin and then its argument prototype would still apply. */ 42768 #ifdef __cplusplus 42769 extern "C" 42770 #endif 42771 char XOpenDisplay (); 42772 int 42773 main () 42774 { 42775 return XOpenDisplay (); 42776 ; 42777 return 0; 42778 } 42779 _ACEOF 42780 if ac_fn_cxx_try_link "$LINENO"; then : 42781 42782 else 42783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 42784 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 42785 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 42786 $as_echo_n "(cached) " >&6 42787 else 42788 ac_check_lib_save_LIBS=$LIBS 42789 LIBS="-ldnet $LIBS" 42790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42791 /* end confdefs.h. */ 42792 42793 /* Override any GCC internal prototype to avoid an error. 42794 Use char because int might match the return type of a GCC 42795 builtin and then its argument prototype would still apply. */ 42796 #ifdef __cplusplus 42797 extern "C" 42798 #endif 42799 char dnet_ntoa (); 42800 int 42801 main () 42802 { 42803 return dnet_ntoa (); 42804 ; 42805 return 0; 42806 } 42807 _ACEOF 42808 if ac_fn_cxx_try_link "$LINENO"; then : 42809 ac_cv_lib_dnet_dnet_ntoa=yes 42810 else 42811 ac_cv_lib_dnet_dnet_ntoa=no 42812 fi 42813 rm -f core conftest.err conftest.$ac_objext \ 42814 conftest$ac_exeext conftest.$ac_ext 42815 LIBS=$ac_check_lib_save_LIBS 42816 fi 42817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 42818 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 42819 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 42820 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 42821 fi 42822 42823 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 42824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 42825 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 42826 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 42827 $as_echo_n "(cached) " >&6 42828 else 42829 ac_check_lib_save_LIBS=$LIBS 42830 LIBS="-ldnet_stub $LIBS" 42831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42832 /* end confdefs.h. */ 42833 42834 /* Override any GCC internal prototype to avoid an error. 42835 Use char because int might match the return type of a GCC 42836 builtin and then its argument prototype would still apply. */ 42837 #ifdef __cplusplus 42838 extern "C" 42839 #endif 42840 char dnet_ntoa (); 42841 int 42842 main () 42843 { 42844 return dnet_ntoa (); 42845 ; 42846 return 0; 42847 } 42848 _ACEOF 42849 if ac_fn_cxx_try_link "$LINENO"; then : 42850 ac_cv_lib_dnet_stub_dnet_ntoa=yes 42851 else 42852 ac_cv_lib_dnet_stub_dnet_ntoa=no 42853 fi 42854 rm -f core conftest.err conftest.$ac_objext \ 42855 conftest$ac_exeext conftest.$ac_ext 42856 LIBS=$ac_check_lib_save_LIBS 42857 fi 42858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 42859 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 42860 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 42861 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 42862 fi 42863 42864 fi 42865 fi 42866 rm -f core conftest.err conftest.$ac_objext \ 42867 conftest$ac_exeext conftest.$ac_ext 42868 LIBS="$ac_xsave_LIBS" 42869 42870 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 42871 # to get the SysV transport functions. 42872 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 42873 # needs -lnsl. 42874 # The nsl library prevents programs from opening the X display 42875 # on Irix 5.2, according to T.E. Dickey. 42876 # The functions gethostbyname, getservbyname, and inet_addr are 42877 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 42878 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 42879 if test "x$ac_cv_func_gethostbyname" = xyes; then : 42880 42881 fi 42882 42883 if test $ac_cv_func_gethostbyname = no; then 42884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 42885 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 42886 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 42887 $as_echo_n "(cached) " >&6 42888 else 42889 ac_check_lib_save_LIBS=$LIBS 42890 LIBS="-lnsl $LIBS" 42891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42892 /* end confdefs.h. */ 42893 42894 /* Override any GCC internal prototype to avoid an error. 42895 Use char because int might match the return type of a GCC 42896 builtin and then its argument prototype would still apply. */ 42897 #ifdef __cplusplus 42898 extern "C" 42899 #endif 42900 char gethostbyname (); 42901 int 42902 main () 42903 { 42904 return gethostbyname (); 42905 ; 42906 return 0; 42907 } 42908 _ACEOF 42909 if ac_fn_cxx_try_link "$LINENO"; then : 42910 ac_cv_lib_nsl_gethostbyname=yes 42911 else 42912 ac_cv_lib_nsl_gethostbyname=no 42913 fi 42914 rm -f core conftest.err conftest.$ac_objext \ 42915 conftest$ac_exeext conftest.$ac_ext 42916 LIBS=$ac_check_lib_save_LIBS 42917 fi 42918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 42919 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 42920 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 42921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 42922 fi 42923 42924 if test $ac_cv_lib_nsl_gethostbyname = no; then 42925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 42926 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 42927 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 42928 $as_echo_n "(cached) " >&6 42929 else 42930 ac_check_lib_save_LIBS=$LIBS 42931 LIBS="-lbsd $LIBS" 42932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42933 /* end confdefs.h. */ 42934 42935 /* Override any GCC internal prototype to avoid an error. 42936 Use char because int might match the return type of a GCC 42937 builtin and then its argument prototype would still apply. */ 42938 #ifdef __cplusplus 42939 extern "C" 42940 #endif 42941 char gethostbyname (); 42942 int 42943 main () 42944 { 42945 return gethostbyname (); 42946 ; 42947 return 0; 42948 } 42949 _ACEOF 42950 if ac_fn_cxx_try_link "$LINENO"; then : 42951 ac_cv_lib_bsd_gethostbyname=yes 42952 else 42953 ac_cv_lib_bsd_gethostbyname=no 42954 fi 42955 rm -f core conftest.err conftest.$ac_objext \ 42956 conftest$ac_exeext conftest.$ac_ext 42957 LIBS=$ac_check_lib_save_LIBS 42958 fi 42959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 42960 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 42961 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 42962 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 42963 fi 42964 42965 fi 42966 fi 42967 42968 # lieder@skyler.mavd.honeywell.com says without -lsocket, 42969 # socket/setsockopt and other routines are undefined under SCO ODT 42970 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 42971 # on later versions), says Simon Leinen: it contains gethostby* 42972 # variants that don't use the name server (or something). -lsocket 42973 # must be given before -lnsl if both are needed. We assume that 42974 # if connect needs -lnsl, so does gethostbyname. 42975 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 42976 if test "x$ac_cv_func_connect" = xyes; then : 42977 42978 fi 42979 42980 if test $ac_cv_func_connect = no; then 42981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 42982 $as_echo_n "checking for connect in -lsocket... " >&6; } 42983 if ${ac_cv_lib_socket_connect+:} false; then : 42984 $as_echo_n "(cached) " >&6 42985 else 42986 ac_check_lib_save_LIBS=$LIBS 42987 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 42988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42989 /* end confdefs.h. */ 42990 42991 /* Override any GCC internal prototype to avoid an error. 42992 Use char because int might match the return type of a GCC 42993 builtin and then its argument prototype would still apply. */ 42994 #ifdef __cplusplus 42995 extern "C" 42996 #endif 42997 char connect (); 42998 int 42999 main () 43000 { 43001 return connect (); 43002 ; 43003 return 0; 43004 } 43005 _ACEOF 43006 if ac_fn_cxx_try_link "$LINENO"; then : 43007 ac_cv_lib_socket_connect=yes 43008 else 43009 ac_cv_lib_socket_connect=no 43010 fi 43011 rm -f core conftest.err conftest.$ac_objext \ 43012 conftest$ac_exeext conftest.$ac_ext 43013 LIBS=$ac_check_lib_save_LIBS 43014 fi 43015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43016 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43017 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43019 fi 43020 43021 fi 43022 43023 # Guillermo Gomez says -lposix is necessary on A/UX. 43024 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43025 if test "x$ac_cv_func_remove" = xyes; then : 43026 43027 fi 43028 43029 if test $ac_cv_func_remove = no; then 43030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43031 $as_echo_n "checking for remove in -lposix... " >&6; } 43032 if ${ac_cv_lib_posix_remove+:} false; then : 43033 $as_echo_n "(cached) " >&6 43034 else 43035 ac_check_lib_save_LIBS=$LIBS 43036 LIBS="-lposix $LIBS" 43037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43038 /* end confdefs.h. */ 43039 43040 /* Override any GCC internal prototype to avoid an error. 43041 Use char because int might match the return type of a GCC 43042 builtin and then its argument prototype would still apply. */ 43043 #ifdef __cplusplus 43044 extern "C" 43045 #endif 43046 char remove (); 43047 int 43048 main () 43049 { 43050 return remove (); 43051 ; 43052 return 0; 43053 } 43054 _ACEOF 43055 if ac_fn_cxx_try_link "$LINENO"; then : 43056 ac_cv_lib_posix_remove=yes 43057 else 43058 ac_cv_lib_posix_remove=no 43059 fi 43060 rm -f core conftest.err conftest.$ac_objext \ 43061 conftest$ac_exeext conftest.$ac_ext 43062 LIBS=$ac_check_lib_save_LIBS 43063 fi 43064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43065 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43066 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43068 fi 43069 43070 fi 43071 43072 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43073 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43074 if test "x$ac_cv_func_shmat" = xyes; then : 43075 43076 fi 43077 43078 if test $ac_cv_func_shmat = no; then 43079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43080 $as_echo_n "checking for shmat in -lipc... " >&6; } 43081 if ${ac_cv_lib_ipc_shmat+:} false; then : 43082 $as_echo_n "(cached) " >&6 43083 else 43084 ac_check_lib_save_LIBS=$LIBS 43085 LIBS="-lipc $LIBS" 43086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43087 /* end confdefs.h. */ 43088 43089 /* Override any GCC internal prototype to avoid an error. 43090 Use char because int might match the return type of a GCC 43091 builtin and then its argument prototype would still apply. */ 43092 #ifdef __cplusplus 43093 extern "C" 43094 #endif 43095 char shmat (); 43096 int 43097 main () 43098 { 43099 return shmat (); 43100 ; 43101 return 0; 43102 } 43103 _ACEOF 43104 if ac_fn_cxx_try_link "$LINENO"; then : 43105 ac_cv_lib_ipc_shmat=yes 43106 else 43107 ac_cv_lib_ipc_shmat=no 43108 fi 43109 rm -f core conftest.err conftest.$ac_objext \ 43110 conftest$ac_exeext conftest.$ac_ext 43111 LIBS=$ac_check_lib_save_LIBS 43112 fi 43113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43114 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43115 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43117 fi 43118 43119 fi 43120 fi 43121 43122 # Check for libraries that X11R6 Xt/Xaw programs need. 43123 ac_save_LDFLAGS=$LDFLAGS 43124 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43125 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43126 # check for ICE first), but we must link in the order -lSM -lICE or 43127 # we get undefined symbols. So assume we have SM if we have ICE. 43128 # These have to be linked with before -lX11, unlike the other 43129 # libraries we check for below, so use a different variable. 43130 # John Interrante, Karl Berry 43131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43132 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43133 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43134 $as_echo_n "(cached) " >&6 43135 else 43136 ac_check_lib_save_LIBS=$LIBS 43137 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43139 /* end confdefs.h. */ 43140 43141 /* Override any GCC internal prototype to avoid an error. 43142 Use char because int might match the return type of a GCC 43143 builtin and then its argument prototype would still apply. */ 43144 #ifdef __cplusplus 43145 extern "C" 43146 #endif 43147 char IceConnectionNumber (); 43148 int 43149 main () 43150 { 43151 return IceConnectionNumber (); 43152 ; 43153 return 0; 43154 } 43155 _ACEOF 43156 if ac_fn_cxx_try_link "$LINENO"; then : 43157 ac_cv_lib_ICE_IceConnectionNumber=yes 43158 else 43159 ac_cv_lib_ICE_IceConnectionNumber=no 43160 fi 43161 rm -f core conftest.err conftest.$ac_objext \ 43162 conftest$ac_exeext conftest.$ac_ext 43163 LIBS=$ac_check_lib_save_LIBS 43164 fi 43165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43166 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43167 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43168 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43169 fi 43170 43171 LDFLAGS=$ac_save_LDFLAGS 43172 43173 fi 43174 43175 43176 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43177 # this doesn't make sense so we remove it. 43178 if test "x$COMPILE_TYPE" = xcross; then 43179 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43180 fi 43181 43182 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43183 43184 # Print a helpful message on how to acquire the necessary build dependency. 43185 # x11 is the help tag: freetype, cups, pulse, alsa etc 43186 MISSING_DEPENDENCY=x11 43187 43188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43189 cygwin_help $MISSING_DEPENDENCY 43190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43191 msys_help $MISSING_DEPENDENCY 43192 else 43193 PKGHANDLER_COMMAND= 43194 43195 case $PKGHANDLER in 43196 apt-get) 43197 apt_help $MISSING_DEPENDENCY ;; 43198 yum) 43199 yum_help $MISSING_DEPENDENCY ;; 43200 port) 43201 port_help $MISSING_DEPENDENCY ;; 43202 pkgutil) 43203 pkgutil_help $MISSING_DEPENDENCY ;; 43204 pkgadd) 43205 pkgadd_help $MISSING_DEPENDENCY ;; 43206 esac 43207 43208 if test "x$PKGHANDLER_COMMAND" != x; then 43209 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43210 fi 43211 fi 43212 43213 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43214 fi 43215 43216 43217 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43218 OPENWIN_HOME="/usr/openwin" 43219 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43220 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43221 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43222 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43223 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43224 fi 43225 43226 # 43227 # Weird Sol10 something check...TODO change to try compile 43228 # 43229 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43230 if test "`uname -r`" = "5.10"; then 43231 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43232 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43233 fi 43234 fi 43235 fi 43236 43237 ac_ext=c 43238 ac_cpp='$CPP $CPPFLAGS' 43239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43241 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43242 43243 OLD_CFLAGS="$CFLAGS" 43244 CFLAGS="$CFLAGS $X_CFLAGS" 43245 43246 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43247 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43248 do : 43249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43250 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43251 # include <X11/Xlib.h> 43252 # include <X11/Xutil.h> 43253 43254 43255 " 43256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43257 cat >>confdefs.h <<_ACEOF 43258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43259 _ACEOF 43260 X11_A_OK=yes 43261 else 43262 X11_A_OK=no; break 43263 fi 43264 43265 done 43266 43267 43268 CFLAGS="$OLD_CFLAGS" 43269 ac_ext=cpp 43270 ac_cpp='$CXXCPP $CPPFLAGS' 43271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43274 43275 43276 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43277 43278 # Print a helpful message on how to acquire the necessary build dependency. 43279 # x11 is the help tag: freetype, cups, pulse, alsa etc 43280 MISSING_DEPENDENCY=x11 43281 43282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43283 cygwin_help $MISSING_DEPENDENCY 43284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43285 msys_help $MISSING_DEPENDENCY 43286 else 43287 PKGHANDLER_COMMAND= 43288 43289 case $PKGHANDLER in 43290 apt-get) 43291 apt_help $MISSING_DEPENDENCY ;; 43292 yum) 43293 yum_help $MISSING_DEPENDENCY ;; 43294 port) 43295 port_help $MISSING_DEPENDENCY ;; 43296 pkgutil) 43297 pkgutil_help $MISSING_DEPENDENCY ;; 43298 pkgadd) 43299 pkgadd_help $MISSING_DEPENDENCY ;; 43300 esac 43301 43302 if test "x$PKGHANDLER_COMMAND" != x; then 43303 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43304 fi 43305 fi 43306 43307 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43308 fi 43309 43310 43311 43312 43313 43314 43315 ############################################################################### 43316 # 43317 # The common unix printing system cups is used to print from java. 43318 # 43319 43320 # Check whether --with-cups was given. 43321 if test "${with_cups+set}" = set; then : 43322 withval=$with_cups; 43323 fi 43324 43325 43326 # Check whether --with-cups-include was given. 43327 if test "${with_cups_include+set}" = set; then : 43328 withval=$with_cups_include; 43329 fi 43330 43331 43332 if test "x$CUPS_NOT_NEEDED" = xyes; then 43333 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43335 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43336 fi 43337 CUPS_CFLAGS= 43338 else 43339 CUPS_FOUND=no 43340 43341 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43342 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43343 fi 43344 43345 if test "x${with_cups}" != x; then 43346 CUPS_CFLAGS="-I${with_cups}/include" 43347 CUPS_FOUND=yes 43348 fi 43349 if test "x${with_cups_include}" != x; then 43350 CUPS_CFLAGS="-I${with_cups_include}" 43351 CUPS_FOUND=yes 43352 fi 43353 if test "x$CUPS_FOUND" = xno; then 43354 43355 43356 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43357 # Source the builddeps file again, to make sure it uses the latest variables! 43358 . $builddepsfile 43359 # Look for a target and build machine specific resource! 43360 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43361 if test "x$resource" = x; then 43362 # Ok, lets instead look for a target specific resource 43363 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43364 fi 43365 if test "x$resource" = x; then 43366 # Ok, lets instead look for a build specific resource 43367 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43368 fi 43369 if test "x$resource" = x; then 43370 # Ok, lets instead look for a generic resource 43371 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43372 resource=${builddep_cups} 43373 fi 43374 if test "x$resource" != x; then 43375 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43376 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43377 # If the resource in the builddeps.conf file is an existing directory, 43378 # for example /java/linux/cups 43379 if test -d ${resource}; then 43380 depdir=${resource} 43381 else 43382 43383 # cups is for example mymodule 43384 # $resource is for example libs/general/libmymod_1_2_3.zip 43385 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43386 # $with_builddeps_dir is for example /localhome/builddeps 43387 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43388 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43389 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43390 filename=`basename $resource` 43391 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43392 filebase=${filename%%.*} 43393 extension=${filename#*.} 43394 installdir=$with_builddeps_dir/$filebase 43395 if test ! -f $installdir/$filename.unpacked; then 43396 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43397 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43398 if test ! -d $installdir; then 43399 mkdir -p $installdir 43400 fi 43401 if test ! -d $installdir; then 43402 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43403 fi 43404 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43405 touch $tmpfile 43406 if test ! -f $tmpfile; then 43407 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43408 fi 43409 43410 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43411 # $tmpfile is the local file name for the downloaded file. 43412 VALID_TOOL=no 43413 if test "x$BDEPS_FTP" = xwget; then 43414 VALID_TOOL=yes 43415 wget -O $tmpfile $with_builddeps_server/$resource 43416 fi 43417 if test "x$BDEPS_FTP" = xlftp; then 43418 VALID_TOOL=yes 43419 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43420 fi 43421 if test "x$BDEPS_FTP" = xftp; then 43422 VALID_TOOL=yes 43423 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43424 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43425 FTPUSERPWD=${FTPSERVER%%@*} 43426 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43427 FTPUSER=${userpwd%%:*} 43428 FTPPWD=${userpwd#*@} 43429 FTPSERVER=${FTPSERVER#*@} 43430 else 43431 FTPUSER=ftp 43432 FTPPWD=ftp 43433 fi 43434 # the "pass" command does not work on some 43435 # ftp clients (read ftp.exe) but if it works, 43436 # passive mode is better! 43437 ( \ 43438 echo "user $FTPUSER $FTPPWD" ; \ 43439 echo "pass" ; \ 43440 echo "bin" ; \ 43441 echo "get $FTPPATH $tmpfile" ; \ 43442 ) | ftp -in $FTPSERVER 43443 fi 43444 if test "x$VALID_TOOL" != xyes; then 43445 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43446 fi 43447 43448 mv $tmpfile $installdir/$filename 43449 if test ! -s $installdir/$filename; then 43450 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43451 fi 43452 case "$extension" in 43453 zip) echo "Unzipping $installdir/$filename..." 43454 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43455 ;; 43456 tar.gz) echo "Untaring $installdir/$filename..." 43457 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43458 ;; 43459 tgz) echo "Untaring $installdir/$filename..." 43460 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43461 ;; 43462 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43463 ;; 43464 esac 43465 fi 43466 if test -f $installdir/$filename.unpacked; then 43467 depdir=$installdir 43468 fi 43469 43470 fi 43471 # Source the builddeps file again, because in the previous command, the depdir 43472 # was updated to point at the current build dependency install directory. 43473 . $builddepsfile 43474 # Now extract variables from the builddeps.conf files. 43475 theroot=${builddep_cups_ROOT} 43476 thecflags=${builddep_cups_CFLAGS} 43477 thelibs=${builddep_cups_LIBS} 43478 if test "x$depdir" = x; then 43479 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43480 fi 43481 CUPS=$depdir 43482 if test "x$theroot" != x; then 43483 CUPS="$theroot" 43484 fi 43485 if test "x$thecflags" != x; then 43486 CUPS_CFLAGS="$thecflags" 43487 fi 43488 if test "x$thelibs" != x; then 43489 CUPS_LIBS="$thelibs" 43490 fi 43491 CUPS_FOUND=yes 43492 43493 fi 43494 43495 fi 43496 43497 fi 43498 if test "x$CUPS_FOUND" = xno; then 43499 # Are the cups headers installed in the default /usr/include location? 43500 for ac_header in cups/cups.h cups/ppd.h 43501 do : 43502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43503 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43505 cat >>confdefs.h <<_ACEOF 43506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43507 _ACEOF 43508 43509 CUPS_FOUND=yes 43510 CUPS_CFLAGS= 43511 DEFAULT_CUPS=yes 43512 43513 43514 fi 43515 43516 done 43517 43518 fi 43519 if test "x$CUPS_FOUND" = xno; then 43520 # Getting nervous now? Lets poke around for standard Solaris third-party 43521 # package installation locations. 43522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43523 $as_echo_n "checking for cups headers... " >&6; } 43524 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 43525 # An SFW package seems to be installed! 43526 CUPS_FOUND=yes 43527 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 43528 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 43529 # A CSW package seems to be installed! 43530 CUPS_FOUND=yes 43531 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 43532 fi 43533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43534 $as_echo "$CUPS_FOUND" >&6; } 43535 fi 43536 if test "x$CUPS_FOUND" = xno; then 43537 43538 # Print a helpful message on how to acquire the necessary build dependency. 43539 # cups is the help tag: freetype, cups, pulse, alsa etc 43540 MISSING_DEPENDENCY=cups 43541 43542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43543 cygwin_help $MISSING_DEPENDENCY 43544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43545 msys_help $MISSING_DEPENDENCY 43546 else 43547 PKGHANDLER_COMMAND= 43548 43549 case $PKGHANDLER in 43550 apt-get) 43551 apt_help $MISSING_DEPENDENCY ;; 43552 yum) 43553 yum_help $MISSING_DEPENDENCY ;; 43554 port) 43555 port_help $MISSING_DEPENDENCY ;; 43556 pkgutil) 43557 pkgutil_help $MISSING_DEPENDENCY ;; 43558 pkgadd) 43559 pkgadd_help $MISSING_DEPENDENCY ;; 43560 esac 43561 43562 if test "x$PKGHANDLER_COMMAND" != x; then 43563 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43564 fi 43565 fi 43566 43567 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43568 fi 43569 fi 43570 43571 43572 43573 43574 43575 43576 ############################################################################### 43577 # 43578 # The ubiquitous freetype library is used to render fonts. 43579 # 43580 43581 # Check whether --with-freetype was given. 43582 if test "${with_freetype+set}" = set; then : 43583 withval=$with_freetype; 43584 fi 43585 43586 43587 # Check whether --with-freetype-include was given. 43588 if test "${with_freetype_include+set}" = set; then : 43589 withval=$with_freetype_include; 43590 fi 43591 43592 43593 # Check whether --with-freetype-lib was given. 43594 if test "${with_freetype_lib+set}" = set; then : 43595 withval=$with_freetype_lib; 43596 fi 43597 43598 43599 # Check whether --with-freetype-src was given. 43600 if test "${with_freetype_src+set}" = set; then : 43601 withval=$with_freetype_src; 43602 fi 43603 43604 # Check whether --enable-freetype-bundling was given. 43605 if test "${enable_freetype_bundling+set}" = set; then : 43606 enableval=$enable_freetype_bundling; 43607 fi 43608 43609 43610 FREETYPE_CFLAGS= 43611 FREETYPE_LIBS= 43612 FREETYPE_BUNDLE_LIB_PATH= 43613 43614 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43615 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 43616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43617 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43618 fi 43619 if test "x$enable_freetype_bundling" != x; then 43620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43621 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43622 fi 43623 else 43624 # freetype is needed to build; go get it! 43625 43626 BUNDLE_FREETYPE="$enable_freetype_bundling" 43627 43628 if test "x$with_freetype_src" != x; then 43629 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43630 # Try to build freetype if --with-freetype-src was given on Windows 43631 43632 FREETYPE_SRC_PATH="$with_freetype_src" 43633 BUILD_FREETYPE=yes 43634 43635 # Check if the freetype sources are acessible.. 43636 if ! test -d $FREETYPE_SRC_PATH; then 43637 { $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 43638 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 43639 BUILD_FREETYPE=no 43640 fi 43641 # ..and contain a vc2010 project file 43642 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 43643 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 43644 { $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 43645 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 43646 BUILD_FREETYPE=no 43647 fi 43648 # Now check if configure found a version of 'msbuild.exe' 43649 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 43650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 43651 $as_echo "$as_me: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 43652 BUILD_FREETYPE=no 43653 fi 43654 43655 # Ready to go.. 43656 if test "x$BUILD_FREETYPE" = xyes; then 43657 43658 # msbuild requires trailing slashes for output directories 43659 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 43660 freetype_lib_path_unix="$freetype_lib_path" 43661 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 43662 43663 unix_path="$vcxproj_path" 43664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43665 windows_path=`$CYGPATH -m "$unix_path"` 43666 vcxproj_path="$windows_path" 43667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43668 windows_path=`cmd //c echo $unix_path` 43669 vcxproj_path="$windows_path" 43670 fi 43671 43672 43673 unix_path="$freetype_lib_path" 43674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43675 windows_path=`$CYGPATH -m "$unix_path"` 43676 freetype_lib_path="$windows_path" 43677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43678 windows_path=`cmd //c echo $unix_path` 43679 freetype_lib_path="$windows_path" 43680 fi 43681 43682 43683 unix_path="$freetype_obj_path" 43684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43685 windows_path=`$CYGPATH -m "$unix_path"` 43686 freetype_obj_path="$windows_path" 43687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43688 windows_path=`cmd //c echo $unix_path` 43689 freetype_obj_path="$windows_path" 43690 fi 43691 43692 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43693 freetype_platform=x64 43694 else 43695 freetype_platform=win32 43696 fi 43697 43698 # The original freetype project file is for VS 2010 (i.e. 'v100'), 43699 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 43700 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 43701 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 43702 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 43703 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 43704 43705 # First we try to build the freetype.dll 43706 $ECHO -e "@echo off\n"\ 43707 "$MSBUILD $vcxproj_path "\ 43708 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 43709 "/p:Configuration=\"Release Multithreaded\" "\ 43710 "/p:Platform=$freetype_platform "\ 43711 "/p:ConfigurationType=DynamicLibrary "\ 43712 "/p:TargetName=freetype "\ 43713 "/p:OutDir=\"$freetype_lib_path\" "\ 43714 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 43715 cmd /c freetype.bat 43716 43717 if test -s "$freetype_lib_path_unix/freetype.dll"; then 43718 # If that succeeds we also build freetype.lib 43719 $ECHO -e "@echo off\n"\ 43720 "$MSBUILD $vcxproj_path "\ 43721 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 43722 "/p:Configuration=\"Release Multithreaded\" "\ 43723 "/p:Platform=$freetype_platform "\ 43724 "/p:ConfigurationType=StaticLibrary "\ 43725 "/p:TargetName=freetype "\ 43726 "/p:OutDir=\"$freetype_lib_path\" "\ 43727 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 43728 cmd /c freetype.bat 43729 43730 if test -s "$freetype_lib_path_unix/freetype.lib"; then 43731 # Once we build both, lib and dll, set freetype lib and include path appropriately 43732 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 43733 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 43734 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 43735 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 43736 else 43737 BUILD_FREETYPE=no 43738 fi 43739 else 43740 BUILD_FREETYPE=no 43741 fi 43742 fi 43743 43744 if test "x$BUILD_FREETYPE" = xyes; then 43745 # Okay, we built it. Check that it works. 43746 43747 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43748 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43749 METHOD="--with-freetype-src" 43750 43751 # First check if the files exists. 43752 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43753 # We found an arbitrary include file. That's a good sign. 43754 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43755 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43756 FOUND_FREETYPE=yes 43757 43758 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43759 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43760 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43761 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43762 FOUND_FREETYPE=no 43763 else 43764 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43765 # On Windows, we will need both .lib and .dll file. 43766 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43767 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43768 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43769 FOUND_FREETYPE=no 43770 fi 43771 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43772 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43773 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43774 fi 43775 fi 43776 fi 43777 43778 if test "x$FOUND_FREETYPE" = xyes; then 43779 43780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43781 43782 # Input might be given as Windows format, start by converting to 43783 # unix format. 43784 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43785 new_path=`$CYGPATH -u "$path"` 43786 43787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43790 # "foo.exe" is OK but "foo" is an error. 43791 # 43792 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43793 # It is also a way to make sure we got the proper file name for the real test later on. 43794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43795 if test "x$test_shortpath" = x; then 43796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43797 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43798 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43799 fi 43800 43801 # Call helper function which possibly converts this using DOS-style short mode. 43802 # If so, the updated path is stored in $new_path. 43803 43804 input_path="$new_path" 43805 # Check if we need to convert this using DOS-style short mode. If the path 43806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43807 # take no chances and rewrite it. 43808 # Note: m4 eats our [], so we need to use [ and ] instead. 43809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43810 if test "x$has_forbidden_chars" != x; then 43811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43812 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43813 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43814 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43815 # Going to short mode and back again did indeed matter. Since short mode is 43816 # case insensitive, let's make it lowercase to improve readability. 43817 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43818 # Now convert it back to Unix-style (cygpath) 43819 input_path=`$CYGPATH -u "$shortmode_path"` 43820 new_path="$input_path" 43821 fi 43822 fi 43823 43824 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43825 if test "x$test_cygdrive_prefix" = x; then 43826 # As a simple fix, exclude /usr/bin since it's not a real path. 43827 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43828 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43829 # a path prefixed by /cygdrive for fixpath to work. 43830 new_path="$CYGWIN_ROOT_PATH$input_path" 43831 fi 43832 fi 43833 43834 43835 if test "x$path" != "x$new_path"; then 43836 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43838 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43839 fi 43840 43841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43842 43843 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43844 has_colon=`$ECHO $path | $GREP ^.:` 43845 new_path="$path" 43846 if test "x$has_colon" = x; then 43847 # Not in mixed or Windows style, start by that. 43848 new_path=`cmd //c echo $path` 43849 fi 43850 43851 43852 input_path="$new_path" 43853 # Check if we need to convert this using DOS-style short mode. If the path 43854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43855 # take no chances and rewrite it. 43856 # Note: m4 eats our [], so we need to use [ and ] instead. 43857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43858 if test "x$has_forbidden_chars" != x; then 43859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43861 fi 43862 43863 43864 windows_path="$new_path" 43865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43866 unix_path=`$CYGPATH -u "$windows_path"` 43867 new_path="$unix_path" 43868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43870 new_path="$unix_path" 43871 fi 43872 43873 if test "x$path" != "x$new_path"; then 43874 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43875 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43876 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43877 fi 43878 43879 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43880 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43881 43882 else 43883 # We're on a posix platform. Hooray! :) 43884 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43885 has_space=`$ECHO "$path" | $GREP " "` 43886 if test "x$has_space" != x; then 43887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43888 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43889 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43890 fi 43891 43892 # Use eval to expand a potential ~ 43893 eval path="$path" 43894 if test ! -f "$path" && test ! -d "$path"; then 43895 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43896 fi 43897 43898 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43899 fi 43900 43901 43902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43903 43904 # Input might be given as Windows format, start by converting to 43905 # unix format. 43906 path="$POTENTIAL_FREETYPE_LIB_PATH" 43907 new_path=`$CYGPATH -u "$path"` 43908 43909 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43910 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43911 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43912 # "foo.exe" is OK but "foo" is an error. 43913 # 43914 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43915 # It is also a way to make sure we got the proper file name for the real test later on. 43916 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43917 if test "x$test_shortpath" = x; then 43918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43919 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43920 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43921 fi 43922 43923 # Call helper function which possibly converts this using DOS-style short mode. 43924 # If so, the updated path is stored in $new_path. 43925 43926 input_path="$new_path" 43927 # Check if we need to convert this using DOS-style short mode. If the path 43928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43929 # take no chances and rewrite it. 43930 # Note: m4 eats our [], so we need to use [ and ] instead. 43931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43932 if test "x$has_forbidden_chars" != x; then 43933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43934 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43935 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43936 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43937 # Going to short mode and back again did indeed matter. Since short mode is 43938 # case insensitive, let's make it lowercase to improve readability. 43939 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43940 # Now convert it back to Unix-style (cygpath) 43941 input_path=`$CYGPATH -u "$shortmode_path"` 43942 new_path="$input_path" 43943 fi 43944 fi 43945 43946 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43947 if test "x$test_cygdrive_prefix" = x; then 43948 # As a simple fix, exclude /usr/bin since it's not a real path. 43949 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43950 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43951 # a path prefixed by /cygdrive for fixpath to work. 43952 new_path="$CYGWIN_ROOT_PATH$input_path" 43953 fi 43954 fi 43955 43956 43957 if test "x$path" != "x$new_path"; then 43958 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43959 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43960 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43961 fi 43962 43963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43964 43965 path="$POTENTIAL_FREETYPE_LIB_PATH" 43966 has_colon=`$ECHO $path | $GREP ^.:` 43967 new_path="$path" 43968 if test "x$has_colon" = x; then 43969 # Not in mixed or Windows style, start by that. 43970 new_path=`cmd //c echo $path` 43971 fi 43972 43973 43974 input_path="$new_path" 43975 # Check if we need to convert this using DOS-style short mode. If the path 43976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43977 # take no chances and rewrite it. 43978 # Note: m4 eats our [], so we need to use [ and ] instead. 43979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43980 if test "x$has_forbidden_chars" != x; then 43981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43982 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43983 fi 43984 43985 43986 windows_path="$new_path" 43987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43988 unix_path=`$CYGPATH -u "$windows_path"` 43989 new_path="$unix_path" 43990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43992 new_path="$unix_path" 43993 fi 43994 43995 if test "x$path" != "x$new_path"; then 43996 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43999 fi 44000 44001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44003 44004 else 44005 # We're on a posix platform. Hooray! :) 44006 path="$POTENTIAL_FREETYPE_LIB_PATH" 44007 has_space=`$ECHO "$path" | $GREP " "` 44008 if test "x$has_space" != x; then 44009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44010 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44011 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44012 fi 44013 44014 # Use eval to expand a potential ~ 44015 eval path="$path" 44016 if test ! -f "$path" && test ! -d "$path"; then 44017 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44018 fi 44019 44020 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44021 fi 44022 44023 44024 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44026 $as_echo_n "checking for freetype includes... " >&6; } 44027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44028 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44029 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44031 $as_echo_n "checking for freetype libraries... " >&6; } 44032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44033 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44034 fi 44035 44036 if test "x$FOUND_FREETYPE" != xyes; then 44037 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44038 fi 44039 else 44040 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44041 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44042 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44043 fi 44044 else 44045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44046 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44047 fi 44048 fi 44049 44050 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44051 # User has specified settings 44052 44053 if test "x$BUNDLE_FREETYPE" = x; then 44054 # If not specified, default is to bundle freetype 44055 BUNDLE_FREETYPE=yes 44056 fi 44057 44058 if test "x$with_freetype" != x; then 44059 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44060 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44061 fi 44062 44063 # Allow --with-freetype-lib and --with-freetype-include to override 44064 if test "x$with_freetype_include" != x; then 44065 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44066 fi 44067 if test "x$with_freetype_lib" != x; then 44068 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44069 fi 44070 44071 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44072 # Okay, we got it. Check that it works. 44073 44074 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44075 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44076 METHOD="--with-freetype" 44077 44078 # First check if the files exists. 44079 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44080 # We found an arbitrary include file. That's a good sign. 44081 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44082 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44083 FOUND_FREETYPE=yes 44084 44085 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44086 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44087 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44088 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44089 FOUND_FREETYPE=no 44090 else 44091 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44092 # On Windows, we will need both .lib and .dll file. 44093 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44094 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44095 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44096 FOUND_FREETYPE=no 44097 fi 44098 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44099 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44100 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44101 fi 44102 fi 44103 fi 44104 44105 if test "x$FOUND_FREETYPE" = xyes; then 44106 44107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44108 44109 # Input might be given as Windows format, start by converting to 44110 # unix format. 44111 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44112 new_path=`$CYGPATH -u "$path"` 44113 44114 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44115 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44116 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44117 # "foo.exe" is OK but "foo" is an error. 44118 # 44119 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44120 # It is also a way to make sure we got the proper file name for the real test later on. 44121 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44122 if test "x$test_shortpath" = x; then 44123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44124 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44125 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44126 fi 44127 44128 # Call helper function which possibly converts this using DOS-style short mode. 44129 # If so, the updated path is stored in $new_path. 44130 44131 input_path="$new_path" 44132 # Check if we need to convert this using DOS-style short mode. If the path 44133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44134 # take no chances and rewrite it. 44135 # Note: m4 eats our [], so we need to use [ and ] instead. 44136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44137 if test "x$has_forbidden_chars" != x; then 44138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44139 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44140 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44141 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44142 # Going to short mode and back again did indeed matter. Since short mode is 44143 # case insensitive, let's make it lowercase to improve readability. 44144 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44145 # Now convert it back to Unix-style (cygpath) 44146 input_path=`$CYGPATH -u "$shortmode_path"` 44147 new_path="$input_path" 44148 fi 44149 fi 44150 44151 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44152 if test "x$test_cygdrive_prefix" = x; then 44153 # As a simple fix, exclude /usr/bin since it's not a real path. 44154 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44155 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44156 # a path prefixed by /cygdrive for fixpath to work. 44157 new_path="$CYGWIN_ROOT_PATH$input_path" 44158 fi 44159 fi 44160 44161 44162 if test "x$path" != "x$new_path"; then 44163 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44165 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44166 fi 44167 44168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44169 44170 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44171 has_colon=`$ECHO $path | $GREP ^.:` 44172 new_path="$path" 44173 if test "x$has_colon" = x; then 44174 # Not in mixed or Windows style, start by that. 44175 new_path=`cmd //c echo $path` 44176 fi 44177 44178 44179 input_path="$new_path" 44180 # Check if we need to convert this using DOS-style short mode. If the path 44181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44182 # take no chances and rewrite it. 44183 # Note: m4 eats our [], so we need to use [ and ] instead. 44184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44185 if test "x$has_forbidden_chars" != x; then 44186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44187 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44188 fi 44189 44190 44191 windows_path="$new_path" 44192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44193 unix_path=`$CYGPATH -u "$windows_path"` 44194 new_path="$unix_path" 44195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44197 new_path="$unix_path" 44198 fi 44199 44200 if test "x$path" != "x$new_path"; then 44201 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44203 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44204 fi 44205 44206 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44207 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44208 44209 else 44210 # We're on a posix platform. Hooray! :) 44211 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44212 has_space=`$ECHO "$path" | $GREP " "` 44213 if test "x$has_space" != x; then 44214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44215 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44216 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44217 fi 44218 44219 # Use eval to expand a potential ~ 44220 eval path="$path" 44221 if test ! -f "$path" && test ! -d "$path"; then 44222 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44223 fi 44224 44225 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44226 fi 44227 44228 44229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44230 44231 # Input might be given as Windows format, start by converting to 44232 # unix format. 44233 path="$POTENTIAL_FREETYPE_LIB_PATH" 44234 new_path=`$CYGPATH -u "$path"` 44235 44236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44239 # "foo.exe" is OK but "foo" is an error. 44240 # 44241 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44242 # It is also a way to make sure we got the proper file name for the real test later on. 44243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44244 if test "x$test_shortpath" = x; then 44245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44246 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44247 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44248 fi 44249 44250 # Call helper function which possibly converts this using DOS-style short mode. 44251 # If so, the updated path is stored in $new_path. 44252 44253 input_path="$new_path" 44254 # Check if we need to convert this using DOS-style short mode. If the path 44255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44256 # take no chances and rewrite it. 44257 # Note: m4 eats our [], so we need to use [ and ] instead. 44258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44259 if test "x$has_forbidden_chars" != x; then 44260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44264 # Going to short mode and back again did indeed matter. Since short mode is 44265 # case insensitive, let's make it lowercase to improve readability. 44266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44267 # Now convert it back to Unix-style (cygpath) 44268 input_path=`$CYGPATH -u "$shortmode_path"` 44269 new_path="$input_path" 44270 fi 44271 fi 44272 44273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44274 if test "x$test_cygdrive_prefix" = x; then 44275 # As a simple fix, exclude /usr/bin since it's not a real path. 44276 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44278 # a path prefixed by /cygdrive for fixpath to work. 44279 new_path="$CYGWIN_ROOT_PATH$input_path" 44280 fi 44281 fi 44282 44283 44284 if test "x$path" != "x$new_path"; then 44285 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44286 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44287 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44288 fi 44289 44290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44291 44292 path="$POTENTIAL_FREETYPE_LIB_PATH" 44293 has_colon=`$ECHO $path | $GREP ^.:` 44294 new_path="$path" 44295 if test "x$has_colon" = x; then 44296 # Not in mixed or Windows style, start by that. 44297 new_path=`cmd //c echo $path` 44298 fi 44299 44300 44301 input_path="$new_path" 44302 # Check if we need to convert this using DOS-style short mode. If the path 44303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44304 # take no chances and rewrite it. 44305 # Note: m4 eats our [], so we need to use [ and ] instead. 44306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44307 if test "x$has_forbidden_chars" != x; then 44308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44310 fi 44311 44312 44313 windows_path="$new_path" 44314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44315 unix_path=`$CYGPATH -u "$windows_path"` 44316 new_path="$unix_path" 44317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44319 new_path="$unix_path" 44320 fi 44321 44322 if test "x$path" != "x$new_path"; then 44323 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44325 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44326 fi 44327 44328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44330 44331 else 44332 # We're on a posix platform. Hooray! :) 44333 path="$POTENTIAL_FREETYPE_LIB_PATH" 44334 has_space=`$ECHO "$path" | $GREP " "` 44335 if test "x$has_space" != x; then 44336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44337 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44338 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44339 fi 44340 44341 # Use eval to expand a potential ~ 44342 eval path="$path" 44343 if test ! -f "$path" && test ! -d "$path"; then 44344 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44345 fi 44346 44347 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44348 fi 44349 44350 44351 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44353 $as_echo_n "checking for freetype includes... " >&6; } 44354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44355 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44356 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44358 $as_echo_n "checking for freetype libraries... " >&6; } 44359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44360 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44361 fi 44362 44363 if test "x$FOUND_FREETYPE" != xyes; then 44364 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 44365 fi 44366 else 44367 # User specified only one of lib or include. This is an error. 44368 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44369 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44370 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44371 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44372 else 44373 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44374 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44375 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44376 fi 44377 fi 44378 else 44379 # User did not specify settings, but we need freetype. Try to locate it. 44380 44381 if test "x$BUNDLE_FREETYPE" = x; then 44382 # If not specified, default is to bundle freetype only on windows 44383 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44384 BUNDLE_FREETYPE=yes 44385 else 44386 BUNDLE_FREETYPE=no 44387 fi 44388 fi 44389 44390 if test "x$FOUND_FREETYPE" != xyes; then 44391 # Check builddeps 44392 44393 44394 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44395 # Source the builddeps file again, to make sure it uses the latest variables! 44396 . $builddepsfile 44397 # Look for a target and build machine specific resource! 44398 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44399 if test "x$resource" = x; then 44400 # Ok, lets instead look for a target specific resource 44401 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44402 fi 44403 if test "x$resource" = x; then 44404 # Ok, lets instead look for a build specific resource 44405 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44406 fi 44407 if test "x$resource" = x; then 44408 # Ok, lets instead look for a generic resource 44409 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44410 resource=${builddep_freetype2} 44411 fi 44412 if test "x$resource" != x; then 44413 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44414 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44415 # If the resource in the builddeps.conf file is an existing directory, 44416 # for example /java/linux/cups 44417 if test -d ${resource}; then 44418 depdir=${resource} 44419 else 44420 44421 # freetype2 is for example mymodule 44422 # $resource is for example libs/general/libmymod_1_2_3.zip 44423 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44424 # $with_builddeps_dir is for example /localhome/builddeps 44425 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44426 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44427 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44428 filename=`basename $resource` 44429 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44430 filebase=${filename%%.*} 44431 extension=${filename#*.} 44432 installdir=$with_builddeps_dir/$filebase 44433 if test ! -f $installdir/$filename.unpacked; then 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44435 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44436 if test ! -d $installdir; then 44437 mkdir -p $installdir 44438 fi 44439 if test ! -d $installdir; then 44440 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44441 fi 44442 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44443 touch $tmpfile 44444 if test ! -f $tmpfile; then 44445 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44446 fi 44447 44448 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44449 # $tmpfile is the local file name for the downloaded file. 44450 VALID_TOOL=no 44451 if test "x$BDEPS_FTP" = xwget; then 44452 VALID_TOOL=yes 44453 wget -O $tmpfile $with_builddeps_server/$resource 44454 fi 44455 if test "x$BDEPS_FTP" = xlftp; then 44456 VALID_TOOL=yes 44457 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44458 fi 44459 if test "x$BDEPS_FTP" = xftp; then 44460 VALID_TOOL=yes 44461 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44462 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44463 FTPUSERPWD=${FTPSERVER%%@*} 44464 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44465 FTPUSER=${userpwd%%:*} 44466 FTPPWD=${userpwd#*@} 44467 FTPSERVER=${FTPSERVER#*@} 44468 else 44469 FTPUSER=ftp 44470 FTPPWD=ftp 44471 fi 44472 # the "pass" command does not work on some 44473 # ftp clients (read ftp.exe) but if it works, 44474 # passive mode is better! 44475 ( \ 44476 echo "user $FTPUSER $FTPPWD" ; \ 44477 echo "pass" ; \ 44478 echo "bin" ; \ 44479 echo "get $FTPPATH $tmpfile" ; \ 44480 ) | ftp -in $FTPSERVER 44481 fi 44482 if test "x$VALID_TOOL" != xyes; then 44483 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44484 fi 44485 44486 mv $tmpfile $installdir/$filename 44487 if test ! -s $installdir/$filename; then 44488 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44489 fi 44490 case "$extension" in 44491 zip) echo "Unzipping $installdir/$filename..." 44492 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44493 ;; 44494 tar.gz) echo "Untaring $installdir/$filename..." 44495 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44496 ;; 44497 tgz) echo "Untaring $installdir/$filename..." 44498 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44499 ;; 44500 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44501 ;; 44502 esac 44503 fi 44504 if test -f $installdir/$filename.unpacked; then 44505 depdir=$installdir 44506 fi 44507 44508 fi 44509 # Source the builddeps file again, because in the previous command, the depdir 44510 # was updated to point at the current build dependency install directory. 44511 . $builddepsfile 44512 # Now extract variables from the builddeps.conf files. 44513 theroot=${builddep_freetype2_ROOT} 44514 thecflags=${builddep_freetype2_CFLAGS} 44515 thelibs=${builddep_freetype2_LIBS} 44516 if test "x$depdir" = x; then 44517 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44518 fi 44519 FREETYPE=$depdir 44520 if test "x$theroot" != x; then 44521 FREETYPE="$theroot" 44522 fi 44523 if test "x$thecflags" != x; then 44524 FREETYPE_CFLAGS="$thecflags" 44525 fi 44526 if test "x$thelibs" != x; then 44527 FREETYPE_LIBS="$thelibs" 44528 fi 44529 FOUND_FREETYPE=yes 44530 else FOUND_FREETYPE=no 44531 44532 fi 44533 else FOUND_FREETYPE=no 44534 44535 fi 44536 44537 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44538 if test "x$FOUND_FREETYPE" = xyes; then 44539 if test "x$BUNDLE_FREETYPE" = xyes; then 44540 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44541 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44542 FOUND_FREETYPE=no 44543 else 44544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44545 $as_echo_n "checking for freetype... " >&6; } 44546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44547 $as_echo "yes (using builddeps)" >&6; } 44548 fi 44549 fi 44550 fi 44551 44552 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 44553 if test "x$SYSROOT" = x; then 44554 if test "x$FOUND_FREETYPE" != xyes; then 44555 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44556 if test "x$PKG_CONFIG" != x; then 44557 44558 pkg_failed=no 44559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44560 $as_echo_n "checking for FREETYPE... " >&6; } 44561 44562 if test -n "$FREETYPE_CFLAGS"; then 44563 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 44564 elif test -n "$PKG_CONFIG"; then 44565 if test -n "$PKG_CONFIG" && \ 44566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44567 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44568 ac_status=$? 44569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44570 test $ac_status = 0; }; then 44571 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 44572 else 44573 pkg_failed=yes 44574 fi 44575 else 44576 pkg_failed=untried 44577 fi 44578 if test -n "$FREETYPE_LIBS"; then 44579 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 44580 elif test -n "$PKG_CONFIG"; then 44581 if test -n "$PKG_CONFIG" && \ 44582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44583 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44584 ac_status=$? 44585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44586 test $ac_status = 0; }; then 44587 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 44588 else 44589 pkg_failed=yes 44590 fi 44591 else 44592 pkg_failed=untried 44593 fi 44594 44595 44596 44597 if test $pkg_failed = yes; then 44598 44599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 44600 _pkg_short_errors_supported=yes 44601 else 44602 _pkg_short_errors_supported=no 44603 fi 44604 if test $_pkg_short_errors_supported = yes; then 44605 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 44606 else 44607 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 44608 fi 44609 # Put the nasty error message in config.log where it belongs 44610 echo "$FREETYPE_PKG_ERRORS" >&5 44611 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44613 $as_echo "no" >&6; } 44614 FOUND_FREETYPE=no 44615 elif test $pkg_failed = untried; then 44616 FOUND_FREETYPE=no 44617 else 44618 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 44619 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 44620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44621 $as_echo "yes" >&6; } 44622 FOUND_FREETYPE=yes 44623 fi 44624 if test "x$FOUND_FREETYPE" = xyes; then 44625 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 44626 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 44627 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 44628 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 44629 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 44630 fi 44631 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44632 if test "x$BUNDLE_FREETYPE" = xyes; then 44633 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 44634 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 44635 FOUND_FREETYPE=no 44636 else 44637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44638 $as_echo_n "checking for freetype... " >&6; } 44639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 44640 $as_echo "yes (using pkg-config)" >&6; } 44641 fi 44642 fi 44643 fi 44644 fi 44645 fi 44646 44647 if test "x$FOUND_FREETYPE" != xyes; then 44648 # Check in well-known locations 44649 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44650 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 44651 44652 windows_path="$FREETYPE_BASE_DIR" 44653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44654 unix_path=`$CYGPATH -u "$windows_path"` 44655 FREETYPE_BASE_DIR="$unix_path" 44656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44658 FREETYPE_BASE_DIR="$unix_path" 44659 fi 44660 44661 44662 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44663 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44664 METHOD="well-known location" 44665 44666 # First check if the files exists. 44667 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44668 # We found an arbitrary include file. That's a good sign. 44669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44670 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44671 FOUND_FREETYPE=yes 44672 44673 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44674 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44675 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44676 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44677 FOUND_FREETYPE=no 44678 else 44679 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44680 # On Windows, we will need both .lib and .dll file. 44681 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44682 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44683 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44684 FOUND_FREETYPE=no 44685 fi 44686 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44687 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44688 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44689 fi 44690 fi 44691 fi 44692 44693 if test "x$FOUND_FREETYPE" = xyes; then 44694 44695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44696 44697 # Input might be given as Windows format, start by converting to 44698 # unix format. 44699 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44700 new_path=`$CYGPATH -u "$path"` 44701 44702 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44703 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44704 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44705 # "foo.exe" is OK but "foo" is an error. 44706 # 44707 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44708 # It is also a way to make sure we got the proper file name for the real test later on. 44709 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44710 if test "x$test_shortpath" = x; then 44711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44712 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44713 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44714 fi 44715 44716 # Call helper function which possibly converts this using DOS-style short mode. 44717 # If so, the updated path is stored in $new_path. 44718 44719 input_path="$new_path" 44720 # Check if we need to convert this using DOS-style short mode. If the path 44721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44722 # take no chances and rewrite it. 44723 # Note: m4 eats our [], so we need to use [ and ] instead. 44724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44725 if test "x$has_forbidden_chars" != x; then 44726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44727 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44728 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44729 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44730 # Going to short mode and back again did indeed matter. Since short mode is 44731 # case insensitive, let's make it lowercase to improve readability. 44732 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44733 # Now convert it back to Unix-style (cygpath) 44734 input_path=`$CYGPATH -u "$shortmode_path"` 44735 new_path="$input_path" 44736 fi 44737 fi 44738 44739 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44740 if test "x$test_cygdrive_prefix" = x; then 44741 # As a simple fix, exclude /usr/bin since it's not a real path. 44742 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44743 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44744 # a path prefixed by /cygdrive for fixpath to work. 44745 new_path="$CYGWIN_ROOT_PATH$input_path" 44746 fi 44747 fi 44748 44749 44750 if test "x$path" != "x$new_path"; then 44751 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44753 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44754 fi 44755 44756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44757 44758 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44759 has_colon=`$ECHO $path | $GREP ^.:` 44760 new_path="$path" 44761 if test "x$has_colon" = x; then 44762 # Not in mixed or Windows style, start by that. 44763 new_path=`cmd //c echo $path` 44764 fi 44765 44766 44767 input_path="$new_path" 44768 # Check if we need to convert this using DOS-style short mode. If the path 44769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44770 # take no chances and rewrite it. 44771 # Note: m4 eats our [], so we need to use [ and ] instead. 44772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44773 if test "x$has_forbidden_chars" != x; then 44774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44775 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44776 fi 44777 44778 44779 windows_path="$new_path" 44780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44781 unix_path=`$CYGPATH -u "$windows_path"` 44782 new_path="$unix_path" 44783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44785 new_path="$unix_path" 44786 fi 44787 44788 if test "x$path" != "x$new_path"; then 44789 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44791 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44792 fi 44793 44794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44796 44797 else 44798 # We're on a posix platform. Hooray! :) 44799 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44800 has_space=`$ECHO "$path" | $GREP " "` 44801 if test "x$has_space" != x; then 44802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44803 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44804 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44805 fi 44806 44807 # Use eval to expand a potential ~ 44808 eval path="$path" 44809 if test ! -f "$path" && test ! -d "$path"; then 44810 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44811 fi 44812 44813 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44814 fi 44815 44816 44817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44818 44819 # Input might be given as Windows format, start by converting to 44820 # unix format. 44821 path="$POTENTIAL_FREETYPE_LIB_PATH" 44822 new_path=`$CYGPATH -u "$path"` 44823 44824 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44825 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44826 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44827 # "foo.exe" is OK but "foo" is an error. 44828 # 44829 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44830 # It is also a way to make sure we got the proper file name for the real test later on. 44831 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44832 if test "x$test_shortpath" = x; then 44833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44834 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44835 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44836 fi 44837 44838 # Call helper function which possibly converts this using DOS-style short mode. 44839 # If so, the updated path is stored in $new_path. 44840 44841 input_path="$new_path" 44842 # Check if we need to convert this using DOS-style short mode. If the path 44843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44844 # take no chances and rewrite it. 44845 # Note: m4 eats our [], so we need to use [ and ] instead. 44846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44847 if test "x$has_forbidden_chars" != x; then 44848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44849 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44850 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44851 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44852 # Going to short mode and back again did indeed matter. Since short mode is 44853 # case insensitive, let's make it lowercase to improve readability. 44854 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44855 # Now convert it back to Unix-style (cygpath) 44856 input_path=`$CYGPATH -u "$shortmode_path"` 44857 new_path="$input_path" 44858 fi 44859 fi 44860 44861 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44862 if test "x$test_cygdrive_prefix" = x; then 44863 # As a simple fix, exclude /usr/bin since it's not a real path. 44864 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44865 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44866 # a path prefixed by /cygdrive for fixpath to work. 44867 new_path="$CYGWIN_ROOT_PATH$input_path" 44868 fi 44869 fi 44870 44871 44872 if test "x$path" != "x$new_path"; then 44873 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44874 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44875 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44876 fi 44877 44878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44879 44880 path="$POTENTIAL_FREETYPE_LIB_PATH" 44881 has_colon=`$ECHO $path | $GREP ^.:` 44882 new_path="$path" 44883 if test "x$has_colon" = x; then 44884 # Not in mixed or Windows style, start by that. 44885 new_path=`cmd //c echo $path` 44886 fi 44887 44888 44889 input_path="$new_path" 44890 # Check if we need to convert this using DOS-style short mode. If the path 44891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44892 # take no chances and rewrite it. 44893 # Note: m4 eats our [], so we need to use [ and ] instead. 44894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44895 if test "x$has_forbidden_chars" != x; then 44896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44897 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44898 fi 44899 44900 44901 windows_path="$new_path" 44902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44903 unix_path=`$CYGPATH -u "$windows_path"` 44904 new_path="$unix_path" 44905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44907 new_path="$unix_path" 44908 fi 44909 44910 if test "x$path" != "x$new_path"; then 44911 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44913 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44914 fi 44915 44916 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44917 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44918 44919 else 44920 # We're on a posix platform. Hooray! :) 44921 path="$POTENTIAL_FREETYPE_LIB_PATH" 44922 has_space=`$ECHO "$path" | $GREP " "` 44923 if test "x$has_space" != x; then 44924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44925 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44926 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44927 fi 44928 44929 # Use eval to expand a potential ~ 44930 eval path="$path" 44931 if test ! -f "$path" && test ! -d "$path"; then 44932 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44933 fi 44934 44935 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44936 fi 44937 44938 44939 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44941 $as_echo_n "checking for freetype includes... " >&6; } 44942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44943 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44944 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44946 $as_echo_n "checking for freetype libraries... " >&6; } 44947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44948 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44949 fi 44950 44951 if test "x$FOUND_FREETYPE" != xyes; then 44952 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 44953 44954 windows_path="$FREETYPE_BASE_DIR" 44955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44956 unix_path=`$CYGPATH -u "$windows_path"` 44957 FREETYPE_BASE_DIR="$unix_path" 44958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44960 FREETYPE_BASE_DIR="$unix_path" 44961 fi 44962 44963 44964 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44965 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44966 METHOD="well-known location" 44967 44968 # First check if the files exists. 44969 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44970 # We found an arbitrary include file. That's a good sign. 44971 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44972 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44973 FOUND_FREETYPE=yes 44974 44975 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44976 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44977 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44978 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44979 FOUND_FREETYPE=no 44980 else 44981 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44982 # On Windows, we will need both .lib and .dll file. 44983 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44984 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44985 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44986 FOUND_FREETYPE=no 44987 fi 44988 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44989 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44990 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44991 fi 44992 fi 44993 fi 44994 44995 if test "x$FOUND_FREETYPE" = xyes; then 44996 44997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44998 44999 # Input might be given as Windows format, start by converting to 45000 # unix format. 45001 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45002 new_path=`$CYGPATH -u "$path"` 45003 45004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45007 # "foo.exe" is OK but "foo" is an error. 45008 # 45009 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45010 # It is also a way to make sure we got the proper file name for the real test later on. 45011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45012 if test "x$test_shortpath" = x; then 45013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45014 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45015 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45016 fi 45017 45018 # Call helper function which possibly converts this using DOS-style short mode. 45019 # If so, the updated path is stored in $new_path. 45020 45021 input_path="$new_path" 45022 # Check if we need to convert this using DOS-style short mode. If the path 45023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45024 # take no chances and rewrite it. 45025 # Note: m4 eats our [], so we need to use [ and ] instead. 45026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45027 if test "x$has_forbidden_chars" != x; then 45028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45029 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45030 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45031 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45032 # Going to short mode and back again did indeed matter. Since short mode is 45033 # case insensitive, let's make it lowercase to improve readability. 45034 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45035 # Now convert it back to Unix-style (cygpath) 45036 input_path=`$CYGPATH -u "$shortmode_path"` 45037 new_path="$input_path" 45038 fi 45039 fi 45040 45041 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45042 if test "x$test_cygdrive_prefix" = x; then 45043 # As a simple fix, exclude /usr/bin since it's not a real path. 45044 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45045 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45046 # a path prefixed by /cygdrive for fixpath to work. 45047 new_path="$CYGWIN_ROOT_PATH$input_path" 45048 fi 45049 fi 45050 45051 45052 if test "x$path" != "x$new_path"; then 45053 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45055 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45056 fi 45057 45058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45059 45060 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45061 has_colon=`$ECHO $path | $GREP ^.:` 45062 new_path="$path" 45063 if test "x$has_colon" = x; then 45064 # Not in mixed or Windows style, start by that. 45065 new_path=`cmd //c echo $path` 45066 fi 45067 45068 45069 input_path="$new_path" 45070 # Check if we need to convert this using DOS-style short mode. If the path 45071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45072 # take no chances and rewrite it. 45073 # Note: m4 eats our [], so we need to use [ and ] instead. 45074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45075 if test "x$has_forbidden_chars" != x; then 45076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45077 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45078 fi 45079 45080 45081 windows_path="$new_path" 45082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45083 unix_path=`$CYGPATH -u "$windows_path"` 45084 new_path="$unix_path" 45085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45087 new_path="$unix_path" 45088 fi 45089 45090 if test "x$path" != "x$new_path"; then 45091 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45092 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45093 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45094 fi 45095 45096 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45097 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45098 45099 else 45100 # We're on a posix platform. Hooray! :) 45101 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45102 has_space=`$ECHO "$path" | $GREP " "` 45103 if test "x$has_space" != x; then 45104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45105 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45106 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45107 fi 45108 45109 # Use eval to expand a potential ~ 45110 eval path="$path" 45111 if test ! -f "$path" && test ! -d "$path"; then 45112 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45113 fi 45114 45115 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45116 fi 45117 45118 45119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45120 45121 # Input might be given as Windows format, start by converting to 45122 # unix format. 45123 path="$POTENTIAL_FREETYPE_LIB_PATH" 45124 new_path=`$CYGPATH -u "$path"` 45125 45126 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45127 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45128 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45129 # "foo.exe" is OK but "foo" is an error. 45130 # 45131 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45132 # It is also a way to make sure we got the proper file name for the real test later on. 45133 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45134 if test "x$test_shortpath" = x; then 45135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45136 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45137 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45138 fi 45139 45140 # Call helper function which possibly converts this using DOS-style short mode. 45141 # If so, the updated path is stored in $new_path. 45142 45143 input_path="$new_path" 45144 # Check if we need to convert this using DOS-style short mode. If the path 45145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45146 # take no chances and rewrite it. 45147 # Note: m4 eats our [], so we need to use [ and ] instead. 45148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45149 if test "x$has_forbidden_chars" != x; then 45150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45154 # Going to short mode and back again did indeed matter. Since short mode is 45155 # case insensitive, let's make it lowercase to improve readability. 45156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45157 # Now convert it back to Unix-style (cygpath) 45158 input_path=`$CYGPATH -u "$shortmode_path"` 45159 new_path="$input_path" 45160 fi 45161 fi 45162 45163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45164 if test "x$test_cygdrive_prefix" = x; then 45165 # As a simple fix, exclude /usr/bin since it's not a real path. 45166 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45168 # a path prefixed by /cygdrive for fixpath to work. 45169 new_path="$CYGWIN_ROOT_PATH$input_path" 45170 fi 45171 fi 45172 45173 45174 if test "x$path" != "x$new_path"; then 45175 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45177 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45178 fi 45179 45180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45181 45182 path="$POTENTIAL_FREETYPE_LIB_PATH" 45183 has_colon=`$ECHO $path | $GREP ^.:` 45184 new_path="$path" 45185 if test "x$has_colon" = x; then 45186 # Not in mixed or Windows style, start by that. 45187 new_path=`cmd //c echo $path` 45188 fi 45189 45190 45191 input_path="$new_path" 45192 # Check if we need to convert this using DOS-style short mode. If the path 45193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45194 # take no chances and rewrite it. 45195 # Note: m4 eats our [], so we need to use [ and ] instead. 45196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45197 if test "x$has_forbidden_chars" != x; then 45198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45200 fi 45201 45202 45203 windows_path="$new_path" 45204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45205 unix_path=`$CYGPATH -u "$windows_path"` 45206 new_path="$unix_path" 45207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45209 new_path="$unix_path" 45210 fi 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 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45220 45221 else 45222 # We're on a posix platform. Hooray! :) 45223 path="$POTENTIAL_FREETYPE_LIB_PATH" 45224 has_space=`$ECHO "$path" | $GREP " "` 45225 if test "x$has_space" != x; then 45226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45227 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45228 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45229 fi 45230 45231 # Use eval to expand a potential ~ 45232 eval path="$path" 45233 if test ! -f "$path" && test ! -d "$path"; then 45234 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45235 fi 45236 45237 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45238 fi 45239 45240 45241 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45243 $as_echo_n "checking for freetype includes... " >&6; } 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45245 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45246 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45248 $as_echo_n "checking for freetype libraries... " >&6; } 45249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45250 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45251 fi 45252 45253 fi 45254 else 45255 FREETYPE_BASE_DIR="$SYSROOT/usr" 45256 45257 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45258 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45259 METHOD="well-known location" 45260 45261 # First check if the files exists. 45262 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45263 # We found an arbitrary include file. That's a good sign. 45264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45265 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45266 FOUND_FREETYPE=yes 45267 45268 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45269 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45270 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45271 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45272 FOUND_FREETYPE=no 45273 else 45274 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45275 # On Windows, we will need both .lib and .dll file. 45276 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45277 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45278 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45279 FOUND_FREETYPE=no 45280 fi 45281 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45282 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45283 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45284 fi 45285 fi 45286 fi 45287 45288 if test "x$FOUND_FREETYPE" = xyes; then 45289 45290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45291 45292 # Input might be given as Windows format, start by converting to 45293 # unix format. 45294 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45295 new_path=`$CYGPATH -u "$path"` 45296 45297 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45298 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45299 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45300 # "foo.exe" is OK but "foo" is an error. 45301 # 45302 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45303 # It is also a way to make sure we got the proper file name for the real test later on. 45304 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45305 if test "x$test_shortpath" = x; then 45306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45307 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45308 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45309 fi 45310 45311 # Call helper function which possibly converts this using DOS-style short mode. 45312 # If so, the updated path is stored in $new_path. 45313 45314 input_path="$new_path" 45315 # Check if we need to convert this using DOS-style short mode. If the path 45316 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45317 # take no chances and rewrite it. 45318 # Note: m4 eats our [], so we need to use [ and ] instead. 45319 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45320 if test "x$has_forbidden_chars" != x; then 45321 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45322 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45323 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45324 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45325 # Going to short mode and back again did indeed matter. Since short mode is 45326 # case insensitive, let's make it lowercase to improve readability. 45327 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45328 # Now convert it back to Unix-style (cygpath) 45329 input_path=`$CYGPATH -u "$shortmode_path"` 45330 new_path="$input_path" 45331 fi 45332 fi 45333 45334 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45335 if test "x$test_cygdrive_prefix" = x; then 45336 # As a simple fix, exclude /usr/bin since it's not a real path. 45337 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45338 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45339 # a path prefixed by /cygdrive for fixpath to work. 45340 new_path="$CYGWIN_ROOT_PATH$input_path" 45341 fi 45342 fi 45343 45344 45345 if test "x$path" != "x$new_path"; then 45346 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45347 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45348 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45349 fi 45350 45351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45352 45353 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45354 has_colon=`$ECHO $path | $GREP ^.:` 45355 new_path="$path" 45356 if test "x$has_colon" = x; then 45357 # Not in mixed or Windows style, start by that. 45358 new_path=`cmd //c echo $path` 45359 fi 45360 45361 45362 input_path="$new_path" 45363 # Check if we need to convert this using DOS-style short mode. If the path 45364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45365 # take no chances and rewrite it. 45366 # Note: m4 eats our [], so we need to use [ and ] instead. 45367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45368 if test "x$has_forbidden_chars" != x; then 45369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45370 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45371 fi 45372 45373 45374 windows_path="$new_path" 45375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45376 unix_path=`$CYGPATH -u "$windows_path"` 45377 new_path="$unix_path" 45378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45380 new_path="$unix_path" 45381 fi 45382 45383 if test "x$path" != "x$new_path"; then 45384 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45385 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45386 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45387 fi 45388 45389 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45390 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45391 45392 else 45393 # We're on a posix platform. Hooray! :) 45394 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45395 has_space=`$ECHO "$path" | $GREP " "` 45396 if test "x$has_space" != x; then 45397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45398 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45399 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45400 fi 45401 45402 # Use eval to expand a potential ~ 45403 eval path="$path" 45404 if test ! -f "$path" && test ! -d "$path"; then 45405 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45406 fi 45407 45408 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45409 fi 45410 45411 45412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45413 45414 # Input might be given as Windows format, start by converting to 45415 # unix format. 45416 path="$POTENTIAL_FREETYPE_LIB_PATH" 45417 new_path=`$CYGPATH -u "$path"` 45418 45419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45422 # "foo.exe" is OK but "foo" is an error. 45423 # 45424 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45425 # It is also a way to make sure we got the proper file name for the real test later on. 45426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45427 if test "x$test_shortpath" = x; then 45428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45429 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45430 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45431 fi 45432 45433 # Call helper function which possibly converts this using DOS-style short mode. 45434 # If so, the updated path is stored in $new_path. 45435 45436 input_path="$new_path" 45437 # Check if we need to convert this using DOS-style short mode. If the path 45438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45439 # take no chances and rewrite it. 45440 # Note: m4 eats our [], so we need to use [ and ] instead. 45441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45442 if test "x$has_forbidden_chars" != x; then 45443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45444 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45445 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45446 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45447 # Going to short mode and back again did indeed matter. Since short mode is 45448 # case insensitive, let's make it lowercase to improve readability. 45449 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45450 # Now convert it back to Unix-style (cygpath) 45451 input_path=`$CYGPATH -u "$shortmode_path"` 45452 new_path="$input_path" 45453 fi 45454 fi 45455 45456 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45457 if test "x$test_cygdrive_prefix" = x; then 45458 # As a simple fix, exclude /usr/bin since it's not a real path. 45459 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45460 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45461 # a path prefixed by /cygdrive for fixpath to work. 45462 new_path="$CYGWIN_ROOT_PATH$input_path" 45463 fi 45464 fi 45465 45466 45467 if test "x$path" != "x$new_path"; then 45468 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45470 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45471 fi 45472 45473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45474 45475 path="$POTENTIAL_FREETYPE_LIB_PATH" 45476 has_colon=`$ECHO $path | $GREP ^.:` 45477 new_path="$path" 45478 if test "x$has_colon" = x; then 45479 # Not in mixed or Windows style, start by that. 45480 new_path=`cmd //c echo $path` 45481 fi 45482 45483 45484 input_path="$new_path" 45485 # Check if we need to convert this using DOS-style short mode. If the path 45486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45487 # take no chances and rewrite it. 45488 # Note: m4 eats our [], so we need to use [ and ] instead. 45489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45490 if test "x$has_forbidden_chars" != x; then 45491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45492 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45493 fi 45494 45495 45496 windows_path="$new_path" 45497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45498 unix_path=`$CYGPATH -u "$windows_path"` 45499 new_path="$unix_path" 45500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45502 new_path="$unix_path" 45503 fi 45504 45505 if test "x$path" != "x$new_path"; then 45506 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45508 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45509 fi 45510 45511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45513 45514 else 45515 # We're on a posix platform. Hooray! :) 45516 path="$POTENTIAL_FREETYPE_LIB_PATH" 45517 has_space=`$ECHO "$path" | $GREP " "` 45518 if test "x$has_space" != x; then 45519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45520 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45521 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45522 fi 45523 45524 # Use eval to expand a potential ~ 45525 eval path="$path" 45526 if test ! -f "$path" && test ! -d "$path"; then 45527 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45528 fi 45529 45530 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45531 fi 45532 45533 45534 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45536 $as_echo_n "checking for freetype includes... " >&6; } 45537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45538 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45539 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45541 $as_echo_n "checking for freetype libraries... " >&6; } 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45543 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45544 fi 45545 45546 45547 if test "x$FOUND_FREETYPE" != xyes; then 45548 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 45549 45550 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45551 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45552 METHOD="well-known location" 45553 45554 # First check if the files exists. 45555 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45556 # We found an arbitrary include file. That's a good sign. 45557 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45558 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45559 FOUND_FREETYPE=yes 45560 45561 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45562 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45563 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45564 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45565 FOUND_FREETYPE=no 45566 else 45567 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45568 # On Windows, we will need both .lib and .dll file. 45569 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45570 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45571 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45572 FOUND_FREETYPE=no 45573 fi 45574 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45575 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45576 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45577 fi 45578 fi 45579 fi 45580 45581 if test "x$FOUND_FREETYPE" = xyes; then 45582 45583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45584 45585 # Input might be given as Windows format, start by converting to 45586 # unix format. 45587 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45588 new_path=`$CYGPATH -u "$path"` 45589 45590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45593 # "foo.exe" is OK but "foo" is an error. 45594 # 45595 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45596 # It is also a way to make sure we got the proper file name for the real test later on. 45597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45598 if test "x$test_shortpath" = x; then 45599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45600 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45601 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45602 fi 45603 45604 # Call helper function which possibly converts this using DOS-style short mode. 45605 # If so, the updated path is stored in $new_path. 45606 45607 input_path="$new_path" 45608 # Check if we need to convert this using DOS-style short mode. If the path 45609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45610 # take no chances and rewrite it. 45611 # Note: m4 eats our [], so we need to use [ and ] instead. 45612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45613 if test "x$has_forbidden_chars" != x; then 45614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45615 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45616 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45617 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45618 # Going to short mode and back again did indeed matter. Since short mode is 45619 # case insensitive, let's make it lowercase to improve readability. 45620 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45621 # Now convert it back to Unix-style (cygpath) 45622 input_path=`$CYGPATH -u "$shortmode_path"` 45623 new_path="$input_path" 45624 fi 45625 fi 45626 45627 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45628 if test "x$test_cygdrive_prefix" = x; then 45629 # As a simple fix, exclude /usr/bin since it's not a real path. 45630 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45631 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45632 # a path prefixed by /cygdrive for fixpath to work. 45633 new_path="$CYGWIN_ROOT_PATH$input_path" 45634 fi 45635 fi 45636 45637 45638 if test "x$path" != "x$new_path"; then 45639 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45641 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45642 fi 45643 45644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45645 45646 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45647 has_colon=`$ECHO $path | $GREP ^.:` 45648 new_path="$path" 45649 if test "x$has_colon" = x; then 45650 # Not in mixed or Windows style, start by that. 45651 new_path=`cmd //c echo $path` 45652 fi 45653 45654 45655 input_path="$new_path" 45656 # Check if we need to convert this using DOS-style short mode. If the path 45657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45658 # take no chances and rewrite it. 45659 # Note: m4 eats our [], so we need to use [ and ] instead. 45660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45661 if test "x$has_forbidden_chars" != x; then 45662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45664 fi 45665 45666 45667 windows_path="$new_path" 45668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45669 unix_path=`$CYGPATH -u "$windows_path"` 45670 new_path="$unix_path" 45671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45673 new_path="$unix_path" 45674 fi 45675 45676 if test "x$path" != "x$new_path"; then 45677 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45679 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45680 fi 45681 45682 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45683 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45684 45685 else 45686 # We're on a posix platform. Hooray! :) 45687 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45688 has_space=`$ECHO "$path" | $GREP " "` 45689 if test "x$has_space" != x; then 45690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45691 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45692 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45693 fi 45694 45695 # Use eval to expand a potential ~ 45696 eval path="$path" 45697 if test ! -f "$path" && test ! -d "$path"; then 45698 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45699 fi 45700 45701 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45702 fi 45703 45704 45705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45706 45707 # Input might be given as Windows format, start by converting to 45708 # unix format. 45709 path="$POTENTIAL_FREETYPE_LIB_PATH" 45710 new_path=`$CYGPATH -u "$path"` 45711 45712 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45713 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45714 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45715 # "foo.exe" is OK but "foo" is an error. 45716 # 45717 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45718 # It is also a way to make sure we got the proper file name for the real test later on. 45719 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45720 if test "x$test_shortpath" = x; then 45721 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45722 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45723 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45724 fi 45725 45726 # Call helper function which possibly converts this using DOS-style short mode. 45727 # If so, the updated path is stored in $new_path. 45728 45729 input_path="$new_path" 45730 # Check if we need to convert this using DOS-style short mode. If the path 45731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45732 # take no chances and rewrite it. 45733 # Note: m4 eats our [], so we need to use [ and ] instead. 45734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45735 if test "x$has_forbidden_chars" != x; then 45736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45737 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45738 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45739 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45740 # Going to short mode and back again did indeed matter. Since short mode is 45741 # case insensitive, let's make it lowercase to improve readability. 45742 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45743 # Now convert it back to Unix-style (cygpath) 45744 input_path=`$CYGPATH -u "$shortmode_path"` 45745 new_path="$input_path" 45746 fi 45747 fi 45748 45749 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45750 if test "x$test_cygdrive_prefix" = x; then 45751 # As a simple fix, exclude /usr/bin since it's not a real path. 45752 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45753 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45754 # a path prefixed by /cygdrive for fixpath to work. 45755 new_path="$CYGWIN_ROOT_PATH$input_path" 45756 fi 45757 fi 45758 45759 45760 if test "x$path" != "x$new_path"; then 45761 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45763 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45764 fi 45765 45766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45767 45768 path="$POTENTIAL_FREETYPE_LIB_PATH" 45769 has_colon=`$ECHO $path | $GREP ^.:` 45770 new_path="$path" 45771 if test "x$has_colon" = x; then 45772 # Not in mixed or Windows style, start by that. 45773 new_path=`cmd //c echo $path` 45774 fi 45775 45776 45777 input_path="$new_path" 45778 # Check if we need to convert this using DOS-style short mode. If the path 45779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45780 # take no chances and rewrite it. 45781 # Note: m4 eats our [], so we need to use [ and ] instead. 45782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45783 if test "x$has_forbidden_chars" != x; then 45784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45786 fi 45787 45788 45789 windows_path="$new_path" 45790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45791 unix_path=`$CYGPATH -u "$windows_path"` 45792 new_path="$unix_path" 45793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45795 new_path="$unix_path" 45796 fi 45797 45798 if test "x$path" != "x$new_path"; then 45799 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45801 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45802 fi 45803 45804 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45805 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45806 45807 else 45808 # We're on a posix platform. Hooray! :) 45809 path="$POTENTIAL_FREETYPE_LIB_PATH" 45810 has_space=`$ECHO "$path" | $GREP " "` 45811 if test "x$has_space" != x; then 45812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45813 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45814 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45815 fi 45816 45817 # Use eval to expand a potential ~ 45818 eval path="$path" 45819 if test ! -f "$path" && test ! -d "$path"; then 45820 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45821 fi 45822 45823 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45824 fi 45825 45826 45827 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45829 $as_echo_n "checking for freetype includes... " >&6; } 45830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45831 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45832 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45834 $as_echo_n "checking for freetype libraries... " >&6; } 45835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45836 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45837 fi 45838 45839 fi 45840 45841 if test "x$FOUND_FREETYPE" != xyes; then 45842 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 45843 45844 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45845 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45846 METHOD="well-known location" 45847 45848 # First check if the files exists. 45849 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45850 # We found an arbitrary include file. That's a good sign. 45851 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45852 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45853 FOUND_FREETYPE=yes 45854 45855 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45856 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45858 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45859 FOUND_FREETYPE=no 45860 else 45861 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45862 # On Windows, we will need both .lib and .dll file. 45863 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45864 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45865 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45866 FOUND_FREETYPE=no 45867 fi 45868 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45869 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45870 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45871 fi 45872 fi 45873 fi 45874 45875 if test "x$FOUND_FREETYPE" = xyes; then 45876 45877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45878 45879 # Input might be given as Windows format, start by converting to 45880 # unix format. 45881 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45882 new_path=`$CYGPATH -u "$path"` 45883 45884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45887 # "foo.exe" is OK but "foo" is an error. 45888 # 45889 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45890 # It is also a way to make sure we got the proper file name for the real test later on. 45891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45892 if test "x$test_shortpath" = x; then 45893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45894 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45895 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45896 fi 45897 45898 # Call helper function which possibly converts this using DOS-style short mode. 45899 # If so, the updated path is stored in $new_path. 45900 45901 input_path="$new_path" 45902 # Check if we need to convert this using DOS-style short mode. If the path 45903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45904 # take no chances and rewrite it. 45905 # Note: m4 eats our [], so we need to use [ and ] instead. 45906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45907 if test "x$has_forbidden_chars" != x; then 45908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45909 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45910 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45911 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45912 # Going to short mode and back again did indeed matter. Since short mode is 45913 # case insensitive, let's make it lowercase to improve readability. 45914 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45915 # Now convert it back to Unix-style (cygpath) 45916 input_path=`$CYGPATH -u "$shortmode_path"` 45917 new_path="$input_path" 45918 fi 45919 fi 45920 45921 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45922 if test "x$test_cygdrive_prefix" = x; then 45923 # As a simple fix, exclude /usr/bin since it's not a real path. 45924 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45925 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45926 # a path prefixed by /cygdrive for fixpath to work. 45927 new_path="$CYGWIN_ROOT_PATH$input_path" 45928 fi 45929 fi 45930 45931 45932 if test "x$path" != "x$new_path"; then 45933 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45935 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45936 fi 45937 45938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45939 45940 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45941 has_colon=`$ECHO $path | $GREP ^.:` 45942 new_path="$path" 45943 if test "x$has_colon" = x; then 45944 # Not in mixed or Windows style, start by that. 45945 new_path=`cmd //c echo $path` 45946 fi 45947 45948 45949 input_path="$new_path" 45950 # Check if we need to convert this using DOS-style short mode. If the path 45951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45952 # take no chances and rewrite it. 45953 # Note: m4 eats our [], so we need to use [ and ] instead. 45954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45955 if test "x$has_forbidden_chars" != x; then 45956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45958 fi 45959 45960 45961 windows_path="$new_path" 45962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45963 unix_path=`$CYGPATH -u "$windows_path"` 45964 new_path="$unix_path" 45965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45967 new_path="$unix_path" 45968 fi 45969 45970 if test "x$path" != "x$new_path"; then 45971 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45973 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45974 fi 45975 45976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45978 45979 else 45980 # We're on a posix platform. Hooray! :) 45981 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45982 has_space=`$ECHO "$path" | $GREP " "` 45983 if test "x$has_space" != x; then 45984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45985 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45986 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45987 fi 45988 45989 # Use eval to expand a potential ~ 45990 eval path="$path" 45991 if test ! -f "$path" && test ! -d "$path"; then 45992 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45993 fi 45994 45995 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45996 fi 45997 45998 45999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46000 46001 # Input might be given as Windows format, start by converting to 46002 # unix format. 46003 path="$POTENTIAL_FREETYPE_LIB_PATH" 46004 new_path=`$CYGPATH -u "$path"` 46005 46006 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46007 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46008 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46009 # "foo.exe" is OK but "foo" is an error. 46010 # 46011 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46012 # It is also a way to make sure we got the proper file name for the real test later on. 46013 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46014 if test "x$test_shortpath" = x; then 46015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46016 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46017 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46018 fi 46019 46020 # Call helper function which possibly converts this using DOS-style short mode. 46021 # If so, the updated path is stored in $new_path. 46022 46023 input_path="$new_path" 46024 # Check if we need to convert this using DOS-style short mode. If the path 46025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46026 # take no chances and rewrite it. 46027 # Note: m4 eats our [], so we need to use [ and ] instead. 46028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46029 if test "x$has_forbidden_chars" != x; then 46030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46031 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46032 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46033 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46034 # Going to short mode and back again did indeed matter. Since short mode is 46035 # case insensitive, let's make it lowercase to improve readability. 46036 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46037 # Now convert it back to Unix-style (cygpath) 46038 input_path=`$CYGPATH -u "$shortmode_path"` 46039 new_path="$input_path" 46040 fi 46041 fi 46042 46043 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46044 if test "x$test_cygdrive_prefix" = x; then 46045 # As a simple fix, exclude /usr/bin since it's not a real path. 46046 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46047 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46048 # a path prefixed by /cygdrive for fixpath to work. 46049 new_path="$CYGWIN_ROOT_PATH$input_path" 46050 fi 46051 fi 46052 46053 46054 if test "x$path" != "x$new_path"; then 46055 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46057 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46058 fi 46059 46060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46061 46062 path="$POTENTIAL_FREETYPE_LIB_PATH" 46063 has_colon=`$ECHO $path | $GREP ^.:` 46064 new_path="$path" 46065 if test "x$has_colon" = x; then 46066 # Not in mixed or Windows style, start by that. 46067 new_path=`cmd //c echo $path` 46068 fi 46069 46070 46071 input_path="$new_path" 46072 # Check if we need to convert this using DOS-style short mode. If the path 46073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46074 # take no chances and rewrite it. 46075 # Note: m4 eats our [], so we need to use [ and ] instead. 46076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46077 if test "x$has_forbidden_chars" != x; then 46078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46079 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46080 fi 46081 46082 46083 windows_path="$new_path" 46084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46085 unix_path=`$CYGPATH -u "$windows_path"` 46086 new_path="$unix_path" 46087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46089 new_path="$unix_path" 46090 fi 46091 46092 if test "x$path" != "x$new_path"; then 46093 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46095 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46096 fi 46097 46098 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46099 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46100 46101 else 46102 # We're on a posix platform. Hooray! :) 46103 path="$POTENTIAL_FREETYPE_LIB_PATH" 46104 has_space=`$ECHO "$path" | $GREP " "` 46105 if test "x$has_space" != x; then 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46107 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46108 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46109 fi 46110 46111 # Use eval to expand a potential ~ 46112 eval path="$path" 46113 if test ! -f "$path" && test ! -d "$path"; then 46114 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46115 fi 46116 46117 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46118 fi 46119 46120 46121 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46123 $as_echo_n "checking for freetype includes... " >&6; } 46124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46125 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46126 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46128 $as_echo_n "checking for freetype libraries... " >&6; } 46129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46130 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46131 fi 46132 46133 fi 46134 46135 if test "x$FOUND_FREETYPE" != xyes; then 46136 FREETYPE_BASE_DIR="$SYSROOT/usr" 46137 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46138 46139 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46140 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46141 METHOD="well-known location" 46142 46143 # First check if the files exists. 46144 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46145 # We found an arbitrary include file. That's a good sign. 46146 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46147 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46148 FOUND_FREETYPE=yes 46149 46150 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46151 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46152 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46153 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46154 FOUND_FREETYPE=no 46155 else 46156 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46157 # On Windows, we will need both .lib and .dll file. 46158 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46159 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46160 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46161 FOUND_FREETYPE=no 46162 fi 46163 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46164 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46165 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46166 fi 46167 fi 46168 fi 46169 46170 if test "x$FOUND_FREETYPE" = xyes; then 46171 46172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46173 46174 # Input might be given as Windows format, start by converting to 46175 # unix format. 46176 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46177 new_path=`$CYGPATH -u "$path"` 46178 46179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46182 # "foo.exe" is OK but "foo" is an error. 46183 # 46184 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46185 # It is also a way to make sure we got the proper file name for the real test later on. 46186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46187 if test "x$test_shortpath" = x; then 46188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46189 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46190 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46191 fi 46192 46193 # Call helper function which possibly converts this using DOS-style short mode. 46194 # If so, the updated path is stored in $new_path. 46195 46196 input_path="$new_path" 46197 # Check if we need to convert this using DOS-style short mode. If the path 46198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46199 # take no chances and rewrite it. 46200 # Note: m4 eats our [], so we need to use [ and ] instead. 46201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46202 if test "x$has_forbidden_chars" != x; then 46203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46207 # Going to short mode and back again did indeed matter. Since short mode is 46208 # case insensitive, let's make it lowercase to improve readability. 46209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46210 # Now convert it back to Unix-style (cygpath) 46211 input_path=`$CYGPATH -u "$shortmode_path"` 46212 new_path="$input_path" 46213 fi 46214 fi 46215 46216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46217 if test "x$test_cygdrive_prefix" = x; then 46218 # As a simple fix, exclude /usr/bin since it's not a real path. 46219 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46221 # a path prefixed by /cygdrive for fixpath to work. 46222 new_path="$CYGWIN_ROOT_PATH$input_path" 46223 fi 46224 fi 46225 46226 46227 if test "x$path" != "x$new_path"; then 46228 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46230 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46231 fi 46232 46233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46234 46235 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46236 has_colon=`$ECHO $path | $GREP ^.:` 46237 new_path="$path" 46238 if test "x$has_colon" = x; then 46239 # Not in mixed or Windows style, start by that. 46240 new_path=`cmd //c echo $path` 46241 fi 46242 46243 46244 input_path="$new_path" 46245 # Check if we need to convert this using DOS-style short mode. If the path 46246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46247 # take no chances and rewrite it. 46248 # Note: m4 eats our [], so we need to use [ and ] instead. 46249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46250 if test "x$has_forbidden_chars" != x; then 46251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46252 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46253 fi 46254 46255 46256 windows_path="$new_path" 46257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46258 unix_path=`$CYGPATH -u "$windows_path"` 46259 new_path="$unix_path" 46260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46262 new_path="$unix_path" 46263 fi 46264 46265 if test "x$path" != "x$new_path"; then 46266 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46268 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46269 fi 46270 46271 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46272 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46273 46274 else 46275 # We're on a posix platform. Hooray! :) 46276 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46277 has_space=`$ECHO "$path" | $GREP " "` 46278 if test "x$has_space" != x; then 46279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46280 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46281 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46282 fi 46283 46284 # Use eval to expand a potential ~ 46285 eval path="$path" 46286 if test ! -f "$path" && test ! -d "$path"; then 46287 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46288 fi 46289 46290 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46291 fi 46292 46293 46294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46295 46296 # Input might be given as Windows format, start by converting to 46297 # unix format. 46298 path="$POTENTIAL_FREETYPE_LIB_PATH" 46299 new_path=`$CYGPATH -u "$path"` 46300 46301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46304 # "foo.exe" is OK but "foo" is an error. 46305 # 46306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46307 # It is also a way to make sure we got the proper file name for the real test later on. 46308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46309 if test "x$test_shortpath" = x; then 46310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46311 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46312 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46313 fi 46314 46315 # Call helper function which possibly converts this using DOS-style short mode. 46316 # If so, the updated path is stored in $new_path. 46317 46318 input_path="$new_path" 46319 # Check if we need to convert this using DOS-style short mode. If the path 46320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46321 # take no chances and rewrite it. 46322 # Note: m4 eats our [], so we need to use [ and ] instead. 46323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46324 if test "x$has_forbidden_chars" != x; then 46325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46329 # Going to short mode and back again did indeed matter. Since short mode is 46330 # case insensitive, let's make it lowercase to improve readability. 46331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46332 # Now convert it back to Unix-style (cygpath) 46333 input_path=`$CYGPATH -u "$shortmode_path"` 46334 new_path="$input_path" 46335 fi 46336 fi 46337 46338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46339 if test "x$test_cygdrive_prefix" = x; then 46340 # As a simple fix, exclude /usr/bin since it's not a real path. 46341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46343 # a path prefixed by /cygdrive for fixpath to work. 46344 new_path="$CYGWIN_ROOT_PATH$input_path" 46345 fi 46346 fi 46347 46348 46349 if test "x$path" != "x$new_path"; then 46350 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46352 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46353 fi 46354 46355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46356 46357 path="$POTENTIAL_FREETYPE_LIB_PATH" 46358 has_colon=`$ECHO $path | $GREP ^.:` 46359 new_path="$path" 46360 if test "x$has_colon" = x; then 46361 # Not in mixed or Windows style, start by that. 46362 new_path=`cmd //c echo $path` 46363 fi 46364 46365 46366 input_path="$new_path" 46367 # Check if we need to convert this using DOS-style short mode. If the path 46368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46369 # take no chances and rewrite it. 46370 # Note: m4 eats our [], so we need to use [ and ] instead. 46371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46372 if test "x$has_forbidden_chars" != x; then 46373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46374 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46375 fi 46376 46377 46378 windows_path="$new_path" 46379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46380 unix_path=`$CYGPATH -u "$windows_path"` 46381 new_path="$unix_path" 46382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46384 new_path="$unix_path" 46385 fi 46386 46387 if test "x$path" != "x$new_path"; then 46388 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46390 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46391 fi 46392 46393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46395 46396 else 46397 # We're on a posix platform. Hooray! :) 46398 path="$POTENTIAL_FREETYPE_LIB_PATH" 46399 has_space=`$ECHO "$path" | $GREP " "` 46400 if test "x$has_space" != x; then 46401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46402 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46404 fi 46405 46406 # Use eval to expand a potential ~ 46407 eval path="$path" 46408 if test ! -f "$path" && test ! -d "$path"; then 46409 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46410 fi 46411 46412 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46413 fi 46414 46415 46416 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46418 $as_echo_n "checking for freetype includes... " >&6; } 46419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46420 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46421 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46423 $as_echo_n "checking for freetype libraries... " >&6; } 46424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46425 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46426 fi 46427 46428 else 46429 46430 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46431 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 46432 METHOD="well-known location" 46433 46434 # First check if the files exists. 46435 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46436 # We found an arbitrary include file. That's a good sign. 46437 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46438 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46439 FOUND_FREETYPE=yes 46440 46441 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46442 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46443 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46444 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46445 FOUND_FREETYPE=no 46446 else 46447 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46448 # On Windows, we will need both .lib and .dll file. 46449 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46450 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46451 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46452 FOUND_FREETYPE=no 46453 fi 46454 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46455 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46456 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46457 fi 46458 fi 46459 fi 46460 46461 if test "x$FOUND_FREETYPE" = xyes; then 46462 46463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46464 46465 # Input might be given as Windows format, start by converting to 46466 # unix format. 46467 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46468 new_path=`$CYGPATH -u "$path"` 46469 46470 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46471 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46472 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46473 # "foo.exe" is OK but "foo" is an error. 46474 # 46475 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46476 # It is also a way to make sure we got the proper file name for the real test later on. 46477 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46478 if test "x$test_shortpath" = x; then 46479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46480 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46481 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46482 fi 46483 46484 # Call helper function which possibly converts this using DOS-style short mode. 46485 # If so, the updated path is stored in $new_path. 46486 46487 input_path="$new_path" 46488 # Check if we need to convert this using DOS-style short mode. If the path 46489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46490 # take no chances and rewrite it. 46491 # Note: m4 eats our [], so we need to use [ and ] instead. 46492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46493 if test "x$has_forbidden_chars" != x; then 46494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46495 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46496 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46497 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46498 # Going to short mode and back again did indeed matter. Since short mode is 46499 # case insensitive, let's make it lowercase to improve readability. 46500 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46501 # Now convert it back to Unix-style (cygpath) 46502 input_path=`$CYGPATH -u "$shortmode_path"` 46503 new_path="$input_path" 46504 fi 46505 fi 46506 46507 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46508 if test "x$test_cygdrive_prefix" = x; then 46509 # As a simple fix, exclude /usr/bin since it's not a real path. 46510 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46511 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46512 # a path prefixed by /cygdrive for fixpath to work. 46513 new_path="$CYGWIN_ROOT_PATH$input_path" 46514 fi 46515 fi 46516 46517 46518 if test "x$path" != "x$new_path"; then 46519 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46521 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46522 fi 46523 46524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46525 46526 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46527 has_colon=`$ECHO $path | $GREP ^.:` 46528 new_path="$path" 46529 if test "x$has_colon" = x; then 46530 # Not in mixed or Windows style, start by that. 46531 new_path=`cmd //c echo $path` 46532 fi 46533 46534 46535 input_path="$new_path" 46536 # Check if we need to convert this using DOS-style short mode. If the path 46537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46538 # take no chances and rewrite it. 46539 # Note: m4 eats our [], so we need to use [ and ] instead. 46540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46541 if test "x$has_forbidden_chars" != x; then 46542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46543 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46544 fi 46545 46546 46547 windows_path="$new_path" 46548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46549 unix_path=`$CYGPATH -u "$windows_path"` 46550 new_path="$unix_path" 46551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46553 new_path="$unix_path" 46554 fi 46555 46556 if test "x$path" != "x$new_path"; then 46557 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46559 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46560 fi 46561 46562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46564 46565 else 46566 # We're on a posix platform. Hooray! :) 46567 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46568 has_space=`$ECHO "$path" | $GREP " "` 46569 if test "x$has_space" != x; then 46570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46571 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46572 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46573 fi 46574 46575 # Use eval to expand a potential ~ 46576 eval path="$path" 46577 if test ! -f "$path" && test ! -d "$path"; then 46578 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46579 fi 46580 46581 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46582 fi 46583 46584 46585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46586 46587 # Input might be given as Windows format, start by converting to 46588 # unix format. 46589 path="$POTENTIAL_FREETYPE_LIB_PATH" 46590 new_path=`$CYGPATH -u "$path"` 46591 46592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46595 # "foo.exe" is OK but "foo" is an error. 46596 # 46597 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46598 # It is also a way to make sure we got the proper file name for the real test later on. 46599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46600 if test "x$test_shortpath" = x; then 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46602 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46603 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46604 fi 46605 46606 # Call helper function which possibly converts this using DOS-style short mode. 46607 # If so, the updated path is stored in $new_path. 46608 46609 input_path="$new_path" 46610 # Check if we need to convert this using DOS-style short mode. If the path 46611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46612 # take no chances and rewrite it. 46613 # Note: m4 eats our [], so we need to use [ and ] instead. 46614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46615 if test "x$has_forbidden_chars" != x; then 46616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46617 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46618 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46619 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46620 # Going to short mode and back again did indeed matter. Since short mode is 46621 # case insensitive, let's make it lowercase to improve readability. 46622 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46623 # Now convert it back to Unix-style (cygpath) 46624 input_path=`$CYGPATH -u "$shortmode_path"` 46625 new_path="$input_path" 46626 fi 46627 fi 46628 46629 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46630 if test "x$test_cygdrive_prefix" = x; then 46631 # As a simple fix, exclude /usr/bin since it's not a real path. 46632 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46633 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46634 # a path prefixed by /cygdrive for fixpath to work. 46635 new_path="$CYGWIN_ROOT_PATH$input_path" 46636 fi 46637 fi 46638 46639 46640 if test "x$path" != "x$new_path"; then 46641 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46643 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46644 fi 46645 46646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46647 46648 path="$POTENTIAL_FREETYPE_LIB_PATH" 46649 has_colon=`$ECHO $path | $GREP ^.:` 46650 new_path="$path" 46651 if test "x$has_colon" = x; then 46652 # Not in mixed or Windows style, start by that. 46653 new_path=`cmd //c echo $path` 46654 fi 46655 46656 46657 input_path="$new_path" 46658 # Check if we need to convert this using DOS-style short mode. If the path 46659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46660 # take no chances and rewrite it. 46661 # Note: m4 eats our [], so we need to use [ and ] instead. 46662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46663 if test "x$has_forbidden_chars" != x; then 46664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46665 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46666 fi 46667 46668 46669 windows_path="$new_path" 46670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46671 unix_path=`$CYGPATH -u "$windows_path"` 46672 new_path="$unix_path" 46673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46675 new_path="$unix_path" 46676 fi 46677 46678 if test "x$path" != "x$new_path"; then 46679 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46681 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46682 fi 46683 46684 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46685 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46686 46687 else 46688 # We're on a posix platform. Hooray! :) 46689 path="$POTENTIAL_FREETYPE_LIB_PATH" 46690 has_space=`$ECHO "$path" | $GREP " "` 46691 if test "x$has_space" != x; then 46692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46693 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46694 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46695 fi 46696 46697 # Use eval to expand a potential ~ 46698 eval path="$path" 46699 if test ! -f "$path" && test ! -d "$path"; then 46700 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46701 fi 46702 46703 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46704 fi 46705 46706 46707 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46709 $as_echo_n "checking for freetype includes... " >&6; } 46710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46711 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46712 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46714 $as_echo_n "checking for freetype libraries... " >&6; } 46715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46716 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46717 fi 46718 46719 if test "x$FOUND_FREETYPE" != xyes; then 46720 46721 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46722 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 46723 METHOD="well-known location" 46724 46725 # First check if the files exists. 46726 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46727 # We found an arbitrary include file. That's a good sign. 46728 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46729 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46730 FOUND_FREETYPE=yes 46731 46732 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46733 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46734 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46735 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46736 FOUND_FREETYPE=no 46737 else 46738 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46739 # On Windows, we will need both .lib and .dll file. 46740 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46742 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46743 FOUND_FREETYPE=no 46744 fi 46745 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46746 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46747 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46748 fi 46749 fi 46750 fi 46751 46752 if test "x$FOUND_FREETYPE" = xyes; then 46753 46754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46755 46756 # Input might be given as Windows format, start by converting to 46757 # unix format. 46758 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46759 new_path=`$CYGPATH -u "$path"` 46760 46761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46764 # "foo.exe" is OK but "foo" is an error. 46765 # 46766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46767 # It is also a way to make sure we got the proper file name for the real test later on. 46768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46769 if test "x$test_shortpath" = x; then 46770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46771 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46772 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46773 fi 46774 46775 # Call helper function which possibly converts this using DOS-style short mode. 46776 # If so, the updated path is stored in $new_path. 46777 46778 input_path="$new_path" 46779 # Check if we need to convert this using DOS-style short mode. If the path 46780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46781 # take no chances and rewrite it. 46782 # Note: m4 eats our [], so we need to use [ and ] instead. 46783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46784 if test "x$has_forbidden_chars" != x; then 46785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46789 # Going to short mode and back again did indeed matter. Since short mode is 46790 # case insensitive, let's make it lowercase to improve readability. 46791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46792 # Now convert it back to Unix-style (cygpath) 46793 input_path=`$CYGPATH -u "$shortmode_path"` 46794 new_path="$input_path" 46795 fi 46796 fi 46797 46798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46799 if test "x$test_cygdrive_prefix" = x; then 46800 # As a simple fix, exclude /usr/bin since it's not a real path. 46801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46803 # a path prefixed by /cygdrive for fixpath to work. 46804 new_path="$CYGWIN_ROOT_PATH$input_path" 46805 fi 46806 fi 46807 46808 46809 if test "x$path" != "x$new_path"; then 46810 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46813 fi 46814 46815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46816 46817 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46818 has_colon=`$ECHO $path | $GREP ^.:` 46819 new_path="$path" 46820 if test "x$has_colon" = x; then 46821 # Not in mixed or Windows style, start by that. 46822 new_path=`cmd //c echo $path` 46823 fi 46824 46825 46826 input_path="$new_path" 46827 # Check if we need to convert this using DOS-style short mode. If the path 46828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46829 # take no chances and rewrite it. 46830 # Note: m4 eats our [], so we need to use [ and ] instead. 46831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46832 if test "x$has_forbidden_chars" != x; then 46833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46835 fi 46836 46837 46838 windows_path="$new_path" 46839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46840 unix_path=`$CYGPATH -u "$windows_path"` 46841 new_path="$unix_path" 46842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46844 new_path="$unix_path" 46845 fi 46846 46847 if test "x$path" != "x$new_path"; then 46848 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46851 fi 46852 46853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46855 46856 else 46857 # We're on a posix platform. Hooray! :) 46858 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46859 has_space=`$ECHO "$path" | $GREP " "` 46860 if test "x$has_space" != x; then 46861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46862 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46864 fi 46865 46866 # Use eval to expand a potential ~ 46867 eval path="$path" 46868 if test ! -f "$path" && test ! -d "$path"; then 46869 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46870 fi 46871 46872 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46873 fi 46874 46875 46876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46877 46878 # Input might be given as Windows format, start by converting to 46879 # unix format. 46880 path="$POTENTIAL_FREETYPE_LIB_PATH" 46881 new_path=`$CYGPATH -u "$path"` 46882 46883 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46884 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46885 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46886 # "foo.exe" is OK but "foo" is an error. 46887 # 46888 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46889 # It is also a way to make sure we got the proper file name for the real test later on. 46890 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46891 if test "x$test_shortpath" = x; then 46892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46893 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46894 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46895 fi 46896 46897 # Call helper function which possibly converts this using DOS-style short mode. 46898 # If so, the updated path is stored in $new_path. 46899 46900 input_path="$new_path" 46901 # Check if we need to convert this using DOS-style short mode. If the path 46902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46903 # take no chances and rewrite it. 46904 # Note: m4 eats our [], so we need to use [ and ] instead. 46905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46906 if test "x$has_forbidden_chars" != x; then 46907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46911 # Going to short mode and back again did indeed matter. Since short mode is 46912 # case insensitive, let's make it lowercase to improve readability. 46913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46914 # Now convert it back to Unix-style (cygpath) 46915 input_path=`$CYGPATH -u "$shortmode_path"` 46916 new_path="$input_path" 46917 fi 46918 fi 46919 46920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46921 if test "x$test_cygdrive_prefix" = x; then 46922 # As a simple fix, exclude /usr/bin since it's not a real path. 46923 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46925 # a path prefixed by /cygdrive for fixpath to work. 46926 new_path="$CYGWIN_ROOT_PATH$input_path" 46927 fi 46928 fi 46929 46930 46931 if test "x$path" != "x$new_path"; then 46932 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46934 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46935 fi 46936 46937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46938 46939 path="$POTENTIAL_FREETYPE_LIB_PATH" 46940 has_colon=`$ECHO $path | $GREP ^.:` 46941 new_path="$path" 46942 if test "x$has_colon" = x; then 46943 # Not in mixed or Windows style, start by that. 46944 new_path=`cmd //c echo $path` 46945 fi 46946 46947 46948 input_path="$new_path" 46949 # Check if we need to convert this using DOS-style short mode. If the path 46950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46951 # take no chances and rewrite it. 46952 # Note: m4 eats our [], so we need to use [ and ] instead. 46953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46954 if test "x$has_forbidden_chars" != x; then 46955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46957 fi 46958 46959 46960 windows_path="$new_path" 46961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46962 unix_path=`$CYGPATH -u "$windows_path"` 46963 new_path="$unix_path" 46964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46966 new_path="$unix_path" 46967 fi 46968 46969 if test "x$path" != "x$new_path"; then 46970 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46972 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46973 fi 46974 46975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46977 46978 else 46979 # We're on a posix platform. Hooray! :) 46980 path="$POTENTIAL_FREETYPE_LIB_PATH" 46981 has_space=`$ECHO "$path" | $GREP " "` 46982 if test "x$has_space" != x; then 46983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46984 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46985 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46986 fi 46987 46988 # Use eval to expand a potential ~ 46989 eval path="$path" 46990 if test ! -f "$path" && test ! -d "$path"; then 46991 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46992 fi 46993 46994 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46995 fi 46996 46997 46998 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47000 $as_echo_n "checking for freetype includes... " >&6; } 47001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47002 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47003 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47005 $as_echo_n "checking for freetype libraries... " >&6; } 47006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47007 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47008 fi 47009 47010 fi 47011 fi 47012 fi 47013 fi 47014 fi # end check in well-known locations 47015 47016 if test "x$FOUND_FREETYPE" != xyes; then 47017 47018 # Print a helpful message on how to acquire the necessary build dependency. 47019 # freetype is the help tag: freetype, cups, pulse, alsa etc 47020 MISSING_DEPENDENCY=freetype 47021 47022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47023 cygwin_help $MISSING_DEPENDENCY 47024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47025 msys_help $MISSING_DEPENDENCY 47026 else 47027 PKGHANDLER_COMMAND= 47028 47029 case $PKGHANDLER in 47030 apt-get) 47031 apt_help $MISSING_DEPENDENCY ;; 47032 yum) 47033 yum_help $MISSING_DEPENDENCY ;; 47034 port) 47035 port_help $MISSING_DEPENDENCY ;; 47036 pkgutil) 47037 pkgutil_help $MISSING_DEPENDENCY ;; 47038 pkgadd) 47039 pkgadd_help $MISSING_DEPENDENCY ;; 47040 esac 47041 47042 if test "x$PKGHANDLER_COMMAND" != x; then 47043 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47044 fi 47045 fi 47046 47047 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47048 fi 47049 fi # end user specified settings 47050 47051 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47052 if test "x$FREETYPE_CFLAGS" = x; then 47053 47054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47055 47056 # Input might be given as Windows format, start by converting to 47057 # unix format. 47058 path="$FREETYPE_INCLUDE_PATH" 47059 new_path=`$CYGPATH -u "$path"` 47060 47061 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47062 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47063 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47064 # "foo.exe" is OK but "foo" is an error. 47065 # 47066 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47067 # It is also a way to make sure we got the proper file name for the real test later on. 47068 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47069 if test "x$test_shortpath" = x; then 47070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47071 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47072 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47073 fi 47074 47075 # Call helper function which possibly converts this using DOS-style short mode. 47076 # If so, the updated path is stored in $new_path. 47077 47078 input_path="$new_path" 47079 # Check if we need to convert this using DOS-style short mode. If the path 47080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47081 # take no chances and rewrite it. 47082 # Note: m4 eats our [], so we need to use [ and ] instead. 47083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47084 if test "x$has_forbidden_chars" != x; then 47085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47086 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47087 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47088 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47089 # Going to short mode and back again did indeed matter. Since short mode is 47090 # case insensitive, let's make it lowercase to improve readability. 47091 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47092 # Now convert it back to Unix-style (cygpath) 47093 input_path=`$CYGPATH -u "$shortmode_path"` 47094 new_path="$input_path" 47095 fi 47096 fi 47097 47098 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47099 if test "x$test_cygdrive_prefix" = x; then 47100 # As a simple fix, exclude /usr/bin since it's not a real path. 47101 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47102 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47103 # a path prefixed by /cygdrive for fixpath to work. 47104 new_path="$CYGWIN_ROOT_PATH$input_path" 47105 fi 47106 fi 47107 47108 47109 if test "x$path" != "x$new_path"; then 47110 FREETYPE_INCLUDE_PATH="$new_path" 47111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47112 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47113 fi 47114 47115 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47116 47117 path="$FREETYPE_INCLUDE_PATH" 47118 has_colon=`$ECHO $path | $GREP ^.:` 47119 new_path="$path" 47120 if test "x$has_colon" = x; then 47121 # Not in mixed or Windows style, start by that. 47122 new_path=`cmd //c echo $path` 47123 fi 47124 47125 47126 input_path="$new_path" 47127 # Check if we need to convert this using DOS-style short mode. If the path 47128 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47129 # take no chances and rewrite it. 47130 # Note: m4 eats our [], so we need to use [ and ] instead. 47131 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47132 if test "x$has_forbidden_chars" != x; then 47133 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47134 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47135 fi 47136 47137 47138 windows_path="$new_path" 47139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47140 unix_path=`$CYGPATH -u "$windows_path"` 47141 new_path="$unix_path" 47142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47144 new_path="$unix_path" 47145 fi 47146 47147 if test "x$path" != "x$new_path"; then 47148 FREETYPE_INCLUDE_PATH="$new_path" 47149 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47150 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47151 fi 47152 47153 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47154 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47155 47156 else 47157 # We're on a posix platform. Hooray! :) 47158 path="$FREETYPE_INCLUDE_PATH" 47159 has_space=`$ECHO "$path" | $GREP " "` 47160 if test "x$has_space" != x; then 47161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47162 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47163 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47164 fi 47165 47166 # Use eval to expand a potential ~ 47167 eval path="$path" 47168 if test ! -f "$path" && test ! -d "$path"; then 47169 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47170 fi 47171 47172 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47173 fi 47174 47175 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47176 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47177 else 47178 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47179 fi 47180 fi 47181 47182 if test "x$FREETYPE_LIBS" = x; then 47183 47184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47185 47186 # Input might be given as Windows format, start by converting to 47187 # unix format. 47188 path="$FREETYPE_LIB_PATH" 47189 new_path=`$CYGPATH -u "$path"` 47190 47191 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47192 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47193 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47194 # "foo.exe" is OK but "foo" is an error. 47195 # 47196 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47197 # It is also a way to make sure we got the proper file name for the real test later on. 47198 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47199 if test "x$test_shortpath" = x; then 47200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47201 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47202 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47203 fi 47204 47205 # Call helper function which possibly converts this using DOS-style short mode. 47206 # If so, the updated path is stored in $new_path. 47207 47208 input_path="$new_path" 47209 # Check if we need to convert this using DOS-style short mode. If the path 47210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47211 # take no chances and rewrite it. 47212 # Note: m4 eats our [], so we need to use [ and ] instead. 47213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47214 if test "x$has_forbidden_chars" != x; then 47215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47216 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47217 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47218 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47219 # Going to short mode and back again did indeed matter. Since short mode is 47220 # case insensitive, let's make it lowercase to improve readability. 47221 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47222 # Now convert it back to Unix-style (cygpath) 47223 input_path=`$CYGPATH -u "$shortmode_path"` 47224 new_path="$input_path" 47225 fi 47226 fi 47227 47228 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47229 if test "x$test_cygdrive_prefix" = x; then 47230 # As a simple fix, exclude /usr/bin since it's not a real path. 47231 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47232 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47233 # a path prefixed by /cygdrive for fixpath to work. 47234 new_path="$CYGWIN_ROOT_PATH$input_path" 47235 fi 47236 fi 47237 47238 47239 if test "x$path" != "x$new_path"; then 47240 FREETYPE_LIB_PATH="$new_path" 47241 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47242 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47243 fi 47244 47245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47246 47247 path="$FREETYPE_LIB_PATH" 47248 has_colon=`$ECHO $path | $GREP ^.:` 47249 new_path="$path" 47250 if test "x$has_colon" = x; then 47251 # Not in mixed or Windows style, start by that. 47252 new_path=`cmd //c echo $path` 47253 fi 47254 47255 47256 input_path="$new_path" 47257 # Check if we need to convert this using DOS-style short mode. If the path 47258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47259 # take no chances and rewrite it. 47260 # Note: m4 eats our [], so we need to use [ and ] instead. 47261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47262 if test "x$has_forbidden_chars" != x; then 47263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47264 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47265 fi 47266 47267 47268 windows_path="$new_path" 47269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47270 unix_path=`$CYGPATH -u "$windows_path"` 47271 new_path="$unix_path" 47272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47274 new_path="$unix_path" 47275 fi 47276 47277 if test "x$path" != "x$new_path"; then 47278 FREETYPE_LIB_PATH="$new_path" 47279 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47280 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47281 fi 47282 47283 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47284 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47285 47286 else 47287 # We're on a posix platform. Hooray! :) 47288 path="$FREETYPE_LIB_PATH" 47289 has_space=`$ECHO "$path" | $GREP " "` 47290 if test "x$has_space" != x; then 47291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47292 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47293 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47294 fi 47295 47296 # Use eval to expand a potential ~ 47297 eval path="$path" 47298 if test ! -f "$path" && test ! -d "$path"; then 47299 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47300 fi 47301 47302 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47303 fi 47304 47305 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47306 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 47307 else 47308 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 47309 fi 47310 fi 47311 47312 # Try to compile it 47313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 47314 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 47315 ac_ext=cpp 47316 ac_cpp='$CXXCPP $CPPFLAGS' 47317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47320 47321 PREV_CXXCFLAGS="$CXXFLAGS" 47322 PREV_LIBS="$LIBS" 47323 PREV_CXX="$CXX" 47324 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 47325 LIBS="$LIBS $FREETYPE_LIBS" 47326 CXX="$FIXPATH $CXX" 47327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47328 /* end confdefs.h. */ 47329 47330 #include<ft2build.h> 47331 #include FT_FREETYPE_H 47332 int main () { 47333 FT_Init_FreeType(NULL); 47334 return 0; 47335 } 47336 47337 _ACEOF 47338 if ac_fn_cxx_try_link "$LINENO"; then : 47339 47340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47341 $as_echo "yes" >&6; } 47342 47343 else 47344 47345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47346 $as_echo "no" >&6; } 47347 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 47348 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 47349 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 47350 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 47351 47352 47353 # Print a helpful message on how to acquire the necessary build dependency. 47354 # freetype is the help tag: freetype, cups, pulse, alsa etc 47355 MISSING_DEPENDENCY=freetype 47356 47357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47358 cygwin_help $MISSING_DEPENDENCY 47359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47360 msys_help $MISSING_DEPENDENCY 47361 else 47362 PKGHANDLER_COMMAND= 47363 47364 case $PKGHANDLER in 47365 apt-get) 47366 apt_help $MISSING_DEPENDENCY ;; 47367 yum) 47368 yum_help $MISSING_DEPENDENCY ;; 47369 port) 47370 port_help $MISSING_DEPENDENCY ;; 47371 pkgutil) 47372 pkgutil_help $MISSING_DEPENDENCY ;; 47373 pkgadd) 47374 pkgadd_help $MISSING_DEPENDENCY ;; 47375 esac 47376 47377 if test "x$PKGHANDLER_COMMAND" != x; then 47378 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47379 fi 47380 fi 47381 47382 47383 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 47384 47385 47386 fi 47387 rm -f core conftest.err conftest.$ac_objext \ 47388 conftest$ac_exeext conftest.$ac_ext 47389 CXXCFLAGS="$PREV_CXXFLAGS" 47390 LIBS="$PREV_LIBS" 47391 CXX="$PREV_CXX" 47392 ac_ext=cpp 47393 ac_cpp='$CXXCPP $CPPFLAGS' 47394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47397 47398 47399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 47400 $as_echo_n "checking if we should bundle freetype... " >&6; } 47401 if test "x$BUNDLE_FREETYPE" = xyes; then 47402 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 47403 fi 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 47405 $as_echo "$BUNDLE_FREETYPE" >&6; } 47406 47407 fi # end freetype needed 47408 47409 47410 47411 47412 47413 47414 47415 ############################################################################### 47416 # 47417 # Check for alsa headers and libraries. Used on Linux/GNU systems. 47418 # 47419 47420 # Check whether --with-alsa was given. 47421 if test "${with_alsa+set}" = set; then : 47422 withval=$with_alsa; 47423 fi 47424 47425 47426 # Check whether --with-alsa-include was given. 47427 if test "${with_alsa_include+set}" = set; then : 47428 withval=$with_alsa_include; 47429 fi 47430 47431 47432 # Check whether --with-alsa-lib was given. 47433 if test "${with_alsa_lib+set}" = set; then : 47434 withval=$with_alsa_lib; 47435 fi 47436 47437 47438 if test "x$ALSA_NOT_NEEDED" = xyes; then 47439 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 47440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 47441 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 47442 fi 47443 ALSA_CFLAGS= 47444 ALSA_LIBS= 47445 else 47446 ALSA_FOUND=no 47447 47448 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 47449 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 47450 fi 47451 47452 if test "x${with_alsa}" != x; then 47453 ALSA_LIBS="-L${with_alsa}/lib -lasound" 47454 ALSA_CFLAGS="-I${with_alsa}/include" 47455 ALSA_FOUND=yes 47456 fi 47457 if test "x${with_alsa_include}" != x; then 47458 ALSA_CFLAGS="-I${with_alsa_include}" 47459 ALSA_FOUND=yes 47460 fi 47461 if test "x${with_alsa_lib}" != x; then 47462 ALSA_LIBS="-L${with_alsa_lib} -lasound" 47463 ALSA_FOUND=yes 47464 fi 47465 if test "x$ALSA_FOUND" = xno; then 47466 47467 47468 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 47469 # Source the builddeps file again, to make sure it uses the latest variables! 47470 . $builddepsfile 47471 # Look for a target and build machine specific resource! 47472 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 47473 if test "x$resource" = x; then 47474 # Ok, lets instead look for a target specific resource 47475 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 47476 fi 47477 if test "x$resource" = x; then 47478 # Ok, lets instead look for a build specific resource 47479 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 47480 fi 47481 if test "x$resource" = x; then 47482 # Ok, lets instead look for a generic resource 47483 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 47484 resource=${builddep_alsa} 47485 fi 47486 if test "x$resource" != x; then 47487 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 47488 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 47489 # If the resource in the builddeps.conf file is an existing directory, 47490 # for example /java/linux/cups 47491 if test -d ${resource}; then 47492 depdir=${resource} 47493 else 47494 47495 # alsa is for example mymodule 47496 # $resource is for example libs/general/libmymod_1_2_3.zip 47497 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 47498 # $with_builddeps_dir is for example /localhome/builddeps 47499 # depdir is the name of the variable into which we store the depdir, eg MYMOD 47500 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 47501 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 47502 filename=`basename $resource` 47503 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 47504 filebase=${filename%%.*} 47505 extension=${filename#*.} 47506 installdir=$with_builddeps_dir/$filebase 47507 if test ! -f $installdir/$filename.unpacked; then 47508 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 47509 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 47510 if test ! -d $installdir; then 47511 mkdir -p $installdir 47512 fi 47513 if test ! -d $installdir; then 47514 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 47515 fi 47516 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 47517 touch $tmpfile 47518 if test ! -f $tmpfile; then 47519 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 47520 fi 47521 47522 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 47523 # $tmpfile is the local file name for the downloaded file. 47524 VALID_TOOL=no 47525 if test "x$BDEPS_FTP" = xwget; then 47526 VALID_TOOL=yes 47527 wget -O $tmpfile $with_builddeps_server/$resource 47528 fi 47529 if test "x$BDEPS_FTP" = xlftp; then 47530 VALID_TOOL=yes 47531 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 47532 fi 47533 if test "x$BDEPS_FTP" = xftp; then 47534 VALID_TOOL=yes 47535 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 47536 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 47537 FTPUSERPWD=${FTPSERVER%%@*} 47538 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 47539 FTPUSER=${userpwd%%:*} 47540 FTPPWD=${userpwd#*@} 47541 FTPSERVER=${FTPSERVER#*@} 47542 else 47543 FTPUSER=ftp 47544 FTPPWD=ftp 47545 fi 47546 # the "pass" command does not work on some 47547 # ftp clients (read ftp.exe) but if it works, 47548 # passive mode is better! 47549 ( \ 47550 echo "user $FTPUSER $FTPPWD" ; \ 47551 echo "pass" ; \ 47552 echo "bin" ; \ 47553 echo "get $FTPPATH $tmpfile" ; \ 47554 ) | ftp -in $FTPSERVER 47555 fi 47556 if test "x$VALID_TOOL" != xyes; then 47557 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 47558 fi 47559 47560 mv $tmpfile $installdir/$filename 47561 if test ! -s $installdir/$filename; then 47562 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 47563 fi 47564 case "$extension" in 47565 zip) echo "Unzipping $installdir/$filename..." 47566 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 47567 ;; 47568 tar.gz) echo "Untaring $installdir/$filename..." 47569 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47570 ;; 47571 tgz) echo "Untaring $installdir/$filename..." 47572 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47573 ;; 47574 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 47575 ;; 47576 esac 47577 fi 47578 if test -f $installdir/$filename.unpacked; then 47579 depdir=$installdir 47580 fi 47581 47582 fi 47583 # Source the builddeps file again, because in the previous command, the depdir 47584 # was updated to point at the current build dependency install directory. 47585 . $builddepsfile 47586 # Now extract variables from the builddeps.conf files. 47587 theroot=${builddep_alsa_ROOT} 47588 thecflags=${builddep_alsa_CFLAGS} 47589 thelibs=${builddep_alsa_LIBS} 47590 if test "x$depdir" = x; then 47591 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 47592 fi 47593 ALSA=$depdir 47594 if test "x$theroot" != x; then 47595 ALSA="$theroot" 47596 fi 47597 if test "x$thecflags" != x; then 47598 ALSA_CFLAGS="$thecflags" 47599 fi 47600 if test "x$thelibs" != x; then 47601 ALSA_LIBS="$thelibs" 47602 fi 47603 ALSA_FOUND=yes 47604 else ALSA_FOUND=no 47605 47606 fi 47607 else ALSA_FOUND=no 47608 47609 fi 47610 47611 fi 47612 # Do not try pkg-config if we have a sysroot set. 47613 if test "x$SYSROOT" = x; then 47614 if test "x$ALSA_FOUND" = xno; then 47615 47616 pkg_failed=no 47617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 47618 $as_echo_n "checking for ALSA... " >&6; } 47619 47620 if test -n "$ALSA_CFLAGS"; then 47621 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 47622 elif test -n "$PKG_CONFIG"; then 47623 if test -n "$PKG_CONFIG" && \ 47624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47625 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47626 ac_status=$? 47627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47628 test $ac_status = 0; }; then 47629 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 47630 else 47631 pkg_failed=yes 47632 fi 47633 else 47634 pkg_failed=untried 47635 fi 47636 if test -n "$ALSA_LIBS"; then 47637 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 47638 elif test -n "$PKG_CONFIG"; then 47639 if test -n "$PKG_CONFIG" && \ 47640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47641 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47642 ac_status=$? 47643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47644 test $ac_status = 0; }; then 47645 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 47646 else 47647 pkg_failed=yes 47648 fi 47649 else 47650 pkg_failed=untried 47651 fi 47652 47653 47654 47655 if test $pkg_failed = yes; then 47656 47657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47658 _pkg_short_errors_supported=yes 47659 else 47660 _pkg_short_errors_supported=no 47661 fi 47662 if test $_pkg_short_errors_supported = yes; then 47663 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 47664 else 47665 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 47666 fi 47667 # Put the nasty error message in config.log where it belongs 47668 echo "$ALSA_PKG_ERRORS" >&5 47669 47670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47671 $as_echo "no" >&6; } 47672 ALSA_FOUND=no 47673 elif test $pkg_failed = untried; then 47674 ALSA_FOUND=no 47675 else 47676 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 47677 ALSA_LIBS=$pkg_cv_ALSA_LIBS 47678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47679 $as_echo "yes" >&6; } 47680 ALSA_FOUND=yes 47681 fi 47682 fi 47683 fi 47684 if test "x$ALSA_FOUND" = xno; then 47685 for ac_header in alsa/asoundlib.h 47686 do : 47687 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 47688 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 47689 cat >>confdefs.h <<_ACEOF 47690 #define HAVE_ALSA_ASOUNDLIB_H 1 47691 _ACEOF 47692 47693 ALSA_FOUND=yes 47694 ALSA_CFLAGS=-Iignoreme 47695 ALSA_LIBS=-lasound 47696 DEFAULT_ALSA=yes 47697 47698 else 47699 ALSA_FOUND=no 47700 fi 47701 47702 done 47703 47704 fi 47705 if test "x$ALSA_FOUND" = xno; then 47706 47707 # Print a helpful message on how to acquire the necessary build dependency. 47708 # alsa is the help tag: freetype, cups, pulse, alsa etc 47709 MISSING_DEPENDENCY=alsa 47710 47711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47712 cygwin_help $MISSING_DEPENDENCY 47713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47714 msys_help $MISSING_DEPENDENCY 47715 else 47716 PKGHANDLER_COMMAND= 47717 47718 case $PKGHANDLER in 47719 apt-get) 47720 apt_help $MISSING_DEPENDENCY ;; 47721 yum) 47722 yum_help $MISSING_DEPENDENCY ;; 47723 port) 47724 port_help $MISSING_DEPENDENCY ;; 47725 pkgutil) 47726 pkgutil_help $MISSING_DEPENDENCY ;; 47727 pkgadd) 47728 pkgadd_help $MISSING_DEPENDENCY ;; 47729 esac 47730 47731 if test "x$PKGHANDLER_COMMAND" != x; then 47732 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47733 fi 47734 fi 47735 47736 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 47737 fi 47738 fi 47739 47740 47741 47742 47743 47744 47745 # Check whether --with-fontconfig was given. 47746 if test "${with_fontconfig+set}" = set; then : 47747 withval=$with_fontconfig; 47748 fi 47749 47750 47751 # Check whether --with-fontconfig-include was given. 47752 if test "${with_fontconfig_include+set}" = set; then : 47753 withval=$with_fontconfig_include; 47754 fi 47755 47756 47757 if test "x$FONTCONFIG_NOT_NEEDED" = xyes; then 47758 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 47759 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 47760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 47761 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 47762 fi 47763 FONTCONFIG_CFLAGS= 47764 else 47765 FONTCONFIG_FOUND=no 47766 47767 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 47768 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 47769 fi 47770 47771 if test "x${with_fontconfig}" != x; then 47772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 47773 $as_echo_n "checking for fontconfig headers... " >&6; } 47774 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 47775 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 47776 FONTCONFIG_FOUND=yes 47777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 47778 $as_echo "$FONTCONFIG_FOUND" >&6; } 47779 else 47780 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 47781 fi 47782 fi 47783 if test "x${with_fontconfig_include}" != x; then 47784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 47785 $as_echo_n "checking for fontconfig headers... " >&6; } 47786 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 47787 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 47788 FONTCONFIG_FOUND=yes 47789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 47790 $as_echo "$FONTCONFIG_FOUND" >&6; } 47791 else 47792 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 47793 fi 47794 fi 47795 if test "x$FONTCONFIG_FOUND" = xno; then 47796 # Are the fontconfig headers installed in the default /usr/include location? 47797 for ac_header in fontconfig/fontconfig.h 47798 do : 47799 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 47800 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 47801 cat >>confdefs.h <<_ACEOF 47802 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 47803 _ACEOF 47804 47805 FONTCONFIG_FOUND=yes 47806 FONTCONFIG_CFLAGS= 47807 DEFAULT_FONTCONFIG=yes 47808 47809 fi 47810 47811 done 47812 47813 fi 47814 if test "x$FONTCONFIG_FOUND" = xno; then 47815 47816 # Print a helpful message on how to acquire the necessary build dependency. 47817 # fontconfig is the help tag: freetype, cups, pulse, alsa etc 47818 MISSING_DEPENDENCY=fontconfig 47819 47820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47821 cygwin_help $MISSING_DEPENDENCY 47822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47823 msys_help $MISSING_DEPENDENCY 47824 else 47825 PKGHANDLER_COMMAND= 47826 47827 case $PKGHANDLER in 47828 apt-get) 47829 apt_help $MISSING_DEPENDENCY ;; 47830 yum) 47831 yum_help $MISSING_DEPENDENCY ;; 47832 port) 47833 port_help $MISSING_DEPENDENCY ;; 47834 pkgutil) 47835 pkgutil_help $MISSING_DEPENDENCY ;; 47836 pkgadd) 47837 pkgadd_help $MISSING_DEPENDENCY ;; 47838 esac 47839 47840 if test "x$PKGHANDLER_COMMAND" != x; then 47841 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47842 fi 47843 fi 47844 47845 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 47846 fi 47847 fi 47848 47849 47850 47851 47852 47853 ############################################################################### 47854 # 47855 # Check for the jpeg library 47856 # 47857 47858 USE_EXTERNAL_LIBJPEG=true 47859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 47860 $as_echo_n "checking for main in -ljpeg... " >&6; } 47861 if ${ac_cv_lib_jpeg_main+:} false; then : 47862 $as_echo_n "(cached) " >&6 47863 else 47864 ac_check_lib_save_LIBS=$LIBS 47865 LIBS="-ljpeg $LIBS" 47866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47867 /* end confdefs.h. */ 47868 47869 47870 int 47871 main () 47872 { 47873 return main (); 47874 ; 47875 return 0; 47876 } 47877 _ACEOF 47878 if ac_fn_cxx_try_link "$LINENO"; then : 47879 ac_cv_lib_jpeg_main=yes 47880 else 47881 ac_cv_lib_jpeg_main=no 47882 fi 47883 rm -f core conftest.err conftest.$ac_objext \ 47884 conftest$ac_exeext conftest.$ac_ext 47885 LIBS=$ac_check_lib_save_LIBS 47886 fi 47887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 47888 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 47889 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 47890 cat >>confdefs.h <<_ACEOF 47891 #define HAVE_LIBJPEG 1 47892 _ACEOF 47893 47894 LIBS="-ljpeg $LIBS" 47895 47896 else 47897 USE_EXTERNAL_LIBJPEG=false 47898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 47899 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 47900 47901 fi 47902 47903 47904 47905 ############################################################################### 47906 # 47907 # Check for the gif library 47908 # 47909 47910 47911 # Check whether --with-giflib was given. 47912 if test "${with_giflib+set}" = set; then : 47913 withval=$with_giflib; 47914 fi 47915 47916 47917 47918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 47919 $as_echo_n "checking for which giflib to use... " >&6; } 47920 47921 # default is bundled 47922 DEFAULT_GIFLIB=bundled 47923 47924 # 47925 # if user didn't specify, use DEFAULT_GIFLIB 47926 # 47927 if test "x${with_giflib}" = "x"; then 47928 with_giflib=${DEFAULT_GIFLIB} 47929 fi 47930 47931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 47932 $as_echo "${with_giflib}" >&6; } 47933 47934 if test "x${with_giflib}" = "xbundled"; then 47935 USE_EXTERNAL_LIBGIF=false 47936 elif test "x${with_giflib}" = "xsystem"; then 47937 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 47938 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 47939 47940 else 47941 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 47942 fi 47943 47944 47945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 47946 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 47947 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 47948 $as_echo_n "(cached) " >&6 47949 else 47950 ac_check_lib_save_LIBS=$LIBS 47951 LIBS="-lgif $LIBS" 47952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47953 /* end confdefs.h. */ 47954 47955 /* Override any GCC internal prototype to avoid an error. 47956 Use char because int might match the return type of a GCC 47957 builtin and then its argument prototype would still apply. */ 47958 #ifdef __cplusplus 47959 extern "C" 47960 #endif 47961 char DGifGetCode (); 47962 int 47963 main () 47964 { 47965 return DGifGetCode (); 47966 ; 47967 return 0; 47968 } 47969 _ACEOF 47970 if ac_fn_cxx_try_link "$LINENO"; then : 47971 ac_cv_lib_gif_DGifGetCode=yes 47972 else 47973 ac_cv_lib_gif_DGifGetCode=no 47974 fi 47975 rm -f core conftest.err conftest.$ac_objext \ 47976 conftest$ac_exeext conftest.$ac_ext 47977 LIBS=$ac_check_lib_save_LIBS 47978 fi 47979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 47980 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 47981 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 47982 cat >>confdefs.h <<_ACEOF 47983 #define HAVE_LIBGIF 1 47984 _ACEOF 47985 47986 LIBS="-lgif $LIBS" 47987 47988 else 47989 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 47990 fi 47991 47992 47993 USE_EXTERNAL_LIBGIF=true 47994 else 47995 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 47996 fi 47997 47998 47999 ############################################################################### 48000 # 48001 # Check for the zlib library 48002 # 48003 48004 48005 # Check whether --with-zlib was given. 48006 if test "${with_zlib+set}" = set; then : 48007 withval=$with_zlib; 48008 fi 48009 48010 48011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48012 $as_echo_n "checking for compress in -lz... " >&6; } 48013 if ${ac_cv_lib_z_compress+:} false; then : 48014 $as_echo_n "(cached) " >&6 48015 else 48016 ac_check_lib_save_LIBS=$LIBS 48017 LIBS="-lz $LIBS" 48018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48019 /* end confdefs.h. */ 48020 48021 /* Override any GCC internal prototype to avoid an error. 48022 Use char because int might match the return type of a GCC 48023 builtin and then its argument prototype would still apply. */ 48024 #ifdef __cplusplus 48025 extern "C" 48026 #endif 48027 char compress (); 48028 int 48029 main () 48030 { 48031 return compress (); 48032 ; 48033 return 0; 48034 } 48035 _ACEOF 48036 if ac_fn_cxx_try_link "$LINENO"; then : 48037 ac_cv_lib_z_compress=yes 48038 else 48039 ac_cv_lib_z_compress=no 48040 fi 48041 rm -f core conftest.err conftest.$ac_objext \ 48042 conftest$ac_exeext conftest.$ac_ext 48043 LIBS=$ac_check_lib_save_LIBS 48044 fi 48045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48046 $as_echo "$ac_cv_lib_z_compress" >&6; } 48047 if test "x$ac_cv_lib_z_compress" = xyes; then : 48048 ZLIB_FOUND=yes 48049 else 48050 ZLIB_FOUND=no 48051 fi 48052 48053 48054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48055 $as_echo_n "checking for which zlib to use... " >&6; } 48056 48057 DEFAULT_ZLIB=bundled 48058 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48059 # 48060 # On macosx default is system...on others default is 48061 # 48062 DEFAULT_ZLIB=system 48063 fi 48064 48065 if test "x${ZLIB_FOUND}" != "xyes"; then 48066 # 48067 # If we don't find any system...set default to bundled 48068 # 48069 DEFAULT_ZLIB=bundled 48070 fi 48071 48072 # 48073 # If user didn't specify, use DEFAULT_ZLIB 48074 # 48075 if test "x${with_zlib}" = "x"; then 48076 with_zlib=${DEFAULT_ZLIB} 48077 fi 48078 48079 if test "x${with_zlib}" = "xbundled"; then 48080 USE_EXTERNAL_LIBZ=false 48081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48082 $as_echo "bundled" >&6; } 48083 elif test "x${with_zlib}" = "xsystem"; then 48084 if test "x${ZLIB_FOUND}" = "xyes"; then 48085 USE_EXTERNAL_LIBZ=true 48086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48087 $as_echo "system" >&6; } 48088 else 48089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48090 $as_echo "system not found" >&6; } 48091 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48092 fi 48093 else 48094 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48095 fi 48096 48097 48098 48099 ############################################################################### 48100 LIBZIP_CAN_USE_MMAP=true 48101 48102 48103 48104 ############################################################################### 48105 # 48106 # Check if altzone exists in time.h 48107 # 48108 48109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48110 /* end confdefs.h. */ 48111 #include <time.h> 48112 int 48113 main () 48114 { 48115 return (int)altzone; 48116 ; 48117 return 0; 48118 } 48119 _ACEOF 48120 if ac_fn_cxx_try_link "$LINENO"; then : 48121 has_altzone=yes 48122 else 48123 has_altzone=no 48124 fi 48125 rm -f core conftest.err conftest.$ac_objext \ 48126 conftest$ac_exeext conftest.$ac_ext 48127 if test "x$has_altzone" = xyes; then 48128 48129 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48130 48131 fi 48132 48133 ############################################################################### 48134 # 48135 # Check the maths library 48136 # 48137 48138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48139 $as_echo_n "checking for cos in -lm... " >&6; } 48140 if ${ac_cv_lib_m_cos+:} false; then : 48141 $as_echo_n "(cached) " >&6 48142 else 48143 ac_check_lib_save_LIBS=$LIBS 48144 LIBS="-lm $LIBS" 48145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48146 /* end confdefs.h. */ 48147 48148 /* Override any GCC internal prototype to avoid an error. 48149 Use char because int might match the return type of a GCC 48150 builtin and then its argument prototype would still apply. */ 48151 #ifdef __cplusplus 48152 extern "C" 48153 #endif 48154 char cos (); 48155 int 48156 main () 48157 { 48158 return cos (); 48159 ; 48160 return 0; 48161 } 48162 _ACEOF 48163 if ac_fn_cxx_try_link "$LINENO"; then : 48164 ac_cv_lib_m_cos=yes 48165 else 48166 ac_cv_lib_m_cos=no 48167 fi 48168 rm -f core conftest.err conftest.$ac_objext \ 48169 conftest$ac_exeext conftest.$ac_ext 48170 LIBS=$ac_check_lib_save_LIBS 48171 fi 48172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48173 $as_echo "$ac_cv_lib_m_cos" >&6; } 48174 if test "x$ac_cv_lib_m_cos" = xyes; then : 48175 cat >>confdefs.h <<_ACEOF 48176 #define HAVE_LIBM 1 48177 _ACEOF 48178 48179 LIBS="-lm $LIBS" 48180 48181 else 48182 48183 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48184 $as_echo "$as_me: Maths library was not found" >&6;} 48185 48186 48187 fi 48188 48189 48190 48191 ############################################################################### 48192 # 48193 # Check for libdl.so 48194 48195 save_LIBS="$LIBS" 48196 LIBS="" 48197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48198 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48199 if ${ac_cv_lib_dl_dlopen+:} false; then : 48200 $as_echo_n "(cached) " >&6 48201 else 48202 ac_check_lib_save_LIBS=$LIBS 48203 LIBS="-ldl $LIBS" 48204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48205 /* end confdefs.h. */ 48206 48207 /* Override any GCC internal prototype to avoid an error. 48208 Use char because int might match the return type of a GCC 48209 builtin and then its argument prototype would still apply. */ 48210 #ifdef __cplusplus 48211 extern "C" 48212 #endif 48213 char dlopen (); 48214 int 48215 main () 48216 { 48217 return dlopen (); 48218 ; 48219 return 0; 48220 } 48221 _ACEOF 48222 if ac_fn_cxx_try_link "$LINENO"; then : 48223 ac_cv_lib_dl_dlopen=yes 48224 else 48225 ac_cv_lib_dl_dlopen=no 48226 fi 48227 rm -f core conftest.err conftest.$ac_objext \ 48228 conftest$ac_exeext conftest.$ac_ext 48229 LIBS=$ac_check_lib_save_LIBS 48230 fi 48231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 48232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 48233 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 48234 cat >>confdefs.h <<_ACEOF 48235 #define HAVE_LIBDL 1 48236 _ACEOF 48237 48238 LIBS="-ldl $LIBS" 48239 48240 fi 48241 48242 LIBDL="$LIBS" 48243 48244 LIBS="$save_LIBS" 48245 48246 48247 ############################################################################### 48248 # 48249 # statically link libstdc++ before C++ ABI is stablized on Linux unless 48250 # dynamic build is configured on command line. 48251 # 48252 48253 # Check whether --with-stdc++lib was given. 48254 if test "${with_stdc__lib+set}" = set; then : 48255 withval=$with_stdc__lib; 48256 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 48257 && test "x$with_stdc__lib" != xdefault; then 48258 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 48259 fi 48260 48261 else 48262 with_stdc__lib=default 48263 48264 fi 48265 48266 48267 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48268 # Test if -lstdc++ works. 48269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 48270 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 48271 ac_ext=cpp 48272 ac_cpp='$CXXCPP $CPPFLAGS' 48273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48276 48277 OLD_CXXFLAGS="$CXXFLAGS" 48278 CXXFLAGS="$CXXFLAGS -lstdc++" 48279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48280 /* end confdefs.h. */ 48281 48282 int 48283 main () 48284 { 48285 return 0; 48286 ; 48287 return 0; 48288 } 48289 _ACEOF 48290 if ac_fn_cxx_try_link "$LINENO"; then : 48291 has_dynamic_libstdcxx=yes 48292 else 48293 has_dynamic_libstdcxx=no 48294 fi 48295 rm -f core conftest.err conftest.$ac_objext \ 48296 conftest$ac_exeext conftest.$ac_ext 48297 CXXFLAGS="$OLD_CXXFLAGS" 48298 ac_ext=cpp 48299 ac_cpp='$CXXCPP $CPPFLAGS' 48300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48303 48304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 48305 $as_echo "$has_dynamic_libstdcxx" >&6; } 48306 48307 # Test if stdc++ can be linked statically. 48308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 48309 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 48310 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 48311 ac_ext=cpp 48312 ac_cpp='$CXXCPP $CPPFLAGS' 48313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48316 48317 OLD_LIBS="$LIBS" 48318 OLD_CXX="$CXX" 48319 LIBS="$STATIC_STDCXX_FLAGS" 48320 CXX="$CC" 48321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48322 /* end confdefs.h. */ 48323 48324 int 48325 main () 48326 { 48327 return 0; 48328 ; 48329 return 0; 48330 } 48331 _ACEOF 48332 if ac_fn_cxx_try_link "$LINENO"; then : 48333 has_static_libstdcxx=yes 48334 else 48335 has_static_libstdcxx=no 48336 fi 48337 rm -f core conftest.err conftest.$ac_objext \ 48338 conftest$ac_exeext conftest.$ac_ext 48339 LIBS="$OLD_LIBS" 48340 CXX="$OLD_CXX" 48341 ac_ext=cpp 48342 ac_cpp='$CXXCPP $CPPFLAGS' 48343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48346 48347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 48348 $as_echo "$has_static_libstdcxx" >&6; } 48349 48350 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 48351 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 48352 fi 48353 48354 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 48355 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 48356 fi 48357 48358 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 48359 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 48360 fi 48361 48362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 48363 $as_echo_n "checking how to link with libstdc++... " >&6; } 48364 # If dynamic was requested, it's available since it would fail above otherwise. 48365 # If dynamic wasn't requested, go with static unless it isn't available. 48366 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48367 LIBCXX="$LIBCXX -lstdc++" 48368 LDCXX="$CXX" 48369 STATIC_CXX_SETTING="STATIC_CXX=false" 48370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 48371 $as_echo "dynamic" >&6; } 48372 else 48373 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 48374 LDCXX="$CC" 48375 STATIC_CXX_SETTING="STATIC_CXX=true" 48376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 48377 $as_echo "static" >&6; } 48378 fi 48379 fi 48380 48381 48382 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48383 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 48384 48385 pkg_failed=no 48386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 48387 $as_echo_n "checking for LIBFFI... " >&6; } 48388 48389 if test -n "$LIBFFI_CFLAGS"; then 48390 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 48391 elif test -n "$PKG_CONFIG"; then 48392 if test -n "$PKG_CONFIG" && \ 48393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48394 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48395 ac_status=$? 48396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48397 test $ac_status = 0; }; then 48398 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 48399 else 48400 pkg_failed=yes 48401 fi 48402 else 48403 pkg_failed=untried 48404 fi 48405 if test -n "$LIBFFI_LIBS"; then 48406 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 48407 elif test -n "$PKG_CONFIG"; then 48408 if test -n "$PKG_CONFIG" && \ 48409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48410 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48411 ac_status=$? 48412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48413 test $ac_status = 0; }; then 48414 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 48415 else 48416 pkg_failed=yes 48417 fi 48418 else 48419 pkg_failed=untried 48420 fi 48421 48422 48423 48424 if test $pkg_failed = yes; then 48425 48426 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48427 _pkg_short_errors_supported=yes 48428 else 48429 _pkg_short_errors_supported=no 48430 fi 48431 if test $_pkg_short_errors_supported = yes; then 48432 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 48433 else 48434 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 48435 fi 48436 # Put the nasty error message in config.log where it belongs 48437 echo "$LIBFFI_PKG_ERRORS" >&5 48438 48439 as_fn_error $? "Package requirements (libffi) were not met: 48440 48441 $LIBFFI_PKG_ERRORS 48442 48443 Consider adjusting the PKG_CONFIG_PATH environment variable if you 48444 installed software in a non-standard prefix. 48445 48446 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48447 and LIBFFI_LIBS to avoid the need to call pkg-config. 48448 See the pkg-config man page for more details. 48449 " "$LINENO" 5 48450 elif test $pkg_failed = untried; then 48451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48453 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 48454 is in your PATH or set the PKG_CONFIG environment variable to the full 48455 path to pkg-config. 48456 48457 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48458 and LIBFFI_LIBS to avoid the need to call pkg-config. 48459 See the pkg-config man page for more details. 48460 48461 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 48462 See \`config.log' for more details" "$LINENO" 5; } 48463 else 48464 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 48465 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 48466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48467 $as_echo "yes" >&6; } 48468 : 48469 fi 48470 48471 fi 48472 48473 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48474 # Extract the first word of "llvm-config", so it can be a program name with args. 48475 set dummy llvm-config; ac_word=$2 48476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48477 $as_echo_n "checking for $ac_word... " >&6; } 48478 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 48479 $as_echo_n "(cached) " >&6 48480 else 48481 if test -n "$LLVM_CONFIG"; then 48482 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 48483 else 48484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48485 for as_dir in $PATH 48486 do 48487 IFS=$as_save_IFS 48488 test -z "$as_dir" && as_dir=. 48489 for ac_exec_ext in '' $ac_executable_extensions; do 48490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48491 ac_cv_prog_LLVM_CONFIG="llvm-config" 48492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48493 break 2 48494 fi 48495 done 48496 done 48497 IFS=$as_save_IFS 48498 48499 fi 48500 fi 48501 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 48502 if test -n "$LLVM_CONFIG"; then 48503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 48504 $as_echo "$LLVM_CONFIG" >&6; } 48505 else 48506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48507 $as_echo "no" >&6; } 48508 fi 48509 48510 48511 48512 if test "x$LLVM_CONFIG" != xllvm-config; then 48513 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 48514 fi 48515 48516 llvm_components="jit mcjit engine nativecodegen native" 48517 unset LLVM_CFLAGS 48518 for flag in $("$LLVM_CONFIG" --cxxflags); do 48519 if echo "${flag}" | grep -q '^-[ID]'; then 48520 if test "${flag}" != "-D_DEBUG" ; then 48521 if test "${LLVM_CFLAGS}" != "" ; then 48522 LLVM_CFLAGS="${LLVM_CFLAGS} " 48523 fi 48524 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 48525 fi 48526 fi 48527 done 48528 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 48529 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 48530 48531 unset LLVM_LDFLAGS 48532 for flag in $("${LLVM_CONFIG}" --ldflags); do 48533 if echo "${flag}" | grep -q '^-L'; then 48534 if test "${LLVM_LDFLAGS}" != ""; then 48535 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 48536 fi 48537 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 48538 fi 48539 done 48540 48541 unset LLVM_LIBS 48542 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 48543 if echo "${flag}" | grep -q '^-l'; then 48544 if test "${LLVM_LIBS}" != ""; then 48545 LLVM_LIBS="${LLVM_LIBS} " 48546 fi 48547 LLVM_LIBS="${LLVM_LIBS}${flag}" 48548 fi 48549 done 48550 48551 48552 48553 48554 fi 48555 48556 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 48557 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 48558 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 48559 fi 48560 48561 # TODO better (platform agnostic) test 48562 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 48563 LIBCXX="-lstdc++" 48564 fi 48565 48566 48567 48568 48569 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48570 48571 48572 # Check whether --with-msvcr-dll was given. 48573 if test "${with_msvcr_dll+set}" = set; then : 48574 withval=$with_msvcr_dll; 48575 fi 48576 48577 48578 if test "x$with_msvcr_dll" != x; then 48579 # If given explicitely by user, do not probe. If not present, fail directly. 48580 48581 DLL_NAME="$MSVCR_NAME" 48582 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 48583 METHOD="--with-msvcr-dll" 48584 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48585 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48586 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48587 48588 # Need to check if the found msvcr is correct architecture 48589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48590 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48591 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48593 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48594 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48595 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48596 CORRECT_MSVCR_ARCH="PE32 executable" 48597 else 48598 CORRECT_MSVCR_ARCH="PE32+ executable" 48599 fi 48600 else 48601 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48602 CORRECT_MSVCR_ARCH=386 48603 else 48604 CORRECT_MSVCR_ARCH=x86-64 48605 fi 48606 fi 48607 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48609 $as_echo "ok" >&6; } 48610 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48611 48612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48613 48614 # Input might be given as Windows format, start by converting to 48615 # unix format. 48616 path="$MSVC_DLL" 48617 new_path=`$CYGPATH -u "$path"` 48618 48619 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48620 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48621 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48622 # "foo.exe" is OK but "foo" is an error. 48623 # 48624 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48625 # It is also a way to make sure we got the proper file name for the real test later on. 48626 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48627 if test "x$test_shortpath" = x; then 48628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48629 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48630 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48631 fi 48632 48633 # Call helper function which possibly converts this using DOS-style short mode. 48634 # If so, the updated path is stored in $new_path. 48635 48636 input_path="$new_path" 48637 # Check if we need to convert this using DOS-style short mode. If the path 48638 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48639 # take no chances and rewrite it. 48640 # Note: m4 eats our [], so we need to use [ and ] instead. 48641 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48642 if test "x$has_forbidden_chars" != x; then 48643 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48644 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48645 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48646 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48647 # Going to short mode and back again did indeed matter. Since short mode is 48648 # case insensitive, let's make it lowercase to improve readability. 48649 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48650 # Now convert it back to Unix-style (cygpath) 48651 input_path=`$CYGPATH -u "$shortmode_path"` 48652 new_path="$input_path" 48653 fi 48654 fi 48655 48656 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48657 if test "x$test_cygdrive_prefix" = x; then 48658 # As a simple fix, exclude /usr/bin since it's not a real path. 48659 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48660 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48661 # a path prefixed by /cygdrive for fixpath to work. 48662 new_path="$CYGWIN_ROOT_PATH$input_path" 48663 fi 48664 fi 48665 48666 48667 if test "x$path" != "x$new_path"; then 48668 MSVC_DLL="$new_path" 48669 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48670 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48671 fi 48672 48673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48674 48675 path="$MSVC_DLL" 48676 has_colon=`$ECHO $path | $GREP ^.:` 48677 new_path="$path" 48678 if test "x$has_colon" = x; then 48679 # Not in mixed or Windows style, start by that. 48680 new_path=`cmd //c echo $path` 48681 fi 48682 48683 48684 input_path="$new_path" 48685 # Check if we need to convert this using DOS-style short mode. If the path 48686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48687 # take no chances and rewrite it. 48688 # Note: m4 eats our [], so we need to use [ and ] instead. 48689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48690 if test "x$has_forbidden_chars" != x; then 48691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48692 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48693 fi 48694 48695 48696 windows_path="$new_path" 48697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48698 unix_path=`$CYGPATH -u "$windows_path"` 48699 new_path="$unix_path" 48700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48702 new_path="$unix_path" 48703 fi 48704 48705 if test "x$path" != "x$new_path"; then 48706 MSVC_DLL="$new_path" 48707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48708 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48709 fi 48710 48711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48713 48714 else 48715 # We're on a posix platform. Hooray! :) 48716 path="$MSVC_DLL" 48717 has_space=`$ECHO "$path" | $GREP " "` 48718 if test "x$has_space" != x; then 48719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48720 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48721 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48722 fi 48723 48724 # Use eval to expand a potential ~ 48725 eval path="$path" 48726 if test ! -f "$path" && test ! -d "$path"; then 48727 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48728 fi 48729 48730 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48731 fi 48732 48733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48734 $as_echo_n "checking for $DLL_NAME... " >&6; } 48735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48736 $as_echo "$MSVC_DLL" >&6; } 48737 else 48738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48739 $as_echo "incorrect, ignoring" >&6; } 48740 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48741 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48742 fi 48743 fi 48744 48745 if test "x$MSVC_DLL" = x; then 48746 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 48747 fi 48748 MSVCR_DLL="$MSVC_DLL" 48749 elif test "x$DEVKIT_MSVCR_DLL" != x; then 48750 48751 DLL_NAME="$MSVCR_NAME" 48752 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 48753 METHOD="devkit" 48754 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48755 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48756 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48757 48758 # Need to check if the found msvcr is correct architecture 48759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48760 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48761 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48763 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48764 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48765 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48766 CORRECT_MSVCR_ARCH="PE32 executable" 48767 else 48768 CORRECT_MSVCR_ARCH="PE32+ executable" 48769 fi 48770 else 48771 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48772 CORRECT_MSVCR_ARCH=386 48773 else 48774 CORRECT_MSVCR_ARCH=x86-64 48775 fi 48776 fi 48777 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48779 $as_echo "ok" >&6; } 48780 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48781 48782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48783 48784 # Input might be given as Windows format, start by converting to 48785 # unix format. 48786 path="$MSVC_DLL" 48787 new_path=`$CYGPATH -u "$path"` 48788 48789 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48790 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48791 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48792 # "foo.exe" is OK but "foo" is an error. 48793 # 48794 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48795 # It is also a way to make sure we got the proper file name for the real test later on. 48796 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48797 if test "x$test_shortpath" = x; then 48798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48799 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48800 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48801 fi 48802 48803 # Call helper function which possibly converts this using DOS-style short mode. 48804 # If so, the updated path is stored in $new_path. 48805 48806 input_path="$new_path" 48807 # Check if we need to convert this using DOS-style short mode. If the path 48808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48809 # take no chances and rewrite it. 48810 # Note: m4 eats our [], so we need to use [ and ] instead. 48811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48812 if test "x$has_forbidden_chars" != x; then 48813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48814 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48815 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48816 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48817 # Going to short mode and back again did indeed matter. Since short mode is 48818 # case insensitive, let's make it lowercase to improve readability. 48819 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48820 # Now convert it back to Unix-style (cygpath) 48821 input_path=`$CYGPATH -u "$shortmode_path"` 48822 new_path="$input_path" 48823 fi 48824 fi 48825 48826 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48827 if test "x$test_cygdrive_prefix" = x; then 48828 # As a simple fix, exclude /usr/bin since it's not a real path. 48829 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48830 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48831 # a path prefixed by /cygdrive for fixpath to work. 48832 new_path="$CYGWIN_ROOT_PATH$input_path" 48833 fi 48834 fi 48835 48836 48837 if test "x$path" != "x$new_path"; then 48838 MSVC_DLL="$new_path" 48839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48840 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48841 fi 48842 48843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48844 48845 path="$MSVC_DLL" 48846 has_colon=`$ECHO $path | $GREP ^.:` 48847 new_path="$path" 48848 if test "x$has_colon" = x; then 48849 # Not in mixed or Windows style, start by that. 48850 new_path=`cmd //c echo $path` 48851 fi 48852 48853 48854 input_path="$new_path" 48855 # Check if we need to convert this using DOS-style short mode. If the path 48856 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48857 # take no chances and rewrite it. 48858 # Note: m4 eats our [], so we need to use [ and ] instead. 48859 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48860 if test "x$has_forbidden_chars" != x; then 48861 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48862 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48863 fi 48864 48865 48866 windows_path="$new_path" 48867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48868 unix_path=`$CYGPATH -u "$windows_path"` 48869 new_path="$unix_path" 48870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48872 new_path="$unix_path" 48873 fi 48874 48875 if test "x$path" != "x$new_path"; then 48876 MSVC_DLL="$new_path" 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48878 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48879 fi 48880 48881 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48882 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48883 48884 else 48885 # We're on a posix platform. Hooray! :) 48886 path="$MSVC_DLL" 48887 has_space=`$ECHO "$path" | $GREP " "` 48888 if test "x$has_space" != x; then 48889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48890 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48891 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48892 fi 48893 48894 # Use eval to expand a potential ~ 48895 eval path="$path" 48896 if test ! -f "$path" && test ! -d "$path"; then 48897 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48898 fi 48899 48900 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48901 fi 48902 48903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48904 $as_echo_n "checking for $DLL_NAME... " >&6; } 48905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48906 $as_echo "$MSVC_DLL" >&6; } 48907 else 48908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48909 $as_echo "incorrect, ignoring" >&6; } 48910 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48911 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48912 fi 48913 fi 48914 48915 if test "x$MSVC_DLL" = x; then 48916 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 48917 fi 48918 MSVCR_DLL="$MSVC_DLL" 48919 else 48920 48921 DLL_NAME="${MSVCR_NAME}" 48922 MSVC_DLL= 48923 48924 if test "x$MSVC_DLL" = x; then 48925 if test "x$VCINSTALLDIR" != x; then 48926 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 48927 48928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48929 48930 # Input might be given as Windows format, start by converting to 48931 # unix format. 48932 path="$CYGWIN_VC_INSTALL_DIR" 48933 new_path=`$CYGPATH -u "$path"` 48934 48935 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48936 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48937 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48938 # "foo.exe" is OK but "foo" is an error. 48939 # 48940 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48941 # It is also a way to make sure we got the proper file name for the real test later on. 48942 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48943 if test "x$test_shortpath" = x; then 48944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 48945 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 48946 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 48947 fi 48948 48949 # Call helper function which possibly converts this using DOS-style short mode. 48950 # If so, the updated path is stored in $new_path. 48951 48952 input_path="$new_path" 48953 # Check if we need to convert this using DOS-style short mode. If the path 48954 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48955 # take no chances and rewrite it. 48956 # Note: m4 eats our [], so we need to use [ and ] instead. 48957 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48958 if test "x$has_forbidden_chars" != x; then 48959 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48960 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48961 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48962 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48963 # Going to short mode and back again did indeed matter. Since short mode is 48964 # case insensitive, let's make it lowercase to improve readability. 48965 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48966 # Now convert it back to Unix-style (cygpath) 48967 input_path=`$CYGPATH -u "$shortmode_path"` 48968 new_path="$input_path" 48969 fi 48970 fi 48971 48972 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48973 if test "x$test_cygdrive_prefix" = x; then 48974 # As a simple fix, exclude /usr/bin since it's not a real path. 48975 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48976 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48977 # a path prefixed by /cygdrive for fixpath to work. 48978 new_path="$CYGWIN_ROOT_PATH$input_path" 48979 fi 48980 fi 48981 48982 48983 if test "x$path" != "x$new_path"; then 48984 CYGWIN_VC_INSTALL_DIR="$new_path" 48985 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 48986 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 48987 fi 48988 48989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48990 48991 path="$CYGWIN_VC_INSTALL_DIR" 48992 has_colon=`$ECHO $path | $GREP ^.:` 48993 new_path="$path" 48994 if test "x$has_colon" = x; then 48995 # Not in mixed or Windows style, start by that. 48996 new_path=`cmd //c echo $path` 48997 fi 48998 48999 49000 input_path="$new_path" 49001 # Check if we need to convert this using DOS-style short mode. If the path 49002 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49003 # take no chances and rewrite it. 49004 # Note: m4 eats our [], so we need to use [ and ] instead. 49005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49006 if test "x$has_forbidden_chars" != x; then 49007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49008 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49009 fi 49010 49011 49012 windows_path="$new_path" 49013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49014 unix_path=`$CYGPATH -u "$windows_path"` 49015 new_path="$unix_path" 49016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49018 new_path="$unix_path" 49019 fi 49020 49021 if test "x$path" != "x$new_path"; then 49022 CYGWIN_VC_INSTALL_DIR="$new_path" 49023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49024 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49025 fi 49026 49027 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49028 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49029 49030 else 49031 # We're on a posix platform. Hooray! :) 49032 path="$CYGWIN_VC_INSTALL_DIR" 49033 has_space=`$ECHO "$path" | $GREP " "` 49034 if test "x$has_space" != x; then 49035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49036 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49037 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49038 fi 49039 49040 # Use eval to expand a potential ~ 49041 eval path="$path" 49042 if test ! -f "$path" && test ! -d "$path"; then 49043 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 49044 fi 49045 49046 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 49047 fi 49048 49049 if test "$VS_VERSION" -lt 2017; then 49050 # Probe: Using well-known location from Visual Studio 12.0 and older 49051 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49052 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49053 else 49054 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49055 fi 49056 else 49057 # Probe: Using well-known location from VS 2017 49058 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49059 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49060 else 49061 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49062 fi 49063 fi 49064 # In case any of the above finds more than one file, loop over them. 49065 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 49066 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 49067 49068 DLL_NAME="$DLL_NAME" 49069 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 49070 METHOD="well-known location in VCINSTALLDIR" 49071 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49072 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49073 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49074 49075 # Need to check if the found msvcr is correct architecture 49076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49077 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49078 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49080 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49081 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49082 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49083 CORRECT_MSVCR_ARCH="PE32 executable" 49084 else 49085 CORRECT_MSVCR_ARCH="PE32+ executable" 49086 fi 49087 else 49088 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49089 CORRECT_MSVCR_ARCH=386 49090 else 49091 CORRECT_MSVCR_ARCH=x86-64 49092 fi 49093 fi 49094 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49096 $as_echo "ok" >&6; } 49097 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49098 49099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49100 49101 # Input might be given as Windows format, start by converting to 49102 # unix format. 49103 path="$MSVC_DLL" 49104 new_path=`$CYGPATH -u "$path"` 49105 49106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49109 # "foo.exe" is OK but "foo" is an error. 49110 # 49111 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49112 # It is also a way to make sure we got the proper file name for the real test later on. 49113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49114 if test "x$test_shortpath" = x; then 49115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49116 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49117 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49118 fi 49119 49120 # Call helper function which possibly converts this using DOS-style short mode. 49121 # If so, the updated path is stored in $new_path. 49122 49123 input_path="$new_path" 49124 # Check if we need to convert this using DOS-style short mode. If the path 49125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49126 # take no chances and rewrite it. 49127 # Note: m4 eats our [], so we need to use [ and ] instead. 49128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49129 if test "x$has_forbidden_chars" != x; then 49130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49134 # Going to short mode and back again did indeed matter. Since short mode is 49135 # case insensitive, let's make it lowercase to improve readability. 49136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49137 # Now convert it back to Unix-style (cygpath) 49138 input_path=`$CYGPATH -u "$shortmode_path"` 49139 new_path="$input_path" 49140 fi 49141 fi 49142 49143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49144 if test "x$test_cygdrive_prefix" = x; then 49145 # As a simple fix, exclude /usr/bin since it's not a real path. 49146 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49148 # a path prefixed by /cygdrive for fixpath to work. 49149 new_path="$CYGWIN_ROOT_PATH$input_path" 49150 fi 49151 fi 49152 49153 49154 if test "x$path" != "x$new_path"; then 49155 MSVC_DLL="$new_path" 49156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49157 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49158 fi 49159 49160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49161 49162 path="$MSVC_DLL" 49163 has_colon=`$ECHO $path | $GREP ^.:` 49164 new_path="$path" 49165 if test "x$has_colon" = x; then 49166 # Not in mixed or Windows style, start by that. 49167 new_path=`cmd //c echo $path` 49168 fi 49169 49170 49171 input_path="$new_path" 49172 # Check if we need to convert this using DOS-style short mode. If the path 49173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49174 # take no chances and rewrite it. 49175 # Note: m4 eats our [], so we need to use [ and ] instead. 49176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49177 if test "x$has_forbidden_chars" != x; then 49178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49179 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49180 fi 49181 49182 49183 windows_path="$new_path" 49184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49185 unix_path=`$CYGPATH -u "$windows_path"` 49186 new_path="$unix_path" 49187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49189 new_path="$unix_path" 49190 fi 49191 49192 if test "x$path" != "x$new_path"; then 49193 MSVC_DLL="$new_path" 49194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49195 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49196 fi 49197 49198 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49199 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49200 49201 else 49202 # We're on a posix platform. Hooray! :) 49203 path="$MSVC_DLL" 49204 has_space=`$ECHO "$path" | $GREP " "` 49205 if test "x$has_space" != x; then 49206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49207 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49208 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49209 fi 49210 49211 # Use eval to expand a potential ~ 49212 eval path="$path" 49213 if test ! -f "$path" && test ! -d "$path"; then 49214 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49215 fi 49216 49217 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49218 fi 49219 49220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49221 $as_echo_n "checking for $DLL_NAME... " >&6; } 49222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49223 $as_echo "$MSVC_DLL" >&6; } 49224 else 49225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49226 $as_echo "incorrect, ignoring" >&6; } 49227 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49228 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49229 fi 49230 fi 49231 49232 done 49233 fi 49234 fi 49235 49236 if test "x$MSVC_DLL" = x; then 49237 # Probe: Check in the Boot JDK directory. 49238 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49239 49240 DLL_NAME="$DLL_NAME" 49241 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49242 METHOD="well-known location in Boot JDK" 49243 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49244 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49245 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49246 49247 # Need to check if the found msvcr is correct architecture 49248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49249 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49250 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49252 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49253 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49254 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49255 CORRECT_MSVCR_ARCH="PE32 executable" 49256 else 49257 CORRECT_MSVCR_ARCH="PE32+ executable" 49258 fi 49259 else 49260 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49261 CORRECT_MSVCR_ARCH=386 49262 else 49263 CORRECT_MSVCR_ARCH=x86-64 49264 fi 49265 fi 49266 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49268 $as_echo "ok" >&6; } 49269 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49270 49271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49272 49273 # Input might be given as Windows format, start by converting to 49274 # unix format. 49275 path="$MSVC_DLL" 49276 new_path=`$CYGPATH -u "$path"` 49277 49278 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49279 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49280 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49281 # "foo.exe" is OK but "foo" is an error. 49282 # 49283 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49284 # It is also a way to make sure we got the proper file name for the real test later on. 49285 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49286 if test "x$test_shortpath" = x; then 49287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49288 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49289 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49290 fi 49291 49292 # Call helper function which possibly converts this using DOS-style short mode. 49293 # If so, the updated path is stored in $new_path. 49294 49295 input_path="$new_path" 49296 # Check if we need to convert this using DOS-style short mode. If the path 49297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49298 # take no chances and rewrite it. 49299 # Note: m4 eats our [], so we need to use [ and ] instead. 49300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49301 if test "x$has_forbidden_chars" != x; then 49302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49303 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49304 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49305 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49306 # Going to short mode and back again did indeed matter. Since short mode is 49307 # case insensitive, let's make it lowercase to improve readability. 49308 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49309 # Now convert it back to Unix-style (cygpath) 49310 input_path=`$CYGPATH -u "$shortmode_path"` 49311 new_path="$input_path" 49312 fi 49313 fi 49314 49315 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49316 if test "x$test_cygdrive_prefix" = x; then 49317 # As a simple fix, exclude /usr/bin since it's not a real path. 49318 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49319 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49320 # a path prefixed by /cygdrive for fixpath to work. 49321 new_path="$CYGWIN_ROOT_PATH$input_path" 49322 fi 49323 fi 49324 49325 49326 if test "x$path" != "x$new_path"; then 49327 MSVC_DLL="$new_path" 49328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49329 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49330 fi 49331 49332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49333 49334 path="$MSVC_DLL" 49335 has_colon=`$ECHO $path | $GREP ^.:` 49336 new_path="$path" 49337 if test "x$has_colon" = x; then 49338 # Not in mixed or Windows style, start by that. 49339 new_path=`cmd //c echo $path` 49340 fi 49341 49342 49343 input_path="$new_path" 49344 # Check if we need to convert this using DOS-style short mode. If the path 49345 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49346 # take no chances and rewrite it. 49347 # Note: m4 eats our [], so we need to use [ and ] instead. 49348 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49349 if test "x$has_forbidden_chars" != x; then 49350 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49351 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49352 fi 49353 49354 49355 windows_path="$new_path" 49356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49357 unix_path=`$CYGPATH -u "$windows_path"` 49358 new_path="$unix_path" 49359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49361 new_path="$unix_path" 49362 fi 49363 49364 if test "x$path" != "x$new_path"; then 49365 MSVC_DLL="$new_path" 49366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49367 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49368 fi 49369 49370 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49371 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49372 49373 else 49374 # We're on a posix platform. Hooray! :) 49375 path="$MSVC_DLL" 49376 has_space=`$ECHO "$path" | $GREP " "` 49377 if test "x$has_space" != x; then 49378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49379 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49380 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49381 fi 49382 49383 # Use eval to expand a potential ~ 49384 eval path="$path" 49385 if test ! -f "$path" && test ! -d "$path"; then 49386 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49387 fi 49388 49389 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49390 fi 49391 49392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49393 $as_echo_n "checking for $DLL_NAME... " >&6; } 49394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49395 $as_echo "$MSVC_DLL" >&6; } 49396 else 49397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49398 $as_echo "incorrect, ignoring" >&6; } 49399 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49400 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49401 fi 49402 fi 49403 49404 fi 49405 49406 if test "x$MSVC_DLL" = x; then 49407 # Probe: Look in the Windows system32 directory 49408 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49409 49410 windows_path="$CYGWIN_SYSTEMROOT" 49411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49412 unix_path=`$CYGPATH -u "$windows_path"` 49413 CYGWIN_SYSTEMROOT="$unix_path" 49414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49416 CYGWIN_SYSTEMROOT="$unix_path" 49417 fi 49418 49419 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 49420 49421 DLL_NAME="$DLL_NAME" 49422 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49423 METHOD="well-known location in SYSTEMROOT" 49424 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49425 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49426 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49427 49428 # Need to check if the found msvcr is correct architecture 49429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49430 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49431 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49433 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49434 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49435 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49436 CORRECT_MSVCR_ARCH="PE32 executable" 49437 else 49438 CORRECT_MSVCR_ARCH="PE32+ executable" 49439 fi 49440 else 49441 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49442 CORRECT_MSVCR_ARCH=386 49443 else 49444 CORRECT_MSVCR_ARCH=x86-64 49445 fi 49446 fi 49447 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49449 $as_echo "ok" >&6; } 49450 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49451 49452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49453 49454 # Input might be given as Windows format, start by converting to 49455 # unix format. 49456 path="$MSVC_DLL" 49457 new_path=`$CYGPATH -u "$path"` 49458 49459 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49460 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49461 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49462 # "foo.exe" is OK but "foo" is an error. 49463 # 49464 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49465 # It is also a way to make sure we got the proper file name for the real test later on. 49466 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49467 if test "x$test_shortpath" = x; then 49468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49469 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49470 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49471 fi 49472 49473 # Call helper function which possibly converts this using DOS-style short mode. 49474 # If so, the updated path is stored in $new_path. 49475 49476 input_path="$new_path" 49477 # Check if we need to convert this using DOS-style short mode. If the path 49478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49479 # take no chances and rewrite it. 49480 # Note: m4 eats our [], so we need to use [ and ] instead. 49481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49482 if test "x$has_forbidden_chars" != x; then 49483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49484 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49485 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49486 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49487 # Going to short mode and back again did indeed matter. Since short mode is 49488 # case insensitive, let's make it lowercase to improve readability. 49489 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49490 # Now convert it back to Unix-style (cygpath) 49491 input_path=`$CYGPATH -u "$shortmode_path"` 49492 new_path="$input_path" 49493 fi 49494 fi 49495 49496 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49497 if test "x$test_cygdrive_prefix" = x; then 49498 # As a simple fix, exclude /usr/bin since it's not a real path. 49499 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49500 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49501 # a path prefixed by /cygdrive for fixpath to work. 49502 new_path="$CYGWIN_ROOT_PATH$input_path" 49503 fi 49504 fi 49505 49506 49507 if test "x$path" != "x$new_path"; then 49508 MSVC_DLL="$new_path" 49509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49510 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49511 fi 49512 49513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49514 49515 path="$MSVC_DLL" 49516 has_colon=`$ECHO $path | $GREP ^.:` 49517 new_path="$path" 49518 if test "x$has_colon" = x; then 49519 # Not in mixed or Windows style, start by that. 49520 new_path=`cmd //c echo $path` 49521 fi 49522 49523 49524 input_path="$new_path" 49525 # Check if we need to convert this using DOS-style short mode. If the path 49526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49527 # take no chances and rewrite it. 49528 # Note: m4 eats our [], so we need to use [ and ] instead. 49529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49530 if test "x$has_forbidden_chars" != x; then 49531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49532 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49533 fi 49534 49535 49536 windows_path="$new_path" 49537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49538 unix_path=`$CYGPATH -u "$windows_path"` 49539 new_path="$unix_path" 49540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49542 new_path="$unix_path" 49543 fi 49544 49545 if test "x$path" != "x$new_path"; then 49546 MSVC_DLL="$new_path" 49547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49548 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49549 fi 49550 49551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49553 49554 else 49555 # We're on a posix platform. Hooray! :) 49556 path="$MSVC_DLL" 49557 has_space=`$ECHO "$path" | $GREP " "` 49558 if test "x$has_space" != x; then 49559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49560 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49561 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49562 fi 49563 49564 # Use eval to expand a potential ~ 49565 eval path="$path" 49566 if test ! -f "$path" && test ! -d "$path"; then 49567 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49568 fi 49569 49570 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49571 fi 49572 49573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49574 $as_echo_n "checking for $DLL_NAME... " >&6; } 49575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49576 $as_echo "$MSVC_DLL" >&6; } 49577 else 49578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49579 $as_echo "incorrect, ignoring" >&6; } 49580 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49581 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49582 fi 49583 fi 49584 49585 fi 49586 49587 if test "x$MSVC_DLL" = x; then 49588 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49589 if test "x$VS100COMNTOOLS" != x; then 49590 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49591 49592 windows_path="$CYGWIN_VS_TOOLS_DIR" 49593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49594 unix_path=`$CYGPATH -u "$windows_path"` 49595 CYGWIN_VS_TOOLS_DIR="$unix_path" 49596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49598 CYGWIN_VS_TOOLS_DIR="$unix_path" 49599 fi 49600 49601 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49602 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49603 | $GREP -i /x64/ | $HEAD --lines 1` 49604 else 49605 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49606 | $GREP -i /x86/ | $HEAD --lines 1` 49607 fi 49608 49609 DLL_NAME="$DLL_NAME" 49610 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49611 METHOD="search of VS100COMNTOOLS" 49612 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49613 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49614 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49615 49616 # Need to check if the found msvcr is correct architecture 49617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49618 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49619 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49621 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49622 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49623 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49624 CORRECT_MSVCR_ARCH="PE32 executable" 49625 else 49626 CORRECT_MSVCR_ARCH="PE32+ executable" 49627 fi 49628 else 49629 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49630 CORRECT_MSVCR_ARCH=386 49631 else 49632 CORRECT_MSVCR_ARCH=x86-64 49633 fi 49634 fi 49635 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49637 $as_echo "ok" >&6; } 49638 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49639 49640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49641 49642 # Input might be given as Windows format, start by converting to 49643 # unix format. 49644 path="$MSVC_DLL" 49645 new_path=`$CYGPATH -u "$path"` 49646 49647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49650 # "foo.exe" is OK but "foo" is an error. 49651 # 49652 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49653 # It is also a way to make sure we got the proper file name for the real test later on. 49654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49655 if test "x$test_shortpath" = x; then 49656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49657 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49658 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49659 fi 49660 49661 # Call helper function which possibly converts this using DOS-style short mode. 49662 # If so, the updated path is stored in $new_path. 49663 49664 input_path="$new_path" 49665 # Check if we need to convert this using DOS-style short mode. If the path 49666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49667 # take no chances and rewrite it. 49668 # Note: m4 eats our [], so we need to use [ and ] instead. 49669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49670 if test "x$has_forbidden_chars" != x; then 49671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49672 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49673 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49674 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49675 # Going to short mode and back again did indeed matter. Since short mode is 49676 # case insensitive, let's make it lowercase to improve readability. 49677 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49678 # Now convert it back to Unix-style (cygpath) 49679 input_path=`$CYGPATH -u "$shortmode_path"` 49680 new_path="$input_path" 49681 fi 49682 fi 49683 49684 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49685 if test "x$test_cygdrive_prefix" = x; then 49686 # As a simple fix, exclude /usr/bin since it's not a real path. 49687 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49688 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49689 # a path prefixed by /cygdrive for fixpath to work. 49690 new_path="$CYGWIN_ROOT_PATH$input_path" 49691 fi 49692 fi 49693 49694 49695 if test "x$path" != "x$new_path"; then 49696 MSVC_DLL="$new_path" 49697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49698 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49699 fi 49700 49701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49702 49703 path="$MSVC_DLL" 49704 has_colon=`$ECHO $path | $GREP ^.:` 49705 new_path="$path" 49706 if test "x$has_colon" = x; then 49707 # Not in mixed or Windows style, start by that. 49708 new_path=`cmd //c echo $path` 49709 fi 49710 49711 49712 input_path="$new_path" 49713 # Check if we need to convert this using DOS-style short mode. If the path 49714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49715 # take no chances and rewrite it. 49716 # Note: m4 eats our [], so we need to use [ and ] instead. 49717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49718 if test "x$has_forbidden_chars" != x; then 49719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49720 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49721 fi 49722 49723 49724 windows_path="$new_path" 49725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49726 unix_path=`$CYGPATH -u "$windows_path"` 49727 new_path="$unix_path" 49728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49730 new_path="$unix_path" 49731 fi 49732 49733 if test "x$path" != "x$new_path"; then 49734 MSVC_DLL="$new_path" 49735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49736 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49737 fi 49738 49739 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49740 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49741 49742 else 49743 # We're on a posix platform. Hooray! :) 49744 path="$MSVC_DLL" 49745 has_space=`$ECHO "$path" | $GREP " "` 49746 if test "x$has_space" != x; then 49747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49748 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49749 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49750 fi 49751 49752 # Use eval to expand a potential ~ 49753 eval path="$path" 49754 if test ! -f "$path" && test ! -d "$path"; then 49755 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49756 fi 49757 49758 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49759 fi 49760 49761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49762 $as_echo_n "checking for $DLL_NAME... " >&6; } 49763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49764 $as_echo "$MSVC_DLL" >&6; } 49765 else 49766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49767 $as_echo "incorrect, ignoring" >&6; } 49768 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49769 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49770 fi 49771 fi 49772 49773 fi 49774 fi 49775 49776 if test "x$MSVC_DLL" = x; then 49777 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49778 # (This was the original behaviour; kept since it might turn something up) 49779 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49780 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49781 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49782 | $GREP x64 | $HEAD --lines 1` 49783 else 49784 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49785 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49786 if test "x$POSSIBLE_MSVC_DLL" = x; then 49787 # We're grasping at straws now... 49788 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49789 | $HEAD --lines 1` 49790 fi 49791 fi 49792 49793 49794 DLL_NAME="$DLL_NAME" 49795 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49796 METHOD="search of VCINSTALLDIR" 49797 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49798 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49799 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49800 49801 # Need to check if the found msvcr is correct architecture 49802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49803 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49804 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49806 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49807 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49808 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49809 CORRECT_MSVCR_ARCH="PE32 executable" 49810 else 49811 CORRECT_MSVCR_ARCH="PE32+ executable" 49812 fi 49813 else 49814 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49815 CORRECT_MSVCR_ARCH=386 49816 else 49817 CORRECT_MSVCR_ARCH=x86-64 49818 fi 49819 fi 49820 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49822 $as_echo "ok" >&6; } 49823 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49824 49825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49826 49827 # Input might be given as Windows format, start by converting to 49828 # unix format. 49829 path="$MSVC_DLL" 49830 new_path=`$CYGPATH -u "$path"` 49831 49832 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49833 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49834 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49835 # "foo.exe" is OK but "foo" is an error. 49836 # 49837 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49838 # It is also a way to make sure we got the proper file name for the real test later on. 49839 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49840 if test "x$test_shortpath" = x; then 49841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49842 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49843 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49844 fi 49845 49846 # Call helper function which possibly converts this using DOS-style short mode. 49847 # If so, the updated path is stored in $new_path. 49848 49849 input_path="$new_path" 49850 # Check if we need to convert this using DOS-style short mode. If the path 49851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49852 # take no chances and rewrite it. 49853 # Note: m4 eats our [], so we need to use [ and ] instead. 49854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49855 if test "x$has_forbidden_chars" != x; then 49856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49860 # Going to short mode and back again did indeed matter. Since short mode is 49861 # case insensitive, let's make it lowercase to improve readability. 49862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49863 # Now convert it back to Unix-style (cygpath) 49864 input_path=`$CYGPATH -u "$shortmode_path"` 49865 new_path="$input_path" 49866 fi 49867 fi 49868 49869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49870 if test "x$test_cygdrive_prefix" = x; then 49871 # As a simple fix, exclude /usr/bin since it's not a real path. 49872 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49874 # a path prefixed by /cygdrive for fixpath to work. 49875 new_path="$CYGWIN_ROOT_PATH$input_path" 49876 fi 49877 fi 49878 49879 49880 if test "x$path" != "x$new_path"; then 49881 MSVC_DLL="$new_path" 49882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49883 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49884 fi 49885 49886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49887 49888 path="$MSVC_DLL" 49889 has_colon=`$ECHO $path | $GREP ^.:` 49890 new_path="$path" 49891 if test "x$has_colon" = x; then 49892 # Not in mixed or Windows style, start by that. 49893 new_path=`cmd //c echo $path` 49894 fi 49895 49896 49897 input_path="$new_path" 49898 # Check if we need to convert this using DOS-style short mode. If the path 49899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49900 # take no chances and rewrite it. 49901 # Note: m4 eats our [], so we need to use [ and ] instead. 49902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49903 if test "x$has_forbidden_chars" != x; then 49904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49905 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49906 fi 49907 49908 49909 windows_path="$new_path" 49910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49911 unix_path=`$CYGPATH -u "$windows_path"` 49912 new_path="$unix_path" 49913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49915 new_path="$unix_path" 49916 fi 49917 49918 if test "x$path" != "x$new_path"; then 49919 MSVC_DLL="$new_path" 49920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49921 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49922 fi 49923 49924 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49925 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49926 49927 else 49928 # We're on a posix platform. Hooray! :) 49929 path="$MSVC_DLL" 49930 has_space=`$ECHO "$path" | $GREP " "` 49931 if test "x$has_space" != x; then 49932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49933 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49934 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49935 fi 49936 49937 # Use eval to expand a potential ~ 49938 eval path="$path" 49939 if test ! -f "$path" && test ! -d "$path"; then 49940 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49941 fi 49942 49943 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49944 fi 49945 49946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49947 $as_echo_n "checking for $DLL_NAME... " >&6; } 49948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49949 $as_echo "$MSVC_DLL" >&6; } 49950 else 49951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49952 $as_echo "incorrect, ignoring" >&6; } 49953 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49954 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49955 fi 49956 fi 49957 49958 fi 49959 fi 49960 49961 if test "x$MSVC_DLL" = x; then 49962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49963 $as_echo_n "checking for $DLL_NAME... " >&6; } 49964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49965 $as_echo "no" >&6; } 49966 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 49967 fi 49968 49969 MSVCR_DLL="$MSVC_DLL" 49970 fi 49971 49972 49973 49974 # Check whether --with-msvcp-dll was given. 49975 if test "${with_msvcp_dll+set}" = set; then : 49976 withval=$with_msvcp_dll; 49977 fi 49978 49979 49980 if test "x$MSVCP_NAME" != "x"; then 49981 if test "x$with_msvcp_dll" != x; then 49982 # If given explicitely by user, do not probe. If not present, fail directly. 49983 49984 DLL_NAME="$MSVCP_NAME" 49985 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 49986 METHOD="--with-msvcp-dll" 49987 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49988 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49989 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49990 49991 # Need to check if the found msvcr is correct architecture 49992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49993 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49994 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49996 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49997 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49998 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49999 CORRECT_MSVCR_ARCH="PE32 executable" 50000 else 50001 CORRECT_MSVCR_ARCH="PE32+ executable" 50002 fi 50003 else 50004 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50005 CORRECT_MSVCR_ARCH=386 50006 else 50007 CORRECT_MSVCR_ARCH=x86-64 50008 fi 50009 fi 50010 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50012 $as_echo "ok" >&6; } 50013 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50014 50015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50016 50017 # Input might be given as Windows format, start by converting to 50018 # unix format. 50019 path="$MSVC_DLL" 50020 new_path=`$CYGPATH -u "$path"` 50021 50022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50025 # "foo.exe" is OK but "foo" is an error. 50026 # 50027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50028 # It is also a way to make sure we got the proper file name for the real test later on. 50029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50030 if test "x$test_shortpath" = x; then 50031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50032 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50033 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50034 fi 50035 50036 # Call helper function which possibly converts this using DOS-style short mode. 50037 # If so, the updated path is stored in $new_path. 50038 50039 input_path="$new_path" 50040 # Check if we need to convert this using DOS-style short mode. If the path 50041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50042 # take no chances and rewrite it. 50043 # Note: m4 eats our [], so we need to use [ and ] instead. 50044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50045 if test "x$has_forbidden_chars" != x; then 50046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50050 # Going to short mode and back again did indeed matter. Since short mode is 50051 # case insensitive, let's make it lowercase to improve readability. 50052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50053 # Now convert it back to Unix-style (cygpath) 50054 input_path=`$CYGPATH -u "$shortmode_path"` 50055 new_path="$input_path" 50056 fi 50057 fi 50058 50059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50060 if test "x$test_cygdrive_prefix" = x; then 50061 # As a simple fix, exclude /usr/bin since it's not a real path. 50062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50064 # a path prefixed by /cygdrive for fixpath to work. 50065 new_path="$CYGWIN_ROOT_PATH$input_path" 50066 fi 50067 fi 50068 50069 50070 if test "x$path" != "x$new_path"; then 50071 MSVC_DLL="$new_path" 50072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50073 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50074 fi 50075 50076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50077 50078 path="$MSVC_DLL" 50079 has_colon=`$ECHO $path | $GREP ^.:` 50080 new_path="$path" 50081 if test "x$has_colon" = x; then 50082 # Not in mixed or Windows style, start by that. 50083 new_path=`cmd //c echo $path` 50084 fi 50085 50086 50087 input_path="$new_path" 50088 # Check if we need to convert this using DOS-style short mode. If the path 50089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50090 # take no chances and rewrite it. 50091 # Note: m4 eats our [], so we need to use [ and ] instead. 50092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50093 if test "x$has_forbidden_chars" != x; then 50094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50096 fi 50097 50098 50099 windows_path="$new_path" 50100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50101 unix_path=`$CYGPATH -u "$windows_path"` 50102 new_path="$unix_path" 50103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50105 new_path="$unix_path" 50106 fi 50107 50108 if test "x$path" != "x$new_path"; then 50109 MSVC_DLL="$new_path" 50110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50111 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50112 fi 50113 50114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50116 50117 else 50118 # We're on a posix platform. Hooray! :) 50119 path="$MSVC_DLL" 50120 has_space=`$ECHO "$path" | $GREP " "` 50121 if test "x$has_space" != x; then 50122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50123 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50125 fi 50126 50127 # Use eval to expand a potential ~ 50128 eval path="$path" 50129 if test ! -f "$path" && test ! -d "$path"; then 50130 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50131 fi 50132 50133 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50134 fi 50135 50136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50137 $as_echo_n "checking for $DLL_NAME... " >&6; } 50138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50139 $as_echo "$MSVC_DLL" >&6; } 50140 else 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50142 $as_echo "incorrect, ignoring" >&6; } 50143 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50144 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50145 fi 50146 fi 50147 50148 if test "x$MSVC_DLL" = x; then 50149 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50150 fi 50151 MSVCP_DLL="$MSVC_DLL" 50152 elif test "x$DEVKIT_MSVCP_DLL" != x; then 50153 50154 DLL_NAME="$MSVCP_NAME" 50155 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 50156 METHOD="devkit" 50157 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50159 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50160 50161 # Need to check if the found msvcr is correct architecture 50162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50163 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50164 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50166 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50167 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50168 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50169 CORRECT_MSVCR_ARCH="PE32 executable" 50170 else 50171 CORRECT_MSVCR_ARCH="PE32+ executable" 50172 fi 50173 else 50174 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50175 CORRECT_MSVCR_ARCH=386 50176 else 50177 CORRECT_MSVCR_ARCH=x86-64 50178 fi 50179 fi 50180 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50182 $as_echo "ok" >&6; } 50183 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50184 50185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50186 50187 # Input might be given as Windows format, start by converting to 50188 # unix format. 50189 path="$MSVC_DLL" 50190 new_path=`$CYGPATH -u "$path"` 50191 50192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50195 # "foo.exe" is OK but "foo" is an error. 50196 # 50197 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50198 # It is also a way to make sure we got the proper file name for the real test later on. 50199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50200 if test "x$test_shortpath" = x; then 50201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50202 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50203 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50204 fi 50205 50206 # Call helper function which possibly converts this using DOS-style short mode. 50207 # If so, the updated path is stored in $new_path. 50208 50209 input_path="$new_path" 50210 # Check if we need to convert this using DOS-style short mode. If the path 50211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50212 # take no chances and rewrite it. 50213 # Note: m4 eats our [], so we need to use [ and ] instead. 50214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50215 if test "x$has_forbidden_chars" != x; then 50216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50220 # Going to short mode and back again did indeed matter. Since short mode is 50221 # case insensitive, let's make it lowercase to improve readability. 50222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50223 # Now convert it back to Unix-style (cygpath) 50224 input_path=`$CYGPATH -u "$shortmode_path"` 50225 new_path="$input_path" 50226 fi 50227 fi 50228 50229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50230 if test "x$test_cygdrive_prefix" = x; then 50231 # As a simple fix, exclude /usr/bin since it's not a real path. 50232 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50234 # a path prefixed by /cygdrive for fixpath to work. 50235 new_path="$CYGWIN_ROOT_PATH$input_path" 50236 fi 50237 fi 50238 50239 50240 if test "x$path" != "x$new_path"; then 50241 MSVC_DLL="$new_path" 50242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50243 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50244 fi 50245 50246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50247 50248 path="$MSVC_DLL" 50249 has_colon=`$ECHO $path | $GREP ^.:` 50250 new_path="$path" 50251 if test "x$has_colon" = x; then 50252 # Not in mixed or Windows style, start by that. 50253 new_path=`cmd //c echo $path` 50254 fi 50255 50256 50257 input_path="$new_path" 50258 # Check if we need to convert this using DOS-style short mode. If the path 50259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50260 # take no chances and rewrite it. 50261 # Note: m4 eats our [], so we need to use [ and ] instead. 50262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50263 if test "x$has_forbidden_chars" != x; then 50264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50265 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50266 fi 50267 50268 50269 windows_path="$new_path" 50270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50271 unix_path=`$CYGPATH -u "$windows_path"` 50272 new_path="$unix_path" 50273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50275 new_path="$unix_path" 50276 fi 50277 50278 if test "x$path" != "x$new_path"; then 50279 MSVC_DLL="$new_path" 50280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50281 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50282 fi 50283 50284 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50285 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50286 50287 else 50288 # We're on a posix platform. Hooray! :) 50289 path="$MSVC_DLL" 50290 has_space=`$ECHO "$path" | $GREP " "` 50291 if test "x$has_space" != x; then 50292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50293 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50294 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50295 fi 50296 50297 # Use eval to expand a potential ~ 50298 eval path="$path" 50299 if test ! -f "$path" && test ! -d "$path"; then 50300 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50301 fi 50302 50303 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50304 fi 50305 50306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50307 $as_echo_n "checking for $DLL_NAME... " >&6; } 50308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50309 $as_echo "$MSVC_DLL" >&6; } 50310 else 50311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50312 $as_echo "incorrect, ignoring" >&6; } 50313 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50314 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50315 fi 50316 fi 50317 50318 if test "x$MSVC_DLL" = x; then 50319 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 50320 fi 50321 MSVCP_DLL="$MSVC_DLL" 50322 else 50323 50324 DLL_NAME="${MSVCP_NAME}" 50325 MSVC_DLL= 50326 50327 if test "x$MSVC_DLL" = x; then 50328 if test "x$VCINSTALLDIR" != x; then 50329 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50330 50331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50332 50333 # Input might be given as Windows format, start by converting to 50334 # unix format. 50335 path="$CYGWIN_VC_INSTALL_DIR" 50336 new_path=`$CYGPATH -u "$path"` 50337 50338 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50339 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50340 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50341 # "foo.exe" is OK but "foo" is an error. 50342 # 50343 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50344 # It is also a way to make sure we got the proper file name for the real test later on. 50345 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50346 if test "x$test_shortpath" = x; then 50347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50348 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50349 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 50350 fi 50351 50352 # Call helper function which possibly converts this using DOS-style short mode. 50353 # If so, the updated path is stored in $new_path. 50354 50355 input_path="$new_path" 50356 # Check if we need to convert this using DOS-style short mode. If the path 50357 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50358 # take no chances and rewrite it. 50359 # Note: m4 eats our [], so we need to use [ and ] instead. 50360 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50361 if test "x$has_forbidden_chars" != x; then 50362 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50363 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50364 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50365 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50366 # Going to short mode and back again did indeed matter. Since short mode is 50367 # case insensitive, let's make it lowercase to improve readability. 50368 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50369 # Now convert it back to Unix-style (cygpath) 50370 input_path=`$CYGPATH -u "$shortmode_path"` 50371 new_path="$input_path" 50372 fi 50373 fi 50374 50375 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50376 if test "x$test_cygdrive_prefix" = x; then 50377 # As a simple fix, exclude /usr/bin since it's not a real path. 50378 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50379 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50380 # a path prefixed by /cygdrive for fixpath to work. 50381 new_path="$CYGWIN_ROOT_PATH$input_path" 50382 fi 50383 fi 50384 50385 50386 if test "x$path" != "x$new_path"; then 50387 CYGWIN_VC_INSTALL_DIR="$new_path" 50388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50389 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50390 fi 50391 50392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50393 50394 path="$CYGWIN_VC_INSTALL_DIR" 50395 has_colon=`$ECHO $path | $GREP ^.:` 50396 new_path="$path" 50397 if test "x$has_colon" = x; then 50398 # Not in mixed or Windows style, start by that. 50399 new_path=`cmd //c echo $path` 50400 fi 50401 50402 50403 input_path="$new_path" 50404 # Check if we need to convert this using DOS-style short mode. If the path 50405 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50406 # take no chances and rewrite it. 50407 # Note: m4 eats our [], so we need to use [ and ] instead. 50408 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50409 if test "x$has_forbidden_chars" != x; then 50410 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50411 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50412 fi 50413 50414 50415 windows_path="$new_path" 50416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50417 unix_path=`$CYGPATH -u "$windows_path"` 50418 new_path="$unix_path" 50419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50421 new_path="$unix_path" 50422 fi 50423 50424 if test "x$path" != "x$new_path"; then 50425 CYGWIN_VC_INSTALL_DIR="$new_path" 50426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50427 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50428 fi 50429 50430 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50431 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50432 50433 else 50434 # We're on a posix platform. Hooray! :) 50435 path="$CYGWIN_VC_INSTALL_DIR" 50436 has_space=`$ECHO "$path" | $GREP " "` 50437 if test "x$has_space" != x; then 50438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50439 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50440 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50441 fi 50442 50443 # Use eval to expand a potential ~ 50444 eval path="$path" 50445 if test ! -f "$path" && test ! -d "$path"; then 50446 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 50447 fi 50448 50449 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 50450 fi 50451 50452 if test "$VS_VERSION" -lt 2017; then 50453 # Probe: Using well-known location from Visual Studio 12.0 and older 50454 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50455 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50456 else 50457 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50458 fi 50459 else 50460 # Probe: Using well-known location from VS 2017 50461 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50462 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50463 else 50464 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50465 fi 50466 fi 50467 # In case any of the above finds more than one file, loop over them. 50468 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 50469 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 50470 50471 DLL_NAME="$DLL_NAME" 50472 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 50473 METHOD="well-known location in VCINSTALLDIR" 50474 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50475 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50476 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50477 50478 # Need to check if the found msvcr is correct architecture 50479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50480 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50481 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50483 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50484 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50485 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50486 CORRECT_MSVCR_ARCH="PE32 executable" 50487 else 50488 CORRECT_MSVCR_ARCH="PE32+ executable" 50489 fi 50490 else 50491 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50492 CORRECT_MSVCR_ARCH=386 50493 else 50494 CORRECT_MSVCR_ARCH=x86-64 50495 fi 50496 fi 50497 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50499 $as_echo "ok" >&6; } 50500 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50501 50502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50503 50504 # Input might be given as Windows format, start by converting to 50505 # unix format. 50506 path="$MSVC_DLL" 50507 new_path=`$CYGPATH -u "$path"` 50508 50509 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50510 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50511 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50512 # "foo.exe" is OK but "foo" is an error. 50513 # 50514 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50515 # It is also a way to make sure we got the proper file name for the real test later on. 50516 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50517 if test "x$test_shortpath" = x; then 50518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50519 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50520 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50521 fi 50522 50523 # Call helper function which possibly converts this using DOS-style short mode. 50524 # If so, the updated path is stored in $new_path. 50525 50526 input_path="$new_path" 50527 # Check if we need to convert this using DOS-style short mode. If the path 50528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50529 # take no chances and rewrite it. 50530 # Note: m4 eats our [], so we need to use [ and ] instead. 50531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50532 if test "x$has_forbidden_chars" != x; then 50533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50534 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50535 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50536 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50537 # Going to short mode and back again did indeed matter. Since short mode is 50538 # case insensitive, let's make it lowercase to improve readability. 50539 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50540 # Now convert it back to Unix-style (cygpath) 50541 input_path=`$CYGPATH -u "$shortmode_path"` 50542 new_path="$input_path" 50543 fi 50544 fi 50545 50546 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50547 if test "x$test_cygdrive_prefix" = x; then 50548 # As a simple fix, exclude /usr/bin since it's not a real path. 50549 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50550 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50551 # a path prefixed by /cygdrive for fixpath to work. 50552 new_path="$CYGWIN_ROOT_PATH$input_path" 50553 fi 50554 fi 50555 50556 50557 if test "x$path" != "x$new_path"; then 50558 MSVC_DLL="$new_path" 50559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50560 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50561 fi 50562 50563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50564 50565 path="$MSVC_DLL" 50566 has_colon=`$ECHO $path | $GREP ^.:` 50567 new_path="$path" 50568 if test "x$has_colon" = x; then 50569 # Not in mixed or Windows style, start by that. 50570 new_path=`cmd //c echo $path` 50571 fi 50572 50573 50574 input_path="$new_path" 50575 # Check if we need to convert this using DOS-style short mode. If the path 50576 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50577 # take no chances and rewrite it. 50578 # Note: m4 eats our [], so we need to use [ and ] instead. 50579 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50580 if test "x$has_forbidden_chars" != x; then 50581 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50582 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50583 fi 50584 50585 50586 windows_path="$new_path" 50587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50588 unix_path=`$CYGPATH -u "$windows_path"` 50589 new_path="$unix_path" 50590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50591 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50592 new_path="$unix_path" 50593 fi 50594 50595 if test "x$path" != "x$new_path"; then 50596 MSVC_DLL="$new_path" 50597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50598 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50599 fi 50600 50601 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50602 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50603 50604 else 50605 # We're on a posix platform. Hooray! :) 50606 path="$MSVC_DLL" 50607 has_space=`$ECHO "$path" | $GREP " "` 50608 if test "x$has_space" != x; then 50609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50610 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50611 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50612 fi 50613 50614 # Use eval to expand a potential ~ 50615 eval path="$path" 50616 if test ! -f "$path" && test ! -d "$path"; then 50617 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50618 fi 50619 50620 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50621 fi 50622 50623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50624 $as_echo_n "checking for $DLL_NAME... " >&6; } 50625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50626 $as_echo "$MSVC_DLL" >&6; } 50627 else 50628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50629 $as_echo "incorrect, ignoring" >&6; } 50630 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50631 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50632 fi 50633 fi 50634 50635 done 50636 fi 50637 fi 50638 50639 if test "x$MSVC_DLL" = x; then 50640 # Probe: Check in the Boot JDK directory. 50641 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50642 50643 DLL_NAME="$DLL_NAME" 50644 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50645 METHOD="well-known location in Boot JDK" 50646 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50647 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50648 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50649 50650 # Need to check if the found msvcr is correct architecture 50651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50652 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50653 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50655 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50656 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50657 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50658 CORRECT_MSVCR_ARCH="PE32 executable" 50659 else 50660 CORRECT_MSVCR_ARCH="PE32+ executable" 50661 fi 50662 else 50663 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50664 CORRECT_MSVCR_ARCH=386 50665 else 50666 CORRECT_MSVCR_ARCH=x86-64 50667 fi 50668 fi 50669 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50671 $as_echo "ok" >&6; } 50672 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50673 50674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50675 50676 # Input might be given as Windows format, start by converting to 50677 # unix format. 50678 path="$MSVC_DLL" 50679 new_path=`$CYGPATH -u "$path"` 50680 50681 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50682 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50683 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50684 # "foo.exe" is OK but "foo" is an error. 50685 # 50686 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50687 # It is also a way to make sure we got the proper file name for the real test later on. 50688 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50689 if test "x$test_shortpath" = x; then 50690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50691 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50692 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50693 fi 50694 50695 # Call helper function which possibly converts this using DOS-style short mode. 50696 # If so, the updated path is stored in $new_path. 50697 50698 input_path="$new_path" 50699 # Check if we need to convert this using DOS-style short mode. If the path 50700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50701 # take no chances and rewrite it. 50702 # Note: m4 eats our [], so we need to use [ and ] instead. 50703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50704 if test "x$has_forbidden_chars" != x; then 50705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50706 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50707 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50708 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50709 # Going to short mode and back again did indeed matter. Since short mode is 50710 # case insensitive, let's make it lowercase to improve readability. 50711 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50712 # Now convert it back to Unix-style (cygpath) 50713 input_path=`$CYGPATH -u "$shortmode_path"` 50714 new_path="$input_path" 50715 fi 50716 fi 50717 50718 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50719 if test "x$test_cygdrive_prefix" = x; then 50720 # As a simple fix, exclude /usr/bin since it's not a real path. 50721 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50722 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50723 # a path prefixed by /cygdrive for fixpath to work. 50724 new_path="$CYGWIN_ROOT_PATH$input_path" 50725 fi 50726 fi 50727 50728 50729 if test "x$path" != "x$new_path"; then 50730 MSVC_DLL="$new_path" 50731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50732 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50733 fi 50734 50735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50736 50737 path="$MSVC_DLL" 50738 has_colon=`$ECHO $path | $GREP ^.:` 50739 new_path="$path" 50740 if test "x$has_colon" = x; then 50741 # Not in mixed or Windows style, start by that. 50742 new_path=`cmd //c echo $path` 50743 fi 50744 50745 50746 input_path="$new_path" 50747 # Check if we need to convert this using DOS-style short mode. If the path 50748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50749 # take no chances and rewrite it. 50750 # Note: m4 eats our [], so we need to use [ and ] instead. 50751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50752 if test "x$has_forbidden_chars" != x; then 50753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50754 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50755 fi 50756 50757 50758 windows_path="$new_path" 50759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50760 unix_path=`$CYGPATH -u "$windows_path"` 50761 new_path="$unix_path" 50762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50764 new_path="$unix_path" 50765 fi 50766 50767 if test "x$path" != "x$new_path"; then 50768 MSVC_DLL="$new_path" 50769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50770 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50771 fi 50772 50773 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50774 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50775 50776 else 50777 # We're on a posix platform. Hooray! :) 50778 path="$MSVC_DLL" 50779 has_space=`$ECHO "$path" | $GREP " "` 50780 if test "x$has_space" != x; then 50781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50782 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50783 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50784 fi 50785 50786 # Use eval to expand a potential ~ 50787 eval path="$path" 50788 if test ! -f "$path" && test ! -d "$path"; then 50789 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50790 fi 50791 50792 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50793 fi 50794 50795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50796 $as_echo_n "checking for $DLL_NAME... " >&6; } 50797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50798 $as_echo "$MSVC_DLL" >&6; } 50799 else 50800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50801 $as_echo "incorrect, ignoring" >&6; } 50802 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50803 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50804 fi 50805 fi 50806 50807 fi 50808 50809 if test "x$MSVC_DLL" = x; then 50810 # Probe: Look in the Windows system32 directory 50811 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50812 50813 windows_path="$CYGWIN_SYSTEMROOT" 50814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50815 unix_path=`$CYGPATH -u "$windows_path"` 50816 CYGWIN_SYSTEMROOT="$unix_path" 50817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50819 CYGWIN_SYSTEMROOT="$unix_path" 50820 fi 50821 50822 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50823 50824 DLL_NAME="$DLL_NAME" 50825 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50826 METHOD="well-known location in SYSTEMROOT" 50827 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50828 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50829 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50830 50831 # Need to check if the found msvcr is correct architecture 50832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50833 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50834 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50836 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50837 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50838 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50839 CORRECT_MSVCR_ARCH="PE32 executable" 50840 else 50841 CORRECT_MSVCR_ARCH="PE32+ executable" 50842 fi 50843 else 50844 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50845 CORRECT_MSVCR_ARCH=386 50846 else 50847 CORRECT_MSVCR_ARCH=x86-64 50848 fi 50849 fi 50850 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50852 $as_echo "ok" >&6; } 50853 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50854 50855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50856 50857 # Input might be given as Windows format, start by converting to 50858 # unix format. 50859 path="$MSVC_DLL" 50860 new_path=`$CYGPATH -u "$path"` 50861 50862 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50863 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50864 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50865 # "foo.exe" is OK but "foo" is an error. 50866 # 50867 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50868 # It is also a way to make sure we got the proper file name for the real test later on. 50869 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50870 if test "x$test_shortpath" = x; then 50871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50872 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50873 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50874 fi 50875 50876 # Call helper function which possibly converts this using DOS-style short mode. 50877 # If so, the updated path is stored in $new_path. 50878 50879 input_path="$new_path" 50880 # Check if we need to convert this using DOS-style short mode. If the path 50881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50882 # take no chances and rewrite it. 50883 # Note: m4 eats our [], so we need to use [ and ] instead. 50884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50885 if test "x$has_forbidden_chars" != x; then 50886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50887 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50888 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50889 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50890 # Going to short mode and back again did indeed matter. Since short mode is 50891 # case insensitive, let's make it lowercase to improve readability. 50892 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50893 # Now convert it back to Unix-style (cygpath) 50894 input_path=`$CYGPATH -u "$shortmode_path"` 50895 new_path="$input_path" 50896 fi 50897 fi 50898 50899 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50900 if test "x$test_cygdrive_prefix" = x; then 50901 # As a simple fix, exclude /usr/bin since it's not a real path. 50902 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50903 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50904 # a path prefixed by /cygdrive for fixpath to work. 50905 new_path="$CYGWIN_ROOT_PATH$input_path" 50906 fi 50907 fi 50908 50909 50910 if test "x$path" != "x$new_path"; then 50911 MSVC_DLL="$new_path" 50912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50913 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50914 fi 50915 50916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50917 50918 path="$MSVC_DLL" 50919 has_colon=`$ECHO $path | $GREP ^.:` 50920 new_path="$path" 50921 if test "x$has_colon" = x; then 50922 # Not in mixed or Windows style, start by that. 50923 new_path=`cmd //c echo $path` 50924 fi 50925 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50936 fi 50937 50938 50939 windows_path="$new_path" 50940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50941 unix_path=`$CYGPATH -u "$windows_path"` 50942 new_path="$unix_path" 50943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50945 new_path="$unix_path" 50946 fi 50947 50948 if test "x$path" != "x$new_path"; then 50949 MSVC_DLL="$new_path" 50950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50951 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50952 fi 50953 50954 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50955 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50956 50957 else 50958 # We're on a posix platform. Hooray! :) 50959 path="$MSVC_DLL" 50960 has_space=`$ECHO "$path" | $GREP " "` 50961 if test "x$has_space" != x; then 50962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50963 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50964 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50965 fi 50966 50967 # Use eval to expand a potential ~ 50968 eval path="$path" 50969 if test ! -f "$path" && test ! -d "$path"; then 50970 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50971 fi 50972 50973 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50974 fi 50975 50976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50977 $as_echo_n "checking for $DLL_NAME... " >&6; } 50978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50979 $as_echo "$MSVC_DLL" >&6; } 50980 else 50981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50982 $as_echo "incorrect, ignoring" >&6; } 50983 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50984 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50985 fi 50986 fi 50987 50988 fi 50989 50990 if test "x$MSVC_DLL" = x; then 50991 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50992 if test "x$VS100COMNTOOLS" != x; then 50993 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50994 50995 windows_path="$CYGWIN_VS_TOOLS_DIR" 50996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50997 unix_path=`$CYGPATH -u "$windows_path"` 50998 CYGWIN_VS_TOOLS_DIR="$unix_path" 50999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51001 CYGWIN_VS_TOOLS_DIR="$unix_path" 51002 fi 51003 51004 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51005 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51006 | $GREP -i /x64/ | $HEAD --lines 1` 51007 else 51008 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51009 | $GREP -i /x86/ | $HEAD --lines 1` 51010 fi 51011 51012 DLL_NAME="$DLL_NAME" 51013 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51014 METHOD="search of VS100COMNTOOLS" 51015 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51016 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51017 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51018 51019 # Need to check if the found msvcr is correct architecture 51020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51021 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51022 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51024 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51025 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51026 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51027 CORRECT_MSVCR_ARCH="PE32 executable" 51028 else 51029 CORRECT_MSVCR_ARCH="PE32+ executable" 51030 fi 51031 else 51032 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51033 CORRECT_MSVCR_ARCH=386 51034 else 51035 CORRECT_MSVCR_ARCH=x86-64 51036 fi 51037 fi 51038 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51040 $as_echo "ok" >&6; } 51041 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51042 51043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51044 51045 # Input might be given as Windows format, start by converting to 51046 # unix format. 51047 path="$MSVC_DLL" 51048 new_path=`$CYGPATH -u "$path"` 51049 51050 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51051 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51052 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51053 # "foo.exe" is OK but "foo" is an error. 51054 # 51055 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51056 # It is also a way to make sure we got the proper file name for the real test later on. 51057 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51058 if test "x$test_shortpath" = x; then 51059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51060 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51061 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51062 fi 51063 51064 # Call helper function which possibly converts this using DOS-style short mode. 51065 # If so, the updated path is stored in $new_path. 51066 51067 input_path="$new_path" 51068 # Check if we need to convert this using DOS-style short mode. If the path 51069 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51070 # take no chances and rewrite it. 51071 # Note: m4 eats our [], so we need to use [ and ] instead. 51072 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51073 if test "x$has_forbidden_chars" != x; then 51074 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51075 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51076 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51077 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51078 # Going to short mode and back again did indeed matter. Since short mode is 51079 # case insensitive, let's make it lowercase to improve readability. 51080 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51081 # Now convert it back to Unix-style (cygpath) 51082 input_path=`$CYGPATH -u "$shortmode_path"` 51083 new_path="$input_path" 51084 fi 51085 fi 51086 51087 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51088 if test "x$test_cygdrive_prefix" = x; then 51089 # As a simple fix, exclude /usr/bin since it's not a real path. 51090 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51091 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51092 # a path prefixed by /cygdrive for fixpath to work. 51093 new_path="$CYGWIN_ROOT_PATH$input_path" 51094 fi 51095 fi 51096 51097 51098 if test "x$path" != "x$new_path"; then 51099 MSVC_DLL="$new_path" 51100 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51101 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51102 fi 51103 51104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51105 51106 path="$MSVC_DLL" 51107 has_colon=`$ECHO $path | $GREP ^.:` 51108 new_path="$path" 51109 if test "x$has_colon" = x; then 51110 # Not in mixed or Windows style, start by that. 51111 new_path=`cmd //c echo $path` 51112 fi 51113 51114 51115 input_path="$new_path" 51116 # Check if we need to convert this using DOS-style short mode. If the path 51117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51118 # take no chances and rewrite it. 51119 # Note: m4 eats our [], so we need to use [ and ] instead. 51120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51121 if test "x$has_forbidden_chars" != x; then 51122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51123 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51124 fi 51125 51126 51127 windows_path="$new_path" 51128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51129 unix_path=`$CYGPATH -u "$windows_path"` 51130 new_path="$unix_path" 51131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51133 new_path="$unix_path" 51134 fi 51135 51136 if test "x$path" != "x$new_path"; then 51137 MSVC_DLL="$new_path" 51138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51139 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51140 fi 51141 51142 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51143 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51144 51145 else 51146 # We're on a posix platform. Hooray! :) 51147 path="$MSVC_DLL" 51148 has_space=`$ECHO "$path" | $GREP " "` 51149 if test "x$has_space" != x; then 51150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51151 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51152 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51153 fi 51154 51155 # Use eval to expand a potential ~ 51156 eval path="$path" 51157 if test ! -f "$path" && test ! -d "$path"; then 51158 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51159 fi 51160 51161 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51162 fi 51163 51164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51165 $as_echo_n "checking for $DLL_NAME... " >&6; } 51166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51167 $as_echo "$MSVC_DLL" >&6; } 51168 else 51169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51170 $as_echo "incorrect, ignoring" >&6; } 51171 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51172 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51173 fi 51174 fi 51175 51176 fi 51177 fi 51178 51179 if test "x$MSVC_DLL" = x; then 51180 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 51181 # (This was the original behaviour; kept since it might turn something up) 51182 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 51183 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51184 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51185 | $GREP x64 | $HEAD --lines 1` 51186 else 51187 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51188 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 51189 if test "x$POSSIBLE_MSVC_DLL" = x; then 51190 # We're grasping at straws now... 51191 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51192 | $HEAD --lines 1` 51193 fi 51194 fi 51195 51196 51197 DLL_NAME="$DLL_NAME" 51198 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51199 METHOD="search of VCINSTALLDIR" 51200 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51201 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51202 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51203 51204 # Need to check if the found msvcr is correct architecture 51205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51206 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51207 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51209 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51210 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51211 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51212 CORRECT_MSVCR_ARCH="PE32 executable" 51213 else 51214 CORRECT_MSVCR_ARCH="PE32+ executable" 51215 fi 51216 else 51217 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51218 CORRECT_MSVCR_ARCH=386 51219 else 51220 CORRECT_MSVCR_ARCH=x86-64 51221 fi 51222 fi 51223 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51225 $as_echo "ok" >&6; } 51226 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51227 51228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51229 51230 # Input might be given as Windows format, start by converting to 51231 # unix format. 51232 path="$MSVC_DLL" 51233 new_path=`$CYGPATH -u "$path"` 51234 51235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51238 # "foo.exe" is OK but "foo" is an error. 51239 # 51240 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51241 # It is also a way to make sure we got the proper file name for the real test later on. 51242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51243 if test "x$test_shortpath" = x; then 51244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51245 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51246 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51247 fi 51248 51249 # Call helper function which possibly converts this using DOS-style short mode. 51250 # If so, the updated path is stored in $new_path. 51251 51252 input_path="$new_path" 51253 # Check if we need to convert this using DOS-style short mode. If the path 51254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51255 # take no chances and rewrite it. 51256 # Note: m4 eats our [], so we need to use [ and ] instead. 51257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51258 if test "x$has_forbidden_chars" != x; then 51259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51260 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51261 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51262 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51263 # Going to short mode and back again did indeed matter. Since short mode is 51264 # case insensitive, let's make it lowercase to improve readability. 51265 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51266 # Now convert it back to Unix-style (cygpath) 51267 input_path=`$CYGPATH -u "$shortmode_path"` 51268 new_path="$input_path" 51269 fi 51270 fi 51271 51272 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51273 if test "x$test_cygdrive_prefix" = x; then 51274 # As a simple fix, exclude /usr/bin since it's not a real path. 51275 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51276 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51277 # a path prefixed by /cygdrive for fixpath to work. 51278 new_path="$CYGWIN_ROOT_PATH$input_path" 51279 fi 51280 fi 51281 51282 51283 if test "x$path" != "x$new_path"; then 51284 MSVC_DLL="$new_path" 51285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51286 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51287 fi 51288 51289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51290 51291 path="$MSVC_DLL" 51292 has_colon=`$ECHO $path | $GREP ^.:` 51293 new_path="$path" 51294 if test "x$has_colon" = x; then 51295 # Not in mixed or Windows style, start by that. 51296 new_path=`cmd //c echo $path` 51297 fi 51298 51299 51300 input_path="$new_path" 51301 # Check if we need to convert this using DOS-style short mode. If the path 51302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51303 # take no chances and rewrite it. 51304 # Note: m4 eats our [], so we need to use [ and ] instead. 51305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51306 if test "x$has_forbidden_chars" != x; then 51307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51308 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51309 fi 51310 51311 51312 windows_path="$new_path" 51313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51314 unix_path=`$CYGPATH -u "$windows_path"` 51315 new_path="$unix_path" 51316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51318 new_path="$unix_path" 51319 fi 51320 51321 if test "x$path" != "x$new_path"; then 51322 MSVC_DLL="$new_path" 51323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51324 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51325 fi 51326 51327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51329 51330 else 51331 # We're on a posix platform. Hooray! :) 51332 path="$MSVC_DLL" 51333 has_space=`$ECHO "$path" | $GREP " "` 51334 if test "x$has_space" != x; then 51335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51336 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51337 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51338 fi 51339 51340 # Use eval to expand a potential ~ 51341 eval path="$path" 51342 if test ! -f "$path" && test ! -d "$path"; then 51343 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51344 fi 51345 51346 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51347 fi 51348 51349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51350 $as_echo_n "checking for $DLL_NAME... " >&6; } 51351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51352 $as_echo "$MSVC_DLL" >&6; } 51353 else 51354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51355 $as_echo "incorrect, ignoring" >&6; } 51356 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51357 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51358 fi 51359 fi 51360 51361 fi 51362 fi 51363 51364 if test "x$MSVC_DLL" = x; then 51365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51366 $as_echo_n "checking for $DLL_NAME... " >&6; } 51367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51368 $as_echo "no" >&6; } 51369 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 51370 fi 51371 51372 MSVCP_DLL="$MSVC_DLL" 51373 fi 51374 51375 fi 51376 51377 51378 # Check whether --with-ucrt-dll-dir was given. 51379 if test "${with_ucrt_dll_dir+set}" = set; then : 51380 withval=$with_ucrt_dll_dir; 51381 fi 51382 51383 51384 if test "x$USE_UCRT" = "xtrue"; then 51385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCRT DLL dir" >&5 51386 $as_echo_n "checking for UCRT DLL dir... " >&6; } 51387 if test "x$with_ucrt_dll_dir" != x; then 51388 if test -z "$(ls -d "$with_ucrt_dll_dir/*.dll" 2> /dev/null)"; then 51389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51390 $as_echo "no" >&6; } 51391 as_fn_error $? "Could not find any dlls in $with_ucrt_dll_dir" "$LINENO" 5 51392 else 51393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ucrt_dll_dir" >&5 51394 $as_echo "$with_ucrt_dll_dir" >&6; } 51395 UCRT_DLL_DIR="$with_ucrt_dll_dir" 51396 51397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51398 51399 # Input might be given as Windows format, start by converting to 51400 # unix format. 51401 path="$UCRT_DLL_DIR" 51402 new_path=`$CYGPATH -u "$path"` 51403 51404 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51405 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51406 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51407 # "foo.exe" is OK but "foo" is an error. 51408 # 51409 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51410 # It is also a way to make sure we got the proper file name for the real test later on. 51411 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51412 if test "x$test_shortpath" = x; then 51413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51414 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51415 as_fn_error $? "Cannot locate the the path of UCRT_DLL_DIR" "$LINENO" 5 51416 fi 51417 51418 # Call helper function which possibly converts this using DOS-style short mode. 51419 # If so, the updated path is stored in $new_path. 51420 51421 input_path="$new_path" 51422 # Check if we need to convert this using DOS-style short mode. If the path 51423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51424 # take no chances and rewrite it. 51425 # Note: m4 eats our [], so we need to use [ and ] instead. 51426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51427 if test "x$has_forbidden_chars" != x; then 51428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51429 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51430 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51431 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51432 # Going to short mode and back again did indeed matter. Since short mode is 51433 # case insensitive, let's make it lowercase to improve readability. 51434 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51435 # Now convert it back to Unix-style (cygpath) 51436 input_path=`$CYGPATH -u "$shortmode_path"` 51437 new_path="$input_path" 51438 fi 51439 fi 51440 51441 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51442 if test "x$test_cygdrive_prefix" = x; then 51443 # As a simple fix, exclude /usr/bin since it's not a real path. 51444 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51445 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51446 # a path prefixed by /cygdrive for fixpath to work. 51447 new_path="$CYGWIN_ROOT_PATH$input_path" 51448 fi 51449 fi 51450 51451 51452 if test "x$path" != "x$new_path"; then 51453 UCRT_DLL_DIR="$new_path" 51454 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51455 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51456 fi 51457 51458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51459 51460 path="$UCRT_DLL_DIR" 51461 has_colon=`$ECHO $path | $GREP ^.:` 51462 new_path="$path" 51463 if test "x$has_colon" = x; then 51464 # Not in mixed or Windows style, start by that. 51465 new_path=`cmd //c echo $path` 51466 fi 51467 51468 51469 input_path="$new_path" 51470 # Check if we need to convert this using DOS-style short mode. If the path 51471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51472 # take no chances and rewrite it. 51473 # Note: m4 eats our [], so we need to use [ and ] instead. 51474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51475 if test "x$has_forbidden_chars" != x; then 51476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51477 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51478 fi 51479 51480 51481 windows_path="$new_path" 51482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51483 unix_path=`$CYGPATH -u "$windows_path"` 51484 new_path="$unix_path" 51485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51487 new_path="$unix_path" 51488 fi 51489 51490 if test "x$path" != "x$new_path"; then 51491 UCRT_DLL_DIR="$new_path" 51492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51493 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51494 fi 51495 51496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51498 51499 else 51500 # We're on a posix platform. Hooray! :) 51501 path="$UCRT_DLL_DIR" 51502 has_space=`$ECHO "$path" | $GREP " "` 51503 if test "x$has_space" != x; then 51504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51505 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51506 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51507 fi 51508 51509 # Use eval to expand a potential ~ 51510 eval path="$path" 51511 if test ! -f "$path" && test ! -d "$path"; then 51512 as_fn_error $? "The path of UCRT_DLL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 51513 fi 51514 51515 UCRT_DLL_DIR="`cd "$path"; $THEPWDCMD -L`" 51516 fi 51517 51518 fi 51519 elif test "x$DEVKIT_UCRT_DLL_DIR" != "x"; then 51520 UCRT_DLL_DIR="$DEVKIT_UCRT_DLL_DIR" 51521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51522 $as_echo "$UCRT_DLL_DIR" >&6; } 51523 else 51524 CYGWIN_WINDOWSSDKDIR="${WINDOWSSDKDIR}" 51525 51526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51527 51528 # Input might be given as Windows format, start by converting to 51529 # unix format. 51530 path="$CYGWIN_WINDOWSSDKDIR" 51531 new_path=`$CYGPATH -u "$path"` 51532 51533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51536 # "foo.exe" is OK but "foo" is an error. 51537 # 51538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51539 # It is also a way to make sure we got the proper file name for the real test later on. 51540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51541 if test "x$test_shortpath" = x; then 51542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51543 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51544 as_fn_error $? "Cannot locate the the path of CYGWIN_WINDOWSSDKDIR" "$LINENO" 5 51545 fi 51546 51547 # Call helper function which possibly converts this using DOS-style short mode. 51548 # If so, the updated path is stored in $new_path. 51549 51550 input_path="$new_path" 51551 # Check if we need to convert this using DOS-style short mode. If the path 51552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51553 # take no chances and rewrite it. 51554 # Note: m4 eats our [], so we need to use [ and ] instead. 51555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51556 if test "x$has_forbidden_chars" != x; then 51557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51561 # Going to short mode and back again did indeed matter. Since short mode is 51562 # case insensitive, let's make it lowercase to improve readability. 51563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51564 # Now convert it back to Unix-style (cygpath) 51565 input_path=`$CYGPATH -u "$shortmode_path"` 51566 new_path="$input_path" 51567 fi 51568 fi 51569 51570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51571 if test "x$test_cygdrive_prefix" = x; then 51572 # As a simple fix, exclude /usr/bin since it's not a real path. 51573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51575 # a path prefixed by /cygdrive for fixpath to work. 51576 new_path="$CYGWIN_ROOT_PATH$input_path" 51577 fi 51578 fi 51579 51580 51581 if test "x$path" != "x$new_path"; then 51582 CYGWIN_WINDOWSSDKDIR="$new_path" 51583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51584 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51585 fi 51586 51587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51588 51589 path="$CYGWIN_WINDOWSSDKDIR" 51590 has_colon=`$ECHO $path | $GREP ^.:` 51591 new_path="$path" 51592 if test "x$has_colon" = x; then 51593 # Not in mixed or Windows style, start by that. 51594 new_path=`cmd //c echo $path` 51595 fi 51596 51597 51598 input_path="$new_path" 51599 # Check if we need to convert this using DOS-style short mode. If the path 51600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51601 # take no chances and rewrite it. 51602 # Note: m4 eats our [], so we need to use [ and ] instead. 51603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51604 if test "x$has_forbidden_chars" != x; then 51605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51607 fi 51608 51609 51610 windows_path="$new_path" 51611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51612 unix_path=`$CYGPATH -u "$windows_path"` 51613 new_path="$unix_path" 51614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51616 new_path="$unix_path" 51617 fi 51618 51619 if test "x$path" != "x$new_path"; then 51620 CYGWIN_WINDOWSSDKDIR="$new_path" 51621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51622 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51623 fi 51624 51625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51627 51628 else 51629 # We're on a posix platform. Hooray! :) 51630 path="$CYGWIN_WINDOWSSDKDIR" 51631 has_space=`$ECHO "$path" | $GREP " "` 51632 if test "x$has_space" != x; then 51633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51634 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51636 fi 51637 51638 # Use eval to expand a potential ~ 51639 eval path="$path" 51640 if test ! -f "$path" && test ! -d "$path"; then 51641 as_fn_error $? "The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is not found." "$LINENO" 5 51642 fi 51643 51644 CYGWIN_WINDOWSSDKDIR="`cd "$path"; $THEPWDCMD -L`" 51645 fi 51646 51647 dll_subdir=$OPENJDK_TARGET_CPU 51648 if test "x$dll_subdir" = "xx86_64"; then 51649 dll_subdir="x64" 51650 fi 51651 UCRT_DLL_DIR="$CYGWIN_WINDOWSSDKDIR/Redist/ucrt/DLLs/$dll_subdir" 51652 if test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 51653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51654 $as_echo "no" >&6; } 51655 as_fn_error $? "Could not find any dlls in $UCRT_DLL_DIR" "$LINENO" 5 51656 else 51657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51658 $as_echo "$UCRT_DLL_DIR" >&6; } 51659 fi 51660 fi 51661 else 51662 UCRT_DLL_DIR= 51663 fi 51664 51665 51666 51667 51668 # Check whether --with-dxsdk was given. 51669 if test "${with_dxsdk+set}" = set; then : 51670 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 51671 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 51672 fi 51673 51674 51675 51676 51677 # Check whether --with-dxsdk-lib was given. 51678 if test "${with_dxsdk_lib+set}" = set; then : 51679 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 51680 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 51681 fi 51682 51683 51684 51685 51686 # Check whether --with-dxsdk-include was given. 51687 if test "${with_dxsdk_include+set}" = set; then : 51688 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 51689 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 51690 fi 51691 51692 51693 fi 51694 51695 51696 ############################################################################### 51697 # 51698 # We need to do some final tweaking, when everything else is done. 51699 # 51700 ############################################################################### 51701 51702 51703 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 51704 51705 51706 # The name of the Service Agent jar. 51707 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 51708 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 51709 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 51710 fi 51711 51712 51713 51714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 51715 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 51716 51717 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 51718 ENABLE_INTREE_EC=yes 51719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51720 $as_echo "yes" >&6; } 51721 else 51722 ENABLE_INTREE_EC=no 51723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51724 $as_echo "no" >&6; } 51725 fi 51726 51727 51728 51729 51730 ############################################################################### 51731 # 51732 # Configure parts of the build that only affect the build performance, 51733 # not the result. 51734 # 51735 ############################################################################### 51736 51737 51738 # How many cores do we have on this build system? 51739 51740 # Check whether --with-num-cores was given. 51741 if test "${with_num_cores+set}" = set; then : 51742 withval=$with_num_cores; 51743 fi 51744 51745 if test "x$with_num_cores" = x; then 51746 # The number of cores were not specified, try to probe them. 51747 51748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 51749 $as_echo_n "checking for number of cores... " >&6; } 51750 NUM_CORES=1 51751 FOUND_CORES=no 51752 51753 if test -f /proc/cpuinfo; then 51754 # Looks like a Linux (or cygwin) system 51755 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 51756 FOUND_CORES=yes 51757 elif test -x /usr/sbin/psrinfo; then 51758 # Looks like a Solaris system 51759 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 51760 FOUND_CORES=yes 51761 elif test -x /usr/sbin/system_profiler; then 51762 # Looks like a MacOSX system 51763 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 51764 FOUND_CORES=yes 51765 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 51766 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 51767 FOUND_CORES=yes 51768 elif test -n "$NUMBER_OF_PROCESSORS"; then 51769 # On windows, look in the env 51770 NUM_CORES=$NUMBER_OF_PROCESSORS 51771 FOUND_CORES=yes 51772 fi 51773 51774 if test "x$FOUND_CORES" = xyes; then 51775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 51776 $as_echo "$NUM_CORES" >&6; } 51777 else 51778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 51779 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 51780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 51781 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 51782 fi 51783 51784 else 51785 NUM_CORES=$with_num_cores 51786 fi 51787 51788 51789 51790 # How much memory do we have on this build system? 51791 51792 # Check whether --with-memory-size was given. 51793 if test "${with_memory_size+set}" = set; then : 51794 withval=$with_memory_size; 51795 fi 51796 51797 if test "x$with_memory_size" = x; then 51798 # The memory size was not specified, try to probe it. 51799 51800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 51801 $as_echo_n "checking for memory size... " >&6; } 51802 # Default to 1024 MB 51803 MEMORY_SIZE=1024 51804 FOUND_MEM=no 51805 51806 if test -f /proc/meminfo; then 51807 # Looks like a Linux (or cygwin) system 51808 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 51809 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 51810 FOUND_MEM=yes 51811 elif test -x /usr/sbin/prtconf; then 51812 # Looks like a Solaris or AIX system 51813 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 51814 FOUND_MEM=yes 51815 elif test -x /usr/sbin/system_profiler; then 51816 # Looks like a MacOSX system 51817 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 51818 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 51819 FOUND_MEM=yes 51820 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51821 # Windows, but without cygwin 51822 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 51823 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 51824 FOUND_MEM=yes 51825 fi 51826 51827 if test "x$FOUND_MEM" = xyes; then 51828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 51829 $as_echo "$MEMORY_SIZE MB" >&6; } 51830 else 51831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 51832 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 51833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 51834 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 51835 fi 51836 51837 else 51838 MEMORY_SIZE=$with_memory_size 51839 fi 51840 51841 51842 51843 # Provide a decent default number of parallel jobs for make depending on 51844 # number of cores, amount of memory and machine architecture. 51845 51846 # Check whether --with-jobs was given. 51847 if test "${with_jobs+set}" = set; then : 51848 withval=$with_jobs; 51849 fi 51850 51851 if test "x$with_jobs" = x; then 51852 # Number of jobs was not specified, calculate. 51853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 51854 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 51855 # Approximate memory in GB, rounding up a bit. 51856 memory_gb=`expr $MEMORY_SIZE / 1100` 51857 # Pick the lowest of memory in gb and number of cores. 51858 if test "$memory_gb" -lt "$NUM_CORES"; then 51859 JOBS="$memory_gb" 51860 else 51861 JOBS="$NUM_CORES" 51862 # On bigger machines, leave some room for other processes to run 51863 if test "$JOBS" -gt "4"; then 51864 JOBS=`expr $JOBS '*' 90 / 100` 51865 fi 51866 fi 51867 # Cap number of jobs to 16 51868 if test "$JOBS" -gt "16"; then 51869 JOBS=16 51870 fi 51871 if test "$JOBS" -eq "0"; then 51872 JOBS=1 51873 fi 51874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 51875 $as_echo "$JOBS" >&6; } 51876 else 51877 JOBS=$with_jobs 51878 fi 51879 51880 51881 51882 # Setup smart javac (after cores and memory have been setup) 51883 51884 51885 # Check whether --with-sjavac-server-java was given. 51886 if test "${with_sjavac_server_java+set}" = set; then : 51887 withval=$with_sjavac_server_java; 51888 fi 51889 51890 51891 if test "x$with_sjavac_server_java" != x; then 51892 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 51893 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 51894 if test "x$FOUND_VERSION" = x; then 51895 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 51896 fi 51897 else 51898 SJAVAC_SERVER_JAVA="" 51899 # Hotspot specific options. 51900 51901 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 51902 $ECHO "Command: $JAVA -verbosegc -version" >&5 51903 OUTPUT=`$JAVA -verbosegc -version 2>&1` 51904 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51905 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51906 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51907 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 51908 JVM_ARG_OK=true 51909 else 51910 $ECHO "Arg failed:" >&5 51911 $ECHO "$OUTPUT" >&5 51912 JVM_ARG_OK=false 51913 fi 51914 51915 # JRockit specific options. 51916 51917 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 51918 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 51919 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 51920 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51921 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51922 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51923 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 51924 JVM_ARG_OK=true 51925 else 51926 $ECHO "Arg failed:" >&5 51927 $ECHO "$OUTPUT" >&5 51928 JVM_ARG_OK=false 51929 fi 51930 51931 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 51932 fi 51933 51934 51935 if test "$MEMORY_SIZE" -gt "2500"; then 51936 51937 $ECHO "Check if jvm arg is ok: -d64" >&5 51938 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 51939 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 51940 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51941 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51942 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51943 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 51944 JVM_ARG_OK=true 51945 else 51946 $ECHO "Arg failed:" >&5 51947 $ECHO "$OUTPUT" >&5 51948 JVM_ARG_OK=false 51949 fi 51950 51951 if test "$JVM_ARG_OK" = true; then 51952 JVM_64BIT=true 51953 JVM_ARG_OK=false 51954 fi 51955 fi 51956 51957 if test "$JVM_64BIT" = true; then 51958 if test "$MEMORY_SIZE" -gt "17000"; then 51959 51960 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 51961 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 51962 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 51963 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51964 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51965 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51966 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 51967 JVM_ARG_OK=true 51968 else 51969 $ECHO "Arg failed:" >&5 51970 $ECHO "$OUTPUT" >&5 51971 JVM_ARG_OK=false 51972 fi 51973 51974 fi 51975 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 51976 51977 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 51978 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 51979 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 51980 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51981 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51982 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51983 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 51984 JVM_ARG_OK=true 51985 else 51986 $ECHO "Arg failed:" >&5 51987 $ECHO "$OUTPUT" >&5 51988 JVM_ARG_OK=false 51989 fi 51990 51991 fi 51992 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 51993 51994 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 51995 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 51996 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 51997 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51998 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51999 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52000 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 52001 JVM_ARG_OK=true 52002 else 52003 $ECHO "Arg failed:" >&5 52004 $ECHO "$OUTPUT" >&5 52005 JVM_ARG_OK=false 52006 fi 52007 52008 fi 52009 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 52010 52011 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 52012 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 52013 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 52014 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52015 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52016 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52017 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 52018 JVM_ARG_OK=true 52019 else 52020 $ECHO "Arg failed:" >&5 52021 $ECHO "$OUTPUT" >&5 52022 JVM_ARG_OK=false 52023 fi 52024 52025 fi 52026 fi 52027 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 52028 52029 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 52030 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 52031 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 52032 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52033 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52034 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52035 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 52036 JVM_ARG_OK=true 52037 else 52038 $ECHO "Arg failed:" >&5 52039 $ECHO "$OUTPUT" >&5 52040 JVM_ARG_OK=false 52041 fi 52042 52043 fi 52044 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 52045 52046 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 52047 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 52048 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 52049 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52050 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52051 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52052 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 52053 JVM_ARG_OK=true 52054 else 52055 $ECHO "Arg failed:" >&5 52056 $ECHO "$OUTPUT" >&5 52057 JVM_ARG_OK=false 52058 fi 52059 52060 fi 52061 if test "$JVM_ARG_OK" = false; then 52062 52063 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 52064 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 52065 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 52066 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52067 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52068 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52069 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 52070 JVM_ARG_OK=true 52071 else 52072 $ECHO "Arg failed:" >&5 52073 $ECHO "$OUTPUT" >&5 52074 JVM_ARG_OK=false 52075 fi 52076 52077 fi 52078 52079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 52080 $as_echo_n "checking whether to use sjavac... " >&6; } 52081 # Check whether --enable-sjavac was given. 52082 if test "${enable_sjavac+set}" = set; then : 52083 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 52084 else 52085 ENABLE_SJAVAC='no' 52086 fi 52087 52088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 52089 $as_echo "$ENABLE_SJAVAC" >&6; } 52090 52091 52092 if test "x$ENABLE_SJAVAC" = xyes; then 52093 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 52094 else 52095 SJAVAC_SERVER_DIR= 52096 fi 52097 52098 52099 52100 # Can the C/C++ compiler use precompiled headers? 52101 52102 52103 ############################################################################### 52104 # 52105 # Can the C/C++ compiler use precompiled headers? 52106 # 52107 # Check whether --enable-precompiled-headers was given. 52108 if test "${enable_precompiled_headers+set}" = set; then : 52109 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 52110 else 52111 ENABLE_PRECOMPH=yes 52112 fi 52113 52114 52115 USE_PRECOMPILED_HEADER=1 52116 if test "x$ENABLE_PRECOMPH" = xno; then 52117 USE_PRECOMPILED_HEADER=0 52118 fi 52119 52120 if test "x$ENABLE_PRECOMPH" = xyes; then 52121 # Check that the compiler actually supports precomp headers. 52122 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 52124 $as_echo_n "checking that precompiled headers work... " >&6; } 52125 echo "int alfa();" > conftest.h 52126 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 52127 if test ! -f conftest.hpp.gch; then 52128 USE_PRECOMPILED_HEADER=0 52129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52130 $as_echo "no" >&6; } 52131 else 52132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52133 $as_echo "yes" >&6; } 52134 fi 52135 rm -f conftest.h conftest.hpp.gch 52136 fi 52137 fi 52138 52139 52140 52141 52142 # Setup use of ccache, if available 52143 52144 # Check whether --enable-ccache was given. 52145 if test "${enable_ccache+set}" = set; then : 52146 enableval=$enable_ccache; 52147 fi 52148 52149 52150 CCACHE= 52151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 52152 $as_echo_n "checking is ccache enabled... " >&6; } 52153 ENABLE_CCACHE=$enable_ccache 52154 if test "x$enable_ccache" = xyes; then 52155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52156 $as_echo "yes" >&6; } 52157 OLD_PATH="$PATH" 52158 if test "x$TOOLCHAIN_PATH" != x; then 52159 PATH=$TOOLCHAIN_PATH:$PATH 52160 fi 52161 52162 52163 52164 # Publish this variable in the help. 52165 52166 52167 if test "x$CCACHE" = x; then 52168 # The variable is not set by user, try to locate tool using the code snippet 52169 for ac_prog in ccache 52170 do 52171 # Extract the first word of "$ac_prog", so it can be a program name with args. 52172 set dummy $ac_prog; ac_word=$2 52173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52174 $as_echo_n "checking for $ac_word... " >&6; } 52175 if ${ac_cv_path_CCACHE+:} false; then : 52176 $as_echo_n "(cached) " >&6 52177 else 52178 case $CCACHE in 52179 [\\/]* | ?:[\\/]*) 52180 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52181 ;; 52182 *) 52183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52184 for as_dir in $PATH 52185 do 52186 IFS=$as_save_IFS 52187 test -z "$as_dir" && as_dir=. 52188 for ac_exec_ext in '' $ac_executable_extensions; do 52189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52190 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52192 break 2 52193 fi 52194 done 52195 done 52196 IFS=$as_save_IFS 52197 52198 ;; 52199 esac 52200 fi 52201 CCACHE=$ac_cv_path_CCACHE 52202 if test -n "$CCACHE"; then 52203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52204 $as_echo "$CCACHE" >&6; } 52205 else 52206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52207 $as_echo "no" >&6; } 52208 fi 52209 52210 52211 test -n "$CCACHE" && break 52212 done 52213 52214 else 52215 # The variable is set, but is it from the command line or the environment? 52216 52217 # Try to remove the string !CCACHE! from our list. 52218 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 52219 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 52220 # If it failed, the variable was not from the command line. Ignore it, 52221 # but warn the user (except for BASH, which is always set by the calling BASH). 52222 if test "xCCACHE" != xBASH; then 52223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 52224 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 52225 fi 52226 # Try to locate tool using the code snippet 52227 for ac_prog in ccache 52228 do 52229 # Extract the first word of "$ac_prog", so it can be a program name with args. 52230 set dummy $ac_prog; ac_word=$2 52231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52232 $as_echo_n "checking for $ac_word... " >&6; } 52233 if ${ac_cv_path_CCACHE+:} false; then : 52234 $as_echo_n "(cached) " >&6 52235 else 52236 case $CCACHE in 52237 [\\/]* | ?:[\\/]*) 52238 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52239 ;; 52240 *) 52241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52242 for as_dir in $PATH 52243 do 52244 IFS=$as_save_IFS 52245 test -z "$as_dir" && as_dir=. 52246 for ac_exec_ext in '' $ac_executable_extensions; do 52247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52248 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52250 break 2 52251 fi 52252 done 52253 done 52254 IFS=$as_save_IFS 52255 52256 ;; 52257 esac 52258 fi 52259 CCACHE=$ac_cv_path_CCACHE 52260 if test -n "$CCACHE"; then 52261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52262 $as_echo "$CCACHE" >&6; } 52263 else 52264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52265 $as_echo "no" >&6; } 52266 fi 52267 52268 52269 test -n "$CCACHE" && break 52270 done 52271 52272 else 52273 # If it succeeded, then it was overridden by the user. We will use it 52274 # for the tool. 52275 52276 # First remove it from the list of overridden variables, so we can test 52277 # for unknown variables in the end. 52278 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 52279 52280 # Check if the provided tool contains a complete path. 52281 tool_specified="$CCACHE" 52282 tool_basename="${tool_specified##*/}" 52283 if test "x$tool_basename" = "x$tool_specified"; then 52284 # A command without a complete path is provided, search $PATH. 52285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 52286 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 52287 # Extract the first word of "$tool_basename", so it can be a program name with args. 52288 set dummy $tool_basename; ac_word=$2 52289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52290 $as_echo_n "checking for $ac_word... " >&6; } 52291 if ${ac_cv_path_CCACHE+:} false; then : 52292 $as_echo_n "(cached) " >&6 52293 else 52294 case $CCACHE in 52295 [\\/]* | ?:[\\/]*) 52296 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52297 ;; 52298 *) 52299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52300 for as_dir in $PATH 52301 do 52302 IFS=$as_save_IFS 52303 test -z "$as_dir" && as_dir=. 52304 for ac_exec_ext in '' $ac_executable_extensions; do 52305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52306 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52308 break 2 52309 fi 52310 done 52311 done 52312 IFS=$as_save_IFS 52313 52314 ;; 52315 esac 52316 fi 52317 CCACHE=$ac_cv_path_CCACHE 52318 if test -n "$CCACHE"; then 52319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52320 $as_echo "$CCACHE" >&6; } 52321 else 52322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52323 $as_echo "no" >&6; } 52324 fi 52325 52326 52327 if test "x$CCACHE" = x; then 52328 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 52329 fi 52330 else 52331 # Otherwise we believe it is a complete path. Use it as it is. 52332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 52333 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 52334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 52335 $as_echo_n "checking for CCACHE... " >&6; } 52336 if test ! -x "$tool_specified"; then 52337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 52338 $as_echo "not found" >&6; } 52339 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 52340 fi 52341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 52342 $as_echo "$tool_specified" >&6; } 52343 fi 52344 fi 52345 fi 52346 52347 52348 52349 if test "x$CCACHE" = x; then 52350 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 52351 fi 52352 52353 52354 CCACHE_STATUS="enabled" 52355 PATH="$OLD_PATH" 52356 elif test "x$enable_ccache" = xno; then 52357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 52358 $as_echo "no, explicitly disabled" >&6; } 52359 elif test "x$enable_ccache" = x; then 52360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52361 $as_echo "no" >&6; } 52362 else 52363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 52364 $as_echo "unknown" >&6; } 52365 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 52366 fi 52367 52368 52369 52370 # Check whether --with-ccache-dir was given. 52371 if test "${with_ccache_dir+set}" = set; then : 52372 withval=$with_ccache_dir; 52373 fi 52374 52375 52376 if test "x$with_ccache_dir" != x; then 52377 # When using a non home ccache directory, assume the use is to share ccache files 52378 # with other users. Thus change the umask. 52379 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 52380 if test "x$CCACHE" = x; then 52381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 52382 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 52383 fi 52384 fi 52385 52386 if test "x$CCACHE" != x; then 52387 52388 if test "x$CCACHE" != x; then 52389 # Only use ccache if it is 3.1.4 or later, which supports 52390 # precompiled headers. 52391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 52392 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 52393 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 52394 if test "x$HAS_GOOD_CCACHE" = x; then 52395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 52396 $as_echo "no, disabling ccache" >&6; } 52397 CCACHE= 52398 CCACHE_STATUS="disabled" 52399 else 52400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52401 $as_echo "yes" >&6; } 52402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 52403 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 52404 PUSHED_FLAGS="$CXXFLAGS" 52405 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 52406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52407 /* end confdefs.h. */ 52408 52409 int 52410 main () 52411 { 52412 52413 ; 52414 return 0; 52415 } 52416 _ACEOF 52417 if ac_fn_cxx_try_compile "$LINENO"; then : 52418 CC_KNOWS_CCACHE_TRICK=yes 52419 else 52420 CC_KNOWS_CCACHE_TRICK=no 52421 fi 52422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52423 CXXFLAGS="$PUSHED_FLAGS" 52424 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 52425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52426 $as_echo "yes" >&6; } 52427 else 52428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 52429 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 52430 CCACHE= 52431 CCACHE_STATUS="disabled" 52432 fi 52433 fi 52434 fi 52435 52436 if test "x$CCACHE" != x; then 52437 CCACHE_SLOPPINESS=time_macros 52438 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 52439 CCACHE_FLAGS=-fpch-preprocess 52440 52441 if test "x$SET_CCACHE_DIR" != x; then 52442 mkdir -p $CCACHE_DIR > /dev/null 2>&1 52443 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 52444 fi 52445 fi 52446 52447 fi 52448 52449 52450 ############################################################################### 52451 # 52452 # And now the finish... 52453 # 52454 ############################################################################### 52455 52456 # Check for some common pitfalls 52457 52458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52459 file_to_test="$SRC_ROOT/LICENSE" 52460 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 52461 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 52462 fi 52463 fi 52464 52465 52466 # Did user specify any unknown variables? 52467 52468 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 52469 # Replace the separating ! with spaces before presenting for end user. 52470 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 52471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 52472 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 52473 fi 52474 52475 52476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 52477 $as_echo_n "checking if build directory is on local disk... " >&6; } 52478 52479 # df -l lists only local disks; if the given directory is not found then 52480 # a non-zero exit code is given 52481 if test "x$DF" = x; then 52482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52483 # msys does not have df; use Windows "net use" instead. 52484 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 52485 if test "x$IS_NETWORK_DISK" = x; then 52486 OUTPUT_DIR_IS_LOCAL="yes" 52487 else 52488 OUTPUT_DIR_IS_LOCAL="no" 52489 fi 52490 else 52491 # No df here, say it's local 52492 OUTPUT_DIR_IS_LOCAL="yes" 52493 fi 52494 else 52495 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 52496 OUTPUT_DIR_IS_LOCAL="yes" 52497 else 52498 OUTPUT_DIR_IS_LOCAL="no" 52499 fi 52500 fi 52501 52502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 52503 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 52504 52505 52506 52507 # Check if the user has any old-style ALT_ variables set. 52508 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 52509 52510 # Before generating output files, test if they exist. If they do, this is a reconfigure. 52511 # Since we can't properly handle the dependencies for this, warn the user about the situation 52512 if test -e $OUTPUT_ROOT/spec.gmk; then 52513 IS_RECONFIGURE=yes 52514 else 52515 IS_RECONFIGURE=no 52516 fi 52517 52518 52519 # At the end, call the custom hook. (Dummy macro if no custom sources available) 52520 52521 52522 # We're messing a bit with internal autoconf variables to put the config.status 52523 # in the output directory instead of the current directory. 52524 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 52525 52526 # Create the actual output files. Now the main work of configure is done. 52527 cat >confcache <<\_ACEOF 52528 # This file is a shell script that caches the results of configure 52529 # tests run on this system so they can be shared between configure 52530 # scripts and configure runs, see configure's option --config-cache. 52531 # It is not useful on other systems. If it contains results you don't 52532 # want to keep, you may remove or edit it. 52533 # 52534 # config.status only pays attention to the cache file if you give it 52535 # the --recheck option to rerun configure. 52536 # 52537 # `ac_cv_env_foo' variables (set or unset) will be overridden when 52538 # loading this file, other *unset* `ac_cv_foo' will be assigned the 52539 # following values. 52540 52541 _ACEOF 52542 52543 # The following way of writing the cache mishandles newlines in values, 52544 # but we know of no workaround that is simple, portable, and efficient. 52545 # So, we kill variables containing newlines. 52546 # Ultrix sh set writes to stderr and can't be redirected directly, 52547 # and sets the high bit in the cache file unless we assign to the vars. 52548 ( 52549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 52550 eval ac_val=\$$ac_var 52551 case $ac_val in #( 52552 *${as_nl}*) 52553 case $ac_var in #( 52554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 52555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 52556 esac 52557 case $ac_var in #( 52558 _ | IFS | as_nl) ;; #( 52559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 52560 *) { eval $ac_var=; unset $ac_var;} ;; 52561 esac ;; 52562 esac 52563 done 52564 52565 (set) 2>&1 | 52566 case $as_nl`(ac_space=' '; set) 2>&1` in #( 52567 *${as_nl}ac_space=\ *) 52568 # `set' does not quote correctly, so add quotes: double-quote 52569 # substitution turns \\\\ into \\, and sed turns \\ into \. 52570 sed -n \ 52571 "s/'/'\\\\''/g; 52572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 52573 ;; #( 52574 *) 52575 # `set' quotes correctly as required by POSIX, so do not add quotes. 52576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 52577 ;; 52578 esac | 52579 sort 52580 ) | 52581 sed ' 52582 /^ac_cv_env_/b end 52583 t clear 52584 :clear 52585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 52586 t end 52587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 52588 :end' >>confcache 52589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 52590 if test -w "$cache_file"; then 52591 if test "x$cache_file" != "x/dev/null"; then 52592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 52593 $as_echo "$as_me: updating cache $cache_file" >&6;} 52594 if test ! -f "$cache_file" || test -h "$cache_file"; then 52595 cat confcache >"$cache_file" 52596 else 52597 case $cache_file in #( 52598 */* | ?:*) 52599 mv -f confcache "$cache_file"$$ && 52600 mv -f "$cache_file"$$ "$cache_file" ;; #( 52601 *) 52602 mv -f confcache "$cache_file" ;; 52603 esac 52604 fi 52605 fi 52606 else 52607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 52608 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 52609 fi 52610 fi 52611 rm -f confcache 52612 52613 test "x$prefix" = xNONE && prefix=$ac_default_prefix 52614 # Let make expand exec_prefix. 52615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52616 52617 DEFS=-DHAVE_CONFIG_H 52618 52619 ac_libobjs= 52620 ac_ltlibobjs= 52621 U= 52622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52623 # 1. Remove the extension, and $U if already installed. 52624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 52626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52627 # will be set to the directory where LIBOBJS objects are built. 52628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52630 done 52631 LIBOBJS=$ac_libobjs 52632 52633 LTLIBOBJS=$ac_ltlibobjs 52634 52635 52636 52637 : "${CONFIG_STATUS=./config.status}" 52638 ac_write_fail=0 52639 ac_clean_files_save=$ac_clean_files 52640 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52643 as_write_fail=0 52644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52645 #! $SHELL 52646 # Generated by $as_me. 52647 # Run this file to recreate the current configuration. 52648 # Compiler output produced by configure, useful for debugging 52649 # configure, is in config.log if it exists. 52650 52651 debug=false 52652 ac_cs_recheck=false 52653 ac_cs_silent=false 52654 52655 SHELL=\${CONFIG_SHELL-$SHELL} 52656 export SHELL 52657 _ASEOF 52658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52659 ## -------------------- ## 52660 ## M4sh Initialization. ## 52661 ## -------------------- ## 52662 52663 # Be more Bourne compatible 52664 DUALCASE=1; export DUALCASE # for MKS sh 52665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52666 emulate sh 52667 NULLCMD=: 52668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52669 # is contrary to our usage. Disable this feature. 52670 alias -g '${1+"$@"}'='"$@"' 52671 setopt NO_GLOB_SUBST 52672 else 52673 case `(set -o) 2>/dev/null` in #( 52674 *posix*) : 52675 set -o posix ;; #( 52676 *) : 52677 ;; 52678 esac 52679 fi 52680 52681 52682 as_nl=' 52683 ' 52684 export as_nl 52685 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52686 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52689 # Prefer a ksh shell builtin over an external printf program on Solaris, 52690 # but without wasting forks for bash or zsh. 52691 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52693 as_echo='print -r --' 52694 as_echo_n='print -rn --' 52695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52696 as_echo='printf %s\n' 52697 as_echo_n='printf %s' 52698 else 52699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52701 as_echo_n='/usr/ucb/echo -n' 52702 else 52703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52704 as_echo_n_body='eval 52705 arg=$1; 52706 case $arg in #( 52707 *"$as_nl"*) 52708 expr "X$arg" : "X\\(.*\\)$as_nl"; 52709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52710 esac; 52711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52712 ' 52713 export as_echo_n_body 52714 as_echo_n='sh -c $as_echo_n_body as_echo' 52715 fi 52716 export as_echo_body 52717 as_echo='sh -c $as_echo_body as_echo' 52718 fi 52719 52720 # The user is always right. 52721 if test "${PATH_SEPARATOR+set}" != set; then 52722 PATH_SEPARATOR=: 52723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52725 PATH_SEPARATOR=';' 52726 } 52727 fi 52728 52729 52730 # IFS 52731 # We need space, tab and new line, in precisely that order. Quoting is 52732 # there to prevent editors from complaining about space-tab. 52733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 52734 # splitting by setting IFS to empty value.) 52735 IFS=" "" $as_nl" 52736 52737 # Find who we are. Look in the path if we contain no directory separator. 52738 as_myself= 52739 case $0 in #(( 52740 *[\\/]* ) as_myself=$0 ;; 52741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52742 for as_dir in $PATH 52743 do 52744 IFS=$as_save_IFS 52745 test -z "$as_dir" && as_dir=. 52746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 52747 done 52748 IFS=$as_save_IFS 52749 52750 ;; 52751 esac 52752 # We did not find ourselves, most probably we were run as `sh COMMAND' 52753 # in which case we are not to be found in the path. 52754 if test "x$as_myself" = x; then 52755 as_myself=$0 52756 fi 52757 if test ! -f "$as_myself"; then 52758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 52759 exit 1 52760 fi 52761 52762 # Unset variables that we do not need and which cause bugs (e.g. in 52763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 52764 # suppresses any "Segmentation fault" message there. '((' could 52765 # trigger a bug in pdksh 5.2.14. 52766 for as_var in BASH_ENV ENV MAIL MAILPATH 52767 do eval test x\${$as_var+set} = xset \ 52768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 52769 done 52770 PS1='$ ' 52771 PS2='> ' 52772 PS4='+ ' 52773 52774 # NLS nuisances. 52775 LC_ALL=C 52776 export LC_ALL 52777 LANGUAGE=C 52778 export LANGUAGE 52779 52780 # CDPATH. 52781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52782 52783 52784 # as_fn_error STATUS ERROR [LINENO LOG_FD] 52785 # ---------------------------------------- 52786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 52787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 52788 # script with STATUS, using 1 if that was 0. 52789 as_fn_error () 52790 { 52791 as_status=$1; test $as_status -eq 0 && as_status=1 52792 if test "$4"; then 52793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 52794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 52795 fi 52796 $as_echo "$as_me: error: $2" >&2 52797 as_fn_exit $as_status 52798 } # as_fn_error 52799 52800 52801 # as_fn_set_status STATUS 52802 # ----------------------- 52803 # Set $? to STATUS, without forking. 52804 as_fn_set_status () 52805 { 52806 return $1 52807 } # as_fn_set_status 52808 52809 # as_fn_exit STATUS 52810 # ----------------- 52811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 52812 as_fn_exit () 52813 { 52814 set +e 52815 as_fn_set_status $1 52816 exit $1 52817 } # as_fn_exit 52818 52819 # as_fn_unset VAR 52820 # --------------- 52821 # Portably unset VAR. 52822 as_fn_unset () 52823 { 52824 { eval $1=; unset $1;} 52825 } 52826 as_unset=as_fn_unset 52827 # as_fn_append VAR VALUE 52828 # ---------------------- 52829 # Append the text in VALUE to the end of the definition contained in VAR. Take 52830 # advantage of any shell optimizations that allow amortized linear growth over 52831 # repeated appends, instead of the typical quadratic growth present in naive 52832 # implementations. 52833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 52834 eval 'as_fn_append () 52835 { 52836 eval $1+=\$2 52837 }' 52838 else 52839 as_fn_append () 52840 { 52841 eval $1=\$$1\$2 52842 } 52843 fi # as_fn_append 52844 52845 # as_fn_arith ARG... 52846 # ------------------ 52847 # Perform arithmetic evaluation on the ARGs, and store the result in the 52848 # global $as_val. Take advantage of shells that can avoid forks. The arguments 52849 # must be portable across $(()) and expr. 52850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 52851 eval 'as_fn_arith () 52852 { 52853 as_val=$(( $* )) 52854 }' 52855 else 52856 as_fn_arith () 52857 { 52858 as_val=`expr "$@" || test $? -eq 1` 52859 } 52860 fi # as_fn_arith 52861 52862 52863 if expr a : '\(a\)' >/dev/null 2>&1 && 52864 test "X`expr 00001 : '.*\(...\)'`" = X001; then 52865 as_expr=expr 52866 else 52867 as_expr=false 52868 fi 52869 52870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 52871 as_basename=basename 52872 else 52873 as_basename=false 52874 fi 52875 52876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 52877 as_dirname=dirname 52878 else 52879 as_dirname=false 52880 fi 52881 52882 as_me=`$as_basename -- "$0" || 52883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 52884 X"$0" : 'X\(//\)$' \| \ 52885 X"$0" : 'X\(/\)' \| . 2>/dev/null || 52886 $as_echo X/"$0" | 52887 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52888 s//\1/ 52889 q 52890 } 52891 /^X\/\(\/\/\)$/{ 52892 s//\1/ 52893 q 52894 } 52895 /^X\/\(\/\).*/{ 52896 s//\1/ 52897 q 52898 } 52899 s/.*/./; q'` 52900 52901 # Avoid depending upon Character Ranges. 52902 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52905 as_cr_digits='0123456789' 52906 as_cr_alnum=$as_cr_Letters$as_cr_digits 52907 52908 ECHO_C= ECHO_N= ECHO_T= 52909 case `echo -n x` in #((((( 52910 -n*) 52911 case `echo 'xy\c'` in 52912 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52913 xy) ECHO_C='\c';; 52914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52915 ECHO_T=' ';; 52916 esac;; 52917 *) 52918 ECHO_N='-n';; 52919 esac 52920 52921 rm -f conf$$ conf$$.exe conf$$.file 52922 if test -d conf$$.dir; then 52923 rm -f conf$$.dir/conf$$.file 52924 else 52925 rm -f conf$$.dir 52926 mkdir conf$$.dir 2>/dev/null 52927 fi 52928 if (echo >conf$$.file) 2>/dev/null; then 52929 if ln -s conf$$.file conf$$ 2>/dev/null; then 52930 as_ln_s='ln -s' 52931 # ... but there are two gotchas: 52932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52934 # In both cases, we have to default to `cp -pR'. 52935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52936 as_ln_s='cp -pR' 52937 elif ln conf$$.file conf$$ 2>/dev/null; then 52938 as_ln_s=ln 52939 else 52940 as_ln_s='cp -pR' 52941 fi 52942 else 52943 as_ln_s='cp -pR' 52944 fi 52945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 52946 rmdir conf$$.dir 2>/dev/null 52947 52948 52949 # as_fn_mkdir_p 52950 # ------------- 52951 # Create "$as_dir" as a directory, including parents if necessary. 52952 as_fn_mkdir_p () 52953 { 52954 52955 case $as_dir in #( 52956 -*) as_dir=./$as_dir;; 52957 esac 52958 test -d "$as_dir" || eval $as_mkdir_p || { 52959 as_dirs= 52960 while :; do 52961 case $as_dir in #( 52962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52963 *) as_qdir=$as_dir;; 52964 esac 52965 as_dirs="'$as_qdir' $as_dirs" 52966 as_dir=`$as_dirname -- "$as_dir" || 52967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52968 X"$as_dir" : 'X\(//\)[^/]' \| \ 52969 X"$as_dir" : 'X\(//\)$' \| \ 52970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52971 $as_echo X"$as_dir" | 52972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52973 s//\1/ 52974 q 52975 } 52976 /^X\(\/\/\)[^/].*/{ 52977 s//\1/ 52978 q 52979 } 52980 /^X\(\/\/\)$/{ 52981 s//\1/ 52982 q 52983 } 52984 /^X\(\/\).*/{ 52985 s//\1/ 52986 q 52987 } 52988 s/.*/./; q'` 52989 test -d "$as_dir" && break 52990 done 52991 test -z "$as_dirs" || eval "mkdir $as_dirs" 52992 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 52993 52994 52995 } # as_fn_mkdir_p 52996 if mkdir -p . 2>/dev/null; then 52997 as_mkdir_p='mkdir -p "$as_dir"' 52998 else 52999 test -d ./-p && rmdir ./-p 53000 as_mkdir_p=false 53001 fi 53002 53003 53004 # as_fn_executable_p FILE 53005 # ----------------------- 53006 # Test if FILE is an executable regular file. 53007 as_fn_executable_p () 53008 { 53009 test -f "$1" && test -x "$1" 53010 } # as_fn_executable_p 53011 as_test_x='test -x' 53012 as_executable_p=as_fn_executable_p 53013 53014 # Sed expression to map a string onto a valid CPP name. 53015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53016 53017 # Sed expression to map a string onto a valid variable name. 53018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53019 53020 53021 exec 6>&1 53022 ## ----------------------------------- ## 53023 ## Main body of $CONFIG_STATUS script. ## 53024 ## ----------------------------------- ## 53025 _ASEOF 53026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 53027 53028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53029 # Save the log message, to keep $0 and so on meaningful, and to 53030 # report actual input values of CONFIG_FILES etc. instead of their 53031 # values after options handling. 53032 ac_log=" 53033 This file was extended by OpenJDK $as_me jdk8, which was 53034 generated by GNU Autoconf 2.69. Invocation command line was 53035 53036 CONFIG_FILES = $CONFIG_FILES 53037 CONFIG_HEADERS = $CONFIG_HEADERS 53038 CONFIG_LINKS = $CONFIG_LINKS 53039 CONFIG_COMMANDS = $CONFIG_COMMANDS 53040 $ $0 $@ 53041 53042 on `(hostname || uname -n) 2>/dev/null | sed 1q` 53043 " 53044 53045 _ACEOF 53046 53047 case $ac_config_files in *" 53048 "*) set x $ac_config_files; shift; ac_config_files=$*;; 53049 esac 53050 53051 case $ac_config_headers in *" 53052 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 53053 esac 53054 53055 53056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53057 # Files that config.status was made for. 53058 config_files="$ac_config_files" 53059 config_headers="$ac_config_headers" 53060 53061 _ACEOF 53062 53063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53064 ac_cs_usage="\ 53065 \`$as_me' instantiates files and other configuration actions 53066 from templates according to the current configuration. Unless the files 53067 and actions are specified as TAGs, all are instantiated by default. 53068 53069 Usage: $0 [OPTION]... [TAG]... 53070 53071 -h, --help print this help, then exit 53072 -V, --version print version number and configuration settings, then exit 53073 --config print configuration, then exit 53074 -q, --quiet, --silent 53075 do not print progress messages 53076 -d, --debug don't remove temporary files 53077 --recheck update $as_me by reconfiguring in the same conditions 53078 --file=FILE[:TEMPLATE] 53079 instantiate the configuration file FILE 53080 --header=FILE[:TEMPLATE] 53081 instantiate the configuration header FILE 53082 53083 Configuration files: 53084 $config_files 53085 53086 Configuration headers: 53087 $config_headers 53088 53089 Report bugs to <build-dev@openjdk.java.net>. 53090 OpenJDK home page: <http://openjdk.java.net>." 53091 53092 _ACEOF 53093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 53095 ac_cs_version="\\ 53096 OpenJDK config.status jdk8 53097 configured by $0, generated by GNU Autoconf 2.69, 53098 with options \\"\$ac_cs_config\\" 53099 53100 Copyright (C) 2012 Free Software Foundation, Inc. 53101 This config.status script is free software; the Free Software Foundation 53102 gives unlimited permission to copy, distribute and modify it." 53103 53104 ac_pwd='$ac_pwd' 53105 srcdir='$srcdir' 53106 AWK='$AWK' 53107 test -n "\$AWK" || AWK=awk 53108 _ACEOF 53109 53110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53111 # The default lists apply if the user does not specify any file. 53112 ac_need_defaults=: 53113 while test $# != 0 53114 do 53115 case $1 in 53116 --*=?*) 53117 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53119 ac_shift=: 53120 ;; 53121 --*=) 53122 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53123 ac_optarg= 53124 ac_shift=: 53125 ;; 53126 *) 53127 ac_option=$1 53128 ac_optarg=$2 53129 ac_shift=shift 53130 ;; 53131 esac 53132 53133 case $ac_option in 53134 # Handling of the options. 53135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53136 ac_cs_recheck=: ;; 53137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 53138 $as_echo "$ac_cs_version"; exit ;; 53139 --config | --confi | --conf | --con | --co | --c ) 53140 $as_echo "$ac_cs_config"; exit ;; 53141 --debug | --debu | --deb | --de | --d | -d ) 53142 debug=: ;; 53143 --file | --fil | --fi | --f ) 53144 $ac_shift 53145 case $ac_optarg in 53146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53147 '') as_fn_error $? "missing file argument" ;; 53148 esac 53149 as_fn_append CONFIG_FILES " '$ac_optarg'" 53150 ac_need_defaults=false;; 53151 --header | --heade | --head | --hea ) 53152 $ac_shift 53153 case $ac_optarg in 53154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53155 esac 53156 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 53157 ac_need_defaults=false;; 53158 --he | --h) 53159 # Conflict between --help and --header 53160 as_fn_error $? "ambiguous option: \`$1' 53161 Try \`$0 --help' for more information.";; 53162 --help | --hel | -h ) 53163 $as_echo "$ac_cs_usage"; exit ;; 53164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53165 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53166 ac_cs_silent=: ;; 53167 53168 # This is an error. 53169 -*) as_fn_error $? "unrecognized option: \`$1' 53170 Try \`$0 --help' for more information." ;; 53171 53172 *) as_fn_append ac_config_targets " $1" 53173 ac_need_defaults=false ;; 53174 53175 esac 53176 shift 53177 done 53178 53179 ac_configure_extra_args= 53180 53181 if $ac_cs_silent; then 53182 exec 6>/dev/null 53183 ac_configure_extra_args="$ac_configure_extra_args --silent" 53184 fi 53185 53186 _ACEOF 53187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53188 if \$ac_cs_recheck; then 53189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53190 shift 53191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 53192 CONFIG_SHELL='$SHELL' 53193 export CONFIG_SHELL 53194 exec "\$@" 53195 fi 53196 53197 _ACEOF 53198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53199 exec 5>>config.log 53200 { 53201 echo 53202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53203 ## Running $as_me. ## 53204 _ASBOX 53205 $as_echo "$ac_log" 53206 } >&5 53207 53208 _ACEOF 53209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53210 _ACEOF 53211 53212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53213 53214 # Handling of arguments. 53215 for ac_config_target in $ac_config_targets 53216 do 53217 case $ac_config_target in 53218 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 53219 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 53220 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 53221 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 53222 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 53223 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 53224 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 53225 53226 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 53227 esac 53228 done 53229 53230 53231 # If the user did not use the arguments to specify the items to instantiate, 53232 # then the envvar interface is used. Set only those that are not. 53233 # We use the long form for the default assignment because of an extremely 53234 # bizarre bug on SunOS 4.1.3. 53235 if $ac_need_defaults; then 53236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53238 fi 53239 53240 # Have a temporary directory for convenience. Make it in the build tree 53241 # simply because there is no reason against having it here, and in addition, 53242 # creating and moving files from /tmp can sometimes cause problems. 53243 # Hook for its removal unless debugging. 53244 # Note that there is a small window in which the directory will not be cleaned: 53245 # after its creation but before its name has been assigned to `$tmp'. 53246 $debug || 53247 { 53248 tmp= ac_tmp= 53249 trap 'exit_status=$? 53250 : "${ac_tmp:=$tmp}" 53251 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 53252 ' 0 53253 trap 'as_fn_exit 1' 1 2 13 15 53254 } 53255 # Create a (secure) tmp directory for tmp files. 53256 53257 { 53258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 53259 test -d "$tmp" 53260 } || 53261 { 53262 tmp=./conf$$-$RANDOM 53263 (umask 077 && mkdir "$tmp") 53264 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 53265 ac_tmp=$tmp 53266 53267 # Set up the scripts for CONFIG_FILES section. 53268 # No need to generate them if there are no CONFIG_FILES. 53269 # This happens for instance with `./config.status config.h'. 53270 if test -n "$CONFIG_FILES"; then 53271 53272 53273 ac_cr=`echo X | tr X '\015'` 53274 # On cygwin, bash can eat \r inside `` if the user requested igncr. 53275 # But we know of no other shell where ac_cr would be empty at this 53276 # point, so we can use a bashism as a fallback. 53277 if test "x$ac_cr" = x; then 53278 eval ac_cr=\$\'\\r\' 53279 fi 53280 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 53281 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 53282 ac_cs_awk_cr='\\r' 53283 else 53284 ac_cs_awk_cr=$ac_cr 53285 fi 53286 53287 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 53288 _ACEOF 53289 53290 53291 { 53292 echo "cat >conf$$subs.awk <<_ACEOF" && 53293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 53294 echo "_ACEOF" 53295 } >conf$$subs.sh || 53296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 53298 ac_delim='%!_!# ' 53299 for ac_last_try in false false false false false :; do 53300 . ./conf$$subs.sh || 53301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53302 53303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 53304 if test $ac_delim_n = $ac_delim_num; then 53305 break 53306 elif $ac_last_try; then 53307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53308 else 53309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53310 fi 53311 done 53312 rm -f conf$$subs.sh 53313 53314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 53316 _ACEOF 53317 sed -n ' 53318 h 53319 s/^/S["/; s/!.*/"]=/ 53320 p 53321 g 53322 s/^[^!]*!// 53323 :repl 53324 t repl 53325 s/'"$ac_delim"'$// 53326 t delim 53327 :nl 53328 h 53329 s/\(.\{148\}\)..*/\1/ 53330 t more1 53331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 53332 p 53333 n 53334 b repl 53335 :more1 53336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53337 p 53338 g 53339 s/.\{148\}// 53340 t nl 53341 :delim 53342 h 53343 s/\(.\{148\}\)..*/\1/ 53344 t more2 53345 s/["\\]/\\&/g; s/^/"/; s/$/"/ 53346 p 53347 b 53348 :more2 53349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53350 p 53351 g 53352 s/.\{148\}// 53353 t delim 53354 ' <conf$$subs.awk | sed ' 53355 /^[^""]/{ 53356 N 53357 s/\n// 53358 } 53359 ' >>$CONFIG_STATUS || ac_write_fail=1 53360 rm -f conf$$subs.awk 53361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53362 _ACAWK 53363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 53364 for (key in S) S_is_set[key] = 1 53365 FS = "" 53366 53367 } 53368 { 53369 line = $ 0 53370 nfields = split(line, field, "@") 53371 substed = 0 53372 len = length(field[1]) 53373 for (i = 2; i < nfields; i++) { 53374 key = field[i] 53375 keylen = length(key) 53376 if (S_is_set[key]) { 53377 value = S[key] 53378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 53379 len += length(value) + length(field[++i]) 53380 substed = 1 53381 } else 53382 len += 1 + keylen 53383 } 53384 53385 print line 53386 } 53387 53388 _ACAWK 53389 _ACEOF 53390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53391 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 53392 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 53393 else 53394 cat 53395 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 53396 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 53397 _ACEOF 53398 53399 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 53400 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 53401 # trailing colons and then remove the whole line if VPATH becomes empty 53402 # (actually we leave an empty line to preserve line numbers). 53403 if test "x$srcdir" = x.; then 53404 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 53405 h 53406 s/// 53407 s/^/:/ 53408 s/[ ]*$/:/ 53409 s/:\$(srcdir):/:/g 53410 s/:\${srcdir}:/:/g 53411 s/:@srcdir@:/:/g 53412 s/^:*// 53413 s/:*$// 53414 x 53415 s/\(=[ ]*\).*/\1/ 53416 G 53417 s/\n// 53418 s/^[^=]*=[ ]*$// 53419 }' 53420 fi 53421 53422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53423 fi # test -n "$CONFIG_FILES" 53424 53425 # Set up the scripts for CONFIG_HEADERS section. 53426 # No need to generate them if there are no CONFIG_HEADERS. 53427 # This happens for instance with `./config.status Makefile'. 53428 if test -n "$CONFIG_HEADERS"; then 53429 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 53430 BEGIN { 53431 _ACEOF 53432 53433 # Transform confdefs.h into an awk script `defines.awk', embedded as 53434 # here-document in config.status, that substitutes the proper values into 53435 # config.h.in to produce config.h. 53436 53437 # Create a delimiter string that does not exist in confdefs.h, to ease 53438 # handling of long lines. 53439 ac_delim='%!_!# ' 53440 for ac_last_try in false false :; do 53441 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 53442 if test -z "$ac_tt"; then 53443 break 53444 elif $ac_last_try; then 53445 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 53446 else 53447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53448 fi 53449 done 53450 53451 # For the awk script, D is an array of macro values keyed by name, 53452 # likewise P contains macro parameters if any. Preserve backslash 53453 # newline sequences. 53454 53455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 53456 sed -n ' 53457 s/.\{148\}/&'"$ac_delim"'/g 53458 t rset 53459 :rset 53460 s/^[ ]*#[ ]*define[ ][ ]*/ / 53461 t def 53462 d 53463 :def 53464 s/\\$// 53465 t bsnl 53466 s/["\\]/\\&/g 53467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53468 D["\1"]=" \3"/p 53469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 53470 d 53471 :bsnl 53472 s/["\\]/\\&/g 53473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53474 D["\1"]=" \3\\\\\\n"\\/p 53475 t cont 53476 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 53477 t cont 53478 d 53479 :cont 53480 n 53481 s/.\{148\}/&'"$ac_delim"'/g 53482 t clear 53483 :clear 53484 s/\\$// 53485 t bsnlc 53486 s/["\\]/\\&/g; s/^/"/; s/$/"/p 53487 d 53488 :bsnlc 53489 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 53490 b cont 53491 ' <confdefs.h | sed ' 53492 s/'"$ac_delim"'/"\\\ 53493 "/g' >>$CONFIG_STATUS || ac_write_fail=1 53494 53495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53496 for (key in D) D_is_set[key] = 1 53497 FS = "" 53498 } 53499 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 53500 line = \$ 0 53501 split(line, arg, " ") 53502 if (arg[1] == "#") { 53503 defundef = arg[2] 53504 mac1 = arg[3] 53505 } else { 53506 defundef = substr(arg[1], 2) 53507 mac1 = arg[2] 53508 } 53509 split(mac1, mac2, "(") #) 53510 macro = mac2[1] 53511 prefix = substr(line, 1, index(line, defundef) - 1) 53512 if (D_is_set[macro]) { 53513 # Preserve the white space surrounding the "#". 53514 print prefix "define", macro P[macro] D[macro] 53515 next 53516 } else { 53517 # Replace #undef with comments. This is necessary, for example, 53518 # in the case of _POSIX_SOURCE, which is predefined and required 53519 # on some systems where configure will not decide to define it. 53520 if (defundef == "undef") { 53521 print "/*", prefix defundef, macro, "*/" 53522 next 53523 } 53524 } 53525 } 53526 { print } 53527 _ACAWK 53528 _ACEOF 53529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53530 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 53531 fi # test -n "$CONFIG_HEADERS" 53532 53533 53534 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 53535 shift 53536 for ac_tag 53537 do 53538 case $ac_tag in 53539 :[FHLC]) ac_mode=$ac_tag; continue;; 53540 esac 53541 case $ac_mode$ac_tag in 53542 :[FHL]*:*);; 53543 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 53544 :[FH]-) ac_tag=-:-;; 53545 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 53546 esac 53547 ac_save_IFS=$IFS 53548 IFS=: 53549 set x $ac_tag 53550 IFS=$ac_save_IFS 53551 shift 53552 ac_file=$1 53553 shift 53554 53555 case $ac_mode in 53556 :L) ac_source=$1;; 53557 :[FH]) 53558 ac_file_inputs= 53559 for ac_f 53560 do 53561 case $ac_f in 53562 -) ac_f="$ac_tmp/stdin";; 53563 *) # Look for the file first in the build tree, then in the source tree 53564 # (if the path is not absolute). The absolute path cannot be DOS-style, 53565 # because $ac_f cannot contain `:'. 53566 test -f "$ac_f" || 53567 case $ac_f in 53568 [\\/$]*) false;; 53569 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 53570 esac || 53571 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 53572 esac 53573 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 53574 as_fn_append ac_file_inputs " '$ac_f'" 53575 done 53576 53577 # Let's still pretend it is `configure' which instantiates (i.e., don't 53578 # use $as_me), people would be surprised to read: 53579 # /* config.h. Generated by config.status. */ 53580 configure_input='Generated from '` 53581 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 53582 `' by configure.' 53583 if test x"$ac_file" != x-; then 53584 configure_input="$ac_file. $configure_input" 53585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 53586 $as_echo "$as_me: creating $ac_file" >&6;} 53587 fi 53588 # Neutralize special characters interpreted by sed in replacement strings. 53589 case $configure_input in #( 53590 *\&* | *\|* | *\\* ) 53591 ac_sed_conf_input=`$as_echo "$configure_input" | 53592 sed 's/[\\\\&|]/\\\\&/g'`;; #( 53593 *) ac_sed_conf_input=$configure_input;; 53594 esac 53595 53596 case $ac_tag in 53597 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 53598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 53599 esac 53600 ;; 53601 esac 53602 53603 ac_dir=`$as_dirname -- "$ac_file" || 53604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53605 X"$ac_file" : 'X\(//\)[^/]' \| \ 53606 X"$ac_file" : 'X\(//\)$' \| \ 53607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 53608 $as_echo X"$ac_file" | 53609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53610 s//\1/ 53611 q 53612 } 53613 /^X\(\/\/\)[^/].*/{ 53614 s//\1/ 53615 q 53616 } 53617 /^X\(\/\/\)$/{ 53618 s//\1/ 53619 q 53620 } 53621 /^X\(\/\).*/{ 53622 s//\1/ 53623 q 53624 } 53625 s/.*/./; q'` 53626 as_dir="$ac_dir"; as_fn_mkdir_p 53627 ac_builddir=. 53628 53629 case "$ac_dir" in 53630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 53631 *) 53632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 53633 # A ".." for each directory in $ac_dir_suffix. 53634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 53635 case $ac_top_builddir_sub in 53636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 53637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 53638 esac ;; 53639 esac 53640 ac_abs_top_builddir=$ac_pwd 53641 ac_abs_builddir=$ac_pwd$ac_dir_suffix 53642 # for backward compatibility: 53643 ac_top_builddir=$ac_top_build_prefix 53644 53645 case $srcdir in 53646 .) # We are building in place. 53647 ac_srcdir=. 53648 ac_top_srcdir=$ac_top_builddir_sub 53649 ac_abs_top_srcdir=$ac_pwd ;; 53650 [\\/]* | ?:[\\/]* ) # Absolute name. 53651 ac_srcdir=$srcdir$ac_dir_suffix; 53652 ac_top_srcdir=$srcdir 53653 ac_abs_top_srcdir=$srcdir ;; 53654 *) # Relative name. 53655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 53656 ac_top_srcdir=$ac_top_build_prefix$srcdir 53657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 53658 esac 53659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 53660 53661 53662 case $ac_mode in 53663 :F) 53664 # 53665 # CONFIG_FILE 53666 # 53667 53668 _ACEOF 53669 53670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53671 # If the template does not know about datarootdir, expand it. 53672 # FIXME: This hack should be removed a few years after 2.60. 53673 ac_datarootdir_hack=; ac_datarootdir_seen= 53674 ac_sed_dataroot=' 53675 /datarootdir/ { 53676 p 53677 q 53678 } 53679 /@datadir@/p 53680 /@docdir@/p 53681 /@infodir@/p 53682 /@localedir@/p 53683 /@mandir@/p' 53684 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 53685 *datarootdir*) ac_datarootdir_seen=yes;; 53686 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 53687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 53688 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 53689 _ACEOF 53690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53691 ac_datarootdir_hack=' 53692 s&@datadir@&$datadir&g 53693 s&@docdir@&$docdir&g 53694 s&@infodir@&$infodir&g 53695 s&@localedir@&$localedir&g 53696 s&@mandir@&$mandir&g 53697 s&\\\${datarootdir}&$datarootdir&g' ;; 53698 esac 53699 _ACEOF 53700 53701 # Neutralize VPATH when `$srcdir' = `.'. 53702 # Shell code in configure.ac might set extrasub. 53703 # FIXME: do we really want to maintain this feature? 53704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53705 ac_sed_extra="$ac_vpsub 53706 $extrasub 53707 _ACEOF 53708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53709 :t 53710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 53711 s|@configure_input@|$ac_sed_conf_input|;t t 53712 s&@top_builddir@&$ac_top_builddir_sub&;t t 53713 s&@top_build_prefix@&$ac_top_build_prefix&;t t 53714 s&@srcdir@&$ac_srcdir&;t t 53715 s&@abs_srcdir@&$ac_abs_srcdir&;t t 53716 s&@top_srcdir@&$ac_top_srcdir&;t t 53717 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 53718 s&@builddir@&$ac_builddir&;t t 53719 s&@abs_builddir@&$ac_abs_builddir&;t t 53720 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 53721 $ac_datarootdir_hack 53722 " 53723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 53724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53725 53726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 53727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 53728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 53729 "$ac_tmp/out"`; test -z "$ac_out"; } && 53730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 53731 which seems to be undefined. Please make sure it is defined" >&5 53732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 53733 which seems to be undefined. Please make sure it is defined" >&2;} 53734 53735 rm -f "$ac_tmp/stdin" 53736 case $ac_file in 53737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 53738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 53739 esac \ 53740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53741 ;; 53742 :H) 53743 # 53744 # CONFIG_HEADER 53745 # 53746 if test x"$ac_file" != x-; then 53747 { 53748 $as_echo "/* $configure_input */" \ 53749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 53750 } >"$ac_tmp/config.h" \ 53751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 53753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 53754 $as_echo "$as_me: $ac_file is unchanged" >&6;} 53755 else 53756 rm -f "$ac_file" 53757 mv "$ac_tmp/config.h" "$ac_file" \ 53758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53759 fi 53760 else 53761 $as_echo "/* $configure_input */" \ 53762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 53763 || as_fn_error $? "could not create -" "$LINENO" 5 53764 fi 53765 ;; 53766 53767 53768 esac 53769 53770 done # for ac_tag 53771 53772 53773 as_fn_exit 0 53774 _ACEOF 53775 ac_clean_files=$ac_clean_files_save 53776 53777 test $ac_write_fail = 0 || 53778 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 53779 53780 53781 # configure is writing to config.log, and then calls config.status. 53782 # config.status does its own redirection, appending to config.log. 53783 # Unfortunately, on DOS this fails, as config.log is still kept open 53784 # by configure, so config.status won't be able to write to it; its 53785 # output is simply discarded. So we exec the FD to /dev/null, 53786 # effectively closing config.log, so it can be properly (re)opened and 53787 # appended to by config.status. When coming back to configure, we 53788 # need to make the FD available again. 53789 if test "$no_create" != yes; then 53790 ac_cs_success=: 53791 ac_config_status_args= 53792 test "$silent" = yes && 53793 ac_config_status_args="$ac_config_status_args --quiet" 53794 exec 5>/dev/null 53795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 53796 exec 5>>config.log 53797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 53798 # would make configure fail if this is the last instruction. 53799 $ac_cs_success || as_fn_exit 1 53800 fi 53801 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 53802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 53803 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 53804 fi 53805 53806 53807 53808 # Try to move the config.log file to the output directory. 53809 if test -e ./config.log; then 53810 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 53811 fi 53812 53813 # Make the compare script executable 53814 $CHMOD +x $OUTPUT_ROOT/compare.sh 53815 53816 # Finally output some useful information to the user 53817 53818 # Finally output some useful information to the user 53819 53820 printf "\n" 53821 printf "====================================================\n" 53822 printf "A new configuration has been successfully created in\n" 53823 printf "$OUTPUT_ROOT\n" 53824 if test "x$CONFIGURE_COMMAND_LINE" != x; then 53825 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 53826 else 53827 printf "using default settings.\n" 53828 fi 53829 53830 printf "\n" 53831 printf "Configuration summary:\n" 53832 printf "* Debug level: $DEBUG_LEVEL\n" 53833 printf "* JDK variant: $JDK_VARIANT\n" 53834 printf "* JVM variants: $with_jvm_variants\n" 53835 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 53836 53837 printf "\n" 53838 printf "Tools summary:\n" 53839 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 53840 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 53841 fi 53842 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 53843 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 53844 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 53845 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 53846 53847 printf "\n" 53848 printf "Build performance summary:\n" 53849 printf "* Cores to use: $JOBS\n" 53850 printf "* Memory limit: $MEMORY_SIZE MB\n" 53851 if test "x$CCACHE_STATUS" != "x"; then 53852 printf "* ccache status: $CCACHE_STATUS\n" 53853 fi 53854 printf "\n" 53855 53856 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 53857 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 53858 printf "will result in longer build times.\n" 53859 printf "\n" 53860 fi 53861 53862 if test "x$FOUND_ALT_VARIABLES" != "x"; then 53863 printf "WARNING: You have old-style ALT_ environment variables set.\n" 53864 printf "These are not respected, and will be ignored. It is recommended\n" 53865 printf "that you clean your environment. The following variables are set:\n" 53866 printf "$FOUND_ALT_VARIABLES\n" 53867 printf "\n" 53868 fi 53869 53870 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 53871 printf "WARNING: Your build output directory is not on a local disk.\n" 53872 printf "This will severely degrade build performance!\n" 53873 printf "It is recommended that you create an output directory on a local disk,\n" 53874 printf "and run the configure script again from that directory.\n" 53875 printf "\n" 53876 fi 53877 53878 if test "x$IS_RECONFIGURE" = "xyes"; then 53879 printf "WARNING: The result of this configuration has overridden an older\n" 53880 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 53881 printf "proper build. Failure to do so might result in strange build problems.\n" 53882 printf "\n" 53883 fi 53884 53885 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then 53886 printf "WARNING: The toolchain version used is known to have issues. Please\n" 53887 printf "consider using a supported version unless you know what you are doing.\n" 53888 printf "\n" 53889 fi 53890